List of all members | Public Types | Public Member Functions | Static Public Member Functions | Protected Types | Private Member Functions | Private Attributes
RdLDFMultiFitter::RdLDFMultiFitter Class Reference

#include <RdLDFMultiFitter.h>

Inheritance diagram for RdLDFMultiFitter::RdLDFMultiFitter:
Inheritance graph
[legend]

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::StopwatchGetStopwatch ()
 
const utl::StopwatchGetStopwatch () 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< ModelfModels
 xml settings: list of models More...
 
double fParA200
 xml settings: parametrization fro zenith correction More...
 
double fParA201
 
double fParA210
 
double fParA211
 

Detailed Description

Definition at line 58 of file RdLDFMultiFitter.h.

Member Enumeration Documentation

enum fwk::VModule::InfoLevel
protectedinherited
Enumerator
eInfoNone 
eInfoFinal 
eInfoIntermediate 
eInfoDebug 

Definition at line 125 of file VModule.h.

enum fwk::VModule::ResultFlag
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.

Definition at line 60 of file VModule.h.

Different types of version info that can be retrieved from GetVersionInfo.

Enumerator
eFilename 
eRevisionNumber 
eDate 
eTime 
eLastEditor 

Definition at line 110 of file VModule.h.

Constructor & Destructor Documentation

RdLDFMultiFitter::RdLDFMultiFitter::RdLDFMultiFitter ( )

Definition at line 70 of file RdLDFMultiFitter.cc.

RdLDFMultiFitter::RdLDFMultiFitter::~RdLDFMultiFitter ( )
virtual

Definition at line 82 of file RdLDFMultiFitter.cc.

Member Function Documentation

VModule::ResultFlag RdLDFMultiFitter::RdLDFMultiFitter::Finish ( )
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.

std::string fwk::VModule::GetResultFlagByName ( const ResultFlag  flag)
staticinherited
utl::Stopwatch& fwk::VModule::GetStopwatch ( )
inlineinherited

Definition at line 106 of file VModule.h.

References fwk::VModule::fStopwatch.

const utl::Stopwatch& fwk::VModule::GetStopwatch ( ) const
inlineinherited

Definition at line 107 of file VModule.h.

References fwk::VModule::fStopwatch.

std::string fwk::VModule::GetVersionInfo ( const VersionInfoType  v) const
inherited
VModule::ResultFlag RdLDFMultiFitter::RdLDFMultiFitter::Init ( )
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.

void fwk::VModule::InitTiming ( )
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().

RdLDFMultiFitter::RdLDFMultiFitter::REGISTER_MODULE ( "RdLDFMultiFitter"  ,
RdLDFMultiFitter   
)
private
VModule::ResultFlag RdLDFMultiFitter::RdLDFMultiFitter::Run ( evt::Event event)
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().

ResultFlag fwk::VModule::RunWithTiming ( evt::Event event)
inlineinherited
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

Parameters
zeithzenith angle of air-shower arrival
energypre-estimated energy

Definition at line 252 of file RdLDFMultiFitter.cc.

References p0(), and p1().

Referenced by Run().

Member Data Documentation

double RdLDFMultiFitter::RdLDFMultiFitter::fEnergyEstimatorCoeff
private

Definition at line 92 of file RdLDFMultiFitter.h.

Referenced by Init(), and Run().

double RdLDFMultiFitter::RdLDFMultiFitter::fEnergyEstimatorDist
private

xml settings: parameters for energy pre-estimator

Definition at line 90 of file RdLDFMultiFitter.h.

Referenced by Init(), and Run().

double RdLDFMultiFitter::RdLDFMultiFitter::fEnergyEstimatorPower
private

Definition at line 91 of file RdLDFMultiFitter.h.

Referenced by Init(), and Run().

int RdLDFMultiFitter::RdLDFMultiFitter::fInfoLevel
private

xml settings: info level (0 - 5)

Definition at line 81 of file RdLDFMultiFitter.h.

Referenced by Init().

std::vector<Model> RdLDFMultiFitter::RdLDFMultiFitter::fModels
private

xml settings: list of models

Definition at line 95 of file RdLDFMultiFitter.h.

Referenced by Init(), and Run().

double RdLDFMultiFitter::RdLDFMultiFitter::fParA200
private

xml settings: parametrization fro zenith correction

Definition at line 84 of file RdLDFMultiFitter.h.

Referenced by Init(), and p0().

double RdLDFMultiFitter::RdLDFMultiFitter::fParA201
private

Definition at line 85 of file RdLDFMultiFitter.h.

Referenced by Init(), and p0().

double RdLDFMultiFitter::RdLDFMultiFitter::fParA210
private

Definition at line 86 of file RdLDFMultiFitter.h.

Referenced by Init(), and p1().

double RdLDFMultiFitter::RdLDFMultiFitter::fParA211
private

Definition at line 87 of file RdLDFMultiFitter.h.

Referenced by Init(), and p1().


The documentation for this class was generated from the following files:

, generated on Tue Sep 26 2023.