![]() |
ATLAS Offline Software
|
#include <ParticleDecayer.h>
Public Member Functions | |
| ParticleDecayer (const std::string &name, ISvcLocator *pSvcLocator) | |
| ~ParticleDecayer ()=default | |
| StatusCode | genInitialize () |
| For initializing the generator, if required. | |
| StatusCode | fillEvt (HepMC::GenEvent *) |
| For filling the HepMC event object. | |
| virtual StatusCode | sysInitialize () override |
| Override sysInitialize. | |
| virtual const DataObjIDColl & | extraOutputDeps () const override |
| Return the list of extra output dependencies. | |
| ServiceHandle< StoreGateSvc > & | evtStore () |
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc. | |
| const ServiceHandle< StoreGateSvc > & | detStore () const |
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc. | |
| virtual StatusCode | sysStart () override |
| Handle START transition. | |
| virtual std::vector< Gaudi::DataHandle * > | inputHandles () const override |
| Return this algorithm's input handles. | |
| virtual std::vector< Gaudi::DataHandle * > | outputHandles () const override |
| Return this algorithm's output handles. | |
| Gaudi::Details::PropertyBase & | declareProperty (Gaudi::Property< T, V, H > &t) |
| void | updateVHKA (Gaudi::Details::PropertyBase &) |
| MsgStream & | msg () const |
| bool | msgLvl (const MSG::Level lvl) const |
Event loop algorithm methods: not to be overloaded | |
| StatusCode | initialize () |
| StatusCode | execute () |
| StatusCode | finalize () |
Gen-specific event loop methods: to be overloaded | |
| virtual StatusCode | genuserInitialize () |
| For initialization of user code, if required. Called after genInitialize. | |
| virtual StatusCode | callGenerator () |
| For calling the generator on each iteration of the event loop. | |
| virtual StatusCode | genFinalize () |
| For finalising the generator, if required. | |
Event collection accessors (const and non-const) | |
| HepMC::GenEvent *event | ATLAS_NOT_CONST_THREAD_SAFE () |
| Access the current signal event (first in the McEventCollection) | |
| McEventCollection *events | ATLAS_NOT_CONST_THREAD_SAFE () |
| Access the current event's McEventCollection. | |
| const HepMC::GenEvent * | event_const () const |
| Access the current signal event (const) | |
| const McEventCollection * | events_const () const |
| Access the current event's McEventCollection (const) | |
| const McEventCollection * | events_const (const EventContext &ctx) const |
Particle data accessors | |
| const ServiceHandle< IPartPropSvc > | partPropSvc () const |
| Access the particle property service. | |
| const HepPDT::ParticleDataTable & | particleTable () const |
| Get a particle data table. | |
| const HepPDT::ParticleDataTable & | pdt () const |
| Shorter alias to get a particle data table. | |
| const HepPDT::ParticleData * | particleData (int pid) const |
| Access an element in the particle data table. | |
Protected Member Functions | |
| void | renounceArray (SG::VarHandleKeyArray &handlesArray) |
| remove all handles from I/O resolution | |
| std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > | renounce (T &h) |
| void | extraDeps_update_handler (Gaudi::Details::PropertyBase &ExtraDeps) |
| Add StoreName to extra input/output deps as needed. | |
Protected Attributes | |
Properties | |
| std::string | m_mcEventKey {} |
| StoreGate key for the MC event collection (defaults to GEN_EVENT) | |
| BooleanProperty | m_mkMcEvent {this, "MakeMcEvent", false, "Create a new MC event collection if it doesn't exist"} |
| Flag to determine if a new MC event collection should be made if it doesn't exist. | |
Private Types | |
| typedef ServiceHandle< StoreGateSvc > | StoreGateSvc_t |
Private Member Functions | |
| double | getParticleMass (int pdgID) |
| void | addParticle (HepMC::GenVertexPtr, int pdg, HepMC::FourVector, int statusCode) |
| double | rnd_ExpLifetime (CLHEP::HepRandomEngine *engine, double ct) |
| double | rnd_DoubleRange (CLHEP::HepRandomEngine *engine, double a, double b) |
| double | cosgen (CLHEP::HepRandomEngine *engine, int itype) |
| StatusCode | DFTwoBodyDecay (CLHEP::HepRandomEngine *engine, HepMC::GenParticlePtr, int) |
| StatusCode | setDecayPosition (CLHEP::HepRandomEngine *engine, HepMC::GenParticlePtr, HepMC::GenEvent *, bool doScalarDecay=false) |
| StatusCode | changeMass (HepMC::GenParticlePtr, double) |
| StatusCode | getDecayProducts (CLHEP::HepRandomEngine *engine, CLHEP::HepLorentzVector, double, std::vector< CLHEP::HepLorentzVector > &, int decayType=0) |
| Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &) |
| specialization for handling Gaudi::Property<SG::VarHandleKey> | |
Features for derived classes to use internally | |
| ServiceHandle< IAthRNGSvc > | m_rndmSvc {this, "RndmSvc", "AthRNGSvc"} |
| Data members. | |
| ServiceHandle< IIncidentSvc > | m_incidentSvc {this, "IncidentSvc", "IncidentSvc"} |
| Handle on the incident service. | |
| IntegerProperty | m_randomSeed {this, "RandomSeed", 1234567, "Random seed for the built-in random engine"} |
| Seed for random number engine. | |
| BooleanProperty | m_isAfterburner {this, "IsAfterburner", false, "Set true if generator modifies existing events rather than creating new ones"} |
| Flag for normal vs. afterburner generators. | |
| CLHEP::HepRandomEngine * | getRandomEngine (const std::string &streamName, const EventContext &ctx) const |
| CLHEP::HepRandomEngine * | getRandomEngine (const std::string &streamName, unsigned long int randomSeedOffset, const EventContext &ctx) const |
| CLHEP::HepRandomEngine * | getRandomEngineDuringInitialize (const std::string &streamName, unsigned long int randomSeedOffset, unsigned int conditionsRun=1, unsigned int lbn=1) const |
Utility event-mangling functions | |
| ServiceHandle< IPartPropSvc > | m_ppSvc {this, "PartPropSvc", "PartPropSvc"} |
| Handle on the particle property service. | |
| SG::ReadHandleKey< McEventCollection > | m_mcevents_const { this, "McEventKey", "GEN_EVENT", "StoreGate key of the MC event collection" } |
| Const handle to the MC event collection. | |
| void | GeVToMeV (HepMC::GenEvent *evt) |
| Scale event energies/momenta by x 1000. | |
| void | MeVToGeV (HepMC::GenEvent *evt) |
| Scale event energies/momenta by x 1/1000. | |
| void | cmTomm (HepMC::GenEvent *evt) |
| Scale event lengths by x 10. | |
| void | mmTocm (HepMC::GenEvent *evt) |
| Scale event lengths by x 1/10. | |
Definition at line 26 of file ParticleDecayer.h.
|
privateinherited |
Definition at line 388 of file AthCommonDataStore.h.
| ParticleDecayer::ParticleDecayer | ( | const std::string & | name, |
| ISvcLocator * | pSvcLocator ) |
Definition at line 223 of file ParticleDecayer.cxx.
|
default |
|
private |
Definition at line 440 of file ParticleDecayer.cxx.
|
inlineinherited |
Access the current signal event (first in the McEventCollection)
Definition at line 76 of file GenBase.h.
|
inherited |
Access the current event's McEventCollection.
|
inlinevirtualinherited |
For calling the generator on each iteration of the event loop.
Reimplemented in BeamHaloGeneratorAlg, CosmicGenerator, Epos, Herwig7, Hijing, Hydjet, MultiParticleGunPileup, MultiPy8Pileup, Pythia8_i, Pythia8B_i, Sherpa_i, Starlight_i, and TrackRecordGenerator.
Definition at line 66 of file GenModule.h.
|
private |
Definition at line 94 of file ParticleDecayer.cxx.
|
protectedinherited |
Scale event lengths by x 10.
Definition at line 78 of file GenBase.cxx.
|
private |
Definition at line 47 of file ParticleDecayer.cxx.
|
inlineprivateinherited |
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
|
inlineinherited |
Definition at line 145 of file AthCommonDataStore.h.
|
inlineinherited |
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
Definition at line 95 of file AthCommonDataStore.h.
|
private |
Definition at line 470 of file ParticleDecayer.cxx.
|
inlineinherited |
Access the current signal event (const)
Definition at line 83 of file GenBase.h.
|
inlineinherited |
Access the current event's McEventCollection (const)
|
inlineinherited |
Definition at line 99 of file GenBase.h.
|
inlineinherited |
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
Definition at line 85 of file AthCommonDataStore.h.
|
virtualinherited |
Reimplemented from GenBase.
Definition at line 70 of file GenModule.cxx.
|
protectedinherited |
Add StoreName to extra input/output deps as needed.
use the logic of the VarHandleKey to parse the DataObjID keys supplied via the ExtraInputs and ExtraOuputs Properties to add the StoreName if it's not explicitly given
|
overridevirtualinherited |
Return the list of extra output dependencies.
This list is extended to include symlinks implied by inheritance relations.
Definition at line 50 of file AthAlgorithm.cxx.
|
virtual |
For filling the HepMC event object.
*** Now allow the two-body decay of the particle
*** Now allow the two-body decay of the scalar
Implements GenModule.
Definition at line 290 of file ParticleDecayer.cxx.
|
inlineinherited |
Definition at line 55 of file GenModule.h.
|
inlinevirtualinherited |
For finalising the generator, if required.
Reimplemented in BeamHaloGeneratorAlg, CosmicGenerator, Epos, Herwig7, Hijing, Hydjet, MultiParticleGunPileup, MultiPy8Pileup, Pythia8_i, Pythia8B_i, Sherpa_i, and Starlight_i.
Definition at line 70 of file GenModule.h.
|
virtual |
For initializing the generator, if required.
Reimplemented from GenModule.
Definition at line 257 of file ParticleDecayer.cxx.
|
inlinevirtualinherited |
For initialization of user code, if required. Called after genInitialize.
Reimplemented in Pythia8B_i.
Definition at line 64 of file GenModule.h.
|
private |
Definition at line 527 of file ParticleDecayer.cxx.
|
private |
Definition at line 459 of file ParticleDecayer.cxx.
|
protectedinherited |
Definition at line 34 of file GenModule.cxx.
|
protectedinherited |
Definition at line 44 of file GenModule.cxx.
|
protectedinherited |
Definition at line 53 of file GenModule.cxx.
|
protectedinherited |
Scale event energies/momenta by x 1000.
Definition at line 58 of file GenBase.cxx.
|
virtualinherited |
Reimplemented from GenBase.
Definition at line 21 of file GenModule.cxx.
|
overridevirtualinherited |
Return this algorithm's input handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
|
protectedinherited |
Scale event energies/momenta by x 1/1000.
Definition at line 68 of file GenBase.cxx.
|
protectedinherited |
Scale event lengths by x 1/10.
Definition at line 87 of file GenBase.cxx.
|
inlineinherited |
Definition at line 24 of file AthCommonMsg.h.
|
inlineinherited |
Definition at line 30 of file AthCommonMsg.h.
|
overridevirtualinherited |
Return this algorithm's output handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
|
inlineinherited |
Access an element in the particle data table.
Definition at line 126 of file GenBase.h.
|
inlineinherited |
Get a particle data table.
Definition at line 118 of file GenBase.h.
|
inlineinherited |
|
inlineinherited |
Shorter alias to get a particle data table.
Definition at line 123 of file GenBase.h.
|
inlineprotectedinherited |
Definition at line 380 of file AthCommonDataStore.h.
|
inlineprotectedinherited |
remove all handles from I/O resolution
Definition at line 364 of file AthCommonDataStore.h.
|
private |
Definition at line 39 of file ParticleDecayer.cxx.
|
private |
Definition at line 32 of file ParticleDecayer.cxx.
|
private |
Definition at line 118 of file ParticleDecayer.cxx.
|
overridevirtualinherited |
Override sysInitialize.
Override sysInitialize from the base class.
Loop through all output handles, and if they're WriteCondHandles, automatically register them and this Algorithm with the CondSvc
Scan through all outputHandles, and if they're WriteCondHandles, register them with the CondSvc
Reimplemented from AthCommonDataStore< AthCommonMsg< Algorithm > >.
Reimplemented in AthAnalysisAlgorithm, AthFilterAlgorithm, AthHistogramAlgorithm, and PyAthena::Alg.
Definition at line 66 of file AthAlgorithm.cxx.
|
overridevirtualinherited |
Handle START transition.
We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.
|
inlineinherited |
Definition at line 308 of file AthCommonDataStore.h.
|
private |
Definition at line 73 of file ParticleDecayer.h.
|
private |
Definition at line 92 of file ParticleDecayer.h.
|
private |
Definition at line 61 of file ParticleDecayer.h.
|
private |
Definition at line 63 of file ParticleDecayer.h.
|
private |
Definition at line 65 of file ParticleDecayer.h.
|
privateinherited |
Pointer to StoreGate (detector store by default)
Definition at line 393 of file AthCommonDataStore.h.
|
private |
Definition at line 68 of file ParticleDecayer.h.
|
private |
Definition at line 67 of file ParticleDecayer.h.
|
private |
Definition at line 74 of file ParticleDecayer.h.
|
private |
Definition at line 100 of file ParticleDecayer.h.
|
privateinherited |
Pointer to StoreGate (event store by default)
Definition at line 390 of file AthCommonDataStore.h.
|
private |
Definition at line 71 of file ParticleDecayer.h.
|
private |
Definition at line 69 of file ParticleDecayer.h.
|
private |
Definition at line 70 of file ParticleDecayer.h.
|
privateinherited |
Definition at line 79 of file AthAlgorithm.h.
|
privateinherited |
Handle on the incident service.
Definition at line 101 of file GenModule.h.
|
protectedinherited |
Flag for normal vs. afterburner generators.
Definition at line 87 of file GenModule.h.
|
private |
Definition at line 42 of file ParticleDecayer.h.
|
protectedinherited |
|
privateinherited |
|
private |
Definition at line 58 of file ParticleDecayer.h.
|
private |
Definition at line 50 of file ParticleDecayer.h.
|
private |
Definition at line 52 of file ParticleDecayer.h.
|
private |
Definition at line 48 of file ParticleDecayer.h.
|
private |
Definition at line 54 of file ParticleDecayer.h.
|
private |
Definition at line 56 of file ParticleDecayer.h.
|
private |
Definition at line 77 of file ParticleDecayer.h.
|
private |
Definition at line 94 of file ParticleDecayer.h.
|
private |
Definition at line 96 of file ParticleDecayer.h.
|
private |
Definition at line 98 of file ParticleDecayer.h.
|
privateinherited |
|
protectedinherited |
Seed for random number engine.
Definition at line 84 of file GenModule.h.
|
privateinherited |
|
private |
Definition at line 46 of file ParticleDecayer.h.
|
private |
Definition at line 44 of file ParticleDecayer.h.
|
private |
Definition at line 75 of file ParticleDecayer.h.
|
private |
Definition at line 40 of file ParticleDecayer.h.
|
privateinherited |
Definition at line 399 of file AthCommonDataStore.h.
|
privateinherited |
Definition at line 398 of file AthCommonDataStore.h.