#include <MdShowerRegenerator.h>
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::Stopwatch & | GetStopwatch () |
const utl::Stopwatch & | GetStopwatch () 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::RandomEngineType * | fRandomEngine |
Definition at line 31 of file MdShowerRegenerator.h.
|
protectedinherited |
|
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. |
|
inherited |
MdShowerRegenerator::MdShowerRegenerator | ( | ) |
Definition at line 90 of file MdShowerRegenerator.cc.
References fNHorizontalRejected, fNInjected, and fNMuons.
|
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.
|
staticinherited |
Definition at line 8 of file VModule.cc.
References fwk::VModule::eBreakLoop, fwk::VModule::eContinueLoop, fwk::VModule::eFailure, and fwk::VModule::eSuccess.
Referenced by fwk::RunController::DoNextInSequence(), fwk::RunController::FinishBranch(), and fwk::RunController::InitBranch().
|
inlineinherited |
Definition at line 106 of file VModule.h.
References fwk::VModule::fStopwatch.
|
inlineinherited |
Definition at line 107 of file VModule.h.
References fwk::VModule::fStopwatch.
|
inherited |
Retrieve different sorts of module version info.
Definition at line 26 of file VModule.cc.
Referenced by fwk::CentralConfig::GetConfig(), ThresholdCalculatorKG::ThresholdCalculator::Init(), fdDoubleBumpFinder::FdDoubleBumpFinder::Init(), LaserGeneratorNA::LaserGenerator::Init(), LaserLightSimulatorNA::LaserLightSimulator::Init(), FdElectronicsSimulatorOG::FdElectronicsSimulator::Init(), TelescopeSimulatorKG::TelescopeSimulator::Init(), TelescopeSimulatorKG2::TelescopeSimulator::Init(), SdSimpleSimKG::SdSimpleSim::Init(), ShowerPhotonGeneratorOG::ShowerPhotonGenerator::Init(), and testRunController::testModuleVersionInfo().
|
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().
|
inlineinherited |
Definition at line 95 of file VModule.h.
References fwk::VModule::fStopwatch, and utl::Stopwatch::Reset().
|
private |
Definition at line 155 of file MdShowerRegenerator.cc.
References MdShowerRegeneratorAG::InStats::InPhi, MdShowerRegeneratorAG::InStats::InRad, MdShowerRegeneratorAG::InStats::IsIn, IsPhiIn(), and IsRIn().
Referenced by Run().
|
private |
Definition at line 240 of file MdShowerRegenerator.cc.
References fNMuons, and OFFLINE_MUONS.
Referenced by Run().
|
private |
Definition at line 219 of file MdShowerRegenerator.cc.
References fElectronEnergyCut, fHadronEnergyCut, fMesonEnergyCut, fMuonEnergyCut, fPhotonEnergyCut, OFFLINE_BARYONS, OFFLINE_ELECTRONS, OFFLINE_MESONS, OFFLINE_MUONS, and OFFLINE_PHOTON.
Referenced by Run().
|
private |
Definition at line 206 of file MdShowerRegenerator.cc.
Referenced by IsIn().
|
private |
Definition at line 215 of file MdShowerRegenerator.cc.
Referenced by IsIn().
|
private |
|
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.
|
inlineinherited |
Definition at line 98 of file VModule.h.
References fwk::VModule::fStopwatch, fwk::VModule::Run(), utl::Stopwatch::Start(), and utl::Stopwatch::Stop().
Referenced by fwk::RunController::DoNextInSequence().
|
private |
|
private |
Definition at line 182 of file MdShowerRegenerator.cc.
Referenced by Run().
|
private |
Definition at line 69 of file MdShowerRegenerator.h.
|
private |
Definition at line 68 of file MdShowerRegenerator.h.
|
private |
Definition at line 62 of file MdShowerRegenerator.h.
Referenced by Init(), and IsParticleEnergyLow().
|
private |
Definition at line 65 of file MdShowerRegenerator.h.
Referenced by Init(), and IsParticleEnergyLow().
|
private |
Definition at line 70 of file MdShowerRegenerator.h.
Referenced by Init().
|
protectedinherited |
Definition at line 123 of file VModule.h.
Referenced by RdChannelASCIINoiseImporterRD::RdChannelASCIINoiseImporterRD::Init(), Rd2dLDFFitter::Rd2dLDFFitter::Init(), RdChannelNoiseImporter_AERA::RdChannelNoiseImporter_AERA::Init(), and Rd2dLDFFitter::Rd2dLDFFitter::Run().
|
private |
Definition at line 59 of file MdShowerRegenerator.h.
|
private |
Definition at line 66 of file MdShowerRegenerator.h.
Referenced by Init(), and IsParticleEnergyLow().
|
private |
Definition at line 63 of file MdShowerRegenerator.h.
Referenced by Init(), and IsParticleEnergyLow().
|
private |
Definition at line 83 of file MdShowerRegenerator.h.
|
private |
Definition at line 82 of file MdShowerRegenerator.h.
Referenced by MdShowerRegenerator(), and Run().
|
private |
Definition at line 81 of file MdShowerRegenerator.h.
Referenced by MdShowerRegenerator(), and Run().
|
private |
Definition at line 80 of file MdShowerRegenerator.h.
Referenced by IsMuon(), MdShowerRegenerator(), and Run().
|
private |
Definition at line 79 of file MdShowerRegenerator.h.
|
private |
Definition at line 60 of file MdShowerRegenerator.h.
|
private |
Definition at line 72 of file MdShowerRegenerator.h.
Referenced by IsPhiIn(), and SetPhiRange().
|
private |
Definition at line 73 of file MdShowerRegenerator.h.
Referenced by IsPhiIn(), and SetPhiRange().
|
private |
Definition at line 64 of file MdShowerRegenerator.h.
Referenced by Init(), and IsParticleEnergyLow().
|
private |
Definition at line 74 of file MdShowerRegenerator.h.
Referenced by IsRIn(), and SetRadRange().
|
private |
Definition at line 75 of file MdShowerRegenerator.h.
Referenced by IsRIn(), and SetRadRange().
|
private |
Definition at line 77 of file MdShowerRegenerator.h.