#include "SdEventSelectorOG/SdEventSelector.h"
Public Types | |
enum | ResultFlag { eSuccess, eFailure, eBreakLoop, eContinueLoop } |
Flag returned by module methods to the RunController. More... | |
enum | VersionInfoType { eFilename = 1, eRevisionNumber = 2, eDate = 3, eTime = 4, eLastEditor = 5 } |
Different types of version info that can be retrieved from GetVersionInfo. More... | |
Public Member Functions | |
fwk::VModule::ResultFlag | Finish () override |
Finish: invoked at end of the run (NOT end of the event) More... | |
utl::Stopwatch & | GetStopwatch () |
const utl::Stopwatch & | GetStopwatch () const |
std::string | GetVersionInfo (const VersionInfoType v) const |
Retrieve different sorts of module version info. More... | |
fwk::VModule::ResultFlag | Init () override |
Initialize: invoked at beginning of run (NOT beginning of event) More... | |
void | InitTiming () |
fwk::VModule::ResultFlag | Run (evt::Event &event) override |
Run: invoked once per event. More... | |
ResultFlag | RunWithTiming (evt::Event &event) |
Static Public Member Functions | |
static std::string | GetResultFlagByName (const ResultFlag flag) |
Protected Types | |
enum | InfoLevel { eInfoNone = 0, eInfoFinal = 1, eInfoIntermediate = 2, eInfoDebug = 3 } |
Protected Attributes | |
int | fInfoLevel = 0 |
Private Types | |
typedef std::pair < sevt::Station *, const sdet::Station * > | StationPair |
typedef std::list< StationPair > | StationPairList |
Private Member Functions | |
bool | BottomUpSelection (const bool is3TOT, evt::Event &event) |
std::pair< int, std::vector < int > > | CalculateT5Trigger (const sevt::SEvent &sEvent) const |
double | CTimeDifferenceMargin (const sevt::Station &i, const sevt::Station &j) const |
int | GetBadPeriod (const utl::TimeStamp &time) const |
bool | IsReusedIDStation (const sdet::Station &s) const |
bool | IsSEvent3TOT (const StationPairList &candidates) const |
bool | IsSEvent4C1 () const |
REGISTER_MODULE ("SdEventSelectorOG", SdEventSelector) | |
bool | RejectLonelyStations () |
int | StationSelection (sevt::SEvent &sEvent) const |
SdEventSelector module based on official event selection as described in GAP 2005-023
Definition at line 52 of file SdEventSelector.h.
|
private |
Definition at line 61 of file SdEventSelector.h.
|
private |
Definition at line 62 of file SdEventSelector.h.
|
protectedinherited |
|
inherited |
Flag returned by module methods to the RunController.
Enumerator | |
---|---|
eSuccess |
Report success to RunController. |
eFailure |
Report failure to RunController, causing RunController to terminate execution. |
eBreakLoop |
Break current loop. It works for nested loops too! |
eContinueLoop |
Skip remaining modules in the current loop and continue with next iteration of the loop. |
|
inherited |
|
private |
Definition at line 859 of file SdEventSelector.cc.
References SdEventSelectorOG::SeedFit::Chi2(), utl::Cross(), degree, delay, utl::delr, Distance(), utl::endc, utl::endr, cevt::StationConstants::eOutOfTime, utl::BasicVector< HepVector >::GetPhi(), SdEventSelectorOG::GetSRecShower(), utl::BasicVector< HepVector >::GetTheta(), utl::BasicVector< HepVector >::GetZ(), SdEventSelectorOG::SeedFit::gScalarProductIJ, SdEventSelectorOG::SeedFit::gScalarProductJK, SdEventSelectorOG::SeedFit::gTimeI, SdEventSelectorOG::SeedFit::gTimeJ, utl::hline(), INFO, SdEventSelectorOG::IsInRange(), utl::kSpeedOfLight, utl::nanosecond, SdEventSelectorOG::Next(), utl::Normalized(), utl::String::Plural(), utl::s, sqrt(), and tab.
|
private |
Definition at line 798 of file SdEventSelector.cc.
References Distance(), sevt::Station::GetId(), INFO, sevt::StationConstants::kGoodBitsT5, utl::s, and U.
|
inlineprivate |
Definition at line 148 of file SdEventSelector.cc.
References utl::abs(), sevt::Station::GetRecData(), sevt::StationRecData::GetSignalStartTime(), and utl::kSpeedOfLight.
|
overridevirtual |
Finish: invoked at end of the run (NOT end of the event)
This method is for things that should be done at the end of the run (for example, closing files or writing out histograms) {You must override this method in your concrete module}
Implements fwk::VModule.
Definition at line 635 of file SdEventSelector.cc.
References io::eSuccess.
|
private |
Definition at line 642 of file SdEventSelector.cc.
References UnivRecNS::low.
|
staticinherited |
Definition at line 8 of file VModule.cc.
References fwk::VModule::eBreakLoop, fwk::VModule::eContinueLoop, fwk::VModule::eFailure, and fwk::VModule::eSuccess.
Referenced by fwk::RunController::DoNextInSequence(), fwk::RunController::FinishBranch(), and fwk::RunController::InitBranch().
|
inlineinherited |
Definition at line 106 of file VModule.h.
References fwk::VModule::fStopwatch.
|
inlineinherited |
Definition at line 107 of file VModule.h.
References fwk::VModule::fStopwatch.
|
inherited |
Retrieve different sorts of module version info.
Definition at line 26 of file VModule.cc.
Referenced by fwk::CentralConfig::GetConfig(), ThresholdCalculatorKG::ThresholdCalculator::Init(), fdDoubleBumpFinder::FdDoubleBumpFinder::Init(), LaserGeneratorNA::LaserGenerator::Init(), LaserLightSimulatorNA::LaserLightSimulator::Init(), FdElectronicsSimulatorOG::FdElectronicsSimulator::Init(), TelescopeSimulatorKG::TelescopeSimulator::Init(), TelescopeSimulatorKG2::TelescopeSimulator::Init(), SdSimpleSimKG::SdSimpleSim::Init(), ShowerPhotonGeneratorOG::ShowerPhotonGenerator::Init(), and testRunController::testModuleVersionInfo().
|
overridevirtual |
Initialize: invoked at beginning of run (NOT beginning of event)
This method is for things that should be done once at the beginning of a run (for example, booking histograms, performing calculations that need to be done only once, initializing parameters) {You must override this method in your concrete module}
Implements fwk::VModule.
Definition at line 289 of file SdEventSelector.cc.
References sdet::SDetectorConstants::eInfill433, sdet::SDetectorConstants::eInfill750, ERROR, sdet::SDetectorConstants::eStandard, io::eSuccess, utl::Branch::GetAttributes(), utl::Branch::GetChild(), utl::Branch::GetData(), fwk::CentralConfig::GetInstance(), fwk::CentralConfig::GetTopBranch(), INFO, and WARNING.
|
inlineinherited |
Definition at line 95 of file VModule.h.
References fwk::VModule::fStopwatch, and utl::Stopwatch::Reset().
|
private |
|
private |
Definition at line 667 of file SdEventSelector.cc.
References Distance().
|
private |
Definition at line 726 of file SdEventSelector.cc.
References Distance(), and SdEventSelectorOG::Next().
|
private |
|
private |
Definition at line 1181 of file SdEventSelector.cc.
References Distance(), cevt::StationConstants::eLonely, INFO, utl::String::OfSortedIds(), and utl::s.
|
overridevirtual |
Run: invoked once per event.
This method is for things that should be done once per event {You must override this method in your concrete module}
Implements fwk::VModule.
Definition at line 428 of file SdEventSelector.cc.
References utl::String::AsBinary(), cevt::StationConstants::eNumRejectionStatusBits, io::eSuccess, SdEventSelectorOG::GetSRecShower(), SdEventSelectorOG::GetT4TriggerName(), evt::Event::HasSEvent(), INFO, and utl::s.
|
inlineinherited |
Definition at line 98 of file VModule.h.
References fwk::VModule::fStopwatch, fwk::VModule::Run(), utl::Stopwatch::Start(), and utl::Stopwatch::Stop().
Referenced by fwk::RunController::DoNextInSequence().
|
private |
Removes lightning, EA, second doublet. Stations with external (random) triggers are already removed in SdCalibrator. Bad altitude stations should not appear in the traveller database so no bad-altitude removal is performed here.
Definition at line 158 of file SdEventSelector.cc.
References cevt::StationConstants::eDenseArray, sevt::StationConstants::eElectronicsType, sevt::StationConstants::eLightning, cevt::StationConstants::eNoRecData, cevt::StationConstants::eOffGrid, sevt::IsLightning(), SdEventSelectorOG::MakeInfo(), utl::s, and WARNING.
|
private |
Definition at line 83 of file SdEventSelector.h.
|
private |
Definition at line 81 of file SdEventSelector.h.
|
private |
Definition at line 82 of file SdEventSelector.h.
|
private |
Definition at line 84 of file SdEventSelector.h.
|
private |
Definition at line 85 of file SdEventSelector.h.
|
private |
Definition at line 102 of file SdEventSelector.h.
|
private |
Definition at line 80 of file SdEventSelector.h.
|
private |
Definition at line 90 of file SdEventSelector.h.
|
private |
Definition at line 91 of file SdEventSelector.h.
|
private |
Definition at line 93 of file SdEventSelector.h.
|
private |
Definition at line 107 of file SdEventSelector.h.
|
private |
Definition at line 105 of file SdEventSelector.h.
|
protectedinherited |
Definition at line 123 of file VModule.h.
Referenced by RdChannelASCIINoiseImporterRD::RdChannelASCIINoiseImporterRD::Init(), Rd2dLDFFitter::Rd2dLDFFitter::Init(), RdChannelNoiseImporter_AERA::RdChannelNoiseImporter_AERA::Init(), and Rd2dLDFFitter::Rd2dLDFFitter::Run().
|
private |
Definition at line 106 of file SdEventSelector.h.
|
private |
Definition at line 114 of file SdEventSelector.h.
|
private |
Definition at line 115 of file SdEventSelector.h.
|
private |
Definition at line 95 of file SdEventSelector.h.
|
private |
Definition at line 89 of file SdEventSelector.h.
|
private |
Definition at line 101 of file SdEventSelector.h.
|
private |
Definition at line 96 of file SdEventSelector.h.
|
private |
Definition at line 92 of file SdEventSelector.h.
|
private |
Definition at line 94 of file SdEventSelector.h.
|
private |
Definition at line 97 of file SdEventSelector.h.
|
private |
Definition at line 98 of file SdEventSelector.h.
|
private |
Definition at line 111 of file SdEventSelector.h.
|
private |
Definition at line 113 of file SdEventSelector.h.
|
private |
Definition at line 112 of file SdEventSelector.h.
|
private |
Definition at line 109 of file SdEventSelector.h.
|
private |
Definition at line 110 of file SdEventSelector.h.
|
private |
Definition at line 86 of file SdEventSelector.h.
|
private |
Definition at line 117 of file SdEventSelector.h.
|
private |
Definition at line 118 of file SdEventSelector.h.
|
private |
Definition at line 116 of file SdEventSelector.h.
|
private |
Definition at line 108 of file SdEventSelector.h.