|
ATLAS Offline Software
|
#include <Starlight_i.h>
|
| Starlight_i (const std::string &name, ISvcLocator *pSvcLocator) |
|
virtual | ~Starlight_i () |
|
virtual StatusCode | genInitialize () |
| For initializing the generator, if required. More...
|
|
virtual StatusCode | callGenerator () |
| For calling the generator on each iteration of the event loop. More...
|
|
virtual StatusCode | genFinalize () |
| For finalising the generator, if required. More...
|
|
virtual StatusCode | fillEvt (HepMC::GenEvent *evt) |
| For filling the HepMC event object. More...
|
|
virtual StatusCode | sysInitialize () override |
| Override sysInitialize. More...
|
|
virtual const DataObjIDColl & | extraOutputDeps () const override |
| Return the list of extra output dependencies. More...
|
|
ServiceHandle< StoreGateSvc > & | evtStore () |
| The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
const ServiceHandle< StoreGateSvc > & | evtStore () const |
| The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
const ServiceHandle< StoreGateSvc > & | detStore () const |
| The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
virtual StatusCode | sysStart () override |
| Handle START transition. More...
|
|
virtual std::vector< Gaudi::DataHandle * > | inputHandles () const override |
| Return this algorithm's input handles. More...
|
|
virtual std::vector< Gaudi::DataHandle * > | outputHandles () const override |
| Return this algorithm's output handles. More...
|
|
Gaudi::Details::PropertyBase & | declareProperty (Gaudi::Property< T > &t) |
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleKey &hndl, const std::string &doc, const SG::VarHandleKeyType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleBase &hndl, const std::string &doc, const SG::VarHandleType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleKeyArray &hndArr, const std::string &doc, const SG::VarHandleKeyArrayType &) |
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, T &property, const std::string &doc, const SG::NotHandleType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, T &property, const std::string &doc="none") |
| Declare a new Gaudi property. More...
|
|
void | updateVHKA (Gaudi::Details::PropertyBase &) |
|
MsgStream & | msg () const |
|
MsgStream & | msg (const MSG::Level lvl) const |
|
bool | msgLvl (const MSG::Level lvl) const |
|
|
IntegerProperty | m_dsid {this, "Dsid", 999999, "Dataset ID number"} |
|
StringProperty | m_configFileName {this, "ConfigFileName", ""} |
|
BooleanProperty | m_lheOutput {this, "lheOutput", false} |
|
UnsignedIntegerProperty | m_maxevents {this, "maxevents", 5500} |
|
BooleanProperty | m_doTauolappLheFormat {this, "doTauolappLheFormat", false} |
|
BooleanProperty | m_suppressVMdecay {this, "suppressVMdecay", false} |
|
StringArrayProperty | m_InitializeVector {this, "Initialize", {} } |
|
int | m_events {0} |
|
starlight * | m_starlight {} |
|
std::shared_ptr< randomGenerator > | m_randomGenerator {} |
|
inputParameters | m_inputParameters |
|
double | m_axionMass {1.} |
|
upcEvent * | m_event {} |
|
unsigned int | m_beam1Z {0} |
|
unsigned int | m_beam1A {0} |
|
unsigned int | m_beam2Z {0} |
|
unsigned int | m_beam2A {0} |
|
double | m_beam1Gamma {0.} |
|
double | m_beam2Gamma {0.} |
|
double | m_maxW {0.} |
|
double | m_minW {0.} |
|
unsigned int | m_nmbWBins {0} |
|
double | m_maxRapidity {0.} |
|
unsigned int | m_nmbRapidityBins {0} |
|
bool | m_accCutPt {false} |
|
double | m_minPt {0.} |
|
double | m_maxPt {0.} |
|
bool | m_accCutEta {false} |
|
double | m_minEta {0.} |
|
double | m_maxEta {0.} |
|
int | m_productionMode {0} |
|
unsigned int | m_nmbEventsTot {0} |
|
int | m_prodParticleId {0} |
|
int | m_outputFormat {0} |
|
int | m_beamBreakupMode {0} |
|
bool | m_interferenceEnabled {false} |
|
double | m_interferenceStrength {0.} |
|
bool | m_coherentProduction {false} |
|
double | m_incoherentFactor {0.} |
|
double | m_bford {0.} |
|
double | m_maxPtInterference {0.} |
|
int | m_nmbPtBinsInterference {0} |
|
double | m_ptBinWidthInterference {0.} |
|
bool | m_xsecMethod {false} |
|
int | m_nThreads {1} |
|
bool | m_pythFullRec {false} |
|
|
IntegerProperty | m_randomSeed {this, "RandomSeed", 1234567, "Random seed for the built-in random engine"} |
| Seed for random number engine. More...
|
|
BooleanProperty | m_isAfterburner {this, "IsAfterburner", false, "Set true if generator modifies existing events rather than creating new ones"} |
| Flag for normal vs. afterburner generators. More...
|
|
CLHEP::HepRandomEngine * | getRandomEngine (const std::string &streamName, const EventContext &ctx) const |
|
CLHEP::HepRandomEngine * | getRandomEngine (const std::string &streamName, unsigned long int randomSeedOffset, const EventContext &ctx) const |
|
CLHEP::HepRandomEngine * | getRandomEngineDuringInitialize (const std::string &streamName, unsigned long int randomSeedOffset, unsigned int conditionsRun=1, unsigned int lbn=1) const |
|
ServiceHandle< IAthRNGSvc > | m_rndmSvc {this, "RndmSvc", "AthRNGSvc"} |
| Data members. More...
|
|
ServiceHandle< IIncidentSvc > | m_incidentSvc {this, "IncidentSvc", "IncidentSvc"} |
| Handle on the incident service. More...
|
|
Definition at line 30 of file Starlight_i.h.
◆ StoreGateSvc_t
◆ Starlight_i()
Starlight_i::Starlight_i |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
pSvcLocator |
|
) |
| |
◆ ~Starlight_i()
Starlight_i::~Starlight_i |
( |
| ) |
|
|
virtual |
◆ 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 Starlight_i::callGenerator |
( |
| ) |
|
|
virtual |
For calling the generator on each iteration of the event loop.
Reimplemented from GenModule.
Definition at line 90 of file Starlight_i.cxx.
97 const EventContext& ctx = Gaudi::Hive::currentContext();
109 int numberofTracks =
m_event->getParticles()->size();
110 int numberOfVertices = 1;
113 <<
" with " << numberOfVertices <<
" vertices "
114 <<
" and " << numberofTracks <<
" tracks" );
116 <<
" with " << numberofTracks <<
" tracks" );
119 std::vector<starlightParticle>::const_iterator
part =
124 << starlightParticleCodes::jetsetToGeant((*part).getCharge() * (*part).getPdgCode()) <<
" "
125 << (*part).GetPx() <<
" " << (*part).GetPy() <<
" "<< (*part).GetPz()
126 <<
" " <<
m_events <<
" " << ipart <<
" " << 0 <<
" "
127 << (*part).getCharge() * (*part).getPdgCode() );
132 return StatusCode::SUCCESS;
◆ cmTomm()
void GenBase::cmTomm |
( |
HepMC::GenEvent * |
evt | ) |
|
|
protectedinherited |
Scale event lengths by x 10.
Definition at line 78 of file GenBase.cxx.
79 for (HepMC::GenEvent::vertex_iterator vtx =
evt->vertices_begin(); vtx !=
evt->vertices_end(); ++vtx) {
80 const HepMC::FourVector fv((*vtx)->position().x() * 10,
81 (*vtx)->position().y() * 10,
82 (*vtx)->position().z() * 10,
83 (*vtx)->position().t() * 10);
84 (*vtx)->set_position(fv);
◆ declareGaudiProperty() [1/4]
specialization for handling Gaudi::Property<SG::VarHandleKeyArray>
Definition at line 170 of file AthCommonDataStore.h.
175 hndl.documentation());
◆ declareGaudiProperty() [2/4]
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
161 hndl.documentation());
◆ declareGaudiProperty() [3/4]
specialization for handling Gaudi::Property<SG::VarHandleBase>
Definition at line 184 of file AthCommonDataStore.h.
189 hndl.documentation());
◆ declareGaudiProperty() [4/4]
◆ declareProperty() [1/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation string for the property. |
This is the version for types that derive from SG::VarHandleBase
. The property value object is put on the input and output lists as appropriate; then we forward to the base class.
Definition at line 245 of file AthCommonDataStore.h.
250 this->declare(hndl.
vhKey());
251 hndl.
vhKey().setOwner(
this);
253 return PBASE::declareProperty(
name,hndl,
doc);
◆ declareProperty() [2/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation string for the property. |
This is the version for types that derive from SG::VarHandleKey
. The property value object is put on the input and output lists as appropriate; then we forward to the base class.
Definition at line 221 of file AthCommonDataStore.h.
229 return PBASE::declareProperty(
name,hndl,
doc);
◆ declareProperty() [3/6]
◆ declareProperty() [4/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation string for the property. |
This is the generic version, for types that do not derive from SG::VarHandleKey
. It just forwards to the base class version of declareProperty
.
Definition at line 333 of file AthCommonDataStore.h.
338 return PBASE::declareProperty(
name, property,
doc);
◆ declareProperty() [5/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation string for the property. |
This dispatches to either the generic declareProperty
or the one for VarHandle/Key/KeyArray.
Definition at line 352 of file AthCommonDataStore.h.
◆ declareProperty() [6/6]
◆ detStore()
◆ event_const()
const HepMC::GenEvent* GenBase::event_const |
( |
| ) |
const |
|
inlineinherited |
Access the current signal event (const)
Definition at line 83 of file GenBase.h.
85 ATH_MSG_ERROR(
"Const McEventCollection is empty during first event access");
◆ events_const() [1/2]
◆ events_const() [2/2]
◆ evtStore() [1/2]
◆ evtStore() [2/2]
◆ execute()
StatusCode GenModule::execute |
( |
| ) |
|
|
virtualinherited |
- Todo:
- Remove hard-coded alg name checking (already incomplete)
Reimplemented from GenBase.
Definition at line 70 of file GenModule.cxx.
105 if (
name() ==
"ParticleDecayer") {
112 return StatusCode::SUCCESS;
◆ extraDeps_update_handler()
Add StoreName to extra input/output deps as needed.
use the logic of the VarHandleKey to parse the DataObjID keys supplied via the ExtraInputs and ExtraOuputs Properties to add the StoreName if it's not explicitly given
◆ extraOutputDeps()
const DataObjIDColl & AthAlgorithm::extraOutputDeps |
( |
| ) |
const |
|
overridevirtualinherited |
Return the list of extra output dependencies.
This list is extended to include symlinks implied by inheritance relations.
Definition at line 50 of file AthAlgorithm.cxx.
57 return Algorithm::extraOutputDeps();
◆ fillEvt()
StatusCode Starlight_i::fillEvt |
( |
HepMC::GenEvent * |
evt | ) |
|
|
virtual |
For filling the HepMC event object.
Implements GenModule.
Definition at line 144 of file Starlight_i.cxx.
154 evt->add_vertex( v1 );
159 std::vector<starlightParticle>::const_iterator
part =
167 int pid = (*part).getPdgCode();
168 int charge = (*part).getCharge();
170 int pidsign =
pid/std::abs(
pid);
173 if( chsign != pidsign && chsign != 0)
pid = -
pid;
175 double px = (*part).GetPx();
176 double py = (*part).GetPy();
177 double pz = (*part).GetPz();
178 double e = (*part).GetE();
180 if(std::abs(
pid)==13) {
185 if(std::abs(
pid)==22) {
220 double e = sqrt(px_tot*px_tot + py_tot*py_tot + pz_tot*pz_tot +
mass*
mass);
221 v1->add_particle_out(
230 return StatusCode::SUCCESS;
◆ finalize()
StatusCode GenModule::finalize |
( |
| ) |
|
|
inlineinherited |
◆ genFinalize()
StatusCode Starlight_i::genFinalize |
( |
| ) |
|
|
virtual |
For finalising the generator, if required.
Reimplemented from GenModule.
Definition at line 136 of file Starlight_i.cxx.
140 return StatusCode::SUCCESS;
◆ genInitialize()
StatusCode Starlight_i::genInitialize |
( |
| ) |
|
|
virtual |
For initializing the generator, if required.
Reimplemented from GenModule.
Definition at line 52 of file Starlight_i.cxx.
56 ATH_MSG_INFO(
"===> January 20 2011 STARLIGHT INTERFACE VERSION. \n" );
67 return StatusCode::FAILURE;
83 ATH_MSG_INFO(
"===> dumping starlight events to lhef format. \n" );
87 return StatusCode::SUCCESS;
◆ genuserInitialize()
virtual StatusCode GenModule::genuserInitialize |
( |
| ) |
|
|
inlinevirtualinherited |
For initialization of user code, if required. Called after genInitialize.
Reimplemented in Pythia8B_i.
Definition at line 64 of file GenModule.h.
64 {
return StatusCode::SUCCESS; }
◆ getRandomEngine() [1/2]
CLHEP::HepRandomEngine * GenModule::getRandomEngine |
( |
const std::string & |
streamName, |
|
|
const EventContext & |
ctx |
|
) |
| const |
|
protectedinherited |
◆ getRandomEngine() [2/2]
CLHEP::HepRandomEngine * GenModule::getRandomEngine |
( |
const std::string & |
streamName, |
|
|
unsigned long int |
randomSeedOffset, |
|
|
const EventContext & |
ctx |
|
) |
| const |
|
protectedinherited |
◆ getRandomEngineDuringInitialize()
CLHEP::HepRandomEngine * GenModule::getRandomEngineDuringInitialize |
( |
const std::string & |
streamName, |
|
|
unsigned long int |
randomSeedOffset, |
|
|
unsigned int |
conditionsRun = 1 , |
|
|
unsigned int |
lbn = 1 |
|
) |
| const |
|
protectedinherited |
Definition at line 53 of file GenModule.cxx.
58 ctx.setEventID (EventIDBase (conditionsRun,
59 EventIDBase::UNDEFEVT,
60 EventIDBase::UNDEFNUM,
61 EventIDBase::UNDEFNUM,
◆ GeVToMeV()
void GenBase::GeVToMeV |
( |
HepMC::GenEvent * |
evt | ) |
|
|
protectedinherited |
Scale event energies/momenta by x 1000.
- Todo:
- Add HepMC units awareness and do it differently when HepMC provides this functionality directly (and reference-based FourVector accessors)
Definition at line 58 of file GenBase.cxx.
59 for (HepMC::GenEvent::particle_iterator
p =
evt->particles_begin();
p !=
evt->particles_end(); ++
p) {
60 const HepMC::FourVector fv((*p)->momentum().px() * 1000,
61 (*p)->momentum().py() * 1000,
62 (*p)->momentum().pz() * 1000,
63 (*p)->momentum().e() * 1000);
64 (*p)->set_momentum(fv);
65 (*p)->set_generated_mass(1000 * (*p)->generated_mass());
◆ initialize()
StatusCode GenModule::initialize |
( |
| ) |
|
|
virtualinherited |
◆ inputHandles()
Return this algorithm's input handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
◆ MeVToGeV()
void GenBase::MeVToGeV |
( |
HepMC::GenEvent * |
evt | ) |
|
|
protectedinherited |
Scale event energies/momenta by x 1/1000.
Definition at line 68 of file GenBase.cxx.
69 for (HepMC::GenEvent::particle_iterator
p =
evt->particles_begin();
p !=
evt->particles_end(); ++
p) {
70 const HepMC::FourVector fv((*p)->momentum().px() / 1000,
71 (*p)->momentum().py() / 1000,
72 (*p)->momentum().pz() / 1000,
73 (*p)->momentum().e() / 1000);
74 (*p)->set_momentum(fv);
75 (*p)->set_generated_mass((*p)->generated_mass() / 1000);
◆ mmTocm()
void GenBase::mmTocm |
( |
HepMC::GenEvent * |
evt | ) |
|
|
protectedinherited |
Scale event lengths by x 1/10.
Definition at line 87 of file GenBase.cxx.
88 for (HepMC::GenEvent::vertex_iterator vtx =
evt->vertices_begin(); vtx !=
evt->vertices_end(); ++vtx) {
89 const HepMC::FourVector fv((*vtx)->position().x() / 10,
90 (*vtx)->position().y() / 10,
91 (*vtx)->position().z() / 10,
92 (*vtx)->position().t() / 10);
93 (*vtx)->set_position(fv);
◆ msg() [1/2]
◆ msg() [2/2]
◆ msgLvl()
◆ outputHandles()
Return this algorithm's output handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
◆ particleData()
const HepPDT::ParticleData* GenBase::particleData |
( |
int |
pid | ) |
const |
|
inlineinherited |
Access an element in the particle data table.
Definition at line 126 of file GenBase.h.
◆ particleTable()
const HepPDT::ParticleDataTable& GenBase::particleTable |
( |
| ) |
const |
|
inlineinherited |
Get a particle data table.
Definition at line 118 of file GenBase.h.
◆ partPropSvc()
Access the particle property service.
Definition at line 113 of file GenBase.h.
◆ pdt()
const HepPDT::ParticleDataTable& GenBase::pdt |
( |
| ) |
const |
|
inlineinherited |
Shorter alias to get a particle data table.
Definition at line 123 of file GenBase.h.
◆ prepare_params_file()
bool Starlight_i::prepare_params_file |
( |
| ) |
|
|
protected |
Definition at line 359 of file Starlight_i.cxx.
368 std::string myparam = mystring.piece<std::string>(1);
369 if (myparam ==
"beam1Z")
371 m_beam1Z = mystring.piece<
double>(2);
373 else if (myparam ==
"beam1A")
375 m_beam1A = mystring.piece<
double>(2);
377 else if (myparam ==
"beam2Z")
379 m_beam2Z = mystring.piece<
double>(2);
381 else if (myparam ==
"beam2A")
383 m_beam2A = mystring.piece<
double>(2);
385 else if (myparam ==
"beam1Gamma")
389 else if (myparam ==
"beam2Gamma")
393 else if (myparam ==
"maxW")
395 m_maxW = mystring.piece<
double>(2);
397 else if (myparam ==
"minW")
399 m_minW = mystring.piece<
double>(2);
401 else if (myparam ==
"nmbWBins")
405 else if (myparam ==
"maxRapidity")
409 else if (myparam ==
"nmbRapidityBins")
413 else if (myparam ==
"accCutPt")
417 else if (myparam ==
"minPt")
419 m_minPt = mystring.piece<
double>(2);
421 else if (myparam ==
"maxPt")
423 m_maxPt = mystring.piece<
double>(2);
425 else if (myparam ==
"accCutEta")
429 else if (myparam ==
"minEta")
431 m_minEta = mystring.piece<
double>(2);
433 else if (myparam ==
"maxEta")
435 m_maxEta = mystring.piece<
double>(2);
437 else if (myparam ==
"productionMode")
441 else if (myparam ==
"axionMass")
445 else if (myparam ==
"nmbEventsTot")
449 else if (myparam ==
"prodParticleId")
453 else if (myparam ==
"randomSeed")
457 else if (myparam ==
"outputFormat")
461 else if (myparam ==
"beamBreakupMode")
465 else if (myparam ==
"interferenceEnabled")
469 else if (myparam ==
"interferenceStrength")
473 else if (myparam ==
"coherentProduction")
477 else if (myparam ==
"incoherentFactor")
481 else if (myparam ==
"maxPtInterference")
485 else if (myparam ==
"nmbPtBinsInterference")
489 else if (myparam ==
"xsecMethod")
493 else if (myparam ==
"nThreads")
497 else if (myparam ==
"pythFullRec")
503 ATH_MSG_ERROR(
" ERROR in STARLIGHT INITIALIZATION PARAMETERS "
504 << myparam <<
" is an invalid parameter !" );
◆ renounce()
◆ renounceArray()
◆ set_user_params()
bool Starlight_i::set_user_params |
( |
| ) |
|
|
protected |
Definition at line 335 of file Starlight_i.cxx.
345 "problems initializing input parameters. cannot initialize starlight.";
352 ATH_MSG_WARNING(
"problems initializing input parameters. cannot initialize starlight. " );
◆ starlight2lhef()
bool Starlight_i::starlight2lhef |
( |
| ) |
|
|
protected |
Definition at line 234 of file Starlight_i.cxx.
237 std::string lheFilename =
"events.lhe";
238 std::ofstream lheStream;
239 lheStream.open(lheFilename.c_str(), std::ofstream::trunc);
245 lheStream <<
"<LesHouchesEvents version=\"1.0\">\n";
246 lheStream <<
"<!--\n";
247 lheStream <<
"File generated using Starlight \n";
248 lheStream <<
"-->\n";
256 lheStream <<
"<init>\n";
258 lheStream <<
" 1.000000e+00 0.000000e+00 1.000000e+00 9999\n";
259 lheStream <<
"</init>\n";
262 std::unique_ptr<upcEvent> uevent(
new upcEvent);
265 lheStream <<
"<event>\n";
268 CLHEP::HepLorentzVector photon_system(0);
270 std::vector<starlightParticle>::const_iterator
part = (uevent->getParticles())->
begin();
271 for (
part = uevent->getParticles()->begin();
part != uevent->getParticles()->end(); ++
part, ++ipart)
273 CLHEP::HepLorentzVector particle_sl((*part).GetPx(), (*part).GetPy(), (*part).GetPz(), (*part).GetE());
274 photon_system += particle_sl;
275 ptscale += std::sqrt((*part).GetPx()*(*part).GetPx() + (*part).GetPy()*(*part).GetPy());
279 ptscale /=
static_cast<float> (ipart);
280 lheStream <<
" 4 9999 1.000000e+00 "<<ptscale<<
" 7.297e-03 2.569093e-01\n";
283 lheStream <<
" -11 -1 0 0 0 0 0.0000000000e+00 0.0000000000e+00 "
284 << photon_system.m()/2.*
std::exp(photon_system.rapidity())<<
" "
285 <<photon_system.m()/2.*
std::exp(photon_system.rapidity())
286 <<
" 0.0000000000e+00 0. 9.\n";
287 lheStream <<
" 11 -1 0 0 0 0 0.0000000000e+00 0.0000000000e+00 "
288 << -photon_system.m()/2.*
std::exp(-photon_system.rapidity())<<
" "
289 <<photon_system.m()/2.*
std::exp(-photon_system.rapidity())
290 <<
" 0.0000000000e+00 0. 9.\n";
294 lheStream <<
" 22 -1 0 0 0 0 0.0000000000e+00 0.0000000000e+00 "
295 << photon_system.m()/2.*
std::exp(photon_system.rapidity())<<
" "
296 <<photon_system.m()/2.*
std::exp(photon_system.rapidity())
297 <<
" 0.0000000000e+00 0. 9.\n";
298 lheStream <<
" 22 -1 0 0 0 0 0.0000000000e+00 0.0000000000e+00 "
299 << -photon_system.m()/2.*
std::exp(-photon_system.rapidity())<<
" "
300 <<photon_system.m()/2.*
std::exp(-photon_system.rapidity())
301 <<
" 0.0000000000e+00 0. 9.\n";
304 for (
part = uevent->getParticles()->begin();
part != uevent->getParticles()->end(); ++
part, ++ipart)
306 int pid = (*part).getPdgCode();
307 int charge = (*part).getCharge();
309 int pidsign =
pid/std::abs(
pid);
311 if( chsign != pidsign )
pid = -
pid;
313 double px = (*part).GetPx();
314 double py = (*part).GetPy();
315 double pz = (*part).GetPz();
316 double e = (*part).GetE();
317 double mass = (*part).getMass();
322 lheStream <<
pid<<
" 1 1 2 0 0 "<<
px<<
" "<<
py<<
" "<<
pz<<
" "<<
e<<
" "<<
mass<<
" 0. 9.\n";
325 lheStream <<
"</event>\n";
329 lheStream <<
"</LesHouchesEvents>";
◆ 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_accCutEta
bool Starlight_i::m_accCutEta {false} |
|
protected |
◆ m_accCutPt
bool Starlight_i::m_accCutPt {false} |
|
protected |
◆ m_axionMass
double Starlight_i::m_axionMass {1.} |
|
protected |
◆ m_beam1A
unsigned int Starlight_i::m_beam1A {0} |
|
protected |
◆ m_beam1Gamma
double Starlight_i::m_beam1Gamma {0.} |
|
protected |
◆ m_beam1Z
unsigned int Starlight_i::m_beam1Z {0} |
|
protected |
◆ m_beam2A
unsigned int Starlight_i::m_beam2A {0} |
|
protected |
◆ m_beam2Gamma
double Starlight_i::m_beam2Gamma {0.} |
|
protected |
◆ m_beam2Z
unsigned int Starlight_i::m_beam2Z {0} |
|
protected |
◆ m_beamBreakupMode
int Starlight_i::m_beamBreakupMode {0} |
|
protected |
◆ m_bford
double Starlight_i::m_bford {0.} |
|
protected |
◆ m_coherentProduction
bool Starlight_i::m_coherentProduction {false} |
|
protected |
◆ m_configFileName
StringProperty Starlight_i::m_configFileName {this, "ConfigFileName", ""} |
|
protected |
◆ m_detStore
◆ m_doTauolappLheFormat
BooleanProperty Starlight_i::m_doTauolappLheFormat {this, "doTauolappLheFormat", false} |
|
protected |
◆ m_dsid
IntegerProperty Starlight_i::m_dsid {this, "Dsid", 999999, "Dataset ID number"} |
|
protected |
◆ m_event
upcEvent* Starlight_i::m_event {} |
|
protected |
◆ m_events
int Starlight_i::m_events {0} |
|
protected |
◆ m_evtStore
◆ m_extendedExtraObjects
DataObjIDColl AthAlgorithm::m_extendedExtraObjects |
|
privateinherited |
◆ 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_incoherentFactor
double Starlight_i::m_incoherentFactor {0.} |
|
protected |
◆ m_InitializeVector
StringArrayProperty Starlight_i::m_InitializeVector {this, "Initialize", {} } |
|
protected |
◆ m_inputParameters
inputParameters Starlight_i::m_inputParameters |
|
protected |
◆ m_interferenceEnabled
bool Starlight_i::m_interferenceEnabled {false} |
|
protected |
◆ m_interferenceStrength
double Starlight_i::m_interferenceStrength {0.} |
|
protected |
◆ 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_lheOutput
BooleanProperty Starlight_i::m_lheOutput {this, "lheOutput", false} |
|
protected |
◆ m_maxEta
double Starlight_i::m_maxEta {0.} |
|
protected |
◆ m_maxevents
UnsignedIntegerProperty Starlight_i::m_maxevents {this, "maxevents", 5500} |
|
protected |
◆ m_maxPt
double Starlight_i::m_maxPt {0.} |
|
protected |
◆ m_maxPtInterference
double Starlight_i::m_maxPtInterference {0.} |
|
protected |
◆ m_maxRapidity
double Starlight_i::m_maxRapidity {0.} |
|
protected |
◆ m_maxW
double Starlight_i::m_maxW {0.} |
|
protected |
◆ 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_minEta
double Starlight_i::m_minEta {0.} |
|
protected |
◆ m_minPt
double Starlight_i::m_minPt {0.} |
|
protected |
◆ m_minW
double Starlight_i::m_minW {0.} |
|
protected |
◆ 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_nmbEventsTot
unsigned int Starlight_i::m_nmbEventsTot {0} |
|
protected |
◆ m_nmbPtBinsInterference
int Starlight_i::m_nmbPtBinsInterference {0} |
|
protected |
◆ m_nmbRapidityBins
unsigned int Starlight_i::m_nmbRapidityBins {0} |
|
protected |
◆ m_nmbWBins
unsigned int Starlight_i::m_nmbWBins {0} |
|
protected |
◆ m_nThreads
int Starlight_i::m_nThreads {1} |
|
protected |
◆ m_outputFormat
int Starlight_i::m_outputFormat {0} |
|
protected |
◆ 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_prodParticleId
int Starlight_i::m_prodParticleId {0} |
|
protected |
◆ m_productionMode
int Starlight_i::m_productionMode {0} |
|
protected |
◆ m_ptBinWidthInterference
double Starlight_i::m_ptBinWidthInterference {0.} |
|
protected |
◆ m_pythFullRec
bool Starlight_i::m_pythFullRec {false} |
|
protected |
◆ m_randomGenerator
std::shared_ptr<randomGenerator> Starlight_i::m_randomGenerator {} |
|
protected |
◆ 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_starlight
starlight* Starlight_i::m_starlight {} |
|
protected |
◆ m_suppressVMdecay
BooleanProperty Starlight_i::m_suppressVMdecay {this, "suppressVMdecay", false} |
|
protected |
◆ m_varHandleArraysDeclared
◆ m_vhka
◆ m_xsecMethod
bool Starlight_i::m_xsecMethod {false} |
|
protected |
The documentation for this class was generated from the following files:
HepMC::GenVertex * GenVertexPtr
JetConstituentVector::iterator iterator
void setSeed(const std::string &algName, const EventContext &ctx)
Set the random seed using a string (e.g.
BooleanProperty m_doTauolappLheFormat
Utility object for parsing a string into tokens and returning them as a variety of types.
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)
inputParameters m_inputParameters
BooleanProperty m_suppressVMdecay
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.
void fillBarcodesAttribute(GenEvent *)
BooleanProperty m_lheOutput
CLHEP::HepRandomEngine * getRandomEngine(const std::string &streamName, const EventContext &ctx) const
StringProperty m_configFileName
double m_interferenceStrength
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.
std::shared_ptr< randomGenerator > m_randomGenerator
virtual StatusCode genInitialize()
For initializing the generator, if required.
virtual StatusCode sysInitialize() override
Override sysInitialize.
StringArrayProperty m_InitializeVector
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
GenVertexPtr newGenVertexPtr(const HepMC::FourVector &pos=HepMC::FourVector(0.0, 0.0, 0.0, 0.0), const int i=0)
::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.
std::pair< std::vector< unsigned int >, bool > res
virtual StatusCode genFinalize()
For finalising the generator, if required.
double m_maxPtInterference
#define CHECK(...)
Evaluate an expression and check for errors.
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
int m_nmbPtBinsInterference
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
unsigned int m_nmbEventsTot
GenModule(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
A wrapper class for event-slot-local random engines.
double charge(const T &p)
bool m_interferenceEnabled
unsigned int m_nmbRapidityBins
double m_incoherentFactor
CLHEP::HepRandomEngine * getEngine(const EventContext &ctx) const
Retrieve the random engine corresponding to the provided EventContext.
DataObjIDColl m_extendedExtraObjects
GenParticlePtr newGenParticlePtr(const HepMC::FourVector &mom=HepMC::FourVector(0.0, 0.0, 0.0, 0.0), int pid=0, int status=0)
bool m_coherentProduction
#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.
bool prepare_params_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
UnsignedIntegerProperty m_maxevents
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.