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

#include <RdLDFFitter.h>

Inheritance diagram for RdLDFFitter::RdLDFFitter:
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 ()
 
 RdLDFFitter ()
 
fwk::VModule::ResultFlag Run (evt::Event &event)
 Run: invoked once per event. More...
 
ResultFlag RunWithTiming (evt::Event &event)
 
virtual ~RdLDFFitter ()
 

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

std::vector< std::pair< double,
double > > 
GetAnglesToEFieldExpectation (const utl::Point core, const double a)
 
std::vector< std::pair< double,
double > > 
GetAnglesToLorentzVector ()
 
double GetEnergy (const double energy_estimator)
 
fwk::VModule::ResultFlag PlotGoodnessOfFit (const std::string folder, const std::string eventIdentifier, const utl::Point core)
 
fwk::VModule::ResultFlag PlotScan (const std::vector< std::vector< double > > &scanResult, const std::string filename, const utl::Point scanCenter, const utl::CoordinateSystemPtr cs, const utl::Point coreSd, const utl::Point coreRd, const unsigned int nStepsX, const unsigned int nStepsY, const double widthX, const double widthY, const std::vector< StationFitData > &vStationFitData, const EventFitData &eventFitData, const double a)
 
ParameterLDFModel PreLDFFit (int LDFModel, const std::vector< StationFitData > &vStationFitData, utl::Vector ShowerAxis, utl::Point CorePosition)
 
ParameterScintillatorLDFModel PreScintillatorLDFFit (const std::vector< ScintillatorFitData > &vScintillatorData, utl::Vector ShowerAxis, utl::Point CorePosition)
 
 REGISTER_MODULE ("RdLDFFitter", RdLDFFitter)
 
fwk::VModule::ResultFlag SaveContours (unsigned int runNumber, const int eventId, const std::vector< std::pair< double, double > > contour, const std::vector< std::pair< double, double > > contour2, ROOT::Minuit2::MnUserCovariance cov, const double coreX, const double coreY)
 
fwk::VModule::ResultFlag SaveScan (const std::vector< std::vector< double > > &scanResult, const std::string filename, const double coreX, const double coreY, const unsigned int nStepsX, const unsigned int nStepsY, const double widthX, const double widthY)
 
utl::Point Scan (std::vector< std::vector< double > > &scanResult, const LDFLikelihoodFunction L, const utl::Point core, const unsigned int nStepsX, const unsigned int nStepsY, const double widthX, const double widthY, const double a)
 nSteps is considered to be odd. If it is even, nSteps will be increased by 1 to be odd. More...
 
utl::Point Scan (std::vector< std::vector< double > > &scanResult, const LDFLikelihoodFunction L, const utl::Point core, const unsigned int nSteps, const double width, const double a)
 

Private Attributes

const evt::EventfConstEvent
 
evt::EventfEvent
 
FitConfig fFitConfig
 
int fInfoLevel
 
utl::CoordinateSystemPtr fLocalCS
 
utl::Vector fMagneticFieldAxis
 
double fMCUncertaintyOnEFieldVector
 
unsigned int fNStepsX
 
unsigned int fNStepsY
 
std::string fOutputFolder
 
bool fPerformScan
 
bool fPlotSigmaContours
 
const short fPlotStyle
 
const revt::REventfREvent
 
bool fSaveContour
 
ScanCenter fScanCenter
 
utl::Vector fShowerAxis
 
double fStepWidthX
 
double fStepWidthY
 

Detailed Description

Definition at line 67 of file RdLDFFitter.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

RdLDFFitter::RdLDFFitter::RdLDFFitter ( )

Definition at line 82 of file RdLDFFitter.cc.

RdLDFFitter::RdLDFFitter::~RdLDFFitter ( )
virtual

Definition at line 103 of file RdLDFFitter.cc.

Member Function Documentation

VModule::ResultFlag RdLDFFitter::RdLDFFitter::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 652 of file RdLDFFitter.cc.

References fwk::VModule::eSuccess, and INFO.

std::vector< std::pair< double, double > > RdLDFFitter::RdLDFFitter::GetAnglesToEFieldExpectation ( const utl::Point  core,
const double  a 
)
private
std::vector< std::pair< double, double > > RdLDFFitter::RdLDFFitter::GetAnglesToLorentzVector ( )
private
double RdLDFFitter::RdLDFFitter::GetEnergy ( const double  energy_estimator)
private

Definition at line 1257 of file RdLDFFitter.cc.

References utl::eV, utl::meter, utl::micro, std::pow(), and utl::volt.

Referenced by Run().

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 RdLDFFitter::RdLDFFitter::Init ( )
virtual
void fwk::VModule::InitTiming ( )
inlineinherited

Definition at line 95 of file VModule.h.

References fwk::VModule::fStopwatch, and utl::Stopwatch::Reset().

fwk::VModule::ResultFlag RdLDFFitter::RdLDFFitter::PlotGoodnessOfFit ( const std::string  folder,
const std::string  eventIdentifier,
const utl::Point  core 
)
private
fwk::VModule::ResultFlag RdLDFFitter::RdLDFFitter::PlotScan ( const std::vector< std::vector< double > > &  scanResult,
const std::string  filename,
const utl::Point  scanCenter,
const utl::CoordinateSystemPtr  cs,
const utl::Point  coreSd,
const utl::Point  coreRd,
const unsigned int  nStepsX,
const unsigned int  nStepsY,
const double  widthX,
const double  widthY,
const std::vector< StationFitData > &  vStationFitData,
const EventFitData eventFitData,
const double  a 
)
private
ParameterLDFModel RdLDFFitter::RdLDFFitter::PreLDFFit ( int  LDFModel,
const std::vector< StationFitData > &  vStationFitData,
utl::Vector  ShowerAxis,
utl::Point  CorePosition 
)
private
ParameterScintillatorLDFModel RdLDFFitter::RdLDFFitter::PreScintillatorLDFFit ( const std::vector< ScintillatorFitData > &  vScintillatorData,
utl::Vector  ShowerAxis,
utl::Point  CorePosition 
)
private
RdLDFFitter::RdLDFFitter::REGISTER_MODULE ( "RdLDFFitter"  ,
RdLDFFitter   
)
private
VModule::ResultFlag RdLDFFitter::RdLDFFitter::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}

Implements fwk::VModule.

Definition at line 160 of file RdLDFFitter.cc.

References RdLDFFitter::ParameterLDFModel::A, RdLDFFitter::ParameterLDFModel::AError, RdLDFFitter::StationFitData::antennaPosition, RdLDFFitter::FitConfig::chargeExcessStrength, utl::deg, utl::degree, SdHorizontalReconstructionNS::eCoreX, SdHorizontalReconstructionNS::eCoreY, RdLDFFitter::eDebug, fwk::VModule::eFailure, RdLDFFitter::eFD, RdLDFFitter::StationFitData::efield, RdLDFFitter::eFinal, RdLDFFitter::eIntermediate, RdLDFFitter::eMC, RdLDFFitter::eRadio, RdLDFFitter::eSD, fwk::VModule::eSuccess, fConstEvent, fEvent, fFitConfig, filename, fInfoLevel, RdLDFFitter::FitConfig::fitChargeExcess, RdLDFFitter::EventFitData::fLocalCS, fLocalCS, fMagneticFieldAxis, fMCUncertaintyOnEFieldVector, fNStepsX, fNStepsY, fOutputFolder, fPerformScan, fREvent, fSaveContour, fScanCenter, RdLDFFitter::EventFitData::fShowerAxis, fShowerAxis, fStepWidthX, fStepWidthY, GetAnglesToEFieldExpectation(), evt::ShowerRRecData::GetAxis(), evt::ShowerRRecData::GetCoordinateOrigin(), evt::ShowerSRecData::GetCoreError(), evt::ShowerSRecData::GetCorePosition(), evt::ShowerRRecData::GetCorePosition(), evt::ShowerFRecData::GetCorePosition(), evt::ShowerSRecData::GetCorrelationXY(), GetEnergy(), utl::Probability::GetFisherCDF(), revt::REvent::GetHeader(), revt::Header::GetId(), revt::StationRecData::GetParameter(), evt::ShowerRRecData::GetParameter(), revt::StationRecData::GetParameterError(), utl::BasicVector< HepVector >::GetPhi(), rdet::Station::GetPosition(), det::Detector::GetRDetector(), revt::Station::GetRecData(), evt::Event::GetRecShower(), det::Detector::GetReferenceCoordinateSystem(), revt::Header::GetRunNumber(), rdet::RDetector::GetStation(), utl::BasicVector< HepVector >::GetTheta(), utl::BasicVector< HepVector >::GetX(), utl::BasicVector< HepVector >::GetY(), utl::BasicVector< HepVector >::GetZ(), evt::ShowerRecData::HasFRecShower(), revt::StationRecData::HasParameter(), evt::ShowerRRecData::HasParameter(), revt::StationRecData::HasParameterError(), evt::Event::HasREvent(), evt::Event::HasSimShower(), evt::ShowerRecData::HasSRecShower(), INFO, INFO2, utl::BasicVector< HepVector >::kSpherical, RdLDFFitter::FitConfig::LDFModel, RdLDFFitter::StationFitData::lorentzAngleError, utl::m, RdLDFFitter::ParameterScintillatorLDFModel::N_e, RdLDFFitter::ParameterScintillatorLDFModel::N_eError, un2::NKG(), OUT, PlotGoodnessOfFit(), PlotScan(), std::pow(), PreLDFFit(), PreScintillatorLDFFit(), RdLDFFitter::ParameterLDFModel::R0, RdLDFFitter::ParameterLDFModel::R0Error, result, SaveContours(), SaveScan(), Scan(), RdLDFFitter::ScintillatorFitData::scintillatorPosition, RdLDFFitter::EventFitData::SDCore, RdLDFFitter::EventFitData::SDCoreXError, RdLDFFitter::EventFitData::SDCoreXYCorrelation, RdLDFFitter::EventFitData::SDCoreYError, galactic::second, revt::StationRecData::SetParameter(), evt::ShowerRRecData::SetParameter(), evt::ShowerRRecData::SetParameterCovariance(), RdLDFFitter::StationFitData::signal, RdLDFFitter::ScintillatorFitData::signal, RdLDFFitter::StationFitData::signalError, revt::REvent::SignalStationsBegin(), revt::REvent::SignalStationsEnd(), RdLDFFitter::ScintillatorFitData::silent, sqrt(), revt::REvent::StationsBegin(), revt::REvent::StationsEnd(), RdLDFFitter::ParameterScintillatorLDFModel::status, RdLDFFitter::FitConfig::useChargeExcessCorrectionInLDFFit, RdLDFFitter::FitConfig::usePolarisation, RdLDFFitter::FitConfig::useScintillator, RdLDFFitter::FitConfig::useSDCoreToImproveRadioCore, and WARNING.

ResultFlag fwk::VModule::RunWithTiming ( evt::Event event)
inlineinherited
VModule::ResultFlag RdLDFFitter::RdLDFFitter::SaveContours ( unsigned int  runNumber,
const int  eventId,
const std::vector< std::pair< double, double > >  contour,
const std::vector< std::pair< double, double > >  contour2,
ROOT::Minuit2::MnUserCovariance  cov,
const double  coreX,
const double  coreY 
)
private

Definition at line 1262 of file RdLDFFitter.cc.

References fwk::VModule::eFailure, fwk::VModule::eSuccess, exists, fOutputFolder, out, and WARNING.

Referenced by Run().

VModule::ResultFlag RdLDFFitter::RdLDFFitter::SaveScan ( const std::vector< std::vector< double > > &  scanResult,
const std::string  filename,
const double  coreX,
const double  coreY,
const unsigned int  nStepsX,
const unsigned int  nStepsY,
const double  widthX,
const double  widthY 
)
private

Definition at line 1229 of file RdLDFFitter.cc.

References fwk::VModule::eFailure, fwk::VModule::eSuccess, and WARNING.

Referenced by Run().

utl::Point RdLDFFitter::RdLDFFitter::Scan ( std::vector< std::vector< double > > &  scanResult,
const LDFLikelihoodFunction  L,
const utl::Point  core,
const unsigned int  nStepsX,
const unsigned int  nStepsY,
const double  widthX,
const double  widthY,
const double  a 
)
private

nSteps is considered to be odd. If it is even, nSteps will be increased by 1 to be odd.

Definition at line 665 of file RdLDFFitter.cc.

References RdLDFFitter::eDebug, RdLDFFitter::eIntermediate, fLocalCS, utl::BasicVector< HepVector >::GetX(), utl::BasicVector< HepVector >::GetY(), utl::BasicVector< HepVector >::GetZ(), and INFO2.

Referenced by Run(), and Scan().

utl::Point RdLDFFitter::RdLDFFitter::Scan ( std::vector< std::vector< double > > &  scanResult,
const LDFLikelihoodFunction  L,
const utl::Point  core,
const unsigned int  nSteps,
const double  width,
const double  a 
)
inlineprivate

Definition at line 101 of file RdLDFFitter.h.

References Scan().

Member Data Documentation

const evt::Event* RdLDFFitter::RdLDFFitter::fConstEvent
private

Definition at line 156 of file RdLDFFitter.h.

Referenced by PlotScan(), and Run().

evt::Event* RdLDFFitter::RdLDFFitter::fEvent
private

Definition at line 157 of file RdLDFFitter.h.

Referenced by PlotScan(), and Run().

FitConfig RdLDFFitter::RdLDFFitter::fFitConfig
private

Definition at line 139 of file RdLDFFitter.h.

Referenced by Init(), PlotGoodnessOfFit(), and Run().

int RdLDFFitter::RdLDFFitter::fInfoLevel
private

Definition at line 141 of file RdLDFFitter.h.

Referenced by Init(), and Run().

utl::CoordinateSystemPtr RdLDFFitter::RdLDFFitter::fLocalCS
private
utl::Vector RdLDFFitter::RdLDFFitter::fMagneticFieldAxis
private
double RdLDFFitter::RdLDFFitter::fMCUncertaintyOnEFieldVector
private

Definition at line 151 of file RdLDFFitter.h.

Referenced by Init(), and Run().

unsigned int RdLDFFitter::RdLDFFitter::fNStepsX
private

Definition at line 148 of file RdLDFFitter.h.

Referenced by Init(), and Run().

unsigned int RdLDFFitter::RdLDFFitter::fNStepsY
private

Definition at line 148 of file RdLDFFitter.h.

Referenced by Init(), and Run().

std::string RdLDFFitter::RdLDFFitter::fOutputFolder
private

Definition at line 161 of file RdLDFFitter.h.

Referenced by Init(), Run(), and SaveContours().

bool RdLDFFitter::RdLDFFitter::fPerformScan
private

Definition at line 146 of file RdLDFFitter.h.

Referenced by Init(), and Run().

bool RdLDFFitter::RdLDFFitter::fPlotSigmaContours
private

Definition at line 147 of file RdLDFFitter.h.

Referenced by PlotScan().

const short RdLDFFitter::RdLDFFitter::fPlotStyle
private

Definition at line 153 of file RdLDFFitter.h.

Referenced by PlotScan().

const revt::REvent* RdLDFFitter::RdLDFFitter::fREvent
private
bool RdLDFFitter::RdLDFFitter::fSaveContour
private

Definition at line 145 of file RdLDFFitter.h.

Referenced by Init(), and Run().

ScanCenter RdLDFFitter::RdLDFFitter::fScanCenter
private

Definition at line 150 of file RdLDFFitter.h.

Referenced by Init(), and Run().

utl::Vector RdLDFFitter::RdLDFFitter::fShowerAxis
private
double RdLDFFitter::RdLDFFitter::fStepWidthX
private

Definition at line 149 of file RdLDFFitter.h.

Referenced by Init(), and Run().

double RdLDFFitter::RdLDFFitter::fStepWidthY
private

Definition at line 149 of file RdLDFFitter.h.

Referenced by Init(), and Run().


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

, generated on Tue Sep 26 2023.