#include <RdGalacticDatasetMaker.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 () |
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 () |
Initialize: invoked at beginning of run (NOT beginning of event) More... | |
void | InitTiming () |
RdGalacticDatasetMaker () | |
fwk::VModule::ResultFlag | Run (evt::Event &event) |
Run: invoked once per event. More... | |
ResultFlag | RunWithTiming (evt::Event &event) |
virtual | ~RdGalacticDatasetMaker () |
Static Public Member Functions | |
static std::string | GetResultFlagByName (const ResultFlag flag) |
Protected Types | |
enum | InfoLevel { eInfoNone = 0, eInfoFinal = 1, eInfoIntermediate = 2, eInfoDebug = 3 } |
Private Member Functions | |
REGISTER_MODULE ("RdGalacticDatasetMaker", RdGalacticDatasetMaker) | |
Static Private Member Functions | |
static int | getChannelIndex (std::vector< int > vector, int element) |
static double | GetImpedanceAt (utl::Branch topBranch, int channelID, float frequencyMHz) |
static double | GPSSecToLSTHourAuger (const int gpsSec) |
static float | HHMMSS2hour (float ffHHMMSS) |
static float | onlineMean (float oldMean, float nextValue, int n) |
static unsigned int | TimeStamp2HHMMSS (const utl::TimeStamp ×t) |
Private Attributes | |
std::vector< std::vector < std::vector< std::vector < float > > > > | AllChannelsAndStationsDatasets |
int | fADCthreshold |
std::vector< int > | fchannels |
int | fCurChannelId |
int | fCurEventId |
int | fCurGPSSecond |
int | fCurRunId |
int | fCurStationId |
float | fCurUTChour |
bool | fdayStack |
int | fdebugData |
bool | ffilteredDebugData |
double | ffreqBinWidth |
float | fHHMMSS |
bool | fimpedanceFile |
int | fInfoLevel |
double | fMaxFrequency |
double | fMinFrequency |
std::vector< float > | freqBins |
double | fsamplingFrequency4Header |
int | fstartBin |
std::vector< int > | fStationIds |
double | fSTDthreshold |
double | ftimeBinWidth |
int | ftraceCutBinLength |
utl::Branch | impedanceTopBranch |
std::vector< std::vector< float > > | stationTraceCounter |
std::vector< float > | timeBins |
Static Private Attributes | |
static revt::REvent * | fgCurrentREvent |
Definition at line 40 of file RdGalacticDatasetMaker.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 |
RdGalacticDatasetMaker::RdGalacticDatasetMaker::RdGalacticDatasetMaker | ( | ) |
Definition at line 49 of file RdGalacticDatasetMaker.cc.
|
inlinevirtual |
Definition at line 44 of file RdGalacticDatasetMaker.h.
|
virtual |
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 540 of file RdGalacticDatasetMaker.cc.
References AllChannelsAndStationsDatasets, fwk::VModule::eSuccess, fchannels, fdayStack, freqBins, fStationIds, INFO, INFODebug, INFOIntermediate, out, stationTraceCounter, and timeBins.
|
staticprivate |
Definition at line 703 of file RdGalacticDatasetMaker.cc.
References fwk::VModule::eFailure, and ERROR.
Referenced by Run().
|
staticprivate |
Definition at line 777 of file RdGalacticDatasetMaker.cc.
References fwk::VModule::eFailure, ERROR, utl::Branch::GetAttributes(), utl::Branch::GetChild(), utl::Branch::GetData(), utl::Branch::GetFirstChild(), utl::Branch::GetNextSibling(), utl::TabulatedFunction::PushBack(), and utl::TabulatedFunction::Y().
Referenced by Run().
|
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().
|
staticprivate |
Definition at line 720 of file RdGalacticDatasetMaker.cc.
References RdGeoCeLDFFitter::a, RdGeoCeLDFFitter::b, utl::day, Dtohr, fd, utl::hour, J2000, and galactic::year.
Referenced by Run().
|
staticprivate |
Definition at line 761 of file RdGalacticDatasetMaker.cc.
Referenced by Run().
|
virtual |
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 72 of file RdGalacticDatasetMaker.cc.
References AllChannelsAndStationsDatasets, fwk::VModule::eSuccess, fADCthreshold, fchannels, fdayStack, fdebugData, ffilteredDebugData, ffreqBinWidth, fimpedanceFile, fInfoLevel, fMaxFrequency, fMinFrequency, freqBins, fsamplingFrequency4Header, fstartBin, fStationIds, fSTDthreshold, ftimeBinWidth, ftraceCutBinLength, utl::Branch::GetChild(), utl::Branch::GetData(), utl::Branch::GetFirstChild(), utl::Branch::GetNextSibling(), utl::Branch::GetTopBranch(), impedanceTopBranch, INFO, INFODebug, INFOFinal, out, utl::Branch::push_back(), stationTraceCounter, timeBins, and WARNING.
|
inlineinherited |
Definition at line 95 of file VModule.h.
References fwk::VModule::fStopwatch, and utl::Stopwatch::Reset().
|
staticprivate |
Definition at line 697 of file RdGalacticDatasetMaker.cc.
Referenced by Run().
|
private |
|
virtual |
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 238 of file RdGalacticDatasetMaker.cc.
References utl::abs(), AllChannelsAndStationsDatasets, revt::Station::ChannelsBegin(), revt::Station::ChannelsEnd(), fwk::VModule::eFailure, ERROR, fwk::VModule::eSuccess, fADCthreshold, fchannels, fCurChannelId, fCurEventId, fCurGPSSecond, fCurRunId, fCurStationId, fCurUTChour, fdayStack, fdebugData, ffilteredDebugData, fgCurrentREvent, fHHMMSS, fimpedanceFile, freqBins, fstartBin, fStationIds, fSTDthreshold, ftraceCutBinLength, utl::Trace< T >::GetBinning(), rdet::Station::GetChannel(), revt::Channel::GetChannelFrequencySpectrum(), getChannelIndex(), revt::Channel::GetFrequencyOfBin(), utl::TimeStamp::GetGPSSecond(), revt::REvent::GetHeader(), revt::Header::GetId(), revt::Channel::GetId(), GetImpedanceAt(), revt::Header::GetRunNumber(), rdet::Channel::GetSamplingFrequency(), utl::Trace< T >::GetSize(), utl::Trace< T >::GetStart(), revt::Header::GetTime(), GPSSecToLSTHourAuger(), evt::Event::HasREvent(), HHMMSS2hour(), impedanceTopBranch, INFODebug, INFOIntermediate, revt::Channel::IsActive(), onlineMean(), out, utl::Trace< T >::PushBack(), utl::Trace< T >::SetBinning(), un2::StandardDeviation(), revt::REvent::StationsBegin(), revt::REvent::StationsEnd(), stationTraceCounter, timeBins, TimeStamp2HHMMSS(), 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().
|
staticprivate |
Definition at line 770 of file RdGalacticDatasetMaker.cc.
References utl::UTCDateTime::GetHour(), utl::UTCDateTime::GetMinute(), and utl::UTCDateTime::GetSecond().
Referenced by Run().
|
private |
Definition at line 78 of file RdGalacticDatasetMaker.h.
|
private |
Definition at line 67 of file RdGalacticDatasetMaker.h.
|
private |
Definition at line 74 of file RdGalacticDatasetMaker.h.
|
private |
Definition at line 61 of file RdGalacticDatasetMaker.h.
Referenced by Run().
|
private |
Definition at line 59 of file RdGalacticDatasetMaker.h.
Referenced by Run().
|
private |
Definition at line 62 of file RdGalacticDatasetMaker.h.
Referenced by Run().
|
private |
Definition at line 58 of file RdGalacticDatasetMaker.h.
Referenced by Run().
|
private |
Definition at line 60 of file RdGalacticDatasetMaker.h.
Referenced by Run().
|
private |
Definition at line 63 of file RdGalacticDatasetMaker.h.
Referenced by Run().
|
private |
Definition at line 72 of file RdGalacticDatasetMaker.h.
|
private |
Definition at line 71 of file RdGalacticDatasetMaker.h.
|
private |
Definition at line 73 of file RdGalacticDatasetMaker.h.
|
private |
Definition at line 69 of file RdGalacticDatasetMaker.h.
Referenced by Init().
|
staticprivate |
Definition at line 94 of file RdGalacticDatasetMaker.h.
Referenced by Run().
|
private |
Definition at line 64 of file RdGalacticDatasetMaker.h.
Referenced by Run().
|
private |
Definition at line 89 of file RdGalacticDatasetMaker.h.
|
private |
Definition at line 57 of file RdGalacticDatasetMaker.h.
Referenced by Init().
|
private |
Definition at line 80 of file RdGalacticDatasetMaker.h.
Referenced by Init().
|
private |
Definition at line 79 of file RdGalacticDatasetMaker.h.
Referenced by Init().
|
private |
Definition at line 76 of file RdGalacticDatasetMaker.h.
|
private |
Definition at line 83 of file RdGalacticDatasetMaker.h.
Referenced by Init().
|
private |
Definition at line 81 of file RdGalacticDatasetMaker.h.
|
private |
Definition at line 75 of file RdGalacticDatasetMaker.h.
|
private |
Definition at line 68 of file RdGalacticDatasetMaker.h.
|
private |
Definition at line 70 of file RdGalacticDatasetMaker.h.
Referenced by Init().
|
private |
Definition at line 82 of file RdGalacticDatasetMaker.h.
|
private |
Definition at line 90 of file RdGalacticDatasetMaker.h.
|
private |
Definition at line 86 of file RdGalacticDatasetMaker.h.
|
private |
Definition at line 77 of file RdGalacticDatasetMaker.h.