#include <RdStationInterpolatorStarShape.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 () |
RdStationInterpolatorStarShape () | |
VModule::ResultFlag | Run (evt::Event &theevent) |
Run: invoked once per event. More... | |
ResultFlag | RunWithTiming (evt::Event &event) |
~RdStationInterpolatorStarShape () | |
Static Public Member Functions | |
static std::string | GetResultFlagByName (const ResultFlag flag) |
Private Types | |
enum | InfoLevel { eNone = 0, eFinal = 1, eIntermediate = 2, eObscure = 3, eMinuit = 4 } |
Private Member Functions | |
void | BuildSimShower (evt::ShowerSimData &theshower, const utl::CoordinateSystemPtr &coord) |
BuildSimShower-----------------------------------------------------------------------------------------------------—. More... | |
revt::StationFFTDataContainer | Interpolate (const revt::StationFFTDataContainer &simData1, const revt::StationFFTDataContainer &simData2, double x1, double x2, double x, double designlowerfreq, double designupperfreq) |
interpolation between two pulses More... | |
revt::StationTimeSeries | PadTimeSeries (const evt::SimRadioPulse &simtimeseries) |
padding of zeros to the end of the simtimeseries More... | |
REGISTER_MODULE ("RdStationInterpolatorStarShape", RdStationInterpolatorStarShape) | |
Private Attributes | |
unsigned int | fEventcounter |
double | fEventRate |
utl::TimeInterval | fEventTimeOffset |
std::vector< int > | fExcludedStationIds |
utl::TimeStamp | fFirstEventTime |
std::vector< int > | fIncludedStationIds |
int | fInfoLevel |
double | fMaximumDistance |
double | fMinimumTraceLength |
double | fTracePaddingAtFront |
bool | fUseRateTiming |
Definition at line 69 of file RdStationInterpolatorStarShape.h.
|
private |
Enumerator | |
---|---|
eNone | |
eFinal | |
eIntermediate | |
eObscure | |
eMinuit |
Definition at line 100 of file RdStationInterpolatorStarShape.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 |
RdStationInterpolatorStarShape::RdStationInterpolatorStarShape::RdStationInterpolatorStarShape | ( | ) |
Definition at line 55 of file RdStationInterpolatorStarShape.cc.
RdStationInterpolatorStarShape::RdStationInterpolatorStarShape::~RdStationInterpolatorStarShape | ( | ) |
Definition at line 68 of file RdStationInterpolatorStarShape.cc.
|
private |
BuildSimShower-----------------------------------------------------------------------------------------------------—.
Definition at line 509 of file RdStationInterpolatorStarShape.cc.
References evt::ShowerSimData::HasPosition(), and evt::ShowerSimData::MakeGeometry().
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 377 of file RdStationInterpolatorStarShape.cc.
References eIntermediate, fwk::VModule::eSuccess, and OUT.
|
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 72 of file RdStationInterpolatorStarShape.cc.
References eFinal, fwk::VModule::eSuccess, fEventRate, fExcludedStationIds, fFirstEventTime, fIncludedStationIds, fInfoLevel, fMaximumDistance, fMinimumTraceLength, fTracePaddingAtFront, fUseRateTiming, utl::Branch::GetChild(), utl::Branch::GetData(), utl::Branch::GetTopBranch(), utl::hertz, utl::nanosecond, OUT, and utl::StringEquivalent().
|
inlineinherited |
Definition at line 95 of file VModule.h.
References fwk::VModule::fStopwatch, and utl::Stopwatch::Reset().
|
private |
interpolation between two pulses
Definition at line 419 of file RdStationInterpolatorStarShape.cc.
References utl::abs(), utl::FFTDataContainer< C, T, F >::GetFrequencySpectrum(), utl::kPi, utl::Trace< T >::PushBack(), and utl::Trace< T >::SetBinning().
Referenced by Run().
|
private |
padding of zeros to the end of the simtimeseries
Definition at line 387 of file RdStationInterpolatorStarShape.cc.
References fMinimumTraceLength, fTracePaddingAtFront, evt::SimRadioPulse::GetBinning(), evt::SimRadioPulse::GetEfieldTimeSeries(), utl::Trace< T >::GetSize(), utl::Trace< T >::PushBack(), and utl::Trace< T >::SetBinning().
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 106 of file RdStationInterpolatorStarShape.cc.
References utl::Trace< T >::Begin(), BuildSimShower(), utl::deg, fwk::VModule::eFailure, eIntermediate, utl::Trace< T >::End(), eObscure, fwk::VModule::eSuccess, fEventTimeOffset, fExcludedStationIds, fFirstEventTime, fIncludedStationIds, fTracePaddingAtFront, fUseRateTiming, utl::Trace< T >::GetBinning(), rdet::Channel::GetDesignLowerFreq(), rdet::Channel::GetDesignUpperFreq(), evt::ShowerSimData::GetDirection(), evt::RadioSimulation::GetEventNumber(), evt::RadioSimulation::GetEventTime(), revt::REvent::GetHeader(), evt::RadioSimulation::GetLocalCoordinateSystem(), evt::SimRadioPulse::GetLocation(), evt::RadioSimulation::GetNextSimRadioPulse(), utl::FFTDataContainer< C, T, F >::GetNyquistZone(), evt::ShowerSimData::GetPosition(), evt::ShowerSimData::GetRadioSimulation(), det::Detector::GetRDetector(), evt::Event::GetREvent(), evt::RadioSimulation::GetRunNumber(), evt::Event::GetSimShower(), utl::Trace< T >::GetSize(), rdet::RDetector::GetStation(), revt::REvent::GetStation(), revt::Station::GetStationTimeSeries(), revt::Header::GetTime(), utl::FFTDataContainer< C, T, F >::GetTimeSeries(), revt::REvent::GetTrigger(), utl::BasicVector< HepVector >::GetZ(), evt::RadioSimulation::GoToFirstSimRadioPulse(), evt::Event::HasREvent(), Interpolate(), revt::Station::MakeGPSData(), evt::Event::MakeREvent(), revt::Station::MakeSimData(), revt::REvent::MakeStation(), evt::ShowerSimData::MakeTimeStamp(), revt::REvent::MakeTrigger(), revt::Station::MakeTriggerData(), galactic::meter, ok(), OUT, PadTimeSeries(), utl::Trace< T >::PushBack(), utl::Trace< T >::SetBinning(), revt::EventTrigger::SetExternalTrigger(), revt::Header::SetId(), revt::Station::SetRawTraceStartTime(), revt::Header::SetRunNumber(), revt::Header::SetTime(), rdet::RDetector::StationsBegin(), rdet::RDetector::StationsEnd(), det::Detector::Update(), 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 98 of file RdStationInterpolatorStarShape.h.
|
private |
Definition at line 91 of file RdStationInterpolatorStarShape.h.
Referenced by Init().
|
private |
Definition at line 92 of file RdStationInterpolatorStarShape.h.
Referenced by Run().
|
private |
Definition at line 96 of file RdStationInterpolatorStarShape.h.
|
private |
Definition at line 93 of file RdStationInterpolatorStarShape.h.
|
private |
Definition at line 95 of file RdStationInterpolatorStarShape.h.
|
private |
Definition at line 97 of file RdStationInterpolatorStarShape.h.
Referenced by Init().
|
private |
We want to have a complete shower so some more information will be written (Axis)
Definition at line 88 of file RdStationInterpolatorStarShape.h.
Referenced by Init().
|
private |
Definition at line 90 of file RdStationInterpolatorStarShape.h.
Referenced by Init(), and PadTimeSeries().
|
private |
Definition at line 89 of file RdStationInterpolatorStarShape.h.
Referenced by Init(), PadTimeSeries(), and Run().
|
private |
Definition at line 94 of file RdStationInterpolatorStarShape.h.