ATLAS Offline Software
Loading...
Searching...
No Matches
Herwig7 Class Reference

Interface to athena. More...

#include <Herwig7.h>

Inheritance diagram for Herwig7:
Collaboration diagram for Herwig7:

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.
StatusCode writeRunFileFromText (const std::string &share_path)
 Write the CA input text into a real Herwig runfile.
virtual StatusCode sysInitialize () override
 Override sysInitialize.
virtual bool isClonable () const override
 Specify if the algorithm is clonable.
virtual StatusCode sysExecute (const EventContext &ctx) override
 Execute an algorithm.
virtual const DataObjIDColl & extraOutputDeps () const override
 Return the list of extra output dependencies.
virtual bool filterPassed (const EventContext &ctx) const
 Get filter decision:
virtual void setFilterPassed (bool state, const EventContext &ctx) const
 Set filter decision:
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 (const EventContext &ctx)
 Execute method.
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 EventContext &ctx) const
 Access the current signal event (const).
const McEventCollection * events_const (const EventContext &ctx) const
 Access the current event's McEventCollection (const).

Protected Member Functions

virtual bool isReEntrant () const override final
 Legacy algorithms are not thread-safe.
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.

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
 Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.
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_runSettings
 In-memory run settings provided by CA fragments.
std::string m_repository
 Herwig/ThePEG repository used to materialise CA run settings.
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.
std::shared_ptr< HepMC3::GenRunInfo > m_runinfo {}
 The run info for HepMC3.
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

Properties

SG::ReadHandleKey< McEventCollection > m_mcevents_const { this, "McEventKey", "GEN_EVENT", "StoreGate key of the MC event collection" }
 Const handle to the MC event collection.
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.

Detailed Description

Interface to athena.

Definition at line 131 of file Herwig7.h.

Member Typedef Documentation

◆ StoreGateSvc_t

typedef ServiceHandle<StoreGateSvc> AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::StoreGateSvc_t
privateinherited

Definition at line 376 of file AthCommonDataStore.h.

Constructor & Destructor Documentation

◆ Herwig7()

Herwig7::Herwig7 ( const std::string & name,
ISvcLocator * pSvcLocator )

Constructor.

Definition at line 41 of file Herwig7.cxx.

41 :
42 GenModule(name, pSvcLocator),
45 m_pdfname_me("UNKNOWN"), m_pdfname_mpi("UNKNOWN") // m_pdfname_ps("UNKONWN"),
46{
47 declareProperty("RunFile", m_runfile="Herwig7");
48 declareProperty("RunSettings", m_runSettings="");
49 declareProperty("Repository", m_repository="");
50 declareProperty("SetupFile", m_setupfile="");
51
52 declareProperty("UseRandomSeedFromGeneratetf", m_use_seed_from_generatetf);
53 declareProperty("RandomSeedFromGeneratetf", m_seed_from_generatetf);
54
55 declareProperty("PDFNameME", m_pdfname_me);
56 // declareProperty("PDFNamePS", m_pdfname_ps);
57 declareProperty("PDFNameMPI", m_pdfname_mpi);
58
59 declareProperty("CrossSectionScaleFactor", m_xsscale=1.0);
60
61 declareProperty("CleanupHerwigScratch", m_cleanup_herwig_scratch);
62
63 declareProperty("Dsid", m_dsid);
64}
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
GenModule(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition GenModule.cxx:14
std::string m_pdfname_mpi
PS PDF name, stored for AMI capture at finalize.
Definition Herwig7.h:199
std::string m_repository
Herwig/ThePEG repository used to materialise CA run settings.
Definition Herwig7.h:180
int m_seed_from_generatetf
Random number seed from Generate_tf.py.
Definition Herwig7.h:190
std::string m_pdfname_me
ME PDF name, stored for AMI capture at finalize.
Definition Herwig7.h:193
bool m_cleanup_herwig_scratch
Possibly remove Herwig-scratch folder after finishing the event generation.
Definition Herwig7.h:202
double m_xsscale
Scale integrated cross section by a factor for MetaData output.
Definition Herwig7.h:205
std::string m_runSettings
In-memory run settings provided by CA fragments.
Definition Herwig7.h:177
int m_dsid
Gen_tf.py run args needed in interface.
Definition Herwig7.h:208
std::string m_runfile
Name of run file.
Definition Herwig7.h:173
std::string m_setupfile
Name of setup file.
Definition Herwig7.h:183
bool m_use_seed_from_generatetf
Ignore random number seed provided by athena and use the one from Generate_tf.py instead.
Definition Herwig7.h:187

Member Function Documentation

◆ ATLAS_NOT_CONST_THREAD_SAFE() [1/2]

McEventCollection *events GenBase::ATLAS_NOT_CONST_THREAD_SAFE ( )
inherited

Access the current event's McEventCollection.

Note
This function will make a new McEventCollection if there is not already a valid one and MakeMcEvent=True.

◆ ATLAS_NOT_CONST_THREAD_SAFE() [2/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 72 of file GenBase.h.

72 {
73 if (events()->empty())
74 ATH_MSG_ERROR("McEventCollection is empty during first event access");
75 return *(events()->begin());
76 }
#define ATH_MSG_ERROR(x,...)
static const Attributes_t empty

◆ 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 202 of file Herwig7.cxx.

202 {
203 ATH_MSG_DEBUG("Herwig7 generating an event");
204 assert(m_gen);
205 m_event = m_gen->shoot();
206 return StatusCode::SUCCESS;
207}
#define ATH_MSG_DEBUG(x,...)
ThePEG::EventPtr m_event
ThePEG event object.
Definition Herwig7.h:163
ThePEG::EGPtr m_gen
ThePEG generator object.
Definition Herwig7.h:160

◆ declareGaudiProperty()

Gaudi::Details::PropertyBase & AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareGaudiProperty ( Gaudi::Property< T, V, H > & hndl,
const SG::VarHandleKeyType &  )
inlineprivateinherited

specialization for handling Gaudi::Property<SG::VarHandleKey>

Definition at line 156 of file AthCommonDataStore.h.

158 {
160 hndl.value(),
161 hndl.documentation());
162
163 }

◆ declareProperty()

Gaudi::Details::PropertyBase & AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareProperty ( Gaudi::Property< T, V, H > & t)
inlineinherited

Definition at line 145 of file AthCommonDataStore.h.

145 {
146 typedef typename SG::HandleClassifier<T>::type htype;
148 }
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>

◆ detStore()

const ServiceHandle< StoreGateSvc > & AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::detStore ( ) const
inlineinherited

The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 95 of file AthCommonDataStore.h.

◆ event_const()

const HepMC::GenEvent * GenBase::event_const ( const EventContext & ctx) const
inlineinherited

Access the current signal event (const).

Definition at line 79 of file GenBase.h.

79 {
80 const McEventCollection* coll = events_const(ctx);
81 if (coll->empty())
82 ATH_MSG_ERROR("Const McEventCollection is empty during first event access");
83 return *(coll->begin());
84 }
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.
bool empty() const noexcept
Returns true if the collection is empty.
const McEventCollection * events_const(const EventContext &ctx) const
Access the current event's McEventCollection (const).
Definition GenBase.h:93

◆ events_const()

const McEventCollection * GenBase::events_const ( const EventContext & ctx) const
inlineinherited

Access the current event's McEventCollection (const).

Definition at line 93 of file GenBase.h.

93 {
94 SG::ReadHandle<McEventCollection> ret = SG::makeHandle(m_mcevents_const, ctx);
95 if (!ret.isValid())
96 ATH_MSG_ERROR("No McEventCollection found in StoreGate with key " << m_mcevents_const.key());
97 return ret.cptr();
98 }
SG::ReadHandleKey< McEventCollection > m_mcevents_const
Const handle to the MC event collection.
Definition GenBase.h:117
virtual bool isValid() override final
Can the handle be successfully dereferenced?
const_pointer_type cptr()
Dereference the pointer.
SG::ReadCondHandle< T > makeHandle(const SG::ReadCondHandleKey< T > &key, const EventContext &ctx=Gaudi::Hive::currentContext())

◆ evtStore()

ServiceHandle< StoreGateSvc > & AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::evtStore ( )
inlineinherited

The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 85 of file AthCommonDataStore.h.

◆ execute()

StatusCode GenModule::execute ( const EventContext & ctx)
virtualinherited

Execute method.

Todo
Remove hard-coded alg name checking (already incomplete)

Reimplemented from GenBase.

Definition at line 70 of file GenModule.cxx.

70 {
71 // Examples of how to retrieve the random number engine for a given
72 // stream.
73 // NB getRandomEngine should only be called once per event for a
74 // given stream, as it causes the stream to be re-seeded each time
75 // it is called.
76
77 // Example 1 - seeded based on the current event number (+ slot, run, streamName)
78 //CLHEP::HepRandomEngine* rndmEngine = this->getRandomEngine("MyStream", ctx);
79
80 // Example 2 - seeded based on the m_randomSeed property (+ slot, run, streamName)
81 //CLHEP::HepRandomEngine* rndmEngine = this->getRandomEngine("MyStream", m_randomSeed.value(), ctx);
82
83 // Call the code that generates an event
84 CHECK(this->callGenerator());
85
86 // Create the MC event and send the GeneratorEvent stored in it to fillEvt
88 CHECK(this->fillEvt(evt));
90
91 // Add the event to the MC event collection
92 if (events()) {
93 // If this is an "afterburner" generator, replace the last event rather than add a new one
95 if (m_isAfterburner.value() || name() == "Tauola" || name() == "Photos") {
96 events()->pop_back();
97 }
98 // Add the event to the end of the collection
99 events()->push_back(evt);
100 ATH_MSG_DEBUG("MC event added to McEventCollection");
101
102 // remove the empty event in case of ParticleDecayer
103 if (name() == "ParticleDecayer") {
104 events()->pop_back();
105 }
106 }
107
108 // Call the incident service to notify that an event has been made
109 m_incidentSvc->fireIncident( Incident(name(), "McEventGenerated") );
110 return StatusCode::SUCCESS;
111}
#define CHECK(...)
Evaluate an expression and check for errors.
ServiceHandle< IIncidentSvc > m_incidentSvc
Handle on the incident service.
Definition GenModule.h:99
virtual StatusCode callGenerator()
For calling the generator on each iteration of the event loop.
Definition GenModule.h:66
virtual StatusCode fillEvt(HepMC::GenEvent *evt)=0
For filling the HepMC event object.
BooleanProperty m_isAfterburner
Flag for normal vs. afterburner generators.
Definition GenModule.h:87
void fillBarcodesAttribute(GenEvent *e)
Definition GenEvent.h:393
GenEvent * newGenEvent(const int signal_process_id, const int event_number)
Definition GenEvent.h:360
HepMC3::GenEvent GenEvent
Definition GenEvent.h:39

◆ extraDeps_update_handler()

void AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::extraDeps_update_handler ( Gaudi::Details::PropertyBase & ExtraDeps)
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

◆ extraOutputDeps()

const DataObjIDColl & AthCommonAlgorithm< Gaudi::Algorithm >::extraOutputDeps ( ) const
overridevirtualinherited

Return the list of extra output dependencies.

This list is extended to include symlinks implied by inheritance relations.

Definition at line 89 of file AthCommonAlgorithm.cxx.

54{
55 // If we didn't find any symlinks to add, just return the collection
56 // from the base class. Otherwise, return the extended collection.
57 if (!m_extendedExtraObjects.empty()) {
59 }
61}
Common base class for algorithms.

◆ 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 217 of file Herwig7.cxx.

217 {
218 // Convert the Herwig event into the HepMC GenEvent
219 ATH_MSG_DEBUG("Converting ThePEG::Event to HepMC::GenEvent");
220 if (!evt->run_info()) evt->set_run_info(m_runinfo);
221 evt->set_units(HepMC3::Units::MEV, HepMC3::Units::MM);
222 convert_to_HepMC(*m_event, *evt, false, ThePEG::MeV, ThePEG::millimeter);
223 ATH_MSG_DEBUG("Converted ThePEG::Event to HepMC::GenEvent");
224
225 // Fill the event number into HepMC event record
226 SG::ReadHandle<xAOD::EventInfo> evtInfo(m_evtInfoKey);
227 evt->set_event_number(evtInfo->eventNumber());
228
229 // Fill event with random seeds from Atlas RNG service
230 const EventContext& ctx = Gaudi::Hive::currentContext();
231 const long* s = this->getRandomEngine("Herwig7", ctx)->getSeeds();
232 std::vector<long> seeds(s, s+2);
233 ATH_MSG_DEBUG("Random seeds: " << seeds[0] << ", " << seeds[1]);
234 HepMC::set_random_states(evt,seeds);
235
236 // Add a unit entry to the event weight vector if it's currently empty
237 if (evt->weights().empty()) {
238 evt->weights().push_back(m_event->weight());
239 }
240
241 // Add PDF info manually (for now, until natively supported in the ThePEG converter)
242 ATH_MSG_DEBUG("Adding PDF info to HepMC");
243 // IDs of the partons going into the primary sub process
244 ThePEG::tSubProPtr sub = m_event->primarySubProcess();
245 int id1 = sub->incoming().first ->id();
246 int id2 = sub->incoming().second->id();
247 // Get the event handler
248 ThePEG::tcEHPtr eh = ThePEG::dynamic_ptr_cast<ThePEG::tcEHPtr>(m_event->handler());
249 // Get the values of x
250 double x1 = eh->lastX1();
251 double x2 = eh->lastX2();
252 // Get the pdfs
253 std::pair<ThePEG::PDF,ThePEG::PDF> pdfs;
254 pdfs.first = eh->pdf<ThePEG::PDF>(sub->incoming().first);
255 pdfs.second = eh->pdf<ThePEG::PDF>(sub->incoming().second);
256 // Get the scale
257 ThePEG::Energy2 scale = eh->lastScale();
258 double Q = std::sqrt(scale/ThePEG::GeV2);
259 // Get the values of the pdfs
260 double pdf1 = pdfs.first.xfx(sub->incoming().first ->dataPtr(), scale, x1);
261 double pdf2 = pdfs.first.xfx(sub->incoming().second->dataPtr(), scale, x2);
262 // Create the PDFinfo object
263 HepMC3::GenPdfInfoPtr pdfi = std::make_shared<HepMC3::GenPdfInfo>();
264 pdfi->set(id1, id2, x1, x2, Q, pdf1, pdf2);
265 evt->set_pdf_info(std::move(pdfi));
266 ATH_MSG_DEBUG("Added PDF info to HepMC");
267
268//uncomment to list HepMC events
269// std::cout << " print::listing Herwig7 " << std::endl;
270// HepMC3::Print::listing(std::cout, *evt);
271
272 return StatusCode::SUCCESS;
273}
void convert_to_HepMC(const ThePEG::Event &m_event, HepMC::GenEvent &evt, bool nocopies, ThePEG::Energy eunit, ThePEG::Length lunit)
CLHEP::HepRandomEngine * getRandomEngine(const std::string &streamName, const EventContext &ctx) const
Definition GenModule.cxx:34
std::shared_ptr< HepMC3::GenRunInfo > m_runinfo
The run info for HepMC3.
Definition GenModule.h:90
SG::ReadHandleKey< xAOD::EventInfo > m_evtInfoKey
Definition Herwig7.h:210
void set_random_states(GenEvent *e, std::vector< long int > &a)
Definition GenEvent.h:588

◆ filterPassed()

virtual bool AthCommonAlgorithm< Gaudi::Algorithm >::filterPassed ( const EventContext & ctx) const
inlinevirtualinherited

Get filter decision:

Definition at line 93 of file AthCommonAlgorithm.h.

93 {
94 return execState( ctx ).filterPassed();
95 }
virtual bool filterPassed(const EventContext &ctx) const
Get filter decision:

◆ finalize()

StatusCode GenModule::finalize ( )
inlineinherited

Definition at line 55 of file GenModule.h.

55{ return genFinalize(); }
virtual StatusCode genFinalize()
For finalising the generator, if required.
Definition GenModule.h:70

◆ 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 280 of file Herwig7.cxx.

280 {
281 ATH_MSG_INFO("Herwig7 finalizing.");
282 assert(m_gen);
283 ATH_MSG_INFO( "MetaData: generator = Herwig7 " << HWVERSION );
284 ATH_MSG_INFO( std::scientific << std::setprecision(5) << "MetaData: cross-section (nb) = " << m_gen->eventHandler()->integratedXSec()*m_xsscale/ThePEG::nanobarn);
285 // ATH_MSG_INFO( "MetaData: PDF = " << m_pdfname_me << " (ME); " << m_pdfname_ps << " (shower); " << m_pdfname_mpi << " (MPI)" );
286 ATH_MSG_INFO("MetaData: PDF = " << m_pdfname_me << " (ME); " << m_pdfname_mpi << " (shower/MPI)");
287 m_gen->finalize();
288 ThePEG::Repository::cleanup();
289
290 // possibly tidy up working directory
291 if (m_cleanup_herwig_scratch && (std::filesystem::is_directory("Herwig-scratch") || std::filesystem::is_directory("Herwig-cache"))){
292
293 ATH_MSG_INFO("removing Herwig-scratch/Herwig-cache folder from "+std::filesystem::current_path().string());
294
295 // sleep for some time to allow all access to terminate
296 std::this_thread::sleep_for(std::chrono::seconds(5));
297
298 // in case the folder can't be deleted continue with warning
299 try {
300 (std::filesystem::remove_all("Herwig-scratch") || std::filesystem::remove_all("Herwig-cache"));
301 }
302 catch (const std::exception& e) {
303 ATH_MSG_WARNING("Failed to delete the folder 'Herwig-scratch': "+std::string(e.what()));
304 }
305
306 }
307
308 return StatusCode::SUCCESS;
309}
#define ATH_MSG_WARNING(x,...)
#define ATH_MSG_INFO(x,...)

◆ 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.

Here one can fill extra information, e.g. the used tools in a format generator name, version string, comment.

Reimplemented from GenModule.

Definition at line 71 of file Herwig7.cxx.

71 {
72 ATH_MSG_INFO("Herwig7 initialising...");
73
74 ATH_CHECK(m_evtInfoKey.initialize());
75
76 // Get random number seeds from Atlas RNG service, and pass them as Hw7 RNG
77 // default seeds (they can be overridden with an explicit Hw7 set command in the JO)
78 CLHEP::HepRandomEngine* engine = this->getRandomEngineDuringInitialize("Herwig7", m_randomSeed); // conditionsRun=1, lbn=1
79 const long* seeds = engine->getSeeds();
80 // The RNG service supplies two seeds, but Hw7 only uses one. To avoid the situation
81 // where varying one seed has no effect (this already stung us in pre-production
82 // job transform tests), we multiply the two seeds and let them wrap around the long
83 // type MAX_SIZE:
84 int32_t combined_seed = std::abs(seeds[0] * seeds[1]);
85 // Represent the combined seed as a string, so the config system can parse it back to a long ;)
86 std::ostringstream ss_seed;
87 ss_seed << combined_seed;
88 // Configure the API and print the seed to the log
90 ATH_MSG_INFO("Using the random number seed " + std::to_string(m_seed_from_generatetf) + " provided via Generate_tf.py");
92 } else {
93 ATH_MSG_INFO("Using the random number seed " + ss_seed.str() + " provided by athena");
94 m_api.seed(combined_seed);
95 }
96
97 // Change repo log level and make sure that config errors result in a program exit
98 //ThePEG::Debug::level = 10000;
99 ThePEG::Repository::exitOnError() = 1;
100
101 // Use everything from $DATAPATH and $LD_LIBRARY_PATH:
102 const char* datapath = getenv( "DATAPATH" );
103 std::vector<std::string> datapaths;
104 if (datapath) {
105 std::string datapath_str(datapath);
106 for (auto part : std::views::split(datapath_str, ':')) {
107 datapaths.emplace_back(part.begin(), part.end());
108 }
109 }
110 for( const std::string& p : datapaths ) {
111 ThePEG::Repository::appendReadDir( p );
112 }
113 const char* ldpath = getenv( "LD_LIBRARY_PATH" );
114 std::vector<std::string> ldpaths;
115 if (ldpath) {
116 std::string ldpath_str(ldpath);
117 for (auto part : ldpath_str | std::views::split(':')) {
118 ldpaths.emplace_back(std::string(part.begin(), part.end()));
119 }
120 }
121 for( const std::string& p : ldpaths ) {
122 ThePEG::DynamicLoader::appendPath( p );
123 }
124
125 ATH_MSG_DEBUG("Num of library search paths = " << ThePEG::DynamicLoader::allPaths().size());
126
127 if (!m_runSettings.empty()) {
128 const std::filesystem::path repository_path(m_repository);
129 std::error_code repository_error;
130 if (repository_path.empty() ||
131 !std::filesystem::is_regular_file(repository_path, repository_error)) {
132 ATH_MSG_ERROR("Configured Herwig repository does not exist: '" <<
133 repository_path.string() << "'");
134 return StatusCode::FAILURE;
135 }
136
137 ATH_MSG_DEBUG("Using Herwig default repo from " << repository_path);
138 m_api.repository(repository_path.string());
139 ATH_CHECK(writeRunFileFromText(repository_path.parent_path().string()));
140 }
141
142 ATH_MSG_INFO("Setting runfile name '"+m_runfile+"'");
143 m_api.inputfile(m_runfile);
144
145 ATH_MSG_INFO("starting to prepare the run from runfile '"+m_runfile+"'...");
146
147 m_runinfo = std::make_shared<HepMC3::GenRunInfo>();
149 struct HepMC3::GenRunInfo::ToolInfo generator={std::string("Herwig7"), Herwig::HerwigStrategy::version, std::string("Used generator")};
150 m_runinfo->tools().push_back(std::move(generator));
151 // read in a Herwig runfile and obtain the event generator
152 m_gen = Herwig::API::prepareRun(m_api);
153 ATH_MSG_DEBUG("preparing the run...");
154
155 return StatusCode::SUCCESS;
156}
#define ATH_CHECK
Evaluate an expression and check for errors.
size_t size() const
Number of registered mappings.
CLHEP::HepRandomEngine * getRandomEngineDuringInitialize(const std::string &streamName, unsigned long int randomSeedOffset, unsigned int conditionsRun=1, unsigned int lbn=1) const
Definition GenModule.cxx:53
IntegerProperty m_randomSeed
Seed for random number engine.
Definition GenModule.h:84
StatusCode writeRunFileFromText(const std::string &share_path)
Write the CA input text into a real Herwig runfile.
Definition Herwig7.cxx:159
Herwig7API m_api
Herwig7 API object.
Definition Herwig7.h:157
std::string getenv(const std::string &variableName)
get an environment variable
generator
Configure Herwig7 These are the commands corresponding to what would go into the regular Herwig infil...

◆ 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

Definition at line 34 of file GenModule.cxx.

36{
37 ATHRNG::RNGWrapper* rngWrapper = m_rndmSvc->getEngine(this, streamName);
38 std::string rngName = name()+streamName;
39 rngWrapper->setSeed( rngName, ctx );
40 return rngWrapper->getEngine(ctx);
41}
void setSeed(const std::string &algName, const EventContext &ctx)
Set the random seed using a string (e.g.
Definition RNGWrapper.h:154
CLHEP::HepRandomEngine * getEngine(const EventContext &ctx) const
Retrieve the random engine corresponding to the provided EventContext.
Definition RNGWrapper.h:108
ServiceHandle< IAthRNGSvc > m_rndmSvc
Data members.
Definition GenModule.h:97

◆ getRandomEngine() [2/2]

CLHEP::HepRandomEngine * GenModule::getRandomEngine ( const std::string & streamName,
unsigned long int randomSeedOffset,
const EventContext & ctx ) const
protectedinherited

Definition at line 44 of file GenModule.cxx.

46{
47 ATHRNG::RNGWrapper* rngWrapper = m_rndmSvc->getEngine(this, streamName);
48 rngWrapper->setSeed( streamName, ctx.slot(), randomSeedOffset, ctx.eventID().run_number() );
49 return rngWrapper->getEngine(ctx);
50}

◆ 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.

54{
55 const size_t slot=0;
56 EventContext ctx;
57 ctx.setSlot( slot );
58 ctx.setEventID (EventIDBase (conditionsRun,
59 EventIDBase::UNDEFEVT, // event
60 EventIDBase::UNDEFNUM, // timestamp
61 EventIDBase::UNDEFNUM, // timestamp ns
62 lbn));
64 Atlas::ExtendedEventContext( evtStore()->hiveProxyDict(),
65 conditionsRun) );
66 return getRandomEngine(streamName, randomSeedOffset, ctx);
67}
ServiceHandle< StoreGateSvc > & evtStore()
void setExtendedEventContext(EventContext &ctx, ExtendedEventContext &&ectx)
Move an extended context into a context object.

◆ initialize()

StatusCode GenModule::initialize ( )
virtualinherited

Reimplemented from GenBase.

Definition at line 21 of file GenModule.cxx.

21 {
22 // Base class initializations
24 // Get the random number service
25 CHECK(m_rndmSvc.retrieve());
26 // Get the incident service
27 CHECK(m_incidentSvc.retrieve());
30 return StatusCode::SUCCESS;
31}
virtual StatusCode initialize() override
Definition GenBase.cxx:17
virtual StatusCode genuserInitialize()
For initialization of user code, if required. Called after genInitialize.
Definition GenModule.h:64
virtual StatusCode genInitialize()
For initializing the generator, if required.
Definition GenModule.h:62

◆ inputHandles()

virtual std::vector< Gaudi::DataHandle * > AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::inputHandles ( ) const
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.

◆ isClonable()

virtual bool AthCommonAlgorithm< Gaudi::Algorithm >::isClonable ( ) const
inlineoverridevirtualinherited

Specify if the algorithm is clonable.

Only relevant for non-reentrant algorithms. Actual number of clones needs to be set via the "Cardinality" property.

Reimplemented in AFP_DigiTop, AlgB, AlgT, BCM_Digitization, CscDigitBuilder, CscDigitToCscRDO, G4AtlasAlg, G4RunAlg, HGTD_Digitization, HiveAlgBase, InDet::GNNSeedingTrackMaker, InDet::SCT_Clusterization, InDet::SiSPGNNTrackMaker, InDet::SiSPSeededTrackFinder, InDet::SiTrackerSpacePointFinder, ISF::SimKernelMT, ITk::StripDigitization, ITkPixelCablingAlg, ITkStripCablingAlg, LArHitEMapMaker, LArTTL1Maker, LUCID_DigiTop, LVL1::L1TopoSimulation, MergeCalibHits, MergeGenericMuonSimHitColl, MergeHijingPars, MergeMcEventCollection, MergeTrackRecordCollection, MergeTruthJets, MergeTruthParticles, MuonDigitizer, PileUpMTAlg, PixelDigitization, RoIBResultToxAOD, SCT_ByteStreamErrorsTestAlg, SCT_CablingCondAlgFromCoraCool, SCT_CablingCondAlgFromText, SCT_ConditionsParameterTestAlg, SCT_ConditionsSummaryTestAlg, SCT_ConfigurationConditionsTestAlg, SCT_Digitization, SCT_FlaggedConditionTestAlg, SCT_LinkMaskingTestAlg, SCT_MajorityConditionsTestAlg, SCT_ModuleVetoTestAlg, SCT_MonitorConditionsTestAlg, SCT_PrepDataToxAOD, SCT_RawDataToxAOD, SCT_ReadCalibChipDataTestAlg, SCT_ReadCalibDataTestAlg, SCT_RODVetoTestAlg, SCT_SensorsTestAlg, SCT_SiliconConditionsTestAlg, SCT_StripVetoTestAlg, SCT_TdaqEnabledTestAlg, SCT_TestCablingAlg, SCTEventFlagWriter, SCTRawDataProvider, SCTSiLorentzAngleTestAlg, SCTSiPropertiesTestAlg, SGInputLoader, Simulation::BeamEffectsAlg, TileHitVecToCnt, TileMuonFitter, TilePulseForTileMuonReceiver, TileRawChannelMaker, TRTDigitization, and ZDC_DigiTop.

Definition at line 68 of file AthCommonAlgorithm.h.

68 {
69 return true;
70 }

◆ isReEntrant()

virtual bool AthAlgorithm::isReEntrant ( ) const
inlinefinaloverrideprotectedvirtualinherited

Legacy algorithms are not thread-safe.

Definition at line 47 of file AthAlgorithm.h.

47{ return false; }

◆ msg()

MsgStream & AthCommonMsg< Gaudi::Algorithm >::msg ( ) const
inlineinherited

Definition at line 24 of file AthCommonMsg.h.

24 {
25 return this->msgStream();
26 }

◆ msgLvl()

bool AthCommonMsg< Gaudi::Algorithm >::msgLvl ( const MSG::Level lvl) const
inlineinherited

Definition at line 30 of file AthCommonMsg.h.

30 {
31 return this->msgLevel(lvl);
32 }

◆ outputHandles()

virtual std::vector< Gaudi::DataHandle * > AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::outputHandles ( ) const
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.

◆ renounce()

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 > AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::renounce ( T & h)
inlineprotectedinherited

Definition at line 368 of file AthCommonDataStore.h.

369 {
370 h.renounce();
372 }
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)

◆ renounceArray()

void AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::renounceArray ( SG::VarHandleKeyArray & handlesArray)
inlineprotectedinherited

remove all handles from I/O resolution

Definition at line 352 of file AthCommonDataStore.h.

352 {
354 }

◆ setFilterPassed()

virtual void AthCommonAlgorithm< Gaudi::Algorithm >::setFilterPassed ( bool state,
const EventContext & ctx ) const
inlinevirtualinherited

Set filter decision:

Definition at line 99 of file AthCommonAlgorithm.h.

99 {
101 }
virtual void setFilterPassed(bool state, const EventContext &ctx) const
Set filter decision:

◆ sysExecute()

StatusCode AthCommonAlgorithm< Gaudi::Algorithm >::sysExecute ( const EventContext & ctx)
overridevirtualinherited

Execute an algorithm.

We override this in order to work around an issue with the Algorithm base class storing the event context in a member variable that can cause crashes in MT jobs.

Reimplemented in AthAnalysisAlgorithm.

Definition at line 80 of file AthCommonAlgorithm.cxx.

41{
42 return BaseAlg::sysExecute (ctx);
43}

◆ sysInitialize()

StatusCode AthCommonAlgorithm< Gaudi::Algorithm >::sysInitialize ( )
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< Gaudi::Algorithm > >.

Reimplemented in AthAnalysisAlgorithm, AthHistogramAlgorithm, HypoBase, InputMakerBase, and PyAthena::Alg.

Definition at line 60 of file AthCommonAlgorithm.cxx.

71 {
73
74 if (sc.isFailure()) {
75 return sc;
76 }
77
78 ServiceHandle<ICondSvc> cs("CondSvc",name());
79 for (auto h : outputHandles()) {
80 if (h->isCondition() && h->mode() == Gaudi::DataHandle::Writer) {
81 // do this inside the loop so we don't create the CondSvc until needed
82 if ( cs.retrieve().isFailure() ) {
83 ATH_MSG_WARNING("no CondSvc found: won't autoreg WriteCondHandles");
85 }
86 if (cs->regHandle(this,*h).isFailure()) {
88 ATH_MSG_ERROR("unable to register WriteCondHandle " << h->fullKey()
89 << " with CondSvc");
90 }
91 }
92 }
93 return sc;
94}
virtual StatusCode sysInitialize() override
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override

◆ sysStart()

virtual StatusCode AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::sysStart ( )
overridevirtualinherited

Handle START transition.

We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.

◆ updateVHKA()

void AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::updateVHKA ( Gaudi::Details::PropertyBase & )
inlineinherited

Definition at line 298 of file AthCommonDataStore.h.

298 {
299 for (auto &a : m_vhka) {
301 for (auto k : keys) {
302 k->setOwner(this);
303 }
304 }
305 }

◆ writeRunFileFromText()

StatusCode Herwig7::writeRunFileFromText ( const std::string & share_path)

Write the CA input text into a real Herwig runfile.

Definition at line 159 of file Herwig7.cxx.

159 {
160 if (m_runSettings.empty()) {
161 return StatusCode::SUCCESS;
162 }
163
164 std::string inputfile_name = m_runfile;
165 const std::string runfile_suffix = ".run";
166 const auto suffix_pos = inputfile_name.rfind(runfile_suffix);
167 if (suffix_pos != std::string::npos) {
168 inputfile_name.replace(suffix_pos, runfile_suffix.size(), ".in");
169 } else {
170 std::filesystem::path inputfile_path(m_runfile);
171 inputfile_path.replace_extension(".in");
172 inputfile_name = inputfile_path.string();
173 }
174
175 ATH_MSG_INFO("Writing CA infile text to '"+inputfile_name+"'");
176 std::ofstream infile_stream(inputfile_name);
177 infile_stream << m_runSettings;
178 infile_stream.close();
179 if (!infile_stream) {
180 ATH_MSG_ERROR("Failed to write CA infile text to '"+inputfile_name+"'");
181 return StatusCode::FAILURE;
182 }
183
184 if (share_path.empty()) {
185 ATH_MSG_ERROR("Could not determine the Herwig share path for CA infile materialisation");
186 return StatusCode::FAILURE;
187 }
188
189 ATH_MSG_INFO("Preparing Herwig runfile from CA infile '"+inputfile_name+"'");
190 m_api.prependReadDirectory(share_path);
191 m_api.inputfile(inputfile_name);
192 Herwig::API::read(m_api);
193 ATH_MSG_INFO("Finished materialising runfile '"+m_runfile+"'");
194 return StatusCode::SUCCESS;
195}

Member Data Documentation

◆ m_api

Herwig7API Herwig7::m_api
private

Herwig7 API object.

Definition at line 157 of file Herwig7.h.

◆ m_cleanup_herwig_scratch

bool Herwig7::m_cleanup_herwig_scratch
private

Possibly remove Herwig-scratch folder after finishing the event generation.

Definition at line 202 of file Herwig7.h.

◆ m_detStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_detStore
privateinherited

Pointer to StoreGate (detector store by default).

Definition at line 381 of file AthCommonDataStore.h.

◆ m_dsid

int Herwig7::m_dsid
private

Gen_tf.py run args needed in interface.

Definition at line 208 of file Herwig7.h.

◆ m_event

ThePEG::EventPtr Herwig7::m_event
private

ThePEG event object.

Definition at line 163 of file Herwig7.h.

◆ m_evtInfoKey

SG::ReadHandleKey<xAOD::EventInfo> Herwig7::m_evtInfoKey
private
Initial value:
{this
, "EventInfo"
, "TMPEvtInfo"
, "ReadHandleKey for xAOD::EventInfo"}

Definition at line 210 of file Herwig7.h.

210 {this
211 , "EventInfo"
212 , "TMPEvtInfo"
213 , "ReadHandleKey for xAOD::EventInfo"};

◆ m_evtStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_evtStore
privateinherited

Pointer to StoreGate (event store by default).

Definition at line 378 of file AthCommonDataStore.h.

◆ m_extendedExtraObjects

DataObjIDColl AthCommonAlgorithm< Gaudi::Algorithm >::m_extendedExtraObjects
privateinherited

Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.

Empty if no symlinks were found.

Definition at line 108 of file AthCommonAlgorithm.h.

◆ m_gen

ThePEG::EGPtr Herwig7::m_gen
private

ThePEG generator object.

Definition at line 160 of file Herwig7.h.

◆ m_incidentSvc

ServiceHandle<IIncidentSvc> GenModule::m_incidentSvc {this, "IncidentSvc", "IncidentSvc"}
privateinherited

Handle on the incident service.

Definition at line 99 of file GenModule.h.

99{this, "IncidentSvc", "IncidentSvc"};

◆ 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.

87{this, "IsAfterburner", false, "Set true if generator modifies existing events rather than creating new ones"};

◆ m_mcEventKey

std::string GenBase::m_mcEventKey {}
protectedinherited

StoreGate key for the MC event collection (defaults to GEN_EVENT).

Definition at line 108 of file GenBase.h.

108{};

◆ m_mcevents_const

SG::ReadHandleKey<McEventCollection> GenBase::m_mcevents_const { this, "McEventKey", "GEN_EVENT", "StoreGate key of the MC event collection" }
privateinherited

Const handle to the MC event collection.

Definition at line 117 of file GenBase.h.

117{ this, "McEventKey", "GEN_EVENT", "StoreGate key of the MC event collection" };

◆ 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 110 of file GenBase.h.

110{this, "MakeMcEvent", false, "Create a new MC event collection if it doesn't exist"};

◆ m_pdfname_me

std::string Herwig7::m_pdfname_me
private

ME PDF name, stored for AMI capture at finalize.

Definition at line 193 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 199 of file Herwig7.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.

84{this, "RandomSeed", 1234567, "Random seed for the built-in random engine"}; // FIXME make this into an unsigned long int?

◆ m_repository

std::string Herwig7::m_repository
private

Herwig/ThePEG repository used to materialise CA run settings.

Definition at line 180 of file Herwig7.h.

◆ m_rndmSvc

ServiceHandle<IAthRNGSvc> GenModule::m_rndmSvc {this, "RndmSvc", "AthRNGSvc"}
privateinherited

Data members.

Definition at line 97 of file GenModule.h.

97{this, "RndmSvc", "AthRNGSvc"};

◆ m_runfile

std::string Herwig7::m_runfile
private

Name of run file.

Definition at line 173 of file Herwig7.h.

◆ m_runinfo

std::shared_ptr<HepMC3::GenRunInfo> GenModule::m_runinfo {}
protectedinherited

The run info for HepMC3.

Definition at line 90 of file GenModule.h.

90{};

◆ m_runname

std::string Herwig7::m_runname
private

Run name, used in the Herwig/ThePEG config system.

Definition at line 170 of file Herwig7.h.

◆ m_runSettings

std::string Herwig7::m_runSettings
private

In-memory run settings provided by CA fragments.

These are written to m_runfile.

Definition at line 177 of file Herwig7.h.

◆ m_seed_from_generatetf

int Herwig7::m_seed_from_generatetf
private

Random number seed from Generate_tf.py.

Definition at line 190 of file Herwig7.h.

◆ m_setupfile

std::string Herwig7::m_setupfile
private

Name of setup file.

Definition at line 183 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 187 of file Herwig7.h.

◆ m_varHandleArraysDeclared

bool AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_varHandleArraysDeclared
privateinherited

Definition at line 387 of file AthCommonDataStore.h.

◆ m_vhka

std::vector<SG::VarHandleKeyArray*> AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_vhka
privateinherited

Definition at line 386 of file AthCommonDataStore.h.

◆ m_xsscale

double Herwig7::m_xsscale
private

Scale integrated cross section by a factor for MetaData output.

Definition at line 205 of file Herwig7.h.


The documentation for this class was generated from the following files: