#include <RdEventPreSelector.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 Member Functions | |
bool | CheckTrigger (const revt::EventTrigger &evtrig) |
bool | CloseTo (const double a, const double b, const double tolerance) const |
unsigned int | CountStationWithPulse (evt::Event &event) const |
REGISTER_MODULE ("RdEventPreSelector", RdEventPreSelector) | |
Private Attributes | |
double | fAllowedTimeAroundEventTime = 10 * utl::minute |
utl::TimeStamp | fAllowedTimeBegin |
utl::TimeStamp | fAllowedTimeStop |
std::vector< int > | fAllParticipatingStationIds |
List of station IDs which must be part of the event (additional stations are allowed) More... | |
std::vector< int > | fAtLeastOneParticipatingStationIds |
List of station IDs of which at least one must be part of the event (additional stations are allowed) More... | |
bool | fBreakLoopAtMaxDateTime = true |
break loop in ModuleSequence instead of continue More... | |
std::set< int > | fDeselectedEventIds |
List of not allowed event IDs (attention: ID = ID in Run, which is not an unique identifier) More... | |
std::set< std::pair< int, int > > | fDeselectedRunEventIds |
List of not allowed combination of run and event IDs. More... | |
std::vector< unsigned long > | fEventGPSSeconds |
bool | fFDInput = false |
selects if FD should be used as input for radio More... | |
int | fMaxEventId = 0 |
Maximal event ID (0, this cut is ignored) More... | |
double | fMaxFDZenith = 90 * utl::deg |
maximum allowed FD angle More... | |
double | fMaxNumberOfAvailableStationsInLargestEvents = 0 |
int | fMaxNumberOfStations = 0 |
Maximal number of stations which must be in the event (if 0, this cut is ignored) More... | |
double | fMaxSDZenith = 90 * utl::deg |
int | fMinEventId = 0 |
Minimal event ID. More... | |
int | fMinNumberOfStations = 0 |
Minimal number of stations which must be in the event. More... | |
double | fMinNumberOfStationsWithPulse = 0 |
double | fMinSDEnergy = 0 |
double | fMinSDZenith = 0 * utl::deg |
double | fMinSignalToNoise = 0 |
unsigned int | fNAccepted = 0 |
total number of accepted events More... | |
std::vector< int > | fNotParticipatingStationIds |
List of station IDs which must not be part of the event. More... | |
unsigned int | fNRejected = 0 |
total number of rejected events More... | |
unsigned int | fNRejectedEventRejectionList = 0 |
number of events deselected because event in event rejection list More... | |
unsigned int | fNRejectedMinNumberOfStations = 0 |
number of events deselected because of not sufficient number of stations More... | |
unsigned int | fNRejectedMinNumberOfStationsWithPulse = 0 |
number of events deselected due to the SNR cut More... | |
unsigned int | fNRejectedStationRejectionList = 0 |
number of events deselected because event contains station in station rejection list More... | |
unsigned int | fNRejectedTriggerConditions = 0 |
number of events deselected because event in event rejection list More... | |
unsigned int | fNumberOfEvents = 0 |
total number of events More... | |
std::set< utl::TimeStamp > | fSelectedEventDates |
List of allowed event dates. More... | |
std::set< int > | fSelectedEventIds |
List of allowed event IDs (attention: ID = ID in Run, which is not an unique identifier) More... | |
std::set< std::pair< int, int > > | fSelectedRunEventIds |
List of allowed allowed combination of run and event IDs. More... | |
bool | fUseAERAletTriggeredEvent = false |
bool | fUseAIRPLANETriggeredEvent = false |
bool | fUseCalibrationTriggeredEvent = false |
bool | fUseExternallyTriggeredEvent = false |
bool | fUseFDTriggeredEvent = false |
bool | fUseGUITriggeredEvent = false |
bool | fUseHEATTriggeredEvent = false |
bool | fUsePassThroughTriggeredEvent = false |
bool | fUsePeriodicTriggeredEvent = false |
bool | fUseScintillatorTriggeredEvent = false |
bool | fUseSDTriggeredEvent = false |
bool | fUseSelfTriggeredEvent = false |
bool | fUseTriggerInformation = false |
unsigned int | fWhichEye = 6 |
selects the reconstructed FD eye as input More... | |
Definition at line 29 of file RdEventPreSelector.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 648 of file RdEventPreSelector.cc.
References INFODebug, INFOIntermediate, revt::EventTrigger::IsAERAletTrigger(), revt::EventTrigger::IsAIRPLANETrigger(), revt::EventTrigger::IsCalibrationTrigger(), revt::EventTrigger::IsExternalTrigger(), revt::EventTrigger::IsFDTrigger(), revt::EventTrigger::IsGUITrigger(), revt::EventTrigger::IsHEATTrigger(), revt::EventTrigger::IsPassThroughTrigger(), revt::EventTrigger::IsPeriodicTrigger(), revt::EventTrigger::IsScintillatorTrigger(), revt::EventTrigger::IsSDTrigger(), and revt::EventTrigger::IsSelfTrigger().
|
private |
Definition at line 706 of file RdEventPreSelector.cc.
|
private |
Definition at line 536 of file RdEventPreSelector.cc.
References ERROR, det::Detector::GetRDetector(), rdet::RDetector::GetStation(), INFOIntermediate, max, utl::MHz, utl::RadioTraceUtilities::Noisefinder(), std::pow(), utl::RadioTraceUtilities::Pulsefinder(), utl::Sqr(), and sqrt().
|
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 520 of file RdEventPreSelector.cc.
References io::eSuccess, and INFO.
|
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 55 of file RdEventPreSelector.cc.
References io::eSuccess, utl::Branch::Get(), utl::Branch::GetChild(), utl::Branch::GetData(), fwk::CentralConfig::GetInstance(), fwk::CentralConfig::GetTopBranch(), INFODebug, INFOFinal, and WARNING.
|
inlineinherited |
Definition at line 95 of file VModule.h.
References fwk::VModule::fStopwatch, and utl::Stopwatch::Reset().
|
private |
|
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 208 of file RdEventPreSelector.cc.
References utl::deg, ERROR, io::eSuccess, utl::eV, fevt::FEvent::EyesBegin(), fevt::FEvent::EyesEnd(), evt::ShowerFRecData::GetAxis(), fevt::EyeRecData::GetFRecShower(), utl::TimeStamp::GetGPSSecond(), revt::REvent::GetHeader(), revt::Header::GetId(), revt::REvent::GetNumberOfStations(), fevt::Eye::GetRecData(), det::Detector::GetReferenceCoordinateSystem(), revt::Header::GetRunNumber(), utl::BasicVector< HepVector >::GetTheta(), revt::Header::GetTime(), revt::REvent::GetTrigger(), evt::Event::HasFEvent(), fevt::EyeRecData::HasFRecShower(), fevt::Eye::HasRecData(), evt::Event::HasRecShower(), evt::Event::HasREvent(), revt::REvent::HasStation(), INFODebug, INFOFinal, UnivRecNS::low, utl::minute, utl::second, and WARNING.
|
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 |
Definition at line 136 of file RdEventPreSelector.h.
|
private |
Definition at line 108 of file RdEventPreSelector.h.
|
private |
Definition at line 109 of file RdEventPreSelector.h.
|
private |
List of station IDs which must be part of the event (additional stations are allowed)
Definition at line 79 of file RdEventPreSelector.h.
|
private |
List of station IDs of which at least one must be part of the event (additional stations are allowed)
Definition at line 82 of file RdEventPreSelector.h.
|
private |
break loop in ModuleSequence instead of continue
Definition at line 112 of file RdEventPreSelector.h.
|
private |
List of not allowed event IDs (attention: ID = ID in Run, which is not an unique identifier)
Definition at line 61 of file RdEventPreSelector.h.
|
private |
List of not allowed combination of run and event IDs.
Definition at line 70 of file RdEventPreSelector.h.
|
private |
Definition at line 135 of file RdEventPreSelector.h.
|
private |
selects if FD should be used as input for radio
Definition at line 139 of file RdEventPreSelector.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 |
Maximal event ID (0, this cut is ignored)
Definition at line 41 of file RdEventPreSelector.h.
|
private |
maximum allowed FD angle
Definition at line 145 of file RdEventPreSelector.h.
|
private |
Definition at line 121 of file RdEventPreSelector.h.
|
private |
Maximal number of stations which must be in the event (if 0, this cut is ignored)
Definition at line 76 of file RdEventPreSelector.h.
|
private |
Definition at line 130 of file RdEventPreSelector.h.
|
private |
Minimal event ID.
Definition at line 38 of file RdEventPreSelector.h.
|
private |
Minimal number of stations which must be in the event.
Definition at line 73 of file RdEventPreSelector.h.
|
private |
Definition at line 118 of file RdEventPreSelector.h.
|
private |
Definition at line 133 of file RdEventPreSelector.h.
|
private |
Definition at line 127 of file RdEventPreSelector.h.
|
private |
Definition at line 115 of file RdEventPreSelector.h.
|
private |
total number of accepted events
Definition at line 106 of file RdEventPreSelector.h.
|
private |
List of station IDs which must not be part of the event.
Definition at line 85 of file RdEventPreSelector.h.
|
private |
total number of rejected events
Definition at line 103 of file RdEventPreSelector.h.
|
private |
number of events deselected because event in event rejection list
Definition at line 94 of file RdEventPreSelector.h.
|
private |
number of events deselected because of not sufficient number of stations
Definition at line 88 of file RdEventPreSelector.h.
|
private |
number of events deselected due to the SNR cut
Definition at line 124 of file RdEventPreSelector.h.
|
private |
number of events deselected because event contains station in station rejection list
Definition at line 91 of file RdEventPreSelector.h.
|
private |
number of events deselected because event in event rejection list
Definition at line 97 of file RdEventPreSelector.h.
|
private |
total number of events
Definition at line 100 of file RdEventPreSelector.h.
|
private |
List of allowed event dates.
Definition at line 64 of file RdEventPreSelector.h.
|
private |
List of allowed event IDs (attention: ID = ID in Run, which is not an unique identifier)
Definition at line 58 of file RdEventPreSelector.h.
|
private |
List of allowed allowed combination of run and event IDs.
Definition at line 67 of file RdEventPreSelector.h.
|
private |
Definition at line 52 of file RdEventPreSelector.h.
|
private |
Definition at line 53 of file RdEventPreSelector.h.
|
private |
Definition at line 46 of file RdEventPreSelector.h.
|
private |
Definition at line 45 of file RdEventPreSelector.h.
|
private |
Definition at line 50 of file RdEventPreSelector.h.
|
private |
Definition at line 49 of file RdEventPreSelector.h.
|
private |
Definition at line 51 of file RdEventPreSelector.h.
|
private |
Definition at line 55 of file RdEventPreSelector.h.
|
private |
Definition at line 54 of file RdEventPreSelector.h.
|
private |
Definition at line 47 of file RdEventPreSelector.h.
|
private |
Definition at line 48 of file RdEventPreSelector.h.
|
private |
Definition at line 44 of file RdEventPreSelector.h.
|
private |
Definition at line 43 of file RdEventPreSelector.h.
|
private |
selects the reconstructed FD eye as input
Definition at line 142 of file RdEventPreSelector.h.