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

#include <Sherpa_i.h>

Inheritance diagram for Sherpa_i:
Collaboration diagram for Sherpa_i:

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 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::GenEventevent_const (const EventContext &ctx) const
 Access the current signal event (const).
const McEventCollectionevents_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.

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"}

Private Types

typedef ServiceHandle< StoreGateSvcStoreGateSvc_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
 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

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.
std::shared_ptr< HepMC3::GenRunInfo > m_runinfo {}
 The run info for HepMC3.
ServiceHandle< IAthRNGSvcm_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

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

Detailed Description

Definition at line 18 of file Sherpa_i.h.

Member Typedef Documentation

◆ StoreGateSvc_t

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

Definition at line 388 of file AthCommonDataStore.h.

Constructor & Destructor Documentation

◆ Sherpa_i()

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

Definition at line 37 of file Sherpa_i.cxx.

38 : GenModule(name, pSvcLocator)
39{
40 #ifdef IS_SHERPA_3
41 declareProperty("BaseFragment", m_inputfiles["Base.yaml"] = "");
42 declareProperty("RunCard", m_inputfiles["Sherpa.yaml"] = "");
43 #endif
44}
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
GenModule(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition GenModule.cxx:14

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

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

◆ callGenerator()

StatusCode Sherpa_i::callGenerator ( )
virtual

For calling the generator on each iteration of the event loop.

Reimplemented from GenModule.

Definition at line 180 of file Sherpa_i.cxx.

180 {
181 ATH_MSG_DEBUG("Sherpa_i in callGenerator()");
182 //Re-seed the random number stream
183 long seeds[7];
184 const EventContext& ctx = Gaudi::Hive::currentContext();
185 ATHRNG::calculateSeedsMC21(seeds, "SHERPA", ctx.eventID().event_number(), m_dsid, m_randomSeed);
186 p_rndEngine->setSeeds(seeds, 0); // NOT THREAD-SAFE
187
188 do {
189 ATH_MSG_DEBUG("Trying to generate event with Sherpa");
190 } while (p_sherpa->GenerateOneEvent()==false);
191
192 const size_t genEvents = ATOOLS::rpa->gen.NumberOfGeneratedEvents();
193 if (genEvents%1000==0) {
194 ATH_MSG_INFO("Passed "<<genEvents<<" events.");
195 }
196
197 return StatusCode::SUCCESS;
198}
#define ATH_MSG_INFO(x)
#define ATH_MSG_DEBUG(x)
CLHEP::HepRandomEngine * p_rndEngine
Definition Sherpa_i.cxx:35
IntegerProperty m_randomSeed
Seed for random number engine.
Definition GenModule.h:84
SHERPA::Sherpa * p_sherpa
Definition Sherpa_i.h:32
IntegerProperty m_dsid
Definition Sherpa_i.h:70
void calculateSeedsMC21(long *seeds, const std::string &algName, uint64_t ev, uint64_t run, uint64_t offset=0)
Set the random seed using a string (e.g.

◆ compilePlugin()

void Sherpa_i::compilePlugin ( const std::string & pluginCode)

Definition at line 316 of file Sherpa_i.cxx.

316 {
317 // TODO: not very pretty, should we eventually do this in Python instead (base fragment)
318 FILE *file = fopen("Sherpa_iPlugin.C","w");
319 if (!file) {
320 ATH_MSG_ERROR("Cannot open Sherpa_iPlugin.C");
321 }
322 else {
323 fputs(pluginCode.c_str(),file);
324 fclose(file);
325 }
326 std::string command;
327 // Python -> C++ string conversion seems to add quote character as first
328 // and last line if the string contains quotes (like always in a plugin)
329 // thus removing them here
330 command += "tail -n +2 Sherpa_iPlugin.C | head -n -1 > Sherpa_iPlugin.C.tmp; mv Sherpa_iPlugin.C.tmp Sherpa_iPlugin.C; ";
331 command += "g++ -shared -std=c++0x -g ";
332 command += "-I`Sherpa-config --incdir` ";
333 command += "`Sherpa-config --ldflags` ";
334 command += "-I$FASTJETPATH/include ";
335 command += "-fPIC -o libSherpa_iPlugin.so Sherpa_iPlugin.C";
336 ATH_MSG_INFO("Now compiling plugin library using: "+command);
337 if (system(command.c_str())!=0) {
338 ATH_MSG_ERROR("Error compiling plugin library.");
339 }
340}
TFile * file

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

81 {
82 const McEventCollection* coll = events_const(ctx);
83 if (coll->empty())
84 ATH_MSG_ERROR("Const McEventCollection is empty during first event access");
85 return *(coll->begin());
86 }
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:95

◆ events_const()

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

Access the current event's McEventCollection (const).

Definition at line 95 of file GenBase.h.

95 {
96 SG::ReadHandle<McEventCollection> ret = SG::makeHandle(m_mcevents_const, ctx);
97 if (!ret.isValid())
98 ATH_MSG_ERROR("No McEventCollection found in StoreGate with key " << m_mcevents_const.key());
99 return ret.cptr();
100 }
SG::ReadHandleKey< McEventCollection > m_mcevents_const
Const handle to the MC event collection.
Definition GenBase.h:119
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 Sherpa_i::fillEvt ( HepMC::GenEvent * evt)
virtual

For filling the HepMC event object.

Implements GenModule.

Definition at line 200 of file Sherpa_i.cxx.

200 {
201 ATH_MSG_DEBUG( "Sherpa_i Filling event");
202 if (!event->run_info()) event->set_run_info(m_runinfo);
203 p_sherpa->FillHepMCEvent(*event);
204
205
206//Weight, MEWeight, WeightNormalisation, NTrials
207 if (event->weights().size()>2) {
208 double nominal = event->weight("Weight");
209 for (const auto& name: event->weight_names()) {
210 if (name == "WeightNormalisation") continue;
211 if (name == "NTrials") continue;
212 if (name == "Weight") continue;
213 if (name == "NTrials") continue;
214 if (std::abs(event->weight(name)) > m_variation_weight_cap*std::abs(nominal)) {
215 ATH_MSG_INFO("Capping variation" << name << " = " << event->weight(name)/nominal << "*nominal");
216 event->weight(name) *= m_variation_weight_cap*std::abs(nominal)/std::abs(event->weight(name));
217 }
218 ATH_MSG_DEBUG("Sherpa WEIGHT " << name << " value="<< event->weight(name));
219 }
220 }
221
222 event->set_units(HepMC3::Units::MEV, HepMC3::Units::MM);
223
224
225 return StatusCode::SUCCESS;
226}
std::shared_ptr< HepMC3::GenRunInfo > m_runinfo
The run info for HepMC3.
Definition GenModule.h:90
DoubleProperty m_variation_weight_cap
Variation weight cap factor.
Definition Sherpa_i.h:64

◆ 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 Sherpa_i::genFinalize ( )
virtual

For finalising the generator, if required.

Reimplemented from GenModule.

Definition at line 228 of file Sherpa_i.cxx.

228 {
229
230 ATH_MSG_INFO("Sherpa_i finalize()");
231
232 std::cout << "MetaData: generator = Sherpa" << SHERPA_VERSION << "." << SHERPA_SUBVERSION << std::endl;
233 std::cout << "MetaData: cross-section (nb)= " << p_sherpa->TotalXS()/1000.0*m_xsscale << std::endl;
234
235 std::cout << "MetaData: PDF = " << p_sherpa->PDFInfo() << std::endl;
236
237 std::cout << "Named variations initialised by Sherpa:" << std::endl;
238 std::cout << *p_sherpa->GetInitHandler()->GetVariations() << std::endl;
239
240 p_sherpa->SummarizeRun();
241
242 if (m_cleanup) {
243 ATH_MSG_INFO("Deleting left-over files from working directory.");
244 system("rm -rf Results.db Process MIG_*.db MPI_*.dat libSherpa*.so libProc*.so");
245 }
246
247 return StatusCode::SUCCESS;
248}
BooleanProperty m_cleanup
Definition Sherpa_i.h:67
DoubleProperty m_xsscale
Definition Sherpa_i.h:66

◆ genInitialize()

StatusCode Sherpa_i::genInitialize ( )
virtual

For initializing the generator, if required.

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 48 of file Sherpa_i.cxx.

48 {
49 if (m_plugincode != "") {
51 #ifndef IS_SHERPA_3
52 m_params.value().push_back("SHERPA_LDADD=Sherpa_iPlugin");
53 #endif
54 }
55
56 ATH_MSG_INFO("Sherpa initialising...");
57
58 #ifdef IS_SHERPA_3
59 for (auto& inputfile : m_inputfiles) {
60 // remove first line and last character containing '"'
61 // TODO fix Python/C++ string passing, to not contain " in first place
62 inputfile.second.erase(0, inputfile.second.find("\n") + 1);
63 inputfile.second.pop_back();
64 }
65 #endif
66
67 ATH_MSG_DEBUG("... compiling plugin code");
68 if (m_plugincode != "") {
70 #ifdef IS_SHERPA_3
71 m_inputfiles["Base.yaml"] += "SHERPA_LDADD: Sherpa_iPlugin \n";
72 #else
73 m_params.value().push_back("SHERPA_LDADD=Sherpa_iPlugin");
74 #endif
75 }
76
77 ATH_MSG_DEBUG("... seeding Athena random number generator");
78 p_rndEngine = getRandomEngineDuringInitialize("SHERPA", m_randomSeed, m_dsid); // NOT THREAD-SAFE
79
80 #ifdef IS_SHERPA_3
81 ATH_MSG_DEBUG("... adapting output level");
82 if( msg().level()==MSG::FATAL || msg().level()==MSG::ERROR || msg().level()==MSG::WARNING ){
83 m_inputfiles["Base.yaml"] += "\nEVT_OUTPUT: 0 \n";
84 }
85 else if(msg().level()==MSG::INFO){
86 m_inputfiles["Base.yaml"] += "\nEVT_OUTPUT: 2 \n";
87 }
88 else if(msg().level()==MSG::DEBUG){
89 m_inputfiles["Base.yaml"] += "\nEVT_OUTPUT: 15 \n";
90 }
91 else{
92 m_inputfiles["Base.yaml"] += "\nEVT_OUTPUT: 15 \n";
93 }
94
95 ATH_MSG_DEBUG("... writing input files to directory");
96 for (auto& inputfile : m_inputfiles) {
97 // write input content to file in working directory
98 FILE *file = fopen(inputfile.first.c_str(),"w");
99 if (!file) {
100 ATH_MSG_ERROR("Cannot open " << inputfile.first);
101 return StatusCode::FAILURE;
102 }
103 fputs(inputfile.second.c_str(),file);
104 fclose(file);
105 ATH_MSG_INFO("Sherpa_i using the following settings in "+inputfile.first);
106 ATH_MSG_INFO("\n"+inputfile.second+"\n");
107 }
108
109 ATH_MSG_DEBUG("... go Sherpa!");
110 int argc = 2;
111 char** argv = new char*[2];
112 argv[0] = new char[7];
113 argv[1] = new char[34];
114 strcpy(argv[0], "Sherpa");
115 strcpy(argv[1], "RUNDATA: [Base.yaml, Sherpa.yaml]");
116 p_sherpa = new SHERPA::Sherpa(argc, argv);
117 delete [] argv;
118 #else
119 p_sherpa = new SHERPA::Sherpa();
120 #endif
121
122
123 #ifdef IS_SHERPA_3
124
125 try {
126 p_sherpa->InitializeTheRun();
127 p_sherpa->InitializeTheEventHandler();
128 }
129 catch (const ATOOLS::normal_exit& exception) {
130 ATH_MSG_ERROR("Normal exit caught, this probably means:");
131 ATH_MSG_ERROR("Have to compile Amegic libraries");
132 ATH_MSG_ERROR("You probably want to run ./makelibs");
133 return StatusCode::FAILURE;
134 }
135 catch (const ATOOLS::Exception& exception) {
136 ATH_MSG_ERROR("Unwanted ATOOLS::exception caught.");
137 ATH_MSG_ERROR(exception);
138 return StatusCode::FAILURE;
139 }
140 #else
141
142 try {
143 int argc;
144 char** argv;
145 getParameters(argc, argv);
146 p_sherpa->InitializeTheRun(argc,(char **)argv);
147 delete [] argv;
148
149 p_sherpa->InitializeTheEventHandler();
150 }
151 catch (const ATOOLS::Exception& exception) {
152 if (exception.Class()=="Matrix_Element_Handler" && exception.Type()==ATOOLS::ex::normal_exit) {
153 ATH_MSG_ERROR("Have to compile Amegic libraries");
154 ATH_MSG_ERROR("You probably want to run ./makelibs");
155 }
156 else {
157 ATH_MSG_ERROR("Unwanted ATOOLS::exception caught.");
158 ATH_MSG_ERROR(exception);
159 }
160 return StatusCode::FAILURE;
161 }
162 #endif
163 catch (const std::exception& exception) {
164 ATH_MSG_ERROR("std::exception caught.");
165 return StatusCode::FAILURE;
166 }
167
168 m_runinfo = std::make_shared<HepMC3::GenRunInfo>();
170 struct HepMC3::GenRunInfo::ToolInfo generator = {
171 std::string("SHERPA"),
172 std::string(SHERPA_VERSION)+ "." + std::string(SHERPA_SUBVERSION),
173 std::string("Used generator")
174 };
175 m_runinfo->tools().push_back(std::move(generator));
176 return StatusCode::SUCCESS;
177}
CLHEP::HepRandomEngine * getRandomEngineDuringInitialize(const std::string &streamName, unsigned long int randomSeedOffset, unsigned int conditionsRun=1, unsigned int lbn=1) const
Definition GenModule.cxx:53
StringProperty m_plugincode
Optional code for plugin library to compile and load at run time.
Definition Sherpa_i.h:61
StringArrayProperty m_params
List of additional Sherpa parameters beyond run card snippet (from JO file).
Definition Sherpa_i.h:45
void compilePlugin(const std::string &)
Definition Sherpa_i.cxx:316
void getParameters(int &argc, char **&argv)
Definition Sherpa_i.cxx:252
generator
Configure Herwig7 These are the commands corresponding to what would go into the regular Herwig infil...
MsgStream & msg
Definition testRead.cxx:32

◆ 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; }

◆ getParameters()

void Sherpa_i::getParameters ( int & argc,
char **& argv )

Definition at line 252 of file Sherpa_i.cxx.

252 {
253 std::vector<std::string> params;
254
255 // set some ATLAS specific default values as a starting point
256 params.push_back("EXTERNAL_RNG=Atlas_RNG");
257
258 /***
259 Adopt Atlas Debug Level Scheme
260 ***/
261
262 std::string verbose_arg;
263 MsgStream log(msgSvc(), name());
264 if( log.level()==MSG::FATAL || log.level()==MSG::ERROR || log.level()==MSG::WARNING ){
265 params.push_back("OUTPUT=0");
266 }
267 else if(log.level()==MSG::INFO){
268 params.push_back("OUTPUT=2");
269 }
270 else if(log.level()==MSG::DEBUG){
271 params.push_back("OUTPUT=3");
272 }
273 else{
274 params.push_back("OUTPUT=15");
275 }
276
277 // disregard manual RUNDATA setting if run card given in JO
278 if (m_runcard != "") m_params.value().push_back("RUNDATA=Run.dat");
279
280 // allow to overwrite all parameters from JO file
281 params.insert(params.begin()+params.size(), m_params.begin(), m_params.end());
282
283 // create Run.dat file if runcard explicitely given
284 if (m_runcard != "") {
285 FILE *file = fopen("Run.dat","w");
286 if (!file) {
287 ATH_MSG_ERROR("Cannot open Run.dat");
288 }
289 else {
290 fputs(m_runcard.value().c_str(),file);
291 fclose(file);
292 }
293 }
294
295 /***
296 Convert into Sherpas argc/argv arguments
297 ***/
298 argc = 1+params.size();
299 argv = new char * [ 1+params.size() ];
300 argv[0] = new char[7];
301 strcpy(argv[0], "Sherpa");
302
303 ATH_MSG_INFO("Sherpa_i using the following Arguments");
305 for(size_t i=0; i<params.size(); i++) {
306 ATH_MSG_INFO(" [ " << params[i] << " ] ");
307 argv[i+1] = new char[params[i].size()+1];
308 strcpy(argv[i+1], params[i].c_str());
309 }
310 ATH_MSG_INFO("End Sherpa_i Argument List");
311 ATH_MSG_INFO("Further Sherpa initialisation output will be redirected to the LOG_FILE specified above.");
312
313}
StringProperty m_runcard
FIXME unused?
Definition Sherpa_i.h:42

◆ 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()
CLHEP::HepRandomEngine * getRandomEngine(const std::string &streamName, const EventContext &ctx) const
Definition GenModule.cxx:34
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 380 of file AthCommonDataStore.h.

381 {
382 h.renounce();
384 }
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 364 of file AthCommonDataStore.h.

364 {
366 }

◆ setFilterPassed()

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

Set filter decision:

Reimplemented in AthFilterAlgorithm.

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, AthFilterAlgorithm, 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}
#define ATH_MSG_WARNING(x)
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 308 of file AthCommonDataStore.h.

308 {
309 // debug() << "updateVHKA for property " << p.name() << " " << p.toString()
310 // << " size: " << m_vhka.size() << endmsg;
311 for (auto &a : m_vhka) {
313 for (auto k : keys) {
314 k->setOwner(this);
315 }
316 }
317 }

Member Data Documentation

◆ m_basefragment

std::string Sherpa_i::m_basefragment
protected

Sherpa base settings (read from base fragment file).

Definition at line 39 of file Sherpa_i.h.

◆ m_cleanup

BooleanProperty Sherpa_i::m_cleanup {this, "CleanupGeneratedFiles", true}
protected

Definition at line 67 of file Sherpa_i.h.

67{this, "CleanupGeneratedFiles", true};

◆ m_detStore

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

Pointer to StoreGate (detector store by default).

Definition at line 393 of file AthCommonDataStore.h.

◆ m_dsid

IntegerProperty Sherpa_i::m_dsid {this, "Dsid", 999999, "Dataset ID number"}
protected

Definition at line 70 of file Sherpa_i.h.

70{this, "Dsid", 999999, "Dataset ID number"};

◆ m_evtStore

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

Pointer to StoreGate (event store by default).

Definition at line 390 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_extrafiles

StringArrayProperty Sherpa_i::m_extrafiles {this, "ExtraFiles", {} }
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.

52{this, "ExtraFiles", {} };

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

110{};

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

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

◆ m_memorymb

DoubleProperty Sherpa_i::m_memorymb {this, "MemoryMB", 2500.}
protected

Memory required for integration/evgen.

Definition at line 58 of file Sherpa_i.h.

58{this, "MemoryMB", 2500.};

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

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

◆ m_ncores

IntegerProperty Sherpa_i::m_ncores {this, "NCores", 1}
protected

Number of cores recommended for multi-core integration file.

Definition at line 55 of file Sherpa_i.h.

55{this, "NCores", 1};

◆ m_openloopslibs

StringArrayProperty Sherpa_i::m_openloopslibs {this, "OpenLoopsLibs", {} }
protected

List of needed OpenLoops process libraries (from JO file).

Definition at line 49 of file Sherpa_i.h.

49{this, "OpenLoopsLibs", {} };

◆ m_params

StringArrayProperty Sherpa_i::m_params {this, "Parameters", {} }
protected

List of additional Sherpa parameters beyond run card snippet (from JO file).

Definition at line 45 of file Sherpa_i.h.

45{this, "Parameters", {} };

◆ m_plugincode

StringProperty Sherpa_i::m_plugincode {this, "PluginCode", ""}
protected

Optional code for plugin library to compile and load at run time.

Definition at line 61 of file Sherpa_i.h.

61{this, "PluginCode", ""};

◆ 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_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_runcard

StringProperty Sherpa_i::m_runcard {this, "RunCard", ""}
protected

FIXME unused?

Sherpa run card snippet (from JO file)

Definition at line 42 of file Sherpa_i.h.

42{this, "RunCard", ""};

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

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

Definition at line 399 of file AthCommonDataStore.h.

◆ m_variation_weight_cap

DoubleProperty Sherpa_i::m_variation_weight_cap {this, "VariationWeightCap", 10.0}
protected

Variation weight cap factor.

Definition at line 64 of file Sherpa_i.h.

64{this, "VariationWeightCap", 10.0};

◆ m_vhka

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

Definition at line 398 of file AthCommonDataStore.h.

◆ m_xsscale

DoubleProperty Sherpa_i::m_xsscale {this, "CrossSectionScaleFactor", 1.0}
protected

Definition at line 66 of file Sherpa_i.h.

66{this, "CrossSectionScaleFactor", 1.0};

◆ p_sherpa

SHERPA::Sherpa* Sherpa_i::p_sherpa {}
protected

Definition at line 32 of file Sherpa_i.h.

32{};

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