#include <RdChannelNoiseASCIIImporter.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 () |
RdChannelNoiseASCIIImporter () | |
fwk::VModule::ResultFlag | Run (evt::Event &event) |
Run: invoked once per event. More... | |
ResultFlag | RunWithTiming (evt::Event &event) |
virtual | ~RdChannelNoiseASCIIImporter () |
Static Public Member Functions | |
static std::string | GetResultFlagByName (const ResultFlag flag) |
Private Types | |
enum | InfoLevel { eNone = 0, eFinal = 1, eIntermediate = 2, eObscure = 3, eDebug = 4 } |
Private Member Functions | |
std::string | AddZero (int val) |
std::string | GetStringFromStatChan (int statid, int chanid) |
REGISTER_MODULE ("RdChannelNoiseASCIIImporter", RdChannelNoiseASCIIImporter) | |
void | RemovePedestal (revt::ChannelTimeSeries &timeSeries) |
void | RemovePedestal (std::vector< int > &timeSeries) |
Private Attributes | |
int | fInfoLevel |
int | fNumberOfFiles |
Writes out a spectrum in an ASCII file. More... | |
std::string | fPathToAsciitrace |
bool | fStopAtLastNoiseTrace |
bool | fUseAlwaysTheSameTrace |
bool | fUseRandomSeed |
std::vector< int > | v_id |
std::vector< int >::iterator | viter |
Definition at line 32 of file RdChannelNoiseASCIIImporter.h.
|
private |
Enumerator | |
---|---|
eNone | |
eFinal | |
eIntermediate | |
eObscure | |
eDebug |
Definition at line 46 of file RdChannelNoiseASCIIImporter.h.
|
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 |
RdChannelNoiseASCIIImporter::RdChannelNoiseASCIIImporter::RdChannelNoiseASCIIImporter | ( | ) |
Definition at line 43 of file RdChannelNoiseASCIIImporter.cc.
|
virtual |
Definition at line 53 of file RdChannelNoiseASCIIImporter.cc.
|
inlineprivate |
Definition at line 63 of file RdChannelNoiseASCIIImporter.h.
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 255 of file RdChannelNoiseASCIIImporter.cc.
References fwk::VModule::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.
|
private |
Definition at line 265 of file RdChannelNoiseASCIIImporter.cc.
Referenced by Run().
|
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 57 of file RdChannelNoiseASCIIImporter.cc.
References fwk::VModule::eSuccess, fInfoLevel, fNumberOfFiles, fPathToAsciitrace, fStopAtLastNoiseTrace, fUseAlwaysTheSameTrace, fUseRandomSeed, utl::Branch::GetChild(), utl::Branch::GetData(), utl::Branch::GetTopBranch(), INFO, v_id, and viter.
|
inlineinherited |
Definition at line 95 of file VModule.h.
References fwk::VModule::fStopwatch, and utl::Stopwatch::Reset().
|
private |
|
private |
Definition at line 272 of file RdChannelNoiseASCIIImporter.cc.
References utl::Trace< T >::Begin(), utl::Trace< T >::End(), utl::Trace< T >::GetSize(), and utl::TraceAlgorithm::Mean().
Referenced by Run().
|
private |
Definition at line 281 of file RdChannelNoiseASCIIImporter.cc.
|
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 90 of file RdChannelNoiseASCIIImporter.cc.
References AddZero(), revt::Station::ChannelsBegin(), revt::Station::ChannelsEnd(), fwk::VModule::eContinueLoop, eFinal, fwk::VModule::eSuccess, fInfoLevel, fPathToAsciitrace, fStopAtLastNoiseTrace, fUseAlwaysTheSameTrace, revt::Channel::GetChannelTimeSeries(), revt::Channel::GetId(), revt::Station::GetId(), det::Detector::GetRDetector(), utl::Trace< T >::GetSize(), rdet::RDetector::GetStation(), GetStringFromStatChan(), evt::Event::HasREvent(), INFO, out, std::pow(), RemovePedestal(), revt::Channel::SetNotActive(), revt::REvent::StationsBegin(), revt::REvent::StationsEnd(), v_id, viter, 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 56 of file RdChannelNoiseASCIIImporter.h.
|
private |
Writes out a spectrum in an ASCII file.
Definition at line 55 of file RdChannelNoiseASCIIImporter.h.
Referenced by Init().
|
private |
Definition at line 57 of file RdChannelNoiseASCIIImporter.h.
|
private |
Definition at line 60 of file RdChannelNoiseASCIIImporter.h.
|
private |
Definition at line 58 of file RdChannelNoiseASCIIImporter.h.
|
private |
Definition at line 59 of file RdChannelNoiseASCIIImporter.h.
Referenced by Init().
|
private |
Definition at line 61 of file RdChannelNoiseASCIIImporter.h.
|
private |
Definition at line 62 of file RdChannelNoiseASCIIImporter.h.