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

#include <MdShowerRegenerator.h>

Inheritance diagram for MdShowerRegeneratorAG::MdShowerRegenerator:
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

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...
 
VModule::ResultFlag Init ()
 Initialize: invoked at beginning of run (NOT beginning of event) More...
 
void InitTiming ()
 
 MdShowerRegenerator ()
 
VModule::ResultFlag Run (evt::Event &event)
 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

bool IsIn (double phi, double r, InStats &)
 
bool IsMuon (const int)
 
bool IsParticleEnergyLow (const int, const double) const
 
bool IsPhiIn (double phi)
 
bool IsRIn (double r)
 
 REGISTER_MODULE ("ShowerRegeneratorAG", MdShowerRegenerator)
 
void SetPhiRange (double phi, double dphi)
 
void SetRadRange (double r1, double r2)
 

Private Attributes

double fDeltaPhi
 
double fDeltaROverR
 
double fElectronEnergyCut
 
double fHadronEnergyCut
 
double fHorizontalParticleCut
 
double fInnerRadiusCut
 
double fMesonEnergyCut
 
double fMuonEnergyCut
 
double fMuonWeightScale
 
int fNHorizontalRejected
 
int fNInjected
 
int fNMuons
 
bool fOnlyMuons
 
double fOuterRadiusCut
 
double fPhi1
 
double fPhi2
 
double fPhotonEnergyCut
 
double fR1
 
double fR2
 
utl::RandomEngine::RandomEngineTypefRandomEngine
 

Detailed Description

Definition at line 31 of file MdShowerRegenerator.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

MdShowerRegenerator::MdShowerRegenerator ( )

Definition at line 90 of file MdShowerRegenerator.cc.

References fNHorizontalRejected, fNInjected, and fNMuons.

Member Function Documentation

VModule::ResultFlag MdShowerRegenerator::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 519 of file MdShowerRegenerator.cc.

References fwk::VModule::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 MdShowerRegenerator::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 112 of file MdShowerRegenerator.cc.

References fwk::VModule::eSuccess, fDeltaPhi, fDeltaROverR, fElectronEnergyCut, fHadronEnergyCut, fHorizontalParticleCut, fInnerRadiusCut, fMesonEnergyCut, fMuonEnergyCut, fMuonWeightScale, fOnlyMuons, fOuterRadiusCut, fPhotonEnergyCut, fRandomEngine, utl::Branch::GetChild(), utl::Branch::GetData(), utl::Branch::GetTopBranch(), and utl::LoadConfig().

void fwk::VModule::InitTiming ( )
inlineinherited

Definition at line 95 of file VModule.h.

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

bool MdShowerRegenerator::IsIn ( double  phi,
double  r,
InStats stat 
)
private
bool MdShowerRegenerator::IsMuon ( const int  pType)
private

Definition at line 240 of file MdShowerRegenerator.cc.

References fNMuons, and OFFLINE_MUONS.

Referenced by Run().

bool MdShowerRegenerator::IsParticleEnergyLow ( const int  pType,
const double  pEnergy 
) const
private
bool MdShowerRegenerator::IsPhiIn ( double  phi)
private

Definition at line 206 of file MdShowerRegenerator.cc.

References fPhi1, and fPhi2.

Referenced by IsIn().

bool MdShowerRegenerator::IsRIn ( double  r)
private

Definition at line 215 of file MdShowerRegenerator.cc.

References fR1, and fR2.

Referenced by IsIn().

MdShowerRegeneratorAG::MdShowerRegenerator::REGISTER_MODULE ( "ShowerRegeneratorAG"  ,
MdShowerRegenerator   
)
private
VModule::ResultFlag MdShowerRegenerator::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 253 of file MdShowerRegenerator.cc.

References mevt::CounterSimData::AddGrdParticle(), mdet::MDetector::CountersBegin(), mdet::MDetector::CountersEnd(), utl::degree, utl::Particle::eAntiMuon, fwk::VModule::eFailure, utl::Particle::eMuon, ERROR, fwk::VModule::eSuccess, fDeltaPhi, fDeltaROverR, fInnerRadiusCut, fMuonWeightScale, fNHorizontalRejected, fNInjected, fNMuons, fOnlyMuons, fOuterRadiusCut, fRandomEngine, mevt::MEvent::GetCounter(), utl::Particle::GetDirection(), evt::ShowerSimData::GetDirection(), utl::TimeInterval::GetInterval(), utl::Particle::GetKineticEnergy(), evt::ShowerSimData::GetLocalCoordinateSystem(), evt::ShowerSimData::GetMinRadiusCut(), utl::BasicVector< HepVector >::GetPhi(), utl::Particle::GetPosition(), utl::BasicVector< HepVector >::GetR(), utl::BasicVector< HepVector >::GetRho(), evt::ShowerSimData::GetShowerCoordinateSystem(), mevt::Counter::GetSimData(), sevt::Station::GetSimData(), sevt::SEvent::GetStation(), utl::BasicVector< HepVector >::GetTheta(), utl::Particle::GetTime(), utl::Particle::GetType(), utl::Particle::GetWeight(), utl::BasicVector< HepVector >::GetZ(), evt::ShowerSimData::GroundParticlesBegin(), evt::ShowerSimData::GroundParticlesEnd(), mevt::MEvent::HasCounter(), evt::ShowerSimData::HasGroundParticles(), evt::Event::HasMEvent(), evt::Event::HasSEvent(), mevt::Counter::HasSimData(), sevt::Station::HasSimData(), evt::Event::HasSimShower(), sevt::SEvent::HasStation(), INFO, MdShowerRegeneratorAG::InStats::InPhi, MdShowerRegeneratorAG::InStats::InRad, IsIn(), MdShowerRegeneratorAG::InStats::IsIn, mevt::CounterSimData::IsInsideMinRadius(), sevt::StationSimData::IsInsideMinRadius(), IsMuon(), IsParticleEnergyLow(), utl::kPi, utl::m, mevt::MEvent::MakeCounter(), evt::Event::MakeMEvent(), mevt::Counter::MakeSimData(), MD_LARGE_SIDE, MD_THETASIM_MAX, MdShowerRegeneratorAG::PlaneFrontTime(), utl::Particle::SetDirection(), mevt::CounterSimData::SetIsInsideMinRadius(), evt::ShowerSimData::SetMinRadiusCut(), utl::Particle::SetParent(), SetPhiRange(), utl::Particle::SetPosition(), SetRadRange(), utl::Particle::SetTime(), utl::Particle::SetWeight(), utl::Sqr(), sqrt(), and WARNING.

ResultFlag fwk::VModule::RunWithTiming ( evt::Event event)
inlineinherited
void MdShowerRegenerator::SetPhiRange ( double  phi,
double  dphi 
)
private

Definition at line 189 of file MdShowerRegenerator.cc.

References fPhi1, fPhi2, and utl::kPi.

Referenced by Run().

void MdShowerRegenerator::SetRadRange ( double  r1,
double  r2 
)
private

Definition at line 182 of file MdShowerRegenerator.cc.

References fR1, and fR2.

Referenced by Run().

Member Data Documentation

double MdShowerRegeneratorAG::MdShowerRegenerator::fDeltaPhi
private

Definition at line 69 of file MdShowerRegenerator.h.

Referenced by Init(), and Run().

double MdShowerRegeneratorAG::MdShowerRegenerator::fDeltaROverR
private

Definition at line 68 of file MdShowerRegenerator.h.

Referenced by Init(), and Run().

double MdShowerRegeneratorAG::MdShowerRegenerator::fElectronEnergyCut
private

Definition at line 62 of file MdShowerRegenerator.h.

Referenced by Init(), and IsParticleEnergyLow().

double MdShowerRegeneratorAG::MdShowerRegenerator::fHadronEnergyCut
private

Definition at line 65 of file MdShowerRegenerator.h.

Referenced by Init(), and IsParticleEnergyLow().

double MdShowerRegeneratorAG::MdShowerRegenerator::fHorizontalParticleCut
private

Definition at line 70 of file MdShowerRegenerator.h.

Referenced by Init().

int fwk::VModule::fInfoLevel = 0
protectedinherited
double MdShowerRegeneratorAG::MdShowerRegenerator::fInnerRadiusCut
private

Definition at line 59 of file MdShowerRegenerator.h.

Referenced by Init(), and Run().

double MdShowerRegeneratorAG::MdShowerRegenerator::fMesonEnergyCut
private

Definition at line 66 of file MdShowerRegenerator.h.

Referenced by Init(), and IsParticleEnergyLow().

double MdShowerRegeneratorAG::MdShowerRegenerator::fMuonEnergyCut
private

Definition at line 63 of file MdShowerRegenerator.h.

Referenced by Init(), and IsParticleEnergyLow().

double MdShowerRegeneratorAG::MdShowerRegenerator::fMuonWeightScale
private

Definition at line 83 of file MdShowerRegenerator.h.

Referenced by Init(), and Run().

int MdShowerRegeneratorAG::MdShowerRegenerator::fNHorizontalRejected
private

Definition at line 82 of file MdShowerRegenerator.h.

Referenced by MdShowerRegenerator(), and Run().

int MdShowerRegeneratorAG::MdShowerRegenerator::fNInjected
private

Definition at line 81 of file MdShowerRegenerator.h.

Referenced by MdShowerRegenerator(), and Run().

int MdShowerRegeneratorAG::MdShowerRegenerator::fNMuons
private

Definition at line 80 of file MdShowerRegenerator.h.

Referenced by IsMuon(), MdShowerRegenerator(), and Run().

bool MdShowerRegeneratorAG::MdShowerRegenerator::fOnlyMuons
private

Definition at line 79 of file MdShowerRegenerator.h.

Referenced by Init(), and Run().

double MdShowerRegeneratorAG::MdShowerRegenerator::fOuterRadiusCut
private

Definition at line 60 of file MdShowerRegenerator.h.

Referenced by Init(), and Run().

double MdShowerRegeneratorAG::MdShowerRegenerator::fPhi1
private

Definition at line 72 of file MdShowerRegenerator.h.

Referenced by IsPhiIn(), and SetPhiRange().

double MdShowerRegeneratorAG::MdShowerRegenerator::fPhi2
private

Definition at line 73 of file MdShowerRegenerator.h.

Referenced by IsPhiIn(), and SetPhiRange().

double MdShowerRegeneratorAG::MdShowerRegenerator::fPhotonEnergyCut
private

Definition at line 64 of file MdShowerRegenerator.h.

Referenced by Init(), and IsParticleEnergyLow().

double MdShowerRegeneratorAG::MdShowerRegenerator::fR1
private

Definition at line 74 of file MdShowerRegenerator.h.

Referenced by IsRIn(), and SetRadRange().

double MdShowerRegeneratorAG::MdShowerRegenerator::fR2
private

Definition at line 75 of file MdShowerRegenerator.h.

Referenced by IsRIn(), and SetRadRange().

utl::RandomEngine::RandomEngineType* MdShowerRegeneratorAG::MdShowerRegenerator::fRandomEngine
private

Definition at line 77 of file MdShowerRegenerator.h.

Referenced by Init(), and Run().


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

, generated on Tue Sep 26 2023.