#include <RdStationNoiseAnalyser.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... | |
VModule::ResultFlag | Init () |
Initialize: invoked at beginning of run (NOT beginning of event) More... | |
void | InitTiming () |
RdStationNoiseAnalyser () | |
VModule::ResultFlag | Run (evt::Event &theevent) |
Run: invoked once per event. More... | |
ResultFlag | RunWithTiming (evt::Event &event) |
~RdStationNoiseAnalyser () | |
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 | |
void | ConvertChannelToStation (revt::Station &stat, const rdet::RDetector &rDet) |
REGISTER_MODULE ("RdStationNoiseAnalyser", RdStationNoiseAnalyser) | |
Private Attributes | |
bool * | fAllTrace |
float | fFreqMax |
float | fFreqMin |
TH2F * | fH2_RateLocT2D |
TH2F * | fH2_RMSLocT2D1 |
TH2F * | fH2_RMSLocT2D2 |
TH2F * | fH2_RMSLST2D1 |
TH2F * | fH2_RMSLST2D2 |
TH2F * | fH2_SpectrLocT1 |
TH2F * | fH2_SpectrLocT2 |
TH2F * | fH2_SpectrLST1 |
TH2F * | fH2_SpectrLST2 |
TH2F * | fH2_SpectrTime1 |
TH2F * | fH2_SpectrTime2 |
TH2F * | fH2_TimeSinceLastEventLocT |
TH2F * | fH2_TimeSinceLastEventLST |
TH1F * | fH_RateLocT |
TH1F * | fH_RateLST |
TH1F * | fH_RateTime |
TH1F * | fH_RMSLocT1 |
TH1F * | fH_RMSLocT2 |
TH1F * | fH_RMSLST1 |
TH1F * | fH_RMSLST2 |
TH1F * | fH_TimeSinceLastEvent |
utl::TimeStamp | fLastEventTS |
int | fNbinFreq |
int | fNbinTime |
int | fNDay |
TTree * | fNoise |
TFile * | fOutFile |
std::string | fOutFileName |
float | fPartOfTheTraceToUse |
float | fRMSMax |
float | frmspol1 |
float | frmspol2 |
std::string | fStationName |
unsigned long int | fTimeMax |
unsigned long int | fTimeMin |
long int | fTimeRefAll |
long int | fTimeRefDay |
utl::TimeStamp | fTSMax |
utl::TimeStamp | fTSMin |
unsigned int | fuitime |
Static Private Attributes | |
static const int | kGPS_UTC_Offset = 315964800 |
Definition at line 27 of file RdStationNoiseAnalyser.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 |
RdStationNoiseAnalyser::RdStationNoiseAnalyser | ( | ) |
This Module is made to generate some plots of the Radio background noise It takes an events and calculate the RMS of the noise around
Definition at line 75 of file RdStationNoiseAnalyser.cc.
RdStationNoiseAnalyser::~RdStationNoiseAnalyser | ( | ) |
Definition at line 89 of file RdStationNoiseAnalyser.cc.
References fH2_RMSLST2D1, fH2_RMSLST2D2, fH2_SpectrLocT1, fH2_SpectrLocT2, fH2_SpectrLST1, fH2_SpectrLST2, fH2_TimeSinceLastEventLocT, fH2_TimeSinceLastEventLST, fH_RateLocT, fH_RateLST, fH_RMSLocT1, fH_RMSLocT2, fH_RMSLST1, fH_RMSLST2, fH_TimeSinceLastEvent, and fOutFile.
|
private |
Definition at line 328 of file RdStationNoiseAnalyser.cc.
References revt::Station::ChannelsBegin(), revt::Station::ChannelsEnd(), utl::Trace< T >::GetBinning(), revt::Channel::GetFrequencyOfBin(), revt::Channel::GetId(), revt::Station::GetId(), revt::Channel::GetNyquistZone(), utl::Trace< T >::GetSize(), rdet::RDetector::GetStation(), revt::Station::GetStationFrequencySpectrum(), revt::Channel::GetStationId(), utl::megahertz, revt::Station::SetNyquistZone(), and WARNING.
Referenced by Run().
|
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 283 of file RdStationNoiseAnalyser.cc.
References fwk::VModule::eSuccess, fH2_RateLocT2D, fH2_RMSLocT2D1, fH2_RMSLocT2D2, fH2_RMSLST2D1, fH2_RMSLST2D2, fH2_SpectrLocT1, fH2_SpectrLocT2, fH2_SpectrLST1, fH2_SpectrLST2, fH2_SpectrTime1, fH2_SpectrTime2, fH2_TimeSinceLastEventLocT, fH2_TimeSinceLastEventLST, fH_RateLocT, fH_RateLST, fH_RateTime, fH_RMSLocT1, fH_RMSLocT2, fH_RMSLST1, fH_RMSLST2, fH_TimeSinceLastEvent, fOutFile, fOutFileName, fTimeMax, fTimeMin, 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().
|
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 112 of file RdStationNoiseAnalyser.cc.
References fwk::VModule::eFailure, ERROR, fwk::VModule::eSuccess, fFreqMax, fFreqMin, fH2_RateLocT2D, fH2_RMSLocT2D1, fH2_RMSLocT2D2, fH2_RMSLST2D1, fH2_RMSLST2D2, fH2_SpectrLocT1, fH2_SpectrLocT2, fH2_SpectrLST1, fH2_SpectrLST2, fH2_SpectrTime1, fH2_SpectrTime2, fH2_TimeSinceLastEventLocT, fH2_TimeSinceLastEventLST, fH_RateLocT, fH_RateLST, fH_RateTime, fH_RMSLocT1, fH_RMSLocT2, fH_RMSLST1, fH_RMSLST2, fH_TimeSinceLastEvent, fNbinFreq, fNbinTime, fNDay, fOutFileName, fPartOfTheTraceToUse, fRMSMax, fStationName, fTSMax, fTSMin, utl::Branch::GetChild(), utl::Branch::GetData(), utl::TimeStamp::GetGPSSecond(), utl::Branch::GetTopBranch(), utl::UTCDate::GetYear(), INFO, and kGPS_UTC_Offset.
|
inlineinherited |
Definition at line 95 of file VModule.h.
References fwk::VModule::fStopwatch, and utl::Stopwatch::Reset().
|
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 177 of file RdStationNoiseAnalyser.cc.
References utl::abs(), ConvertChannelToStation(), ct2lst(), delay, fwk::VModule::eSuccess, fH2_RateLocT2D, fH2_RMSLocT2D1, fH2_RMSLocT2D2, fH2_RMSLST2D1, fH2_RMSLST2D2, fH2_SpectrLocT1, fH2_SpectrLocT2, fH2_SpectrLST1, fH2_SpectrLST2, fH2_SpectrTime1, fH2_SpectrTime2, fH2_TimeSinceLastEventLocT, fH2_TimeSinceLastEventLST, fH_RateLocT, fH_RateLST, fH_RateTime, fH_RMSLocT1, fH_RMSLocT2, fH_RMSLST1, fH_RMSLST2, fH_TimeSinceLastEvent, fLastEventTS, fPartOfTheTraceToUse, fStationName, fTimeMax, fTimeMin, utl::Trace< T >::GetBinning(), utl::FFTDataContainer< C, T, F >::GetFrequencySpectrum(), utl::TimeStamp::GetGPSSecond(), revt::REvent::GetHeader(), revt::Header::GetId(), utl::TimeInterval::GetNanoSecond(), revt::Station::GetNyquistZone(), evt::Event::GetREvent(), utl::TimeInterval::GetSecond(), utl::Trace< T >::GetSize(), revt::REvent::GetStationByName(), revt::Station::GetStationTimeSeries(), revt::Header::GetTime(), utl::FFTDataContainer< C, T, F >::GetTimeSeries(), revt::Station::HasChannel(), kGPS_UTC_Offset, utl::megahertz, galactic::meter, utl::micro, utl::ModifiedJulianDate(), utl::Trace< T >::PushBack(), utl::Trace< T >::SetBinning(), utl::FFTDataContainer< C, T, F >::SetNyquistZone(), galactic::volt, 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 46 of file RdStationNoiseAnalyser.h.
|
private |
Definition at line 83 of file RdStationNoiseAnalyser.h.
Referenced by Init().
|
private |
Definition at line 82 of file RdStationNoiseAnalyser.h.
Referenced by Init().
|
private |
Definition at line 66 of file RdStationNoiseAnalyser.h.
|
private |
Definition at line 64 of file RdStationNoiseAnalyser.h.
|
private |
Definition at line 65 of file RdStationNoiseAnalyser.h.
|
private |
Definition at line 67 of file RdStationNoiseAnalyser.h.
Referenced by Finish(), Init(), Run(), and ~RdStationNoiseAnalyser().
|
private |
Definition at line 68 of file RdStationNoiseAnalyser.h.
Referenced by Finish(), Init(), Run(), and ~RdStationNoiseAnalyser().
|
private |
Definition at line 59 of file RdStationNoiseAnalyser.h.
Referenced by Finish(), Init(), Run(), and ~RdStationNoiseAnalyser().
|
private |
Definition at line 61 of file RdStationNoiseAnalyser.h.
Referenced by Finish(), Init(), Run(), and ~RdStationNoiseAnalyser().
|
private |
Definition at line 58 of file RdStationNoiseAnalyser.h.
Referenced by Finish(), Init(), Run(), and ~RdStationNoiseAnalyser().
|
private |
Definition at line 60 of file RdStationNoiseAnalyser.h.
Referenced by Finish(), Init(), Run(), and ~RdStationNoiseAnalyser().
|
private |
Definition at line 62 of file RdStationNoiseAnalyser.h.
|
private |
Definition at line 63 of file RdStationNoiseAnalyser.h.
|
private |
Definition at line 57 of file RdStationNoiseAnalyser.h.
Referenced by Finish(), Init(), Run(), and ~RdStationNoiseAnalyser().
|
private |
Definition at line 56 of file RdStationNoiseAnalyser.h.
Referenced by Finish(), Init(), Run(), and ~RdStationNoiseAnalyser().
|
private |
Definition at line 49 of file RdStationNoiseAnalyser.h.
Referenced by Finish(), Init(), Run(), and ~RdStationNoiseAnalyser().
|
private |
Definition at line 48 of file RdStationNoiseAnalyser.h.
Referenced by Finish(), Init(), Run(), and ~RdStationNoiseAnalyser().
|
private |
Definition at line 50 of file RdStationNoiseAnalyser.h.
|
private |
Definition at line 52 of file RdStationNoiseAnalyser.h.
Referenced by Finish(), Init(), Run(), and ~RdStationNoiseAnalyser().
|
private |
Definition at line 54 of file RdStationNoiseAnalyser.h.
Referenced by Finish(), Init(), Run(), and ~RdStationNoiseAnalyser().
|
private |
Definition at line 51 of file RdStationNoiseAnalyser.h.
Referenced by Finish(), Init(), Run(), and ~RdStationNoiseAnalyser().
|
private |
Definition at line 53 of file RdStationNoiseAnalyser.h.
Referenced by Finish(), Init(), Run(), and ~RdStationNoiseAnalyser().
|
private |
Definition at line 55 of file RdStationNoiseAnalyser.h.
Referenced by Finish(), Init(), Run(), and ~RdStationNoiseAnalyser().
|
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 71 of file RdStationNoiseAnalyser.h.
Referenced by Run().
|
private |
Definition at line 79 of file RdStationNoiseAnalyser.h.
Referenced by Init().
|
private |
Definition at line 80 of file RdStationNoiseAnalyser.h.
Referenced by Init().
|
private |
Definition at line 81 of file RdStationNoiseAnalyser.h.
Referenced by Init().
|
private |
Definition at line 47 of file RdStationNoiseAnalyser.h.
|
private |
Definition at line 44 of file RdStationNoiseAnalyser.h.
Referenced by Finish(), and ~RdStationNoiseAnalyser().
|
private |
Definition at line 45 of file RdStationNoiseAnalyser.h.
|
private |
Definition at line 84 of file RdStationNoiseAnalyser.h.
|
private |
Definition at line 85 of file RdStationNoiseAnalyser.h.
Referenced by Init().
|
private |
Definition at line 69 of file RdStationNoiseAnalyser.h.
|
private |
Definition at line 70 of file RdStationNoiseAnalyser.h.
|
private |
Definition at line 88 of file RdStationNoiseAnalyser.h.
|
private |
Definition at line 76 of file RdStationNoiseAnalyser.h.
|
private |
Definition at line 75 of file RdStationNoiseAnalyser.h.
|
private |
Definition at line 77 of file RdStationNoiseAnalyser.h.
|
private |
Definition at line 78 of file RdStationNoiseAnalyser.h.
|
private |
Definition at line 87 of file RdStationNoiseAnalyser.h.
Referenced by Init().
|
private |
Definition at line 86 of file RdStationNoiseAnalyser.h.
Referenced by Init().
|
private |
Definition at line 74 of file RdStationNoiseAnalyser.h.
|
staticprivate |
Definition at line 73 of file RdStationNoiseAnalyser.h.