#include <RdLDFMultiFitter.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 () |
double | p0 (double) |
double | p1 (double) |
RdLDFMultiFitter () | |
fwk::VModule::ResultFlag | Run (evt::Event &event) |
Run: invoked once per event. More... | |
ResultFlag | RunWithTiming (evt::Event &event) |
double | ZenithCorrection (double zenith, double energy) |
return value of fixed parameters corresponding to pre-estimated energy and zenith angle of arrival direction More... | |
virtual | ~RdLDFMultiFitter () |
Static Public Member Functions | |
static std::string | GetResultFlagByName (const ResultFlag flag) |
Protected Types | |
enum | InfoLevel { eInfoNone = 0, eInfoFinal = 1, eInfoIntermediate = 2, eInfoDebug = 3 } |
Private Member Functions | |
REGISTER_MODULE ("RdLDFMultiFitter", RdLDFMultiFitter) | |
Private Attributes | |
double | fEnergyEstimatorCoeff |
double | fEnergyEstimatorDist |
xml settings: parameters for energy pre-estimator More... | |
double | fEnergyEstimatorPower |
int | fInfoLevel |
xml settings: info level (0 - 5) More... | |
std::vector< Model > | fModels |
xml settings: list of models More... | |
double | fParA200 |
xml settings: parametrization fro zenith correction More... | |
double | fParA201 |
double | fParA210 |
double | fParA211 |
Definition at line 58 of file RdLDFMultiFitter.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 |
RdLDFMultiFitter::RdLDFMultiFitter::RdLDFMultiFitter | ( | ) |
Definition at line 70 of file RdLDFMultiFitter.cc.
|
virtual |
Definition at line 82 of file RdLDFMultiFitter.cc.
|
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 264 of file RdLDFMultiFitter.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}
Reading XML configuration
Fetching list of models
Implements fwk::VModule.
Definition at line 86 of file RdLDFMultiFitter.cc.
References RdLDFMultiFitter::Model::color, fwk::VModule::eSuccess, fEnergyEstimatorCoeff, fEnergyEstimatorDist, fEnergyEstimatorPower, fInfoLevel, fModels, RdLDFMultiFitter::Model::formula, fParA200, fParA201, fParA210, fParA211, utl::Branch::GetChild(), utl::Branch::GetData(), utl::Branch::GetFirstChild(), utl::Branch::GetNextSibling(), utl::Branch::GetTopBranch(), RdLDFMultiFitter::parameter::id, INFO, RdLDFMultiFitter::parameter::maxval, RdLDFMultiFitter::parameter::minval, RdLDFMultiFitter::parameter::name, RdLDFMultiFitter::Model::name, G4StationSimulatorOG::p, RdLDFMultiFitter::Model::parameters, RdLDFMultiFitter::parameter::startvalues, and RdLDFMultiFitter::parameter::zenithCorrection.
|
inlineinherited |
Definition at line 95 of file VModule.h.
References fwk::VModule::fStopwatch, and utl::Stopwatch::Reset().
double RdLDFMultiFitter::RdLDFMultiFitter::p0 | ( | double | energy | ) |
Definition at line 256 of file RdLDFMultiFitter.cc.
References fParA200, and fParA201.
Referenced by ZenithCorrection().
double RdLDFMultiFitter::RdLDFMultiFitter::p1 | ( | double | energy | ) |
Definition at line 260 of file RdLDFMultiFitter.cc.
References fParA210, and fParA211.
Referenced by ZenithCorrection().
|
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}
Check if there are events at all
Fetching event object
Checking if core is already estimated
Fetching detector
Fetching axis and core
Number of stations with pulse
Counter
Fitting variables
Fetching current station
Filling arrays with fitting points
Incrementing counter
ROOT object (need for fit)
Energy pre-estimator (simple exponential parametrization)
Calculating pre-estimated energy
Vectors with models and fitting results
Iterator through models
Iterator through parameters
Fix parameter if zenith correction is switched on
Fitting, taking the results and put them to vector
Cleanup
Storing results in ADST
Implements fwk::VModule.
Definition at line 135 of file RdLDFMultiFitter.cc.
References revt::REvent::CandidateStationsBegin(), revt::REvent::CandidateStationsEnd(), fwk::VModule::eSuccess, fEnergyEstimatorCoeff, fEnergyEstimatorDist, fEnergyEstimatorPower, fModels, evt::ShowerRRecData::GetAxis(), evt::ShowerRRecData::GetCoordinateOrigin(), evt::ShowerRRecData::GetCorePosition(), utl::RadioGeometryUtilities::GetDistanceToAxis(), revt::StationRecData::GetParameter(), evt::ShowerRRecData::GetParameter(), revt::StationRecData::GetParameterError(), rdet::Station::GetPosition(), revt::StationRecData::GetPulseFound(), revt::Station::GetRecData(), rdet::RDetector::GetStation(), evt::ShowerRRecData::GetZenith(), evt::ShowerRRecData::HasAxis(), evt::ShowerRRecData::HasCorePosition(), evt::Event::HasREvent(), std::pow(), WARNING, and ZenithCorrection().
|
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().
double RdLDFMultiFitter::RdLDFMultiFitter::ZenithCorrection | ( | double | zenith, |
double | energy | ||
) |
return value of fixed parameters corresponding to pre-estimated energy and zenith angle of arrival direction
returns value of fixed parameters corresponding to pre-estimated energy and zenith angle of arrival direction
zeith | zenith angle of air-shower arrival |
energy | pre-estimated energy |
Definition at line 252 of file RdLDFMultiFitter.cc.
Referenced by Run().
|
private |
Definition at line 92 of file RdLDFMultiFitter.h.
|
private |
xml settings: parameters for energy pre-estimator
Definition at line 90 of file RdLDFMultiFitter.h.
|
private |
Definition at line 91 of file RdLDFMultiFitter.h.
|
private |
xml settings: info level (0 - 5)
Definition at line 81 of file RdLDFMultiFitter.h.
Referenced by Init().
|
private |
xml settings: list of models
Definition at line 95 of file RdLDFMultiFitter.h.
|
private |
xml settings: parametrization fro zenith correction
Definition at line 84 of file RdLDFMultiFitter.h.
|
private |
Definition at line 85 of file RdLDFMultiFitter.h.
|
private |
Definition at line 86 of file RdLDFMultiFitter.h.
|
private |
Definition at line 87 of file RdLDFMultiFitter.h.