![]() |
ATLAS Offline Software
|
#include <Sherpa_i.h>
Public Member Functions | |
| Sherpa_i (const std::string &name, ISvcLocator *pSvcLocator) | |
| StatusCode | genInitialize () |
| For initializing the generator, if required. | |
| StatusCode | callGenerator () |
| For calling the generator on each iteration of the event loop. | |
| StatusCode | genFinalize () |
| For finalising the generator, if required. | |
| StatusCode | fillEvt (HepMC::GenEvent *evt) |
| For filling the HepMC event object. | |
| void | getParameters (int &argc, char **&argv) |
| void | compilePlugin (const std::string &) |
| 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 | |
| SHERPA::Sherpa * | p_sherpa {} |
| std::string | m_basefragment |
| Sherpa base settings (read from base fragment file) | |
| StringProperty | m_runcard {this, "RunCard", ""} |
| FIXME unused? | |
| StringArrayProperty | m_params {this, "Parameters", {} } |
| List of additional Sherpa parameters beyond run card snippet (from JO file) | |
| StringArrayProperty | m_openloopslibs {this, "OpenLoopsLibs", {} } |
| List of needed OpenLoops process libraries (from JO file) | |
| StringArrayProperty | m_extrafiles {this, "ExtraFiles", {} } |
| List of any additional needed files, e.g. custom libraries, PDF sets (from JO file) | |
| IntegerProperty | m_ncores {this, "NCores", 1} |
| Number of cores recommended for multi-core integration file. | |
| DoubleProperty | m_memorymb {this, "MemoryMB", 2500.} |
| Memory required for integration/evgen. | |
| StringProperty | m_plugincode {this, "PluginCode", ""} |
| Optional code for plugin library to compile and load at run time. | |
| DoubleProperty | m_variation_weight_cap {this, "VariationWeightCap", 10.0} |
| Variation weight cap factor. | |
| DoubleProperty | m_xsscale {this, "CrossSectionScaleFactor", 1.0} |
| BooleanProperty | m_cleanup {this, "CleanupGeneratedFiles", true} |
| IntegerProperty | m_dsid {this, "Dsid", 999999, "Dataset ID number"} |
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 | |
| 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 |
Features for derived classes to use internally | |
| 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. | |
| ServiceHandle< IAthRNGSvc > | m_rndmSvc {this, "RndmSvc", "AthRNGSvc"} |
| Data members. | |
| ServiceHandle< IIncidentSvc > | m_incidentSvc {this, "IncidentSvc", "IncidentSvc"} |
| Handle on the incident service. | |
| 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 18 of file Sherpa_i.h.
|
privateinherited |
Definition at line 388 of file AthCommonDataStore.h.
| Sherpa_i::Sherpa_i | ( | const std::string & | name, |
| ISvcLocator * | pSvcLocator ) |
Definition at line 39 of file Sherpa_i.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 |
For calling the generator on each iteration of the event loop.
Reimplemented from GenModule.
Definition at line 184 of file Sherpa_i.cxx.
|
protectedinherited |
Scale event lengths by x 10.
Definition at line 78 of file GenBase.cxx.
| void Sherpa_i::compilePlugin | ( | const std::string & | pluginCode | ) |
Definition at line 341 of file Sherpa_i.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 |
For filling the HepMC event object.
Implements GenModule.
Definition at line 204 of file Sherpa_i.cxx.
|
inlineinherited |
Definition at line 55 of file GenModule.h.
|
virtual |
For finalising the generator, if required.
Reimplemented from GenModule.
Definition at line 253 of file Sherpa_i.cxx.
|
virtual |
For initializing the generator, if required.
Reimplemented from GenModule.
Definition at line 50 of file Sherpa_i.cxx.
|
inlinevirtualinherited |
For initialization of user code, if required. Called after genInitialize.
Reimplemented in Pythia8B_i.
Definition at line 64 of file GenModule.h.
| void Sherpa_i::getParameters | ( | int & | argc, |
| char **& | argv ) |
Definition at line 277 of file Sherpa_i.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.
|
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.
|
protected |
Sherpa base settings (read from base fragment file)
Definition at line 39 of file Sherpa_i.h.
|
protected |
Definition at line 67 of file Sherpa_i.h.
|
privateinherited |
Pointer to StoreGate (detector store by default)
Definition at line 393 of file AthCommonDataStore.h.
|
protected |
Definition at line 70 of file Sherpa_i.h.
|
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.
|
protected |
List of any additional needed files, e.g. custom libraries, PDF sets (from JO file)
Definition at line 52 of file Sherpa_i.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.
|
protectedinherited |
|
privateinherited |
|
protected |
Memory required for integration/evgen.
Definition at line 58 of file Sherpa_i.h.
|
protected |
Number of cores recommended for multi-core integration file.
Definition at line 55 of file Sherpa_i.h.
|
protected |
List of needed OpenLoops process libraries (from JO file)
Definition at line 49 of file Sherpa_i.h.
|
protected |
List of additional Sherpa parameters beyond run card snippet (from JO file)
Definition at line 45 of file Sherpa_i.h.
|
protected |
Optional code for plugin library to compile and load at run time.
Definition at line 61 of file Sherpa_i.h.
|
privateinherited |
|
protectedinherited |
Seed for random number engine.
Definition at line 84 of file GenModule.h.
|
privateinherited |
|
protected |
FIXME unused?
Sherpa run card snippet (from JO file)
Definition at line 42 of file Sherpa_i.h.
|
privateinherited |
Definition at line 399 of file AthCommonDataStore.h.
|
protected |
Variation weight cap factor.
Definition at line 64 of file Sherpa_i.h.
|
privateinherited |
Definition at line 398 of file AthCommonDataStore.h.
|
protected |
Definition at line 66 of file Sherpa_i.h.
|
protected |
Definition at line 32 of file Sherpa_i.h.