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

#include <SdSimMuonNumberFitter.h>

Inheritance diagram for SdSimMuonNumberFitterNS::SdSimMuonNumberFitter:
Inheritance graph
[legend]

Public Types

enum  EnergyFitType { eUnknown = 0, eROOT, eMinuit }
 
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 ()
 
fwk::VModule::ResultFlag Run (evt::Event &event)
 Run: invoked once per event. More...
 
ResultFlag RunWithTiming (evt::Event &event)
 
 SdSimMuonNumberFitter ()
 
virtual ~SdSimMuonNumberFitter ()
 

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 DrawLogLikelihood (TVirtualPad *const pad, const double n19, const char *const comment) const
 
void DrawMuonDensity (TVirtualPad *const pad, const double n19, const double theta, const double phi, const char *const comment) const
 
bool EnergyFit (const utl::CoordinateSystemPtr &localCS, utl::Point &core, utl::Vector &coreError, double &n19, double &n19Error, double &logLikelihoodMin, const bool fixedCore) const
 
utl::Point FindMuonDensityBaryCenter (const std::vector< StationData > &stationList) const
 
 REGISTER_MODULE ("SdSimMuonNumberFitter", SdSimMuonNumberFitter)
 

Static Private Member Functions

static void N19FitFnc (int &nPar, double *const grad, double &value, double *const par, const int flag)
 

Private Attributes

double fEnergyConstant
 
bool fFixedCore
 
double fGamma
 
double fSilentRadius
 
utl::CoordinateSystemPtr fSimCoreCS
 
int fVerbosity
 

Detailed Description

Definition at line 83 of file SdSimMuonNumberFitter.h.

Member Enumeration Documentation

Enumerator
eUnknown 
eROOT 
eMinuit 

Definition at line 93 of file SdSimMuonNumberFitter.h.

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

SdSimMuonNumberFitter::SdSimMuonNumberFitter ( )

Definition at line 207 of file SdSimMuonNumberFitter.cc.

SdSimMuonNumberFitter::~SdSimMuonNumberFitter ( )
virtual

Definition at line 211 of file SdSimMuonNumberFitter.cc.

References fgMuonProfile.

Member Function Documentation

void SdSimMuonNumberFitter::DrawLogLikelihood ( TVirtualPad *const  pad,
const double  n19,
const char *const  comment 
) const
private
void SdSimMuonNumberFitter::DrawMuonDensity ( TVirtualPad *const  pad,
const double  n19,
const double  theta,
const double  phi,
const char *const  comment 
) const
private

Definition at line 719 of file SdSimMuonNumberFitter.cc.

References galactic::EeV, fgMuonProfile, and INFO.

bool SdSimMuonNumberFitter::EnergyFit ( const utl::CoordinateSystemPtr localCS,
utl::Point core,
utl::Vector coreError,
double &  n19,
double &  n19Error,
double &  logLikelihoodMin,
const bool  fixedCore 
) const
private

Definition at line 597 of file SdSimMuonNumberFitter.cc.

References ERROR, galactic::meter, and N19FitFnc().

utl::Point SdSimMuonNumberFitter::FindMuonDensityBaryCenter ( const std::vector< StationData > &  stationList) const
private
VModule::ResultFlag SdSimMuonNumberFitter::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 542 of file SdSimMuonNumberFitter.cc.

References io::eSuccess.

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 SdSimMuonNumberFitter::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}

Implements fwk::VModule.

Definition at line 218 of file SdSimMuonNumberFitter.cc.

References degree, io::eSuccess, fgMuonProfile, utl::Branch::GetChild(), utl::Branch::GetData(), utl::Branch::GetName(), fwk::CentralConfig::GetTopBranch(), and INFO.

void fwk::VModule::InitTiming ( )
inlineinherited

Definition at line 95 of file VModule.h.

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

void SdSimMuonNumberFitter::N19FitFnc ( int &  nPar,
double *const  grad,
double &  value,
double *const  par,
const int  flag 
)
staticprivate

Definition at line 590 of file SdSimMuonNumberFitter.cc.

References gLikelihood, and SdSimMuonNumberFitterNS::Likelihood::MinuitFnc().

Referenced by EnergyFit().

SdSimMuonNumberFitterNS::SdSimMuonNumberFitter::REGISTER_MODULE ( "SdSimMuonNumberFitter"  ,
SdSimMuonNumberFitter   
)
private
VModule::ResultFlag SdSimMuonNumberFitter::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 259 of file SdSimMuonNumberFitter.cc.

References utl::abs(), SdSimMuonNumberFitterNS::Likelihood::AddStation(), RdGeoCeLDFFitter::c, SdSimMuonNumberFitterNS::Likelihood::Clear(), utl::deg, degree, galactic::EeV, cevt::StationConstants::eMuon, utl::Energy(), ERROR, io::eSuccess, fgMuonProfile, SdSimMuonNumberFitterNS::StationData::fId, SdSimMuonNumberFitterNS::StationData::fNMuon, SdSimMuonNumberFitterNS::StationData::fPos, SdSimMuonNumberFitterNS::StationData::fTime, evt::ShowerSimData::GetDirection(), evt::ShowerSimData::GetEnergy(), sevt::SEvent::GetHeader(), sevt::Header::GetId(), evt::ShowerSimData::GetLocalCoordinateSystem(), sevt::SEvent::GetNumberOfStations(), utl::BasicVector< HepVector >::GetPhi(), evt::ShowerSimData::GetPosition(), sdet::Station::GetPosition(), sevt::Station::GetRecData(), evt::Event::GetRecShower(), GetShowerCoordinateSystem(), sevt::StationRecData::GetSignalStartTime(), sevt::SEvent::GetStation(), sdet::SDetector::GetStation(), evt::ShowerSimData::GetTimeStamp(), sevt::StationRecData::GetTotalSignal(), gLikelihood, sevt::Station::HasRecData(), evt::Event::HasRecShower(), evt::Event::HasSEvent(), evt::Event::HasSimShower(), evt::ShowerRecData::HasSRecShower(), INFO, kHASRecoStatus, utl::kSpeedOfLight, sevt::Station::MakeRecData(), evt::Event::MakeRecShower(), evt::ShowerRecData::MakeSRecShower(), sevt::StationSimData::ParticlesBegin(), sevt::StationSimData::ParticlesEnd(), std::pow(), ProjectIntoCorePlane(), RPerp(), evt::ShowerSRecData::SetAxis(), sevt::StationRecData::SetAzimuthShowerPlane(), evt::ShowerSRecData::SetBarycenter(), evt::ShowerSRecData::SetCoreError(), evt::ShowerSRecData::SetCorePosition(), evt::ShowerSRecData::SetCoreTime(), evt::ShowerSRecData::SetCurvature(), evt::ShowerSRecData::SetEnergy(), evt::ShowerSRecData::SetLDFChi2(), evt::ShowerSRecData::SetLDFLikelihood(), evt::ShowerSRecData::SetLDFRecStage(), sevt::StationRecData::SetLDFResidual(), SdSimMuonNumberFitterNS::Likelihood::SetPhi(), sevt::StationRecData::SetSignalStartTime(), sevt::StationRecData::SetSPDistance(), sevt::StationRecData::SetT50(), SdSimMuonNumberFitterNS::Likelihood::SetTheta(), sevt::StationRecData::SetTotalSignal(), sqrt(), sevt::SEvent::StationsBegin(), and sevt::SEvent::StationsEnd().

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

Member Data Documentation

double SdSimMuonNumberFitterNS::SdSimMuonNumberFitter::fEnergyConstant
private

Definition at line 102 of file SdSimMuonNumberFitter.h.

bool SdSimMuonNumberFitterNS::SdSimMuonNumberFitter::fFixedCore
private

Definition at line 100 of file SdSimMuonNumberFitter.h.

double SdSimMuonNumberFitterNS::SdSimMuonNumberFitter::fGamma
private

Definition at line 103 of file SdSimMuonNumberFitter.h.

int fwk::VModule::fInfoLevel = 0
protectedinherited
double SdSimMuonNumberFitterNS::SdSimMuonNumberFitter::fSilentRadius
private

Definition at line 98 of file SdSimMuonNumberFitter.h.

utl::CoordinateSystemPtr SdSimMuonNumberFitterNS::SdSimMuonNumberFitter::fSimCoreCS
private

Definition at line 105 of file SdSimMuonNumberFitter.h.

int SdSimMuonNumberFitterNS::SdSimMuonNumberFitter::fVerbosity
private

Definition at line 96 of file SdSimMuonNumberFitter.h.


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

, generated on Tue Sep 26 2023.