|
ATLAS Offline Software
|
Interface to athena.
More...
#include <Herwig7.h>
|
| Herwig7 (const std::string &name, ISvcLocator *pSvcLocator) |
| Constructor. More...
|
|
StatusCode | genInitialize () |
| Initialize the generator. More...
|
|
StatusCode | callGenerator () |
| Run the generator for one event. More...
|
|
StatusCode | fillEvt (HepMC::GenEvent *evt) |
| Convert the generated event into the HepMC format. More...
|
|
StatusCode | genFinalize () |
| Close down the generator. More...
|
|
virtual StatusCode | sysInitialize () override |
| Override sysInitialize. More...
|
|
virtual const DataObjIDColl & | extraOutputDeps () const override |
| Return the list of extra output dependencies. More...
|
|
ServiceHandle< StoreGateSvc > & | evtStore () |
| The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
const ServiceHandle< StoreGateSvc > & | evtStore () const |
| The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
const ServiceHandle< StoreGateSvc > & | detStore () const |
| The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
virtual StatusCode | sysStart () override |
| Handle START transition. More...
|
|
virtual std::vector< Gaudi::DataHandle * > | inputHandles () const override |
| Return this algorithm's input handles. More...
|
|
virtual std::vector< Gaudi::DataHandle * > | outputHandles () const override |
| Return this algorithm's output handles. More...
|
|
Gaudi::Details::PropertyBase & | declareProperty (Gaudi::Property< T > &t) |
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleKey &hndl, const std::string &doc, const SG::VarHandleKeyType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleBase &hndl, const std::string &doc, const SG::VarHandleType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleKeyArray &hndArr, const std::string &doc, const SG::VarHandleKeyArrayType &) |
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, T &property, const std::string &doc, const SG::NotHandleType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, T &property, const std::string &doc="none") |
| Declare a new Gaudi property. More...
|
|
void | updateVHKA (Gaudi::Details::PropertyBase &) |
|
MsgStream & | msg () const |
|
MsgStream & | msg (const MSG::Level lvl) const |
|
bool | msgLvl (const MSG::Level lvl) const |
|
|
ServiceHandle< IAthRNGSvc > | m_rndmSvc {this, "RndmSvc", "AthRNGSvc"} |
| Data members. More...
|
|
ServiceHandle< IIncidentSvc > | m_incidentSvc {this, "IncidentSvc", "IncidentSvc"} |
| Handle on the incident service. More...
|
|
IntegerProperty | m_randomSeed {this, "RandomSeed", 1234567, "Random seed for the built-in random engine"} |
| Seed for random number engine. More...
|
|
BooleanProperty | m_isAfterburner {this, "IsAfterburner", false, "Set true if generator modifies existing events rather than creating new ones"} |
| Flag for normal vs. afterburner generators. More...
|
|
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 |
|
Interface to athena.
Definition at line 133 of file Herwig7.h.
◆ StoreGateSvc_t
◆ Herwig7()
Herwig7::Herwig7 |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
pSvcLocator |
|
) |
| |
◆ ATLAS_NOT_CONST_THREAD_SAFE() [1/2]
HepMC::GenEvent* event GenBase::ATLAS_NOT_CONST_THREAD_SAFE |
( |
| ) |
|
|
inlineinherited |
Access the current signal event (first in the McEventCollection)
- Note
- This function will make a new McEventCollection if there is not already a valid one and MakeMcEvent=True.
Definition at line 76 of file GenBase.h.
78 ATH_MSG_ERROR(
"McEventCollection is empty during first event access");
79 return *(
events()->begin());
◆ ATLAS_NOT_CONST_THREAD_SAFE() [2/2]
◆ callGenerator()
StatusCode Herwig7::callGenerator |
( |
| ) |
|
|
virtual |
Run the generator for one event.
Run the generator for one event and store the event internally.
Reimplemented from GenModule.
Definition at line 164 of file Herwig7.cxx.
168 return StatusCode::SUCCESS;
◆ cmTomm()
void GenBase::cmTomm |
( |
HepMC::GenEvent * |
evt | ) |
|
|
protectedinherited |
Scale event lengths by x 10.
Definition at line 78 of file GenBase.cxx.
79 for (HepMC::GenEvent::vertex_iterator vtx =
evt->vertices_begin(); vtx !=
evt->vertices_end(); ++vtx) {
80 const HepMC::FourVector fv((*vtx)->position().x() * 10,
81 (*vtx)->position().y() * 10,
82 (*vtx)->position().z() * 10,
83 (*vtx)->position().t() * 10);
84 (*vtx)->set_position(fv);
◆ declareGaudiProperty() [1/4]
specialization for handling Gaudi::Property<SG::VarHandleKeyArray>
Definition at line 170 of file AthCommonDataStore.h.
175 hndl.documentation());
◆ declareGaudiProperty() [2/4]
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
161 hndl.documentation());
◆ declareGaudiProperty() [3/4]
specialization for handling Gaudi::Property<SG::VarHandleBase>
Definition at line 184 of file AthCommonDataStore.h.
189 hndl.documentation());
◆ declareGaudiProperty() [4/4]
◆ declareProperty() [1/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation string for the property. |
This is the version for types that derive from SG::VarHandleBase
. The property value object is put on the input and output lists as appropriate; then we forward to the base class.
Definition at line 245 of file AthCommonDataStore.h.
250 this->declare(hndl.
vhKey());
251 hndl.
vhKey().setOwner(
this);
253 return PBASE::declareProperty(
name,hndl,
doc);
◆ declareProperty() [2/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation string for the property. |
This is the version for types that derive from SG::VarHandleKey
. The property value object is put on the input and output lists as appropriate; then we forward to the base class.
Definition at line 221 of file AthCommonDataStore.h.
229 return PBASE::declareProperty(
name,hndl,
doc);
◆ declareProperty() [3/6]
◆ declareProperty() [4/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation string for the property. |
This is the generic version, for types that do not derive from SG::VarHandleKey
. It just forwards to the base class version of declareProperty
.
Definition at line 333 of file AthCommonDataStore.h.
338 return PBASE::declareProperty(
name, property,
doc);
◆ declareProperty() [5/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation string for the property. |
This dispatches to either the generic declareProperty
or the one for VarHandle/Key/KeyArray.
Definition at line 352 of file AthCommonDataStore.h.
◆ declareProperty() [6/6]
◆ detStore()
◆ event_const()
const HepMC::GenEvent* GenBase::event_const |
( |
| ) |
const |
|
inlineinherited |
Access the current signal event (const)
Definition at line 83 of file GenBase.h.
85 ATH_MSG_ERROR(
"Const McEventCollection is empty during first event access");
◆ events_const() [1/2]
◆ events_const() [2/2]
◆ evtStore() [1/2]
◆ evtStore() [2/2]
◆ execute()
StatusCode GenModule::execute |
( |
| ) |
|
|
virtualinherited |
- Todo:
- Remove hard-coded alg name checking (already incomplete)
Reimplemented from GenBase.
Definition at line 70 of file GenModule.cxx.
105 if (
name() ==
"ParticleDecayer") {
112 return StatusCode::SUCCESS;
◆ extraDeps_update_handler()
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
◆ extraOutputDeps()
const DataObjIDColl & AthAlgorithm::extraOutputDeps |
( |
| ) |
const |
|
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.
57 return Algorithm::extraOutputDeps();
◆ fillEvt()
StatusCode Herwig7::fillEvt |
( |
HepMC::GenEvent * |
evt | ) |
|
|
virtual |
Convert the generated event into the HepMC format.
Fill HepMC event from Herwig's internally stored EventPtr.
- Todo:
- Conversion to HepMC format will possibly be provided by the authors as part of a higher-level API.
Implements GenModule.
Definition at line 179 of file Herwig7.cxx.
181 ATH_MSG_DEBUG(
"Converting ThePEG::Event to HepMC::GenEvent");
183 if (!
evt->run_info())
evt->set_run_info(m_runinfo);
191 evt->set_event_number(evtInfo->eventNumber());
194 const EventContext& ctx = Gaudi::Hive::currentContext();
196 std::vector<long> seeds(
s,
s+2);
197 ATH_MSG_DEBUG(
"Random seeds: " << seeds[0] <<
", " << seeds[1]);
201 if (
evt->weights().empty()) {
208 ThePEG::tSubProPtr sub =
m_event->primarySubProcess();
209 int id1 = sub->incoming().first ->id();
210 int id2 = sub->incoming().second->id();
212 ThePEG::tcEHPtr eh = ThePEG::dynamic_ptr_cast<ThePEG::tcEHPtr>(
m_event->handler());
214 double x1 = eh->lastX1();
215 double x2 = eh->lastX2();
217 std::pair<ThePEG::PDF,ThePEG::PDF> pdfs;
218 pdfs.first = eh->pdf<
ThePEG::PDF>(sub->incoming().first);
219 pdfs.second = eh->pdf<
ThePEG::PDF>(sub->incoming().second);
221 ThePEG::Energy2
scale = eh->lastScale();
222 double Q = std::sqrt(
scale/ThePEG::GeV2);
224 double pdf1 = pdfs.first.xfx(sub->incoming().first ->dataPtr(),
scale,
x1);
225 double pdf2 = pdfs.first.xfx(sub->incoming().second->dataPtr(),
scale,
x2);
229 pdfi->set(id1,
id2,
x1,
x2, Q, pdf1, pdf2);
231 HepMC::PdfInfo pdfi(id1,
id2,
x1,
x2, Q, pdf1, pdf2);
233 evt->set_pdf_info(pdfi);
245 return StatusCode::SUCCESS;
◆ finalize()
StatusCode GenModule::finalize |
( |
| ) |
|
|
inlineinherited |
◆ genFinalize()
StatusCode Herwig7::genFinalize |
( |
| ) |
|
|
virtual |
Close down the generator.
Tidy up, print out run stats, etc.
- Todo:
- Think of other way to wait for all access to terminate
Reimplemented from GenModule.
Definition at line 253 of file Herwig7.cxx.
256 ATH_MSG_INFO(
"MetaData: generator = Herwig7 " << HWVERSION );
261 ThePEG::Repository::cleanup();
264 if (
m_cleanup_herwig_scratch && (std::filesystem::is_directory(
"Herwig-scratch") || std::filesystem::is_directory(
"Herwig-cache"))){
266 ATH_MSG_INFO(
"removing Herwig-scratch/Herwig-cache folder from "+std::filesystem::current_path().
string());
273 (std::filesystem::remove_all(
"Herwig-scratch") || std::filesystem::remove_all(
"Herwig-cache"));
276 ATH_MSG_WARNING(
"Failed to delete the folder 'Herwig-scratch': "+std::string(
e.what()));
281 return StatusCode::SUCCESS;
◆ genInitialize()
StatusCode Herwig7::genInitialize |
( |
| ) |
|
|
virtual |
Initialize the generator.
- Todo:
- Higher-level API to be provided by the Herwig authors to allow for slimmer interface and for usage of more advanced features such as the setupfile mechanism for modifying existing runfiles.
Reimplemented from GenModule.
Definition at line 66 of file Herwig7.cxx.
74 const long* seeds = engine->getSeeds();
79 int32_t combined_seed = std::abs(seeds[0] * seeds[1]);
81 std::ostringstream ss_seed;
82 ss_seed << combined_seed;
88 ATH_MSG_INFO(
"Using the random number seed " + ss_seed.str() +
" provided by athena");
94 ThePEG::Repository::exitOnError() = 1;
97 char* env1 =
getenv(
"CMTPATH");
98 char* env2 =
getenv(
"CMTCONFIG");
99 std::string reposearchpaths;
100 if (env1 ==
nullptr || env2 ==
nullptr) {
104 std::vector< std::string > datapaths;
106 boost::is_any_of( std::string(
":" ) ) );
107 for(
const std::string&
p : datapaths ) {
108 ThePEG::Repository::appendReadDir(
p );
110 const char* ldpath =
getenv(
"LD_LIBRARY_PATH" );
111 std::vector< std::string > ldpaths;
112 boost::split( ldpaths, ldpath, boost::is_any_of( std::string(
":" ) ) );
113 for(
const std::string&
p : ldpaths ) {
114 ThePEG::DynamicLoader::appendPath(
p );
117 std::vector<std::string> cmtpaths;
118 boost::split(cmtpaths, env1, boost::is_any_of(std::string(
":")));
119 const std::string cmtconfig = env2;
120 const std::string sharepath =
"/InstallArea/" + cmtconfig +
"/share";
121 const std::string libpath =
"/InstallArea/" + cmtconfig +
"/lib";
123 for(
const std::string&
p: cmtpaths) {
124 const std::string cmtsharepath =
p + sharepath;
125 ATH_MSG_DEBUG(
"Appending " + cmtsharepath +
" to ThePEG repository and command file search paths");
126 reposearchpaths = reposearchpaths + (reposearchpaths.length() == 0 ?
"" :
":") + cmtsharepath;
127 ThePEG::Repository::appendReadDir(cmtsharepath);
128 const std::string cmtlibpath =
p + libpath;
129 ATH_MSG_DEBUG(
"Appending " + cmtlibpath +
" to ThePEG loader search path");
130 ThePEG::DynamicLoader::appendPath(cmtlibpath);
133 ATH_MSG_DEBUG(
"Num of library search paths = " << ThePEG::DynamicLoader::allPaths().
size());
137 ATH_MSG_DEBUG(
"Loading Herwig default repo from " << repopath);
139 ATH_MSG_DEBUG(
"Successfully loaded Herwig default repository");
147 m_runinfo = std::make_shared<HepMC3::GenRunInfo>();
149 struct HepMC3::GenRunInfo::ToolInfo
generator={std::string(
"Herwig7"), std::string(
"7"), std::string(
"Used generator")};
156 return StatusCode::SUCCESS;
◆ genuserInitialize()
virtual StatusCode GenModule::genuserInitialize |
( |
| ) |
|
|
inlinevirtualinherited |
For initialization of user code, if required. Called after genInitialize.
Reimplemented in Pythia8B_i.
Definition at line 64 of file GenModule.h.
64 {
return StatusCode::SUCCESS; }
◆ getRandomEngine() [1/2]
CLHEP::HepRandomEngine * GenModule::getRandomEngine |
( |
const std::string & |
streamName, |
|
|
const EventContext & |
ctx |
|
) |
| const |
|
protectedinherited |
◆ getRandomEngine() [2/2]
CLHEP::HepRandomEngine * GenModule::getRandomEngine |
( |
const std::string & |
streamName, |
|
|
unsigned long int |
randomSeedOffset, |
|
|
const EventContext & |
ctx |
|
) |
| const |
|
protectedinherited |
◆ getRandomEngineDuringInitialize()
CLHEP::HepRandomEngine * GenModule::getRandomEngineDuringInitialize |
( |
const std::string & |
streamName, |
|
|
unsigned long int |
randomSeedOffset, |
|
|
unsigned int |
conditionsRun = 1 , |
|
|
unsigned int |
lbn = 1 |
|
) |
| const |
|
protectedinherited |
Definition at line 53 of file GenModule.cxx.
58 ctx.setEventID (EventIDBase (conditionsRun,
59 EventIDBase::UNDEFEVT,
60 EventIDBase::UNDEFNUM,
61 EventIDBase::UNDEFNUM,
◆ GeVToMeV()
void GenBase::GeVToMeV |
( |
HepMC::GenEvent * |
evt | ) |
|
|
protectedinherited |
Scale event energies/momenta by x 1000.
- Todo:
- Add HepMC units awareness and do it differently when HepMC provides this functionality directly (and reference-based FourVector accessors)
Definition at line 58 of file GenBase.cxx.
59 for (HepMC::GenEvent::particle_iterator
p =
evt->particles_begin();
p !=
evt->particles_end(); ++
p) {
60 const HepMC::FourVector fv((*p)->momentum().px() * 1000,
61 (*p)->momentum().py() * 1000,
62 (*p)->momentum().pz() * 1000,
63 (*p)->momentum().e() * 1000);
64 (*p)->set_momentum(fv);
65 (*p)->set_generated_mass(1000 * (*p)->generated_mass());
◆ initialize()
StatusCode GenModule::initialize |
( |
| ) |
|
|
virtualinherited |
◆ inputHandles()
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.
◆ MeVToGeV()
void GenBase::MeVToGeV |
( |
HepMC::GenEvent * |
evt | ) |
|
|
protectedinherited |
Scale event energies/momenta by x 1/1000.
Definition at line 68 of file GenBase.cxx.
69 for (HepMC::GenEvent::particle_iterator
p =
evt->particles_begin();
p !=
evt->particles_end(); ++
p) {
70 const HepMC::FourVector fv((*p)->momentum().px() / 1000,
71 (*p)->momentum().py() / 1000,
72 (*p)->momentum().pz() / 1000,
73 (*p)->momentum().e() / 1000);
74 (*p)->set_momentum(fv);
75 (*p)->set_generated_mass((*p)->generated_mass() / 1000);
◆ mmTocm()
void GenBase::mmTocm |
( |
HepMC::GenEvent * |
evt | ) |
|
|
protectedinherited |
Scale event lengths by x 1/10.
Definition at line 87 of file GenBase.cxx.
88 for (HepMC::GenEvent::vertex_iterator vtx =
evt->vertices_begin(); vtx !=
evt->vertices_end(); ++vtx) {
89 const HepMC::FourVector fv((*vtx)->position().x() / 10,
90 (*vtx)->position().y() / 10,
91 (*vtx)->position().z() / 10,
92 (*vtx)->position().t() / 10);
93 (*vtx)->set_position(fv);
◆ msg() [1/2]
◆ msg() [2/2]
◆ msgLvl()
◆ outputHandles()
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.
◆ particleData()
const HepPDT::ParticleData* GenBase::particleData |
( |
int |
pid | ) |
const |
|
inlineinherited |
Access an element in the particle data table.
Definition at line 126 of file GenBase.h.
◆ particleTable()
const HepPDT::ParticleDataTable& GenBase::particleTable |
( |
| ) |
const |
|
inlineinherited |
Get a particle data table.
Definition at line 118 of file GenBase.h.
◆ partPropSvc()
Access the particle property service.
Definition at line 113 of file GenBase.h.
◆ pdt()
const HepPDT::ParticleDataTable& GenBase::pdt |
( |
| ) |
const |
|
inlineinherited |
Shorter alias to get a particle data table.
Definition at line 123 of file GenBase.h.
◆ renounce()
◆ renounceArray()
◆ sysInitialize()
StatusCode AthAlgorithm::sysInitialize |
( |
| ) |
|
|
overridevirtualinherited |
◆ sysStart()
Handle START transition.
We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.
◆ updateVHKA()
◆ m_api
◆ m_cleanup_herwig_scratch
bool Herwig7::m_cleanup_herwig_scratch |
|
private |
Possibly remove Herwig-scratch folder after finishing the event generation.
Definition at line 194 of file Herwig7.h.
◆ m_detStore
◆ m_dsid
◆ m_event
ThePEG::EventPtr Herwig7::m_event |
|
private |
◆ m_evtInfoKey
Initial value:{this
, "EventInfo"
, "TMPEvtInfo"
, "ReadHandleKey for xAOD::EventInfo"}
Definition at line 202 of file Herwig7.h.
◆ m_evtStore
◆ m_extendedExtraObjects
DataObjIDColl AthAlgorithm::m_extendedExtraObjects |
|
privateinherited |
◆ m_gen
ThePEG::EGPtr Herwig7::m_gen |
|
private |
◆ m_incidentSvc
ServiceHandle<IIncidentSvc> GenModule::m_incidentSvc {this, "IncidentSvc", "IncidentSvc"} |
|
privateinherited |
Handle on the incident service.
Definition at line 101 of file GenModule.h.
◆ m_isAfterburner
BooleanProperty GenModule::m_isAfterburner {this, "IsAfterburner", false, "Set true if generator modifies existing events rather than creating new ones"} |
|
protectedinherited |
Flag for normal vs. afterburner generators.
Definition at line 87 of file GenModule.h.
◆ m_mcEventKey
std::string GenBase::m_mcEventKey {} |
|
protectedinherited |
StoreGate key for the MC event collection (defaults to GEN_EVENT)
Definition at line 137 of file GenBase.h.
◆ m_mcevents_const
Const handle to the MC event collection.
Definition at line 163 of file GenBase.h.
◆ m_mkMcEvent
BooleanProperty GenBase::m_mkMcEvent {this, "MakeMcEvent", false, "Create a new MC event collection if it doesn't exist"} |
|
protectedinherited |
Flag to determine if a new MC event collection should be made if it doesn't exist.
Definition at line 139 of file GenBase.h.
◆ m_pdfname_me
std::string Herwig7::m_pdfname_me |
|
private |
ME PDF name, stored for AMI capture at finalize.
Definition at line 185 of file Herwig7.h.
◆ m_pdfname_mpi
std::string Herwig7::m_pdfname_mpi |
|
private |
PS PDF name, stored for AMI capture at finalize.
MPI PDF name, stored for AMI capture at finalize.
Definition at line 191 of file Herwig7.h.
◆ m_ppSvc
ServiceHandle<IPartPropSvc> GenBase::m_ppSvc {this, "PartPropSvc", "PartPropSvc"} |
|
privateinherited |
Handle on the particle property service.
Definition at line 160 of file GenBase.h.
◆ m_randomSeed
IntegerProperty GenModule::m_randomSeed {this, "RandomSeed", 1234567, "Random seed for the built-in random engine"} |
|
protectedinherited |
Seed for random number engine.
Definition at line 84 of file GenModule.h.
◆ m_rndmSvc
◆ m_runfile
std::string Herwig7::m_runfile |
|
private |
◆ m_runname
std::string Herwig7::m_runname |
|
private |
Run name, used in the Herwig/ThePEG config system.
Definition at line 169 of file Herwig7.h.
◆ m_seed_from_generatetf
int Herwig7::m_seed_from_generatetf |
|
private |
◆ m_setupfile
std::string Herwig7::m_setupfile |
|
private |
Name of setup file.
Definition at line 175 of file Herwig7.h.
◆ m_use_seed_from_generatetf
bool Herwig7::m_use_seed_from_generatetf |
|
private |
Ignore random number seed provided by athena and use the one from Generate_tf.py instead.
Definition at line 179 of file Herwig7.h.
◆ m_varHandleArraysDeclared
◆ m_vhka
◆ m_xsscale
double Herwig7::m_xsscale |
|
private |
Scale integrated cross section by a factor for MetaData output.
Definition at line 197 of file Herwig7.h.
The documentation for this class was generated from the following files:
void setSeed(const std::string &algName, const EventContext &ctx)
Set the random seed using a string (e.g.
virtual std::string inputfile() const
Name of the file to be read.
std::string m_pdfname_mpi
PS PDF name, stored for AMI capture at finalize.
const_pointer_type cptr()
Dereference the pointer.
virtual StatusCode fillEvt(HepMC::GenEvent *evt)=0
For filling the HepMC event object.
double m_xsscale
Scale integrated cross section by a factor for MetaData output.
virtual StatusCode callGenerator()
For calling the generator on each iteration of the event loop.
std::string m_pdfname_me
ME PDF name, stored for AMI capture at finalize.
const McEventCollection * events_const() const
Access the current event's McEventCollection (const)
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
ServiceHandle< IIncidentSvc > m_incidentSvc
Handle on the incident service.
HepMC::PdfInfo * GenPdfInfoPtr
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
GenEvent * newGenEvent(const int a, const int b)
const std::string & key() const
Return the StoreGate ID for the referenced object.
int m_seed_from_generatetf
Random number seed from Generate_tf.py.
void fillBarcodesAttribute(GenEvent *)
CLHEP::HepRandomEngine * getRandomEngine(const std::string &streamName, const EventContext &ctx) const
virtual void setOwner(IDataHandleHolder *o)=0
ThePEG::EventPtr m_event
ThePEG event object.
SG::ReadHandleKey< xAOD::EventInfo > m_evtInfoKey
int m_dsid
Gen_tf.py run args needed in interface.
SG::ReadCondHandle< T > makeHandle(const SG::ReadCondHandleKey< T > &key, const EventContext &ctx=Gaudi::Hive::currentContext())
virtual StatusCode genuserInitialize()
For initialization of user code, if required. Called after genInitialize.
ServiceHandle< IAthRNGSvc > m_rndmSvc
Data members.
ServiceHandle< IPartPropSvc > m_ppSvc
Handle on the particle property service.
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
virtual StatusCode genInitialize()
For initializing the generator, if required.
virtual StatusCode sysInitialize() override
Override sysInitialize.
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
::StatusCode StatusCode
StatusCode definition for legacy code.
SG::ReadHandleKey< McEventCollection > m_mcevents_const
Const handle to the MC event collection.
BooleanProperty m_isAfterburner
Flag for normal vs. afterburner generators.
virtual StatusCode genFinalize()
For finalising the generator, if required.
#define CHECK(...)
Evaluate an expression and check for errors.
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
Herwig7API m_api
Herwig7 API object.
virtual bool isValid() override final
Can the handle be successfully dereferenced?
static std::string find_file_from_list(const std::string &logical_file_name, const std::string &search_list, SearchType search_type=LocalSearch)
virtual void renounce()=0
const HepPDT::ParticleDataTable & particleTable() const
Get a particle data table.
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
GenModule(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
A wrapper class for event-slot-local random engines.
std::string to_string(const DetectorType &type)
ThePEG::EGPtr m_gen
ThePEG generator object.
CLHEP::HepRandomEngine * getEngine(const EventContext &ctx) const
Retrieve the random engine corresponding to the provided EventContext.
DataObjIDColl m_extendedExtraObjects
generator
Configure Herwig7 These are the commands corresponding to what would go into the regular Herwig infil...
std::string getenv(const std::string &variableName)
get an environment variable
std::string m_runfile
Name of run file.
#define ATH_MSG_WARNING(x)
IntegerProperty m_randomSeed
Seed for random number engine.
const HepPDT::ParticleDataTable & pdt() const
Shorter alias to get a particle data table.
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
def load(f, use_proxy=1, key=None)
bool m_use_seed_from_generatetf
Ignore random number seed provided by athena and use the one from Generate_tf.py instead.
virtual int seed() const
The number of events to generate.
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
void setExtendedEventContext(EventContext &ctx, ExtendedEventContext &&ectx)
Move an extended context into a context object.
virtual StatusCode initialize() override
void convert_to_HepMC(const ThePEG::Event &m_event, HepMC::GenEvent &evt, bool nocopies, ThePEG::Energy eunit, ThePEG::Length lunit)
std::string m_setupfile
Name of setup file.
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.
CLHEP::HepRandomEngine * getRandomEngineDuringInitialize(const std::string &streamName, unsigned long int randomSeedOffset, unsigned int conditionsRun=1, unsigned int lbn=1) const
void set_random_states(GenEvent *e, std::vector< T > a)
bool m_cleanup_herwig_scratch
Possibly remove Herwig-scratch folder after finishing the event generation.