#include <RdScintSignalReconstructor.h>
Classes | |
struct | CalibrationData |
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 () |
RdScintSignalReconstructor () | |
fwk::VModule::ResultFlag | Run (evt::Event &event) |
Run: invoked once per event. More... | |
ResultFlag | RunWithTiming (evt::Event &event) |
virtual | ~RdScintSignalReconstructor () |
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 | |
void | ComputeBaryCenter (const revt::REvent &rEvent, utl::Point &BaryCenter) const |
void | ComputeBaryCenterBottom (const revt::REvent &rEvent, utl::Point &BaryCenterBottom) const |
void | ComputeBaryCenterTop (const revt::REvent &rEvent, utl::Point &BaryCenterTop) const |
void | ComputeBaryTime (const revt::REvent &rEvent, double &BaryTime) const |
void | ComputeBaryTimeBottom (const revt::REvent &rEvent, double &BaryTimeBottom) const |
void | ComputeBaryTimeTop (const revt::REvent &rEvent, double &BaryTimeTop) const |
void | Noisefinder (const revt::ChannelTimeSeries &channeltrace, double NoiseWindowStart, double NoiseWindowSize, double &SignalError, unsigned int samples_offset, double &RMSNoise) const |
void | Pulsefinder (const revt::ChannelTimeSeries &channeltrace, double &PeakAmplitude, double &PeakTime, double &PeakTimeError, double SignalWindowStart, double SignalWindowStop, unsigned int &sample, unsigned int samples_offset) const |
void | PulseFixedWindowIntegrator (const revt::ChannelTimeSeries &channeltrace, double IntegrationTime, double &IntegratedSignal, double SignalWindowStart, double SignalWindowStop, unsigned int samples_offset) const |
REGISTER_MODULE ("RdScintSignalReconstructor", RdScintSignalReconstructor) | |
void | Signalwindowfinder (const revt::ChannelTimeSeries channeltrace, double ScintSearchWindowStart, double ScintSearchWindowStop, double &SignalWindowStart, double &SignalWindowStop, unsigned int sample, unsigned int samples_offset) const |
Private Attributes | |
std::map< int, CalibrationData > | fCalibrationDataBottom |
std::map< int, CalibrationData > | fCalibrationDataTop |
std::vector< std::string > | fExcludedStationsName |
std::string | fFilenameMuonCalibrationBottom |
std::string | fFilenameMuonCalibrationTop |
int | fInfoLevel |
unsigned int | fMinNumberOfScint |
unsigned int | fMinNumberOfScintBottom |
unsigned int | fMinNumberOfScintTop |
double | fMinSignal |
double | fNoiseWindowStart |
unsigned int | fSamplesToCalculateOffset |
double | fScintSignalSearchWindowStart |
double | fScintSignalSearchWindowStop |
double | fSimSingleMuonEnergyDepositBottom |
double | fSimSingleMuonEnergyDepositBottomError |
double | fSimSingleMuonEnergyDepositTop |
double | fSimSingleMuonEnergyDepositTopError |
bool | fWeightedBaryValues |
Definition at line 23 of file RdScintSignalReconstructor.h.
Enumerator | |
---|---|
eNone | |
eFinal | |
eIntermediate | |
eObscure | |
eDebug |
Definition at line 34 of file RdScintSignalReconstructor.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 |
RdScintSignalReconstructor::RdScintSignalReconstructor::RdScintSignalReconstructor | ( | ) |
Definition at line 53 of file RdScintSignalReconstructor.cc.
|
virtual |
Definition at line 71 of file RdScintSignalReconstructor.cc.
|
private |
Definition at line 600 of file RdScintSignalReconstructor.cc.
References fWeightedBaryValues, revt::StationRecData::GetParameter(), rdet::Station::GetPosition(), det::Detector::GetRDetector(), det::Detector::GetSiteCoordinateSystem(), rdet::RDetector::GetStation(), revt::StationRecData::HasParameter(), sqrt(), revt::REvent::StationsBegin(), and revt::REvent::StationsEnd().
Referenced by Run().
|
private |
|
private |
|
private |
Definition at line 648 of file RdScintSignalReconstructor.cc.
References fWeightedBaryValues, revt::StationRecData::GetParameter(), revt::StationRecData::HasParameter(), sqrt(), revt::REvent::StationsBegin(), and revt::REvent::StationsEnd().
Referenced by Run().
|
private |
|
private |
|
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 476 of file RdScintSignalReconstructor.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.
|
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 76 of file RdScintSignalReconstructor.cc.
References eDebug, fwk::VModule::eFailure, fwk::VModule::eSuccess, fCalibrationDataBottom, fCalibrationDataTop, fExcludedStationsName, fFilenameMuonCalibrationBottom, fFilenameMuonCalibrationTop, filename, fInfoLevel, fMinNumberOfScint, fMinSignal, fNoiseWindowStart, fSamplesToCalculateOffset, fScintSignalSearchWindowStart, fScintSignalSearchWindowStop, fSimSingleMuonEnergyDepositBottom, fSimSingleMuonEnergyDepositBottomError, fSimSingleMuonEnergyDepositTop, fSimSingleMuonEnergyDepositTopError, fWeightedBaryValues, utl::Branch::GetChild(), utl::Branch::GetData(), utl::Branch::GetTopBranch(), INFO, OUT, RdScintSignalReconstructor::RdScintSignalReconstructor::CalibrationData::signalMuonPeak, RdScintSignalReconstructor::RdScintSignalReconstructor::CalibrationData::signalMuonPeakError, and WARNING.
|
inlineinherited |
Definition at line 95 of file VModule.h.
References fwk::VModule::fStopwatch, and utl::Stopwatch::Reset().
|
private |
Definition at line 530 of file RdScintSignalReconstructor.cc.
References utl::Trace< T >::GetBinning(), and un2::Mean().
Referenced by Run().
|
private |
Definition at line 549 of file RdScintSignalReconstructor.cc.
References utl::Trace< T >::GetBinning(), and un2::Mean().
Referenced by Run().
|
private |
Definition at line 574 of file RdScintSignalReconstructor.cc.
References eObscure, utl::Trace< T >::GetBinning(), un2::Mean(), galactic::meter, utl::micro, ns, OUT, and galactic::volt.
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 158 of file RdScintSignalReconstructor.cc.
References revt::Station::ChannelsBegin(), revt::Station::ChannelsEnd(), ComputeBaryCenter(), ComputeBaryTime(), fwk::VModule::eContinueLoop, eDebug, fwk::VModule::eFailure, eFinal, eObscure, fwk::VModule::eSuccess, fCalibrationDataBottom, fCalibrationDataTop, fExcludedStationsName, fMinNumberOfScint, fMinSignal, fNoiseWindowStart, fSamplesToCalculateOffset, fScintSignalSearchWindowStart, fScintSignalSearchWindowStop, fSimSingleMuonEnergyDepositBottom, fSimSingleMuonEnergyDepositBottomError, fSimSingleMuonEnergyDepositTop, fSimSingleMuonEnergyDepositTopError, utl::Trace< T >::GetBinning(), revt::Channel::GetChannelTimeSeries(), rdet::Channel::GetChannelType(), revt::Channel::GetId(), revt::Station::GetId(), revt::StationRecData::GetParameter(), revt::Channel::GetRecData(), revt::Station::GetRecData(), evt::ShowerRecData::GetRRecShower(), utl::Trace< T >::GetSize(), rdet::RDetector::GetStation(), revt::REvent::GetStationByName(), utl::BasicVector< HepVector >::GetX(), utl::BasicVector< HepVector >::GetY(), utl::BasicVector< HepVector >::GetZ(), revt::Station::HasChannel(), revt::Channel::HasRecData(), revt::Station::HasRecData(), evt::Event::HasRecShower(), evt::Event::HasREvent(), evt::ShowerRecData::HasRRecShower(), revt::REvent::HasStation(), INFO, revt::Channel::MakeRecData(), evt::Event::MakeRecShower(), evt::ShowerRecData::MakeRRecShower(), max, Noisefinder(), OUT, std::pow(), Pulsefinder(), PulseFixedWindowIntegrator(), revt::ChannelRecData::SetParameter(), revt::StationRecData::SetParameter(), evt::ShowerRRecData::SetParameter(), revt::ChannelRecData::SetParameterError(), revt::StationRecData::SetParameterError(), Signalwindowfinder(), sqrt(), revt::REvent::StationsBegin(), revt::REvent::StationsEnd(), 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 485 of file RdScintSignalReconstructor.cc.
References utl::Trace< T >::GetBinning(), and un2::Mean().
Referenced by Run().
|
private |
Definition at line 67 of file RdScintSignalReconstructor.h.
|
private |
Definition at line 66 of file RdScintSignalReconstructor.h.
|
private |
Definition at line 70 of file RdScintSignalReconstructor.h.
|
private |
Definition at line 58 of file RdScintSignalReconstructor.h.
Referenced by Init().
|
private |
Definition at line 57 of file RdScintSignalReconstructor.h.
Referenced by Init().
|
private |
Definition at line 72 of file RdScintSignalReconstructor.h.
Referenced by Init().
|
private |
Definition at line 50 of file RdScintSignalReconstructor.h.
|
private |
Definition at line 49 of file RdScintSignalReconstructor.h.
|
private |
Definition at line 48 of file RdScintSignalReconstructor.h.
|
private |
Definition at line 51 of file RdScintSignalReconstructor.h.
|
private |
Definition at line 46 of file RdScintSignalReconstructor.h.
|
private |
Definition at line 47 of file RdScintSignalReconstructor.h.
|
private |
Definition at line 44 of file RdScintSignalReconstructor.h.
|
private |
Definition at line 45 of file RdScintSignalReconstructor.h.
|
private |
Definition at line 55 of file RdScintSignalReconstructor.h.
|
private |
Definition at line 56 of file RdScintSignalReconstructor.h.
|
private |
Definition at line 53 of file RdScintSignalReconstructor.h.
|
private |
Definition at line 54 of file RdScintSignalReconstructor.h.
|
private |
Definition at line 52 of file RdScintSignalReconstructor.h.
Referenced by ComputeBaryCenter(), ComputeBaryTime(), and Init().