|
ATLAS Offline Software
|
#include <Sherpa_i.h>
|
| Sherpa_i (const std::string &name, ISvcLocator *pSvcLocator) |
|
StatusCode | genInitialize () |
| For initializing the generator, if required. More...
|
|
StatusCode | callGenerator () |
| For calling the generator on each iteration of the event loop. More...
|
|
StatusCode | genFinalize () |
| For finalising the generator, if required. More...
|
|
StatusCode | fillEvt (HepMC::GenEvent *evt) |
| For filling the HepMC event object. More...
|
|
void | getParameters (int &argc, char **&argv) |
|
void | compilePlugin (const std::string &) |
|
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 |
|
|
SHERPA::Sherpa * | p_sherpa {} |
|
std::string | m_basefragment |
| Sherpa base settings (read from base fragment file) More...
|
|
StringProperty | m_runcard {this, "RunCard", ""} |
| FIXME unused? More...
|
|
StringArrayProperty | m_params {this, "Parameters", {} } |
| List of additional Sherpa parameters beyond run card snippet (from JO file) More...
|
|
StringArrayProperty | m_openloopslibs {this, "OpenLoopsLibs", {} } |
| List of needed OpenLoops process libraries (from JO file) More...
|
|
StringArrayProperty | m_extrafiles {this, "ExtraFiles", {} } |
| List of any additional needed files, e.g. custom libraries, PDF sets (from JO file) More...
|
|
IntegerProperty | m_ncores {this, "NCores", 1} |
| Number of cores recommended for multi-core integration file. More...
|
|
DoubleProperty | m_memorymb {this, "MemoryMB", 2500.} |
| Memory required for integration/evgen. More...
|
|
StringProperty | m_plugincode {this, "PluginCode", ""} |
| Optional code for plugin library to compile and load at run time. More...
|
|
DoubleProperty | m_variation_weight_cap {this, "VariationWeightCap", 10.0} |
| Variation weight cap factor. More...
|
|
DoubleProperty | m_xsscale {this, "CrossSectionScaleFactor", 1.0} |
|
BooleanProperty | m_cleanup {this, "CleanupGeneratedFiles", true} |
|
IntegerProperty | m_dsid {this, "Dsid", 999999, "Dataset ID number"} |
|
|
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...
|
|
ServiceHandle< IAthRNGSvc > | m_rndmSvc {this, "RndmSvc", "AthRNGSvc"} |
| Data members. More...
|
|
ServiceHandle< IIncidentSvc > | m_incidentSvc {this, "IncidentSvc", "IncidentSvc"} |
| Handle on the incident service. 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 |
|
Definition at line 18 of file Sherpa_i.h.
◆ StoreGateSvc_t
◆ Sherpa_i()
Sherpa_i::Sherpa_i |
( |
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 Sherpa_i::callGenerator |
( |
| ) |
|
|
virtual |
For calling the generator on each iteration of the event loop.
Reimplemented from GenModule.
Definition at line 200 of file Sherpa_i.cxx.
204 const EventContext& ctx = Gaudi::Hive::currentContext();
210 }
while (
p_sherpa->GenerateOneEvent()==
false);
212 const size_t genEvents = ATOOLS::rpa->gen.NumberOfGeneratedEvents();
213 if (genEvents%1000==0) {
217 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);
◆ compilePlugin()
void Sherpa_i::compilePlugin |
( |
const std::string & |
pluginCode | ) |
|
Definition at line 353 of file Sherpa_i.cxx.
355 FILE *
file = fopen(
"Sherpa_iPlugin.C",
"w");
356 fputs(pluginCode.c_str(),
file);
362 command +=
"tail -n +2 Sherpa_iPlugin.C | head -n -1 > Sherpa_iPlugin.C.tmp; mv Sherpa_iPlugin.C.tmp Sherpa_iPlugin.C; ";
363 command +=
"g++ -shared -std=c++0x -g ";
364 command +=
"-I`Sherpa-config --incdir` ";
365 command +=
"`Sherpa-config --ldflags` ";
366 command +=
"-I$FASTJETPATH/include ";
367 command +=
"-fPIC -o libSherpa_iPlugin.so Sherpa_iPlugin.C";
369 if (system(
command.c_str())!=0) {
◆ 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 Sherpa_i::fillEvt |
( |
HepMC::GenEvent * |
evt | ) |
|
|
virtual |
For filling the HepMC event object.
Implements GenModule.
Definition at line 220 of file Sherpa_i.cxx.
223 if (!
event->run_info())
event->set_run_info(m_runinfo);
230 if (
event->weights().size()>2) {
231 double nominal =
event->weight(
"Weight");
232 for (
const auto&
name:
event->weight_names()) {
233 if (
name ==
"WeightNormalisation")
continue;
234 if (
name ==
"NTrials")
continue;
235 if (
name ==
"Weight")
continue;
236 if (
name ==
"NTrials")
continue;
245 if (
event->weights().size()>2) {
246 for (
size_t i=0;
i<
event->weights().
size(); ++
i) {
266 return StatusCode::SUCCESS;
◆ finalize()
StatusCode GenModule::finalize |
( |
| ) |
|
|
inlineinherited |
◆ genFinalize()
StatusCode Sherpa_i::genFinalize |
( |
| ) |
|
|
virtual |
For finalising the generator, if required.
Reimplemented from GenModule.
Definition at line 269 of file Sherpa_i.cxx.
273 std::cout <<
"MetaData: generator = Sherpa" << SHERPA_VERSION <<
"." << SHERPA_SUBVERSION << std::endl;
274 std::cout <<
"MetaData: cross-section (nb)= " <<
p_sherpa->TotalXS()/1000.0*
m_xsscale << std::endl;
276 std::cout <<
"MetaData: PDF = " <<
p_sherpa->PDFInfo() << std::endl;
278 std::cout <<
"Named variations initialised by Sherpa:" << std::endl;
279 std::cout << *
p_sherpa->GetInitHandler()->GetVariations() << std::endl;
285 ATH_MSG_INFO(
"Deleting left-over files from working directory.");
286 system(
"rm -rf Results.db Process MIG_*.db MPI_*.dat libSherpa*.so libProc*.so");
289 return StatusCode::SUCCESS;
◆ genInitialize()
StatusCode Sherpa_i::genInitialize |
( |
| ) |
|
|
virtual |
For initializing the generator, if required.
Reimplemented from GenModule.
Definition at line 49 of file Sherpa_i.cxx.
53 m_params.value().push_back(
"SHERPA_LDADD=Sherpa_iPlugin");
72 m_inputfiles[
"Base.yaml"] +=
"SHERPA_LDADD: Sherpa_iPlugin \n";
74 m_params.value().push_back(
"SHERPA_LDADD=Sherpa_iPlugin");
84 m_inputfiles[
"Base.yaml"] +=
"\nEVT_OUTPUT: 0 \n";
87 m_inputfiles[
"Base.yaml"] +=
"\nEVT_OUTPUT: 2 \n";
90 m_inputfiles[
"Base.yaml"] +=
"\nEVT_OUTPUT: 15 \n";
93 m_inputfiles[
"Base.yaml"] +=
"\nEVT_OUTPUT: 15 \n";
108 char**
argv =
new char*[2];
109 argv[0] =
new char[7];
110 argv[1] =
new char[34];
111 strcpy(
argv[0],
"Sherpa");
112 strcpy(
argv[1],
"RUNDATA: [Base.yaml, Sherpa.yaml]");
123 std::set_terminate(ATOOLS::Terminate);
124 std::set_unexpected(ATOOLS::Terminate);
126 signal(SIGSEGV,ATOOLS::HandleSignal);
127 signal(SIGINT,ATOOLS::HandleSignal);
128 signal(SIGPIPE,ATOOLS::HandleSignal);
129 signal(SIGBUS,ATOOLS::HandleSignal);
130 signal(SIGFPE,ATOOLS::HandleSignal);
131 signal(SIGABRT,ATOOLS::HandleSignal);
132 signal(SIGTERM,ATOOLS::HandleSignal);
133 signal(SIGXCPU,ATOOLS::HandleSignal);
134 signal(SIGUSR1,ATOOLS::HandleSignal);
138 p_sherpa->InitializeTheEventHandler();
140 catch (
const ATOOLS::normal_exit&
exception) {
144 return StatusCode::FAILURE;
146 catch (
const ATOOLS::Exception&
exception) {
149 return StatusCode::FAILURE;
152 signal(SIGSEGV,ATOOLS::SignalHandler);
153 signal(SIGINT,ATOOLS::SignalHandler);
154 signal(SIGBUS,ATOOLS::SignalHandler);
155 signal(SIGFPE,ATOOLS::SignalHandler);
156 signal(SIGABRT,ATOOLS::SignalHandler);
157 signal(SIGTERM,ATOOLS::SignalHandler);
158 signal(SIGXCPU,ATOOLS::SignalHandler);
167 p_sherpa->InitializeTheEventHandler();
169 catch (
const ATOOLS::Exception&
exception) {
170 if (
exception.Class()==
"Matrix_Element_Handler" &&
exception.Type()==ATOOLS::ex::normal_exit) {
178 return StatusCode::FAILURE;
183 return StatusCode::FAILURE;
187 m_runinfo = std::make_shared<HepMC3::GenRunInfo>();
189 struct HepMC3::GenRunInfo::ToolInfo
generator = {
190 std::string(
"SHERPA"),
191 std::string(SHERPA_VERSION)+
"." + std::string(SHERPA_SUBVERSION),
192 std::string(
"Used generator")
196 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; }
◆ getParameters()
void Sherpa_i::getParameters |
( |
int & |
argc, |
|
|
char **& |
argv |
|
) |
| |
Definition at line 294 of file Sherpa_i.cxx.
295 std::vector<std::string>
params;
298 params.push_back(
"EXTERNAL_RNG=Atlas_RNG");
304 std::string verbose_arg;
307 params.push_back(
"OUTPUT=0");
309 else if(
log.level()==MSG::INFO){
310 params.push_back(
"OUTPUT=2");
313 params.push_back(
"OUTPUT=3");
316 params.push_back(
"OUTPUT=15");
327 FILE *
file = fopen(
"Run.dat",
"w");
337 argv[0] =
new char[7];
338 strcpy(
argv[0],
"Sherpa");
348 ATH_MSG_INFO(
"Further Sherpa initialisation output will be redirected to the LOG_FILE specified above.");
◆ 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_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 |
◆ m_detStore
◆ m_dsid
IntegerProperty Sherpa_i::m_dsid {this, "Dsid", 999999, "Dataset ID number"} |
|
protected |
◆ m_evtStore
◆ m_extendedExtraObjects
DataObjIDColl AthAlgorithm::m_extendedExtraObjects |
|
privateinherited |
◆ 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.
◆ 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_memorymb
DoubleProperty Sherpa_i::m_memorymb {this, "MemoryMB", 2500.} |
|
protected |
Memory required for integration/evgen.
Definition at line 58 of file Sherpa_i.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_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.
◆ 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.
◆ 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.
◆ 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.
◆ 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_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.
◆ m_varHandleArraysDeclared
◆ 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.
◆ m_vhka
◆ m_xsscale
DoubleProperty Sherpa_i::m_xsscale {this, "CrossSectionScaleFactor", 1.0} |
|
protected |
◆ p_sherpa
SHERPA::Sherpa* Sherpa_i::p_sherpa {} |
|
protected |
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.
StringProperty m_runcard
FIXME unused?
void compilePlugin(const std::string &)
void getParameters(int &argc, char **&argv)
const_pointer_type cptr()
Dereference the pointer.
virtual StatusCode fillEvt(HepMC::GenEvent *evt)=0
For filling the HepMC event object.
virtual StatusCode callGenerator()
For calling the generator on each iteration of the event loop.
void GeVToMeV(HepMC::GenEvent *evt)
Scale event energies/momenta by x 1000.
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.
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.
SHERPA::Sherpa * p_sherpa
void fillBarcodesAttribute(GenEvent *)
StringProperty m_plugincode
Optional code for plugin library to compile and load at run time.
DoubleProperty m_variation_weight_cap
Variation weight cap factor.
CLHEP::HepRandomEngine * getRandomEngine(const std::string &streamName, const EventContext &ctx) const
virtual void setOwner(IDataHandleHolder *o)=0
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.
POOL::TEvent event(POOL::TEvent::kClassAccess)
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
msgSvc
Provide convenience handles for various services.
::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)
virtual bool isValid() override final
Can the handle be successfully dereferenced?
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.
BooleanProperty m_cleanup
A wrapper class for event-slot-local random engines.
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...
#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.
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.
StringArrayProperty m_params
List of additional Sherpa parameters beyond run card snippet (from JO file)
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
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
CLHEP::HepRandomEngine * p_rndEngine