Checks the stations. More...
#include "SdTraceCalibratorOG/SdTraceCalibrator.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< double, double > | PairD |
Private Member Functions | |
int | BuildSignals (sevt::Station &station) const |
bool | BuildSignals (sevt::PMT &pmt, const unsigned int traceLength, const int saturationValue) const |
void | ComputeShapeRiseFallPeak (sevt::PMTRecData &pmtRecData, const double binTiming, const unsigned int startBin, const unsigned int startIntegration, const unsigned int endIntegration, const double traceIntegral) const |
bool | IsTestStation (const int id) const |
bool | MakeComponentVEMTraces (sevt::PMT &pmt) const |
bool | MergeSignals (sevt::Station &station) const |
REGISTER_MODULE ("SdTraceCalibratorOG", SdTraceCalibrator) | |
bool | SelectSignal (sevt::Station &station) const |
void | SumPMTComponents (sevt::Station &station) const |
Private Attributes | |
int | fBinsBeforeStartForSPMT = 0 |
PairD | fFallTimeFractions {0, 0} |
int | fFindSignalBinsAboveThreshold = 0 |
double | fFindSignalThreshold = 0 |
bool | fIncludeWaterCherenkovDetectorInScintillatorStartStopDetermination = false |
bool | fIsUUB = false |
double | fPMTSummationCutoff = 0 |
PairD | fRiseTimeFractions {0, 0} |
std::set< int > | fTestStations |
bool | fTreatHGLGEqualInSignalSearch = false |
Checks the stations.
Definition at line 31 of file SdTraceCalibrator.h.
|
private |
Definition at line 62 of file SdTraceCalibrator.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 149 of file SdTraceCalibrator.cc.
References sdet::PMTConstants::eAnyType, sdet::PMTConstants::eScintillator, sdet::PMTConstants::eWaterCherenkovLarge, sevt::Station::GetScintillator(), utl::Trace< T >::GetSize(), sevt::Station::GetVEMTrace(), sevt::Station::HasVEMTrace(), sevt::Scintillator::MakeMIPTrace(), sevt::Station::MakeVEMTrace(), and utl::Trace< T >::ResetAll().
|
private |
Definition at line 214 of file SdTraceCalibrator.cc.
References sdet::PMTConstants::eHighGain, sdet::PMTConstants::eLowGain, ERROR, sdet::PMTConstants::eWaterCherenkovSmall, SdTraceCalibratorOG::CalibrationParameters::GetBinsWithLargeSignalThreshold(), SdTraceCalibratorOG::CalibrationParameters::GetBinsWithSignalThreshold(), sevt::PMT::GetCalibData(), sevt::PMT::GetFADCTrace(), SdTraceCalibratorOG::CalibrationParameters::GetFindSignalThresholdMultiplier(), sevt::PMT::GetId(), SdTraceCalibratorOG::CalibrationParameters::GetLargeFADCThreshold(), SdTraceCalibratorOG::CalibrationParameters::GetMinFADCValue(), sevt::PMT::GetRecData(), SdTraceCalibratorOG::CalibrationParameters::GetSaturatedBinsMaximum(), SdTraceCalibratorOG::CalibrationParameters::GetSignalMaxDist(), sevt::PMT::GetType(), sevt::PMTCalibData::IsLowGainOk(), max, and sevt::PMTRecData::SetFADCSaturatedBins().
|
private |
Definition at line 902 of file SdTraceCalibrator.cc.
References sevt::PMTRecData::GetVEMTrace(), utl::nanosecond, sevt::PMTRecData::SetFallTime(), sevt::PMTRecData::SetPeakAmplitude(), sevt::PMTRecData::SetRiseTime(), sevt::PMTRecData::SetShapeParameter(), and sevt::PMTRecData::SetT50().
|
inlineoverridevirtual |
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 36 of file SdTraceCalibrator.h.
References fwk::VModule::eSuccess.
|
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 50 of file SdTraceCalibrator.cc.
References ERROR, io::eSuccess, utl::Branch::GetChild(), utl::Branch::GetData(), fwk::CentralConfig::GetInstance(), fwk::CentralConfig::GetTopBranch(), INFO, SdEventSelectorOG::IsInRange(), and utl::Join().
|
inlineinherited |
Definition at line 95 of file VModule.h.
References fwk::VModule::fStopwatch, and utl::Stopwatch::Reset().
|
inlineprivate |
Definition at line 52 of file SdTraceCalibrator.h.
References fTestStations, and utl::Is().
|
private |
Definition at line 387 of file SdTraceCalibrator.cc.
References sdet::PMTConstants::eHighGain, sevt::StationConstants::eTotal, sevt::StationConstants::eTotalNoSaturation, sevt::PMT::GetFADCTrace(), sevt::PMT::GetFADCTraceD(), sevt::PMTRecData::GetGainUsed(), sevt::PMT::GetMultiFADCTrace(), sevt::PMT::GetRecData(), and utl::Trace< T >::GetSize().
|
private |
|
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 95 of file SdTraceCalibrator.cc.
References utl::abs(), cevt::StationConstants::eBadCalib, io::eSuccess, and evt::Event::HasSEvent().
|
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 626 of file SdTraceCalibrator.cc.
References sdet::PMTConstants::eAnyType, sdet::PMTConstants::eHighGain, sdet::PMTConstants::eLowGain, sdet::PMTConstants::eScintillator, sdet::PMTConstants::eWaterCherenkovLarge, sdet::PMTConstants::eWaterCherenkovSmall, sevt::Station::GetGPSData(), sevt::Station::GetId(), sevt::StationTriggerData::GetPLDTimeOffset(), sevt::Scintillator::GetRecData(), sevt::Station::GetRecData(), sevt::Station::GetScintillator(), sevt::Scintillator::GetSignals(), sevt::Station::GetSignals(), sevt::Station::GetTriggerData(), sevt::Station::GetVEMTrace(), sevt::Station::HasRecData(), sevt::Station::HasScintillator(), sevt::Scintillator::MakeMIPTrace(), sevt::Station::MakeRecData(), max, sevt::Station::SetHighGainSaturation(), sevt::Station::SetLowGainSaturation(), sevt::StationRecData::SetSignalStartSlot(), sevt::Station::SetSmallPMTSaturation(), sevt::Station::SetTraceStartTime(), and WARNING.
|
private |
Definition at line 439 of file SdTraceCalibrator.cc.
References cevt::StationConstants::eLastSource, sevt::Station::GetVEMTrace(), sevt::Station::HasVEMTrace(), and sevt::Station::MakeVEMTrace().
|
private |
Definition at line 60 of file SdTraceCalibrator.h.
|
private |
Definition at line 64 of file SdTraceCalibrator.h.
|
private |
Definition at line 58 of file SdTraceCalibrator.h.
|
private |
Definition at line 57 of file SdTraceCalibrator.h.
|
private |
Definition at line 59 of file SdTraceCalibrator.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 68 of file SdTraceCalibrator.h.
|
private |
Definition at line 55 of file SdTraceCalibrator.h.
|
private |
Definition at line 63 of file SdTraceCalibrator.h.
|
private |
Definition at line 66 of file SdTraceCalibrator.h.
Referenced by IsTestStation().
|
private |
Definition at line 56 of file SdTraceCalibrator.h.