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

#include <RdHASLDFFitter.h>

Inheritance diagram for RdHASLDFFitter::RdHASLDFFitter:
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 () override
 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 () override
 Initialize: invoked at beginning of run (NOT beginning of event) More...
 
void InitTiming ()
 
fwk::VModule::ResultFlag Run (evt::Event &event) override
 Run: invoked once per event. More...
 
ResultFlag RunWithTiming (evt::Event &event)
 

Static Public Member Functions

static std::string GetResultFlagByName (const ResultFlag flag)
 

Protected Types

enum  InfoLevel { eInfoNone = 0, eInfoFinal = 1, eInfoIntermediate = 2, eInfoDebug = 3 }
 

Protected Attributes

int fInfoLevel = 0
 

Private Member Functions

void ElectromagneticEnergy (const double sRad, const double sRadErr, double &electromagneticEnergyRec, double &electromagneticEnergyRecErr, const double zenith) const
 
bool GetXmaxEstimator (const evt::Event &event, double &xmax) const
 
void RadiationDensityCorrection (const double densityMax, const double densityMaxErr, double &radiationDensityCorrection, double &radiationDensityCorrectionErr) const
 
 REGISTER_MODULE ("RdHASLDFFitter", RdHASLDFFitter)
 

Private Attributes

bool fAddLowestSignalAsError = false
 
double fAddRelativeMaxSignalError = 0
 
bool fApplyParametricCorrectionToElectromagneticEnergyUncertainty = true
 
double fAvgDensity = 0
 
int fFailedFits = 0
 
bool fFitCore = true
 
std::string fFitDirection
 
bool fFitDistanceToXmax = true
 
double fGamma = 0
 
utl::HadronicInteractionModel fHadronicInteractionModel
 
unsigned int fMinimumNumberOfStations = 0
 
double fp0 = 0
 
double fp1 = 0
 
double fS19 = 0
 
double fSTEPFCCorrectionToSimulatedRadioEnergyScale = 0
 
int fSuccessfulFits = 0
 
bool fUseParametrizationToDisentanglePolarisation = true
 
bool fUseSaturatedStations = false
 
bool fUseSoftExponent = true
 
std::string fXmaxType
 

Detailed Description

Definition at line 12 of file RdHASLDFFitter.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.

Member Function Documentation

void RdHASLDFFitter::RdHASLDFFitter::ElectromagneticEnergy ( const double  sRad,
const double  sRadErr,
double &  electromagneticEnergyRec,
double &  electromagneticEnergyRecErr,
const double  zenith 
) const
private

Definition at line 133 of file RdHASLDFFitter.cc.

References utl::deg, galactic::eV, std::pow(), and utl::Sqr().

VModule::ResultFlag RdHASLDFFitter::RdHASLDFFitter::Finish ( )
overridevirtual

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 766 of file RdHASLDFFitter.cc.

References io::eSuccess, and INFOFinal.

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
bool RdHASLDFFitter::RdHASLDFFitter::GetXmaxEstimator ( const evt::Event event,
double &  xmax 
) const
private
VModule::ResultFlag RdHASLDFFitter::RdHASLDFFitter::Init ( )
overridevirtual

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 193 of file RdHASLDFFitter.cc.

References utl::eEPOSLHC, utl::eQGSJETII04, utl::eSibyll23d, io::eSuccess, utl::Branch::Get(), utl::Branch::GetChild(), utl::Branch::GetData(), utl::Branch::GetTopBranch(), and INFOFinal.

void fwk::VModule::InitTiming ( )
inlineinherited

Definition at line 95 of file VModule.h.

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

void RdHASLDFFitter::RdHASLDFFitter::RadiationDensityCorrection ( const double  densityMax,
const double  densityMaxErr,
double &  radiationDensityCorrection,
double &  radiationDensityCorrectionErr 
) const
private

Definition at line 56 of file RdHASLDFFitter.cc.

References utl::abs(), and std::pow().

RdHASLDFFitter::RdHASLDFFitter::REGISTER_MODULE ( "RdHASLDFFitter"  ,
RdHASLDFFitter   
)
private
VModule::ResultFlag RdHASLDFFitter::RdHASLDFFitter::Run ( evt::Event event)
overridevirtual

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 265 of file RdHASLDFFitter.cc.

References utl::abs(), RdHASLDFFitter::LDFFitFunctionGaussSigmoid::CalculateR0(), utl::cm2, utl::deg, SdHorizontalReconstructionNS::eCoreX, SdHorizontalReconstructionNS::eCoreY, galactic::EeV, utl::EeV, io::eSuccess, galactic::eV, atm::Atmosphere::EvaluateDensityVsHeight(), atm::Atmosphere::EvaluateDistanceVsSlantDepth(), atm::Atmosphere::EvaluateHeightVsDistance(), atm::Atmosphere::EvaluateRefractionIndexVsHeight(), RdHASLDFFitter::ShowerFitData::fDensityFromHeight, RdHASLDFFitter::ShowerFitData::fDistanceTo750, RdHASLDFFitter::StationFitData::fEnergyFluenceVxB, RdHASLDFFitter::StationFitData::fEnergyFluenceVxBErr, RdHASLDFFitter::StationFitData::fEnergyFluenceVxVxB, RdHASLDFFitter::StationFitData::fEnergyFluenceVxVxBErr, RdHASLDFFitter::ShowerFitData::fHeightFromDistance, RdHASLDFFitter::StationFitData::fId, RdHASLDFFitter::ShowerFitData::fMagneticField, RdHASLDFFitter::StationFitData::fPosition, RdHASLDFFitter::ShowerFitData::fRefracFromHeight, RdHASLDFFitter::ShowerFitData::fRefShowerAxis, RdHASLDFFitter::ShowerFitData::fRefShowerCore, RdHASLDFFitter::StationFitData::fRejected, RdHASLDFFitter::ShowerFitData::fSineAlpha, RdHASLDFFitter::FitConfig::fUseParam, RdHASLDFFitter::FitConfig::fUseSoftExponent, RdHASLDFFitter::ShowerFitData::fZenith, utl::g, RdHASLDFFitter::LDFFitFunctionGaussSigmoid::GetArel(), det::Detector::GetAtmosphere(), evt::ShowerRRecData::GetAxis(), RdHASLDFFitter::LDFFitFunction::GetChi2(), evt::ShowerSimData::GetDirection(), evt::ShowerSimData::GetDistanceOfShowerMaximum(), evt::ShowerSimData::GetElectromagneticEnergy(), evt::ShowerRRecData::GetMagneticFieldVector(), RdHASLDFFitter::LDFFitFunction::GetNDF(), RdHASLDFFitter::LDFFitFunctionGaussSigmoid::GetNormalization(), RdHASLDFFitter::LDFFitFunctionGaussSigmoid::GetP(), utl::BasicVector< HepVector >::GetPhi(), rdet::Station::GetPosition(), RdHASLDFFitter::LDFFitFunction::GetPrediction(), RdHASLDFFitter::LDFFitFunctionGaussSigmoid::GetR02(), det::Detector::GetRDetector(), revt::Station::GetRecData(), evt::Event::GetRecShower(), evt::ShowerRRecData::GetReferenceAxis(), evt::ShowerRRecData::GetReferenceCorePosition(), RdHASLDFFitter::LDFFitFunctionGaussSigmoid::GetSig(), RdHASLDFFitter::GetSineAlphaSquareErr(), rdet::RDetector::GetStation(), revt::REvent::GetStation(), utl::BasicVector< HepVector >::GetTheta(), utl::RadioGeometryUtilities::GetVectorFromShowerPlaneVxB(), utl::RadioGeometryUtilities::GetVectorInShowerPlaneVxB(), utl::BasicVector< HepVector >::GetX(), utl::BasicVector< HepVector >::GetY(), utl::BasicVector< HepVector >::GetZ(), evt::ShowerRRecData::HasAxis(), evt::Event::HasRecShower(), evt::Event::HasREvent(), evt::ShowerRecData::HasRRecShower(), evt::Event::HasSimShower(), evt::ShowerRecData::HasSRecShower(), INFO, INFODebug, INFOFinal, INFOIntermediate, atm::Atmosphere::InitSlantProfileModel(), utl::kg, km, utl::m, utl::m3, evt::Event::MakeRecShower(), evt::ShowerRecData::MakeRRecShower(), max, atm::ProfileResult::MaxX(), galactic::meter, utl::MeV, utl::Minou::Minimizer< F >::Minimize(), atm::ProfileResult::MinX(), G4StationSimulatorOG::p, std::pow(), utl::s, revt::StationRecData::SetParameter(), evt::ShowerRRecData::SetParameter(), utl::Minou::Base::SetParameterDefFixed(), utl::Minou::Base::SetParameterDefValues(), revt::StationRecData::SetParameterError(), evt::ShowerRRecData::SetParameterError(), utl::Minou::Minimizer< F >::SetVerbose(), utl::Sqr(), sqrt(), WARNING, and atm::ProfileResult::Y().

ResultFlag fwk::VModule::RunWithTiming ( evt::Event event)
inlineinherited

Member Data Documentation

bool RdHASLDFFitter::RdHASLDFFitter::fAddLowestSignalAsError = false
private

Definition at line 37 of file RdHASLDFFitter.h.

double RdHASLDFFitter::RdHASLDFFitter::fAddRelativeMaxSignalError = 0
private

Definition at line 38 of file RdHASLDFFitter.h.

bool RdHASLDFFitter::RdHASLDFFitter::fApplyParametricCorrectionToElectromagneticEnergyUncertainty = true
private

Definition at line 49 of file RdHASLDFFitter.h.

double RdHASLDFFitter::RdHASLDFFitter::fAvgDensity = 0
private

Definition at line 25 of file RdHASLDFFitter.h.

int RdHASLDFFitter::RdHASLDFFitter::fFailedFits = 0
private

Definition at line 52 of file RdHASLDFFitter.h.

bool RdHASLDFFitter::RdHASLDFFitter::fFitCore = true
private

Definition at line 35 of file RdHASLDFFitter.h.

std::string RdHASLDFFitter::RdHASLDFFitter::fFitDirection
private

Definition at line 43 of file RdHASLDFFitter.h.

bool RdHASLDFFitter::RdHASLDFFitter::fFitDistanceToXmax = true
private

Definition at line 34 of file RdHASLDFFitter.h.

double RdHASLDFFitter::RdHASLDFFitter::fGamma = 0
private

Definition at line 22 of file RdHASLDFFitter.h.

utl::HadronicInteractionModel RdHASLDFFitter::RdHASLDFFitter::fHadronicInteractionModel
private
Initial value:

Definition at line 41 of file RdHASLDFFitter.h.

int fwk::VModule::fInfoLevel = 0
protectedinherited
unsigned int RdHASLDFFitter::RdHASLDFFitter::fMinimumNumberOfStations = 0
private

Definition at line 32 of file RdHASLDFFitter.h.

double RdHASLDFFitter::RdHASLDFFitter::fp0 = 0
private

Definition at line 26 of file RdHASLDFFitter.h.

double RdHASLDFFitter::RdHASLDFFitter::fp1 = 0
private

Definition at line 27 of file RdHASLDFFitter.h.

double RdHASLDFFitter::RdHASLDFFitter::fS19 = 0
private

Definition at line 21 of file RdHASLDFFitter.h.

double RdHASLDFFitter::RdHASLDFFitter::fSTEPFCCorrectionToSimulatedRadioEnergyScale = 0
private

Definition at line 30 of file RdHASLDFFitter.h.

int RdHASLDFFitter::RdHASLDFFitter::fSuccessfulFits = 0
private

Definition at line 51 of file RdHASLDFFitter.h.

bool RdHASLDFFitter::RdHASLDFFitter::fUseParametrizationToDisentanglePolarisation = true
private

Definition at line 46 of file RdHASLDFFitter.h.

bool RdHASLDFFitter::RdHASLDFFitter::fUseSaturatedStations = false
private

Definition at line 45 of file RdHASLDFFitter.h.

bool RdHASLDFFitter::RdHASLDFFitter::fUseSoftExponent = true
private

Definition at line 47 of file RdHASLDFFitter.h.

std::string RdHASLDFFitter::RdHASLDFFitter::fXmaxType
private

Definition at line 40 of file RdHASLDFFitter.h.


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

, generated on Tue Sep 26 2023.