![]() |
ATLAS Offline Software
|
#include <Herwig7.h>
Public Member Functions | |
| Herwig7 (const std::string &name, ISvcLocator *pSvcLocator) | |
| Constructor. | |
| StatusCode | genInitialize () |
| Initialize the generator. | |
| StatusCode | callGenerator () |
| Run the generator for one event. | |
| StatusCode | fillEvt (HepMC::GenEvent *evt) |
| Convert the generated event into the HepMC format. | |
| StatusCode | genFinalize () |
| Close down the generator. | |
| 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. | |
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 | |
| Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &) |
| specialization for handling Gaudi::Property<SG::VarHandleKey> | |
Private Attributes | |
| Herwig7API | m_api |
| Herwig7 API object. | |
| ThePEG::EGPtr | m_gen |
| ThePEG generator object. | |
| ThePEG::EventPtr | m_event |
| ThePEG event object. | |
| DataObjIDColl | m_extendedExtraObjects |
| StoreGateSvc_t | m_evtStore |
| Pointer to StoreGate (event store by default) | |
| StoreGateSvc_t | m_detStore |
| Pointer to StoreGate (detector store by default) | |
| std::vector< SG::VarHandleKeyArray * > | m_vhka |
| bool | m_varHandleArraysDeclared |
Properties | |
| std::string | m_runname |
| Run name, used in the Herwig/ThePEG config system. | |
| std::string | m_runfile |
| Name of run file. | |
| std::string | m_setupfile |
| Name of setup file. | |
| bool | m_use_seed_from_generatetf |
| Ignore random number seed provided by athena and use the one from Generate_tf.py instead. | |
| int | m_seed_from_generatetf |
| Random number seed from Generate_tf.py. | |
| std::string | m_pdfname_me |
| ME PDF name, stored for AMI capture at finalize. | |
| std::string | m_pdfname_mpi |
| PS PDF name, stored for AMI capture at finalize. | |
| bool | m_cleanup_herwig_scratch |
| Possibly remove Herwig-scratch folder after finishing the event generation. | |
| double | m_xsscale |
| Scale integrated cross section by a factor for MetaData output. | |
| int | m_dsid |
| Gen_tf.py run args needed in interface. | |
| SG::ReadHandleKey< xAOD::EventInfo > | m_evtInfoKey |
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. | |
|
privateinherited |
Definition at line 388 of file AthCommonDataStore.h.
| Herwig7::Herwig7 | ( | const std::string & | name, |
| ISvcLocator * | pSvcLocator ) |
Constructor.
Definition at line 39 of file Herwig7.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.
|
virtual |
Run the generator for one event.
Run the generator for one event and store the event internally.
Reimplemented from GenModule.
Definition at line 152 of file Herwig7.cxx.
|
protectedinherited |
Scale event lengths by x 10.
Definition at line 78 of file GenBase.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.
|
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 |
Convert the generated event into the HepMC format.
Fill HepMC event from Herwig's internally stored EventPtr.
Implements GenModule.
Definition at line 167 of file Herwig7.cxx.
|
inlineinherited |
Definition at line 55 of file GenModule.h.
|
virtual |
Close down the generator.
Tidy up, print out run stats, etc.
Reimplemented from GenModule.
Definition at line 241 of file Herwig7.cxx.
|
virtual |
Initialize the generator.
Reimplemented from GenModule.
Definition at line 67 of file Herwig7.cxx.
|
inlinevirtualinherited |
For initialization of user code, if required. Called after genInitialize.
Reimplemented in Pythia8B_i.
Definition at line 64 of file GenModule.h.
|
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.
|
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 |
|
private |
|
privateinherited |
Pointer to StoreGate (detector store by default)
Definition at line 393 of file AthCommonDataStore.h.
|
private |
|
private |
|
private |
|
privateinherited |
Pointer to StoreGate (event store by default)
Definition at line 390 of file AthCommonDataStore.h.
|
privateinherited |
Definition at line 79 of file AthAlgorithm.h.
|
private |
|
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.
|
protectedinherited |
|
privateinherited |
|
private |
|
private |
|
privateinherited |
|
protectedinherited |
Seed for random number engine.
Definition at line 84 of file GenModule.h.
|
privateinherited |
|
private |
|
private |
|
private |
|
private |
|
privateinherited |
Definition at line 399 of file AthCommonDataStore.h.
|
privateinherited |
Definition at line 398 of file AthCommonDataStore.h.
|
private |