ATLAS Offline Software
Public Member Functions | Protected Member Functions | Protected Attributes | Private Types | Private Member Functions | Private Attributes | List of all members
Hydjet Class Reference

#include <Hydjet_i.h>

Inheritance diagram for Hydjet:
Collaboration diagram for Hydjet:

Public Member Functions

 Hydjet (const std::string &name, ISvcLocator *pSvcLocator)
 
virtual ~Hydjet ()=default
 
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
 

Protected Member Functions

void set_user_params (void)
 
void renounceArray (SG::VarHandleKeyArray &handlesArray)
 remove all handles from I/O resolution More...
 
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. More...
 

Protected Attributes

double m_e {0.}
 
double m_a {0.}
 
int m_ifb {0}
 
double m_bmin {0.}
 
double m_bmax {0.}
 
double m_bfix {0.}
 
int m_nh {0}
 
std::vector< long int > m_seeds
 
int m_events {0}
 
CommandVector m_InitializeVector
 
HyiPar m_hyipar
 
HyjPar m_hyjpar
 
HyfPar m_hyfpar
 
HyFlow m_hyflow
 
PyPars m_pypars
 
PySubs m_pysubs
 
PyDat1 m_pydat1
 
PyqPar m_pyqpar
 
LuDatr m_ludatr
 
LuJets m_lujets
 
HyJets m_hyjets
 
SG::WriteHandleKey< HijingEventParamsm_event_paramsKey {this, "HijingOutputKey", "Hijing_event_params"}
 

Private Types

typedef ServiceHandle< StoreGateSvcStoreGateSvc_t
 

Private Member Functions

Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyArrayType &)
 specialization for handling Gaudi::Property<SG::VarHandleKeyArray> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleType &)
 specialization for handling Gaudi::Property<SG::VarHandleBase> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &t, const SG::NotHandleType &)
 specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray> More...
 

Private Attributes

DataObjIDColl m_extendedExtraObjects
 
StoreGateSvc_t m_evtStore
 Pointer to StoreGate (event store by default) More...
 
StoreGateSvc_t m_detStore
 Pointer to StoreGate (detector store by default) More...
 
std::vector< SG::VarHandleKeyArray * > m_vhka
 
bool m_varHandleArraysDeclared
 

Utility event-mangling functions

Todo:
Replace with HepMC units when available
void GeVToMeV (HepMC::GenEvent *evt)
 Scale event energies/momenta by x 1000. More...
 
void MeVToGeV (HepMC::GenEvent *evt)
 Scale event energies/momenta by x 1/1000. More...
 
void cmTomm (HepMC::GenEvent *evt)
 Scale event lengths by x 10. More...
 
void mmTocm (HepMC::GenEvent *evt)
 Scale event lengths by x 1/10. More...
 
ServiceHandle< IPartPropSvc > m_ppSvc {this, "PartPropSvc", "PartPropSvc"}
 Handle on the particle property service. More...
 
SG::ReadHandleKey< McEventCollectionm_mcevents_const { this, "McEventKey", "GEN_EVENT", "StoreGate key of the MC event collection" }
 Const handle to the MC event collection. More...
 

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. 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< IAthRNGSvcm_rndmSvc {this, "RndmSvc", "AthRNGSvc"}
 Data members. More...
 
ServiceHandle< IIncidentSvc > m_incidentSvc {this, "IncidentSvc", "IncidentSvc"}
 Handle on the incident service. More...
 

Detailed Description

Definition at line 44 of file Hydjet_i.h.

Member Typedef Documentation

◆ StoreGateSvc_t

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

Definition at line 388 of file AthCommonDataStore.h.

Constructor & Destructor Documentation

◆ Hydjet()

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

Definition at line 40 of file Hydjet_i.cxx.

41  : GenModule(name,pSvcLocator)
42 {
43  declareProperty("Initialize", m_InitializeVector);
44 }

◆ ~Hydjet()

virtual Hydjet::~Hydjet ( )
virtualdefault

Member Function Documentation

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

76  {
77  if (events()->empty())
78  ATH_MSG_ERROR("McEventCollection is empty during first event access");
79  return *(events()->begin());
80  }

◆ ATLAS_NOT_CONST_THREAD_SAFE() [2/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.

◆ callGenerator()

StatusCode Hydjet::callGenerator ( )
virtual

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

Reimplemented from GenModule.

Definition at line 135 of file Hydjet_i.cxx.

136 {
137  ATH_MSG_INFO( " HYDJET generating. \n" );
138 
139  // Generate event
140  hyevnt_();
141 
142  // Remove unstable particles and partons
143  int luedit_init = 2;
144  luedit_(&luedit_init);
145 
146  // update event counter
147  ++m_events;
148 
149  /*
150  std::cout << " PRINTING HYIPAR " << std::endl;
151  std::cout << "bminh,bmaxh,AW,RA,npar0,nbco0,Apb,Rpb,np,init,ipr" << ", "
152  << m_hyipar.bminh() << ", " << m_hyipar.bmaxh() << ", "
153  << m_hyipar.AW() << ", " << m_hyipar.RA() << ", "
154  << m_hyipar.npar0() << ", " << m_hyipar.nbco0() << ", "
155  << m_hyipar.Apb() << ", " << m_hyipar.Rpb() << ", "
156  << m_hyipar.np() << ", " << m_hyipar.init() << ", "
157  << m_hyipar.ipr() << std::endl;
158  std::cout << " PRINTING HYFPAR " << std::endl;
159  std::cout << "bgen,nbcol,npart,npyt,nhyd" << ", "
160  << m_hyfpar.bgen() << ", " << m_hyfpar.nbcol() << ", "
161  << m_hyfpar.npart() << ", " << m_hyfpar.npyt() << ", "
162  << m_hyfpar.nhyd() << std::endl;
163  */
164 
165  // store hijing event parameters
166  // -----------------------------
167  ATH_MSG_DEBUG( "New HijingEventParams" );
168  int np = (int) round(m_hyfpar.npart()/2);
169  int nt = (int) round(m_hyfpar.npart()/2);
170  int n0 = (int) round(m_hyfpar.nbcol());
171  int n01 = -1;
172  int n10 = -1;
173  int n11 = -1;
174  int natt = m_hyfpar.nhyd() + m_hyfpar.npyt();
175  int jatt = m_hyjpar.njet();
176  float b = m_hyfpar.bgen() * m_hyipar.RA();
177  float bphi = 0;
178 
180  event_params = std::make_unique<HijingEventParams>(np, nt, n0, n01, n10, n11, natt, jatt, b, bphi);
181 
182  ATH_MSG_INFO( "\n=================================================\n"
183  << " HYDJET event description: \n"
184  << " b = " << b << " fm \n"
185  << " # total participants = " << m_hyfpar.npart() << "\n"
186  << " # collisions = " << m_hyfpar.nbcol() << "\n"
187  << " # jets = " << m_hyjpar.njet() << "\n"
188  << " # pythia particles = " << m_hyfpar.npyt() << "\n"
189  << " # hydro particles = " << m_hyfpar.nhyd() << "\n"
190  << "=================================================\n" );
191 
192  ATH_MSG_DEBUG( " HIJING generating done. \n" );
193  return StatusCode::SUCCESS;
194 }

◆ cmTomm()

void GenBase::cmTomm ( HepMC::GenEvent *  evt)
protectedinherited

Scale event lengths by x 10.

Definition at line 81 of file GenBase.cxx.

81  {
82  for (HepMC::GenEvent::vertex_iterator vtx = evt->vertices_begin(); vtx != evt->vertices_end(); ++vtx) {
83  const HepMC::FourVector fv((*vtx)->position().x() * 10,
84  (*vtx)->position().y() * 10,
85  (*vtx)->position().z() * 10,
86  (*vtx)->position().t() * 10);
87  (*vtx)->set_position(fv);
88  }
89 }

◆ declareGaudiProperty() [1/4]

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

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

Definition at line 170 of file AthCommonDataStore.h.

172  {
173  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
174  hndl.value(),
175  hndl.documentation());
176 
177  }

◆ declareGaudiProperty() [2/4]

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

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

Definition at line 156 of file AthCommonDataStore.h.

158  {
159  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
160  hndl.value(),
161  hndl.documentation());
162 
163  }

◆ declareGaudiProperty() [3/4]

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

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

Definition at line 184 of file AthCommonDataStore.h.

186  {
187  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
188  hndl.value(),
189  hndl.documentation());
190  }

◆ declareGaudiProperty() [4/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< Algorithm > >::declareGaudiProperty ( Gaudi::Property< T > &  t,
const SG::NotHandleType  
)
inlineprivateinherited

specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray>

Definition at line 199 of file AthCommonDataStore.h.

200  {
201  return PBASE::declareProperty(t);
202  }

◆ declareProperty() [1/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< Algorithm > >::declareProperty ( const std::string &  name,
SG::VarHandleBase hndl,
const std::string &  doc,
const SG::VarHandleType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
hndlObject holding the property value.
docDocumentation 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.

249  {
250  this->declare(hndl.vhKey());
251  hndl.vhKey().setOwner(this);
252 
253  return PBASE::declareProperty(name,hndl,doc);
254  }

◆ declareProperty() [2/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< Algorithm > >::declareProperty ( const std::string &  name,
SG::VarHandleKey hndl,
const std::string &  doc,
const SG::VarHandleKeyType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
hndlObject holding the property value.
docDocumentation 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.

225  {
226  this->declare(hndl);
227  hndl.setOwner(this);
228 
229  return PBASE::declareProperty(name,hndl,doc);
230  }

◆ declareProperty() [3/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< Algorithm > >::declareProperty ( const std::string &  name,
SG::VarHandleKeyArray hndArr,
const std::string &  doc,
const SG::VarHandleKeyArrayType  
)
inlineinherited

Definition at line 259 of file AthCommonDataStore.h.

263  {
264 
265  // std::ostringstream ost;
266  // ost << Algorithm::name() << " VHKA declareProp: " << name
267  // << " size: " << hndArr.keys().size()
268  // << " mode: " << hndArr.mode()
269  // << " vhka size: " << m_vhka.size()
270  // << "\n";
271  // debug() << ost.str() << endmsg;
272 
273  hndArr.setOwner(this);
274  m_vhka.push_back(&hndArr);
275 
276  Gaudi::Details::PropertyBase* p = PBASE::declareProperty(name, hndArr, doc);
277  if (p != 0) {
278  p->declareUpdateHandler(&AthCommonDataStore<PBASE>::updateVHKA, this);
279  } else {
280  ATH_MSG_ERROR("unable to call declareProperty on VarHandleKeyArray "
281  << name);
282  }
283 
284  return p;
285 
286  }

◆ declareProperty() [4/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< Algorithm > >::declareProperty ( const std::string &  name,
T &  property,
const std::string &  doc,
const SG::NotHandleType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
propertyObject holding the property value.
docDocumentation 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.

337  {
338  return PBASE::declareProperty(name, property, doc);
339  }

◆ declareProperty() [5/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< Algorithm > >::declareProperty ( const std::string &  name,
T &  property,
const std::string &  doc = "none" 
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
propertyObject holding the property value.
docDocumentation 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.

355  {
356  typedef typename SG::HandleClassifier<T>::type htype;
357  return declareProperty (name, property, doc, htype());
358  }

◆ declareProperty() [6/6]

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

Definition at line 145 of file AthCommonDataStore.h.

145  {
146  typedef typename SG::HandleClassifier<T>::type htype;
148  }

◆ detStore()

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

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

Definition at line 95 of file AthCommonDataStore.h.

95 { return m_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.

83  {
84  if (events_const()->empty())
85  ATH_MSG_ERROR("Const McEventCollection is empty during first event access");
86  return *(events_const()->begin());
87  }

◆ events_const() [1/2]

const McEventCollection* GenBase::events_const ( ) const
inlineinherited

Access the current event's McEventCollection (const)

Definition at line 96 of file GenBase.h.

96  {
97  return events_const( getContext() );
98  }

◆ events_const() [2/2]

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

Definition at line 99 of file GenBase.h.

99  {
101  if (!ret.isValid())
102  ATH_MSG_ERROR("No McEventCollection found in StoreGate with key " << m_mcevents_const.key());
103  return ret.cptr();
104  }

◆ evtStore() [1/2]

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

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

Definition at line 85 of file AthCommonDataStore.h.

85 { return m_evtStore; }

◆ evtStore() [2/2]

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

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

Definition at line 90 of file AthCommonDataStore.h.

90 { return m_evtStore; }

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

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  //const EventContext& ctx = Gaudi::Hive::currentContext();
79  //CLHEP::HepRandomEngine* rndmEngine = this->getRandomEngine("MyStream", ctx);
80 
81  // Example 2 - seeded based on the m_randomSeed property (+ slot, run, streamName)
82  //const EventContext& ctx = Gaudi::Hive::currentContext();
83  //CLHEP::HepRandomEngine* rndmEngine = this->getRandomEngine("MyStream", m_randomSeed.value(), ctx);
84 
85  // Call the code that generates an event
86  CHECK(this->callGenerator());
87 
88  // Create the MC event and send the GeneratorEvent stored in it to fillEvt
89  HepMC::GenEvent* evt = HepMC::newGenEvent(1,1);
90  CHECK(this->fillEvt(evt));
92 
93  // Add the event to the MC event collection
94  if (events()) {
95  // If this is an "afterburner" generator, replace the last event rather than add a new one
97  if (m_isAfterburner.value() || name() == "Tauola" || name() == "Photos") {
98  events()->pop_back();
99  }
100  // Add the event to the end of the collection
101  events()->push_back(evt);
102  ATH_MSG_DEBUG("MC event added to McEventCollection");
103 
104  // remove the empty event in case of ParticleDecayer
105  if (name() == "ParticleDecayer") {
106  events()->pop_back();
107  }
108  }
109 
110  // Call the incident service to notify that an event has been made
111  m_incidentSvc->fireIncident( Incident(name(), "McEventGenerated") );
112  return StatusCode::SUCCESS;
113 }

◆ extraDeps_update_handler()

void AthCommonDataStore< AthCommonMsg< 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 & 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.

51 {
52  // If we didn't find any symlinks to add, just return the collection
53  // from the base class. Otherwise, return the extended collection.
54  if (!m_extendedExtraObjects.empty()) {
56  }
57  return Algorithm::extraOutputDeps();
58 }

◆ fillEvt()

StatusCode Hydjet::fillEvt ( HepMC::GenEvent *  evt)
virtual

For filling the HepMC event object.

Implements GenModule.

Definition at line 204 of file Hydjet_i.cxx.

205 {
206  ATH_MSG_INFO( " HYDJET Filing. \n" );
207 
208  // Set the event number
209  evt->set_event_number( m_events );
210 
211  // Set the random generator seeds
212  // evt->set_random_states(m_seeds);
213 
214  // Set the generator id
215  HepMC::set_signal_process_id(evt,100000000 + int(m_a));
216 
217  // Create the event vertex
219  evt->add_vertex( v1 );
220 
221  double eproj = m_e/2.0;
222  int proj_id = (int) m_a;
223  v1->add_particle_in( HepMC::newGenParticlePtr( HepMC::FourVector(0., 0., eproj, eproj), proj_id, 101 ) );
224 
225  double etarg = m_e/2.0;
226  int targ_id = (int) m_a;
227  v1->add_particle_in( HepMC::newGenParticlePtr( HepMC::FourVector(0., 0., -etarg, etarg), targ_id, 102 ) );
228 
229  // Loop on all final particles and
230  // put them all as outgoing from the event vertex
231  for (int i = 1; i <= m_lujets.n(); ++i)
232  {
233  v1->add_particle_out( HepMC::newGenParticlePtr(
234  HepMC::FourVector(m_lujets.p(i, 1), m_lujets.p(i, 2),
235  m_lujets.p(i, 3), m_lujets.p(i, 4)), m_lujets.k(i, 2), 1 ) );
236  }
237 
238  // Set the generator id
239  HepMC::set_signal_process_id(evt,100000000 + int(m_a));
240 
241  // Convert cm->mm and GeV->MeV
242  //
243  GeVToMeV(evt);
244 
245  return StatusCode::SUCCESS;
246 }

◆ finalize()

StatusCode GenModule::finalize ( )
inlineinherited

Definition at line 55 of file GenModule.h.

55 { return genFinalize(); }

◆ genFinalize()

StatusCode Hydjet::genFinalize ( )
virtual

For finalising the generator, if required.

Reimplemented from GenModule.

Definition at line 197 of file Hydjet_i.cxx.

198 {
199  ATH_MSG_INFO( " HIJING Ending. \n" );
200  return StatusCode::SUCCESS;
201 }

◆ genInitialize()

StatusCode Hydjet::genInitialize ( )
virtual

For initializing the generator, if required.

Reimplemented from GenModule.

Definition at line 46 of file Hydjet_i.cxx.

47 {
48 
50  // Initialisation of input parameters
51  //
52  ATH_MSG_INFO( "===> March 13 2008 HYDJET INTERFACE VERSION. \n" );
53  ATH_MSG_INFO( "===> HYDJET INITIALISING. \n" );
54 
55  // Set the users' initialisation parameters choices
57 
58  /*
59  std::cout << " PRINTING HYFLOW " << std::endl;
60  std::cout << "ytfl,ylfl,tf,fpart" << ", "
61  << m_hyflow.ytfl() << ", " << m_hyflow.ylfl() << ", "
62  << m_hyflow.tf() << ", " << m_hyflow.fpart()
63  << std::endl;
64  std::cout << " PRINTING HYJPAR " << std::endl;
65  std::cout << "ptmin,sigin,sigjet,nhsel,ishad,njet" << ", "
66  << m_hyjpar.ptmin() << ", " << m_hyjpar.sigin() << ", "
67  << m_hyjpar.sigjet() << ", " << m_hyjpar.nhsel() << ", "
68  << m_hyjpar.ishad() << ", " << m_hyjpar.njet()
69  << std::endl;
70  std::cout << " PRINTING PYQPAR " << std::endl;
71  std::cout << "ienglu,ianglu,t0,tau0,nf" << ", "
72  << m_pyqpar.ienglu() << ", " << m_pyqpar.ianglu() << ", "
73  << m_pyqpar.t0() << ", " << m_pyqpar.tau0() << ", "
74  << m_pyqpar.nf() << std::endl;
75  */
76 
78 
79  /*
80  std::cout << " PRINTING MSTU " << std::endl;
81  for (int i = 1; i <= m_pydat1.lenMstu(); ++i)
82  std::cout << i << ":" << m_pydat1.mstu(i) << ", ";
83  std::cout << std::endl;
84  std::cout << " PRINTING PARU " << std::endl;
85  for (int i = 1; i <= m_pydat1.lenParu(); ++i)
86  std::cout << i << ":" << m_pydat1.paru(i) << ", ";
87  std::cout << std::endl;
88  std::cout << " PRINTING MSTJ " << std::endl;
89  for (int i = 1; i <= m_pydat1.lenMstj(); ++i)
90  std::cout << i << ":" << m_pydat1.mstj(i) << ", ";
91  std::cout << std::endl;
92  std::cout << " PRINTING PARJ " << std::endl;
93  for (int i = 1; i <= m_pydat1.lenParj(); ++i)
94  std::cout << i << ":" << m_pydat1.parj(i) << ", ";
95  std::cout << std::endl;
96 
97  std::cout << " PRINTING MSTP " << std::endl;
98  for (int i = 1; i <= m_pypars.lenMstp(); ++i)
99  std::cout << i << ":" << m_pypars.mstp(i) << ", ";
100  std::cout << std::endl;
101  std::cout << " PRINTING PARP " << std::endl;
102  for (int i = 1; i <= m_pypars.lenParp(); ++i)
103  std::cout << i << ":" << m_pypars.parp(i) << ", ";
104  std::cout << std::endl;
105  std::cout << " PRINTING MSTI " << std::endl;
106  for (int i = 1; i <= m_pypars.lenMsti(); ++i)
107  std::cout << i << ":" << m_pypars.msti(i) << ", ";
108  std::cout << std::endl;
109  std::cout << " PRINTING PARI " << std::endl;
110  for (int i = 1; i <= m_pypars.lenPari(); ++i)
111  std::cout << i << ":" << m_pypars.pari(i) << ", ";
112  std::cout << std::endl;
113 
114  std::cout << " PRINTING PYSUBS " << std::endl;
115  std::cout << "msel,mselpd" << ", "
116  << m_pysubs.msel() << ", " << m_pysubs.mselpd() << std::endl;
117  std::cout << " PRINTING MSUB " << std::endl;
118  for (int i = 1; i <= m_pysubs.lenMsub(); ++i)
119  std::cout << i << ":" << m_pysubs.msub(i) << ", ";
120  std::cout << std::endl;
121  std::cout << " PRINTING KFIN " << std::endl;
122  for (int i = 1; i <= m_pysubs.leniKfin(); ++i)
123  for (int j = 1; j <= m_pysubs.lenjKfin(); ++j)
124  std::cout << i << ":" << j << ":" << m_pysubs.kfin(i,j) << ", ";
125  std::cout << std::endl;
126  std::cout << " PRINTING CKIN " << std::endl;
127  for (int i = 1; i <= m_pysubs.lenCkin(); ++i)
128  std::cout << i << ":" << m_pysubs.ckin(i) << ", ";
129  std::cout << std::endl;
130  */
131 
132  return StatusCode::SUCCESS;
133 }

◆ genuserInitialize()

virtual StatusCode GenModule::genuserInitialize ( )
inlinevirtualinherited

For initialization of user code, if required. Called after genInitialize.

Reimplemented in Pythia8B_i.

Definition at line 64 of file GenModule.h.

64 { return StatusCode::SUCCESS; }

◆ getRandomEngine() [1/2]

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

Definition at line 34 of file GenModule.cxx.

36 {
37  ATHRNG::RNGWrapper* rngWrapper = m_rndmSvc->getEngine(this, streamName);
38  std::string rngName = name()+streamName;
39  rngWrapper->setSeed( rngName, ctx );
40  return rngWrapper->getEngine(ctx);
41 }

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

◆ 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 61 of file GenBase.cxx.

61  {
62  for (HepMC::GenEvent::particle_iterator p = evt->particles_begin(); p != evt->particles_end(); ++p) {
63  const HepMC::FourVector fv((*p)->momentum().px() * 1000,
64  (*p)->momentum().py() * 1000,
65  (*p)->momentum().pz() * 1000,
66  (*p)->momentum().e() * 1000);
67  (*p)->set_momentum(fv);
68  (*p)->set_generated_mass(1000 * (*p)->generated_mass());
69  }
70 }

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

◆ inputHandles()

virtual std::vector<Gaudi::DataHandle*> AthCommonDataStore< AthCommonMsg< 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.

◆ MeVToGeV()

void GenBase::MeVToGeV ( HepMC::GenEvent *  evt)
protectedinherited

Scale event energies/momenta by x 1/1000.

Definition at line 71 of file GenBase.cxx.

71  {
72  for (HepMC::GenEvent::particle_iterator p = evt->particles_begin(); p != evt->particles_end(); ++p) {
73  const HepMC::FourVector fv((*p)->momentum().px() / 1000,
74  (*p)->momentum().py() / 1000,
75  (*p)->momentum().pz() / 1000,
76  (*p)->momentum().e() / 1000);
77  (*p)->set_momentum(fv);
78  (*p)->set_generated_mass((*p)->generated_mass() / 1000);
79  }
80 }

◆ mmTocm()

void GenBase::mmTocm ( HepMC::GenEvent *  evt)
protectedinherited

Scale event lengths by x 1/10.

Definition at line 90 of file GenBase.cxx.

90  {
91  for (HepMC::GenEvent::vertex_iterator vtx = evt->vertices_begin(); vtx != evt->vertices_end(); ++vtx) {
92  const HepMC::FourVector fv((*vtx)->position().x() / 10,
93  (*vtx)->position().y() / 10,
94  (*vtx)->position().z() / 10,
95  (*vtx)->position().t() / 10);
96  (*vtx)->set_position(fv);
97  }
98 }

◆ msg() [1/2]

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

Definition at line 24 of file AthCommonMsg.h.

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

◆ msg() [2/2]

MsgStream& AthCommonMsg< Algorithm >::msg ( const MSG::Level  lvl) const
inlineinherited

Definition at line 27 of file AthCommonMsg.h.

27  {
28  return this->msgStream(lvl);
29  }

◆ msgLvl()

bool AthCommonMsg< 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< 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.

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

126  {
127  return pdt().particle(HepPDT::ParticleID(std::abs(pid)));
128  }

◆ particleTable()

const HepPDT::ParticleDataTable& GenBase::particleTable ( ) const
inlineinherited

Get a particle data table.

Definition at line 118 of file GenBase.h.

118  {
119  return *(m_ppSvc->PDT());
120  }

◆ partPropSvc()

const ServiceHandle<IPartPropSvc> GenBase::partPropSvc ( ) const
inlineinherited

Access the particle property service.

Definition at line 113 of file GenBase.h.

113  {
114  return m_ppSvc;
115  }

◆ pdt()

const HepPDT::ParticleDataTable& GenBase::pdt ( ) const
inlineinherited

Shorter alias to get a particle data table.

Definition at line 123 of file GenBase.h.

123 { return particleTable(); }

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

Definition at line 380 of file AthCommonDataStore.h.

381  {
382  h.renounce();
383  PBASE::renounce (h);
384  }

◆ renounceArray()

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

remove all handles from I/O resolution

Definition at line 364 of file AthCommonDataStore.h.

364  {
365  handlesArray.renounce();
366  }

◆ set_user_params()

void Hydjet::set_user_params ( void  )
protected

Definition at line 249 of file Hydjet_i.cxx.

250 {
251  m_e = 5520.0;
252  m_a = 208;
253 
254  // copy of HYDJET calculations
255  m_hyipar.AW() = m_a;
256  m_hyipar.RA() = 1.15 * std::pow(m_a,0.333333);
257 
258  m_ifb = 1;
259  m_bmin = 0;
260  m_bmax = 1;
261  m_bfix = 0;
262  m_nh = 20000;
263 
264  // set hydro parameters
265  // nhsel=0 - hydro (no jets), nhsel=1 - hydro + pythia jets,
266  // nhsel=2 - hydro + pyquen jets, nhsel=3 - pythia jets (no hydro),
267  // nhsel=4 - pyquen jets (no hydro)
268  m_hyjpar.nhsel()=2; // flag to include hard scatterings
269  m_hyjpar.ishad()=1; // flag to include "nuclear shadowing"
270  m_hyflow.ylfl()=4.; // maximum longitudinal flow rapidity
271  m_hyflow.ytfl()=1.5; // maximum transverse flow rapidity
272  m_hyflow.tf()=0.1; // freeze-out temperature in GeV
273  m_hyflow.fpart()=1.; // fraction of soft multiplicity proportional
274  // # of nucleons-participants
275 
276  // set quenching parameters
277  // ienglu=0 - radiative and collisional loss,
278  // ienglu=1 - only radiative loss, ienglu=2 - only collisional loss;
279  // ianglu=0 - small-angular radiation, ianglu=1 - wide angular radiation,
280  // inanglu=2 - collinear radiation
281  m_pyqpar.ienglu()=0; // radiative and collisional loss
282  m_pyqpar.ianglu()=0; // radiative and collisional loss
283  m_pyqpar.t0()=0; // initial QGP temperature
284  m_pyqpar.tau0()=0.1; // proper time of QGP formation
285  m_pyqpar.nf()=0; // number of active quark flavours in QGP
286 
287  // set input PYTHIA parameters
288  m_pysubs.msel()=1; // QCD-dijet production
289  m_hyjpar.ptmin()=10.;
290  // hydjet recommendation
291  m_pysubs.ckin(3)=m_hyjpar.ptmin();// minimum pt in initial hard sub-process
292  m_pypars.mstp(51)=7; // CTEQ5M pdf
293  m_pypars.mstp(81)=0; // pp multiple scattering off
294  m_pydat1.mstu(21)=1; // avoid stopping run
295  m_pydat1.paru(14)=1.; // tolerance parameter to adjust fragmentation
296 
297  // Set user Initialization parameters
299  {
300  ATH_MSG_INFO( " Command is: " << *i );
301  StringParse mystring(*i);
302  std::string myparam = mystring.piece<std::string>(1);
303  if (myparam == "e")
304  {
305  m_e = mystring.piece<double>(2);
306  }
307  else if (myparam == "a")
308  {
309  m_a = mystring.piece<int>(2);
310  }
311  else if (myparam == "ifb")
312  {
313  m_ifb = mystring.piece<int>(2);
314  }
315  else if (myparam == "bmin")
316  {
317  m_bmin = mystring.piece<double>(2);
318  m_bmin /= m_hyipar.RA();
319  }
320  else if (myparam == "bmax")
321  {
322  m_bmax = mystring.piece<double>(2);
323  m_bmax /= m_hyipar.RA();
324  }
325  else if (myparam == "bfix")
326  {
327  m_bfix = mystring.piece<double>(2);
328  m_bfix /= m_hyipar.RA();
329  }
330  else if (myparam == "nh")
331  {
332  m_nh = mystring.piece<int>(2);
333  }
334  else if (myparam == "nseed")
335  {
336  m_ludatr.mrlu(1) = mystring.piece<int>(2);
337  }
338  else if (myparam == "ytfl")
339  {
340  m_hyflow.ytfl() = mystring.piece<double>(2);
341  }
342  else if (myparam == "ylfl")
343  {
344  m_hyflow.ylfl() = mystring.piece<double>(2);
345  }
346  else if (myparam == "tf")
347  {
348  m_hyflow.tf() = mystring.piece<double>(2);
349  }
350  else if (myparam == "fpart")
351  {
352  m_hyflow.fpart() = mystring.piece<double>(2);
353  }
354  else if (myparam == "nhsel")
355  {
356  m_hyjpar.nhsel() = mystring.piece<int>(2);
357  }
358  else if (myparam == "ishad")
359  {
360  m_hyjpar.ishad() = mystring.piece<int>(2);
361  }
362  else if (myparam == "ptmin")
363  {
364  m_hyjpar.ptmin() = mystring.piece<double>(2);
365  // hydjet recommendation
366  m_pysubs.ckin(3) = mystring.piece<double>(2);
367  }
368  else if (myparam == "ienglu")
369  {
370  m_pyqpar.ienglu() = mystring.piece<int>(2);
371  }
372  else if (myparam == "ianglu")
373  {
374  m_pyqpar.ianglu() = mystring.piece<int>(2);
375  }
376  else if (myparam == "t0")
377  {
378  m_pyqpar.t0() = mystring.piece<double>(2);
379  }
380  else if (myparam == "tau0")
381  {
382  m_pyqpar.tau0() = mystring.piece<double>(2);
383  }
384  else if (myparam == "nf")
385  {
386  m_pyqpar.nf() = mystring.piece<int>(2);
387  }
388  else if (myparam == "mstu")
389  {
390  int myelem = mystring.piece<int>(2);
391  m_pydat1.mstu(myelem) = mystring.piece<int>(3);
392  }
393  else if (myparam == "paru")
394  {
395  int myelem = mystring.piece<int>(2);
396  m_pydat1.paru(myelem) = mystring.piece<double>(3);
397  }
398  else if (myparam == "mstj")
399  {
400  int myelem = mystring.piece<int>(2);
401  m_pydat1.mstj(myelem) = mystring.piece<int>(3);
402  }
403  else if (myparam == "parj")
404  {
405  int myelem = mystring.piece<int>(2);
406  m_pydat1.parj(myelem) = mystring.piece<double>(3);
407  }
408  else if (myparam == "msel")
409  {
410  m_pysubs.msel() = mystring.piece<int>(2);
411  }
412  else if (myparam == "mselpd")
413  {
414  m_pysubs.mselpd() = mystring.piece<int>(2);
415  }
416  else if (myparam == "msub")
417  {
418  int myelem = mystring.piece<int>(2);
419  m_pysubs.msub(myelem) = mystring.piece<int>(3);
420  }
421  else if (myparam == "kfin")
422  {
423  int myelem1 = mystring.piece<int>(2);
424  int myelem2 = mystring.piece<int>(3);
425  m_pysubs.kfin(myelem1,myelem2) = mystring.piece<int>(4);
426  }
427  else if (myparam == "ckin")
428  {
429  int myelem = mystring.piece<int>(2);
430  m_pysubs.ckin(myelem) = mystring.piece<double>(3);
431  }
432  else if (myparam == "mstp")
433  {
434  int myelem = mystring.piece<int>(2);
435  m_pypars.mstp(myelem) = mystring.piece<int>(3);
436  }
437  else if (myparam == "parp")
438  {
439  int myelem = mystring.piece<int>(2);
440  m_pypars.parp(myelem) = mystring.piece<double>(3);
441  }
442  else if (myparam == "msti")
443  {
444  int myelem = mystring.piece<int>(2);
445  m_pypars.msti(myelem) = mystring.piece<int>(3);
446  }
447  else if (myparam == "pari")
448  {
449  int myelem = mystring.piece<int>(2);
450  m_pypars.pari(myelem) = mystring.piece<double>(3);
451  }
452  else
453  {
454  ATH_MSG_ERROR( " ERROR in HIJING INITIALIZATION PARAMETERS " << myparam
455  << " is an invalid parameter !" );
456  }
457  }
458 }

◆ sysInitialize()

StatusCode AthAlgorithm::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< Algorithm > >.

Reimplemented in AthAnalysisAlgorithm, AthFilterAlgorithm, PyAthena::Alg, and AthHistogramAlgorithm.

Definition at line 66 of file AthAlgorithm.cxx.

66  {
68 
69  if (sc.isFailure()) {
70  return sc;
71  }
72  ServiceHandle<ICondSvc> cs("CondSvc",name());
73  for (auto h : outputHandles()) {
74  if (h->isCondition() && h->mode() == Gaudi::DataHandle::Writer) {
75  // do this inside the loop so we don't create the CondSvc until needed
76  if ( cs.retrieve().isFailure() ) {
77  ATH_MSG_WARNING("no CondSvc found: won't autoreg WriteCondHandles");
78  return StatusCode::SUCCESS;
79  }
80  if (cs->regHandle(this,*h).isFailure()) {
81  sc = StatusCode::FAILURE;
82  ATH_MSG_ERROR("unable to register WriteCondHandle " << h->fullKey()
83  << " with CondSvc");
84  }
85  }
86  }
87  return sc;
88 }

◆ sysStart()

virtual StatusCode AthCommonDataStore< AthCommonMsg< 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< 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) {
312  std::vector<SG::VarHandleKey*> keys = a->keys();
313  for (auto k : keys) {
314  k->setOwner(this);
315  }
316  }
317  }

Member Data Documentation

◆ m_a

double Hydjet::m_a {0.}
protected

Definition at line 58 of file Hydjet_i.h.

◆ m_bfix

double Hydjet::m_bfix {0.}
protected

Definition at line 62 of file Hydjet_i.h.

◆ m_bmax

double Hydjet::m_bmax {0.}
protected

Definition at line 61 of file Hydjet_i.h.

◆ m_bmin

double Hydjet::m_bmin {0.}
protected

Definition at line 60 of file Hydjet_i.h.

◆ m_detStore

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

Pointer to StoreGate (detector store by default)

Definition at line 393 of file AthCommonDataStore.h.

◆ m_e

double Hydjet::m_e {0.}
protected

Definition at line 57 of file Hydjet_i.h.

◆ m_event_paramsKey

SG::WriteHandleKey<HijingEventParams> Hydjet::m_event_paramsKey {this, "HijingOutputKey", "Hijing_event_params"}
protected

Definition at line 97 of file Hydjet_i.h.

◆ m_events

int Hydjet::m_events {0}
protected

Definition at line 69 of file Hydjet_i.h.

◆ m_evtStore

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

Pointer to StoreGate (event store by default)

Definition at line 390 of file AthCommonDataStore.h.

◆ m_extendedExtraObjects

DataObjIDColl AthAlgorithm::m_extendedExtraObjects
privateinherited

Definition at line 79 of file AthAlgorithm.h.

◆ m_hyflow

HyFlow Hydjet::m_hyflow
protected

Definition at line 78 of file Hydjet_i.h.

◆ m_hyfpar

HyfPar Hydjet::m_hyfpar
protected

Definition at line 77 of file Hydjet_i.h.

◆ m_hyipar

HyiPar Hydjet::m_hyipar
protected

Definition at line 75 of file Hydjet_i.h.

◆ m_hyjets

HyJets Hydjet::m_hyjets
protected

Definition at line 93 of file Hydjet_i.h.

◆ m_hyjpar

HyjPar Hydjet::m_hyjpar
protected

Definition at line 76 of file Hydjet_i.h.

◆ m_ifb

int Hydjet::m_ifb {0}
protected

Definition at line 59 of file Hydjet_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_InitializeVector

CommandVector Hydjet::m_InitializeVector
protected

Definition at line 72 of file Hydjet_i.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_ludatr

LuDatr Hydjet::m_ludatr
protected

Definition at line 89 of file Hydjet_i.h.

◆ m_lujets

LuJets Hydjet::m_lujets
protected

Definition at line 92 of file Hydjet_i.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

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

◆ m_mkMcEvent

BooleanProperty GenBase::m_mkMcEvent {this, "MakeMcEvent", false, "Create a new MC event collection if it doesn't exist"}
protectedinherited

Flag to determine if a new MC event collection should be made if it doesn't exist.

Definition at line 139 of file GenBase.h.

◆ m_nh

int Hydjet::m_nh {0}
protected

Definition at line 63 of file Hydjet_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_pydat1

PyDat1 Hydjet::m_pydat1
protected

Definition at line 83 of file Hydjet_i.h.

◆ m_pypars

PyPars Hydjet::m_pypars
protected

Definition at line 81 of file Hydjet_i.h.

◆ m_pyqpar

PyqPar Hydjet::m_pyqpar
protected

Definition at line 86 of file Hydjet_i.h.

◆ m_pysubs

PySubs Hydjet::m_pysubs
protected

Definition at line 82 of file Hydjet_i.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

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

Data members.

Definition at line 99 of file GenModule.h.

◆ m_seeds

std::vector<long int> Hydjet::m_seeds
protected

Definition at line 66 of file Hydjet_i.h.

◆ m_varHandleArraysDeclared

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

Definition at line 399 of file AthCommonDataStore.h.

◆ m_vhka

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

Definition at line 398 of file AthCommonDataStore.h.


The documentation for this class was generated from the following files:
HepMC::GenVertexPtr
HepMC::GenVertex * GenVertexPtr
Definition: GenVertex.h:59
xAOD::iterator
JetConstituentVector::iterator iterator
Definition: JetConstituentVector.cxx:68
ATHRNG::RNGWrapper::setSeed
void setSeed(const std::string &algName, const EventContext &ctx)
Set the random seed using a string (e.g.
Definition: RNGWrapper.h:169
HyFlow::fpart
double & fpart(void)
Definition: HyFlow.h:82
Hydjet::m_ludatr
LuDatr m_ludatr
Definition: Hydjet_i.h:89
StringParse
Utility object for parsing a string into tokens and returning them as a variety of types.
Definition: StringParse.h:33
PyDat1::mstu
int & mstu(int n)
Definition: PyDat1.h:75
PyPars::mstp
int & mstp(int n)
Definition: PyPars.h:75
HyjPar::njet
int & njet(void)
Definition: HyjPar.h:100
python.PerfMonSerializer.p
def p
Definition: PerfMonSerializer.py:743
Hydjet::m_bmin
double m_bmin
Definition: Hydjet_i.h:60
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
CaloCellPos2Ntuple.int
int
Definition: CaloCellPos2Ntuple.py:24
HyjPar::ptmin
double & ptmin(void)
Definition: HyjPar.h:65
GenModule::fillEvt
virtual StatusCode fillEvt(HepMC::GenEvent *evt)=0
For filling the HepMC event object.
GenModule::callGenerator
virtual StatusCode callGenerator()
For calling the generator on each iteration of the event loop.
Definition: GenModule.h:66
GenBase::GeVToMeV
void GeVToMeV(HepMC::GenEvent *evt)
Scale event energies/momenta by x 1000.
Definition: GenBase.cxx:61
GenBase::events_const
const McEventCollection * events_const() const
Access the current event's McEventCollection (const)
Definition: GenBase.h:96
SG::ReadHandle< McEventCollection >
AthCommonDataStore< AthCommonMsg< Algorithm > >::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition: AthCommonDataStore.h:145
PyPars::msti
int & msti(int n)
Definition: PyPars.h:91
LuJets::n
int & n(void)
Definition: LuJets.h:82
Hydjet::m_InitializeVector
CommandVector m_InitializeVector
Definition: Hydjet_i.h:72
conifer::pow
constexpr int pow(int x)
Definition: conifer.h:20
MuonGM::round
float round(const float toRound, const unsigned int decimals)
Definition: Mdt.cxx:27
GenModule::m_incidentSvc
ServiceHandle< IIncidentSvc > m_incidentSvc
Handle on the incident service.
Definition: GenModule.h:101
HyfPar::nhyd
int & nhyd(void)
Definition: HyfPar.h:91
PySubs::kfin
int & kfin(int i, int j)
Definition: PySubs.h:99
AthCommonDataStore< AthCommonMsg< Algorithm > >::m_evtStore
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
Definition: AthCommonDataStore.h:390
AthCommonDataStore< AthCommonMsg< Algorithm > >::m_vhka
std::vector< SG::VarHandleKeyArray * > m_vhka
Definition: AthCommonDataStore.h:398
HyfPar::bgen
double & bgen(void)
Definition: HyfPar.h:63
PyqPar::tau0
double & tau0(void)
Definition: PyqPar.h:70
PySubs::mselpd
int & mselpd(void)
Definition: PySubs.h:84
PyPars::parp
double & parp(int n)
Definition: PyPars.h:83
HepMC::newGenEvent
GenEvent * newGenEvent(const int a, const int b)
Definition: GenEvent.h:502
PySubs::ckin
double & ckin(int n)
Definition: PySubs.h:109
Hydjet::set_user_params
void set_user_params(void)
Definition: Hydjet_i.cxx:249
LArG4FSStartPointFilter.evt
evt
Definition: LArG4FSStartPointFilter.py:42
HyfPar::nbcol
double & nbcol(void)
Definition: HyfPar.h:70
Hydjet::m_a
double m_a
Definition: Hydjet_i.h:58
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
SG::VarHandleKey::key
const std::string & key() const
Return the StoreGate ID for the referenced object.
Definition: AthToolSupport/AsgDataHandles/Root/VarHandleKey.cxx:141
PlotPulseshapeFromCool.np
np
Definition: PlotPulseshapeFromCool.py:64
HepMC::fillBarcodesAttribute
void fillBarcodesAttribute(GenEvent *)
Definition: GenEvent.h:504
empty
bool empty(TH1 *h)
Definition: computils.cxx:294
PyPars::pari
double & pari(int n)
Definition: PyPars.h:99
python.DataFormatRates.events
events
Definition: DataFormatRates.py:105
GenModule::getRandomEngine
CLHEP::HepRandomEngine * getRandomEngine(const std::string &streamName, const EventContext &ctx) const
Definition: GenModule.cxx:34
HyjPar::ishad
int & ishad(void)
Definition: HyjPar.h:93
AthenaPoolTestRead.sc
sc
Definition: AthenaPoolTestRead.py:27
Hydjet::m_pypars
PyPars m_pypars
Definition: Hydjet_i.h:81
SG::VarHandleKeyArray::setOwner
virtual void setOwner(IDataHandleHolder *o)=0
SG::makeHandle
SG::ReadCondHandle< T > makeHandle(const SG::ReadCondHandleKey< T > &key, const EventContext &ctx=Gaudi::Hive::currentContext())
Definition: ReadCondHandle.h:269
GenModule::genuserInitialize
virtual StatusCode genuserInitialize()
For initialization of user code, if required. Called after genInitialize.
Definition: GenModule.h:64
Hydjet::m_bmax
double m_bmax
Definition: Hydjet_i.h:61
GenModule::m_rndmSvc
ServiceHandle< IAthRNGSvc > m_rndmSvc
Data members.
Definition: GenModule.h:99
GenBase::m_ppSvc
ServiceHandle< IPartPropSvc > m_ppSvc
Handle on the particle property service.
Definition: GenBase.h:160
AthCommonDataStore< AthCommonMsg< Algorithm > >::evtStore
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
Definition: AthCommonDataStore.h:85
GenModule::genInitialize
virtual StatusCode genInitialize()
For initializing the generator, if required.
Definition: GenModule.h:62
Hydjet::m_bfix
double m_bfix
Definition: Hydjet_i.h:62
AthCommonDataStore
Definition: AthCommonDataStore.h:52
AthAlgorithm::sysInitialize
virtual StatusCode sysInitialize() override
Override sysInitialize.
Definition: AthAlgorithm.cxx:66
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
AthCommonDataStore< AthCommonMsg< Algorithm > >::outputHandles
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
HepMC::newGenVertexPtr
GenVertexPtr newGenVertexPtr(const HepMC::FourVector &pos=HepMC::FourVector(0.0, 0.0, 0.0, 0.0), const int i=0)
Definition: GenVertex.h:64
lumiFormat.i
int i
Definition: lumiFormat.py:92
Hydjet::m_pydat1
PyDat1 m_pydat1
Definition: Hydjet_i.h:83
Hydjet::m_hyjpar
HyjPar m_hyjpar
Definition: Hydjet_i.h:76
ret
T ret(T t)
Definition: rootspy.cxx:260
Atlas::ExtendedEventContext
Definition: ExtendedEventContext.h:23
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
GenBase::m_mcevents_const
SG::ReadHandleKey< McEventCollection > m_mcevents_const
Const handle to the MC event collection.
Definition: GenBase.h:163
GenModule::m_isAfterburner
BooleanProperty m_isAfterburner
Flag for normal vs. afterburner generators.
Definition: GenModule.h:87
Hydjet::m_pysubs
PySubs m_pysubs
Definition: Hydjet_i.h:82
ParticleGun_EoverP_Config.pid
pid
Definition: ParticleGun_EoverP_Config.py:62
HyiPar::AW
double & AW(void)
Definition: HyiPar.h:93
jobOptions.ParticleID
ParticleID
Definition: jobOptions.decayer.py:85
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
GenModule::genFinalize
virtual StatusCode genFinalize()
For finalising the generator, if required.
Definition: GenModule.h:70
Hydjet::m_nh
int m_nh
Definition: Hydjet_i.h:63
CHECK
#define CHECK(...)
Evaluate an expression and check for errors.
Definition: Control/AthenaKernel/AthenaKernel/errorcheck.h:422
PySubs::msel
int & msel(void)
Definition: PySubs.h:77
AthCommonDataStore< AthCommonMsg< Algorithm > >::m_detStore
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
Definition: AthCommonDataStore.h:393
SG::VarHandleKey::initialize
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
Definition: AthToolSupport/AsgDataHandles/Root/VarHandleKey.cxx:103
luedit_
void luedit_(int *)
PyDat1::parj
double & parj(int n)
Definition: PyDat1.h:99
PyqPar::ienglu
int & ienglu(void)
Definition: PyqPar.h:84
Hydjet::m_pyqpar
PyqPar m_pyqpar
Definition: Hydjet_i.h:86
SG::VarHandleKeyArray::renounce
virtual void renounce()=0
GenBase::particleTable
const HepPDT::ParticleDataTable & particleTable() const
Get a particle data table.
Definition: GenBase.h:118
SG::HandleClassifier::type
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
Definition: HandleClassifier.h:54
Hydjet::m_lujets
LuJets m_lujets
Definition: Hydjet_i.h:92
HyjPar::nhsel
int & nhsel(void)
Definition: HyjPar.h:86
Hydjet::m_hyfpar
HyfPar m_hyfpar
Definition: Hydjet_i.h:77
GenModule::GenModule
GenModule(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition: GenModule.cxx:14
merge_scale_histograms.doc
string doc
Definition: merge_scale_histograms.py:9
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:192
HyFlow::tf
double & tf(void)
Definition: HyFlow.h:75
ATHRNG::RNGWrapper
A wrapper class for event-slot-local random engines.
Definition: RNGWrapper.h:56
plotBeamSpotMon.b
b
Definition: plotBeamSpotMon.py:77
hyinit_
void hyinit_(double *, double *, int *, double *, double *, double *, int *)
Hydjet::m_hyipar
HyiPar m_hyipar
Definition: Hydjet_i.h:75
LuJets::p
float & p(int i, int j)
Definition: LuJets.h:99
PyDat1::mstj
int & mstj(int n)
Definition: PyDat1.h:91
ATHRNG::RNGWrapper::getEngine
CLHEP::HepRandomEngine * getEngine(const EventContext &ctx) const
Retrieve the random engine corresponding to the provided EventContext.
Definition: RNGWrapper.h:134
LuDatr::mrlu
int & mrlu(int n)
Definition: LuDatr.h:67
SG::WriteHandle< HijingEventParams >
AthAlgorithm::m_extendedExtraObjects
DataObjIDColl m_extendedExtraObjects
Definition: AthAlgorithm.h:79
AthenaPoolExample_Copy.streamName
string streamName
Definition: AthenaPoolExample_Copy.py:39
a
TList * a
Definition: liststreamerinfos.cxx:10
HepMC::newGenParticlePtr
GenParticlePtr newGenParticlePtr(const HepMC::FourVector &mom=HepMC::FourVector(0.0, 0.0, 0.0, 0.0), int pid=0, int status=0)
Definition: GenParticle.h:39
h
PySubs::msub
int & msub(int n)
Definition: PySubs.h:91
Hydjet::m_hyflow
HyFlow m_hyflow
Definition: Hydjet_i.h:78
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition: AthMsgStreamMacros.h:32
HyiPar::RA
double & RA(void)
Definition: HyiPar.h:100
GenBase::pdt
const HepPDT::ParticleDataTable & pdt() const
Shorter alias to get a particle data table.
Definition: GenBase.h:123
SG::VarHandleBase::vhKey
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Definition: StoreGate/src/VarHandleBase.cxx:616
hyevnt_
void hyevnt_()
declareProperty
#define declareProperty(n, p, h)
Definition: BaseFakeBkgTool.cxx:15
HyFlow::ytfl
double & ytfl(void)
Definition: HyFlow.h:61
HyfPar::npart
double & npart(void)
Definition: HyfPar.h:77
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:790
HyfPar::npyt
int & npyt(void)
Definition: HyfPar.h:84
PyqPar::ianglu
int & ianglu(void)
Definition: PyqPar.h:91
Hydjet::m_event_paramsKey
SG::WriteHandleKey< HijingEventParams > m_event_paramsKey
Definition: Hydjet_i.h:97
LHEF::Writer
Pythia8::Writer Writer
Definition: Prophecy4fMerger.cxx:12
beamspotnt.nt
def nt
Definition: bin/beamspotnt.py:1063
HepMC::set_signal_process_id
void set_signal_process_id(GenEvent *e, const int i)
Definition: GenEvent.h:519
LuJets::k
int & k(int i, int j)
Definition: LuJets.h:89
HyFlow::ylfl
double & ylfl(void)
Definition: HyFlow.h:68
Hydjet::m_ifb
int m_ifb
Definition: Hydjet_i.h:59
AthCommonDataStore::declareGaudiProperty
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition: AthCommonDataStore.h:156
Atlas::setExtendedEventContext
void setExtendedEventContext(EventContext &ctx, ExtendedEventContext &&ectx)
Move an extended context into a context object.
Definition: ExtendedEventContext.cxx:50
GenBase::initialize
virtual StatusCode initialize() override
Definition: GenBase.cxx:17
Hydjet::m_e
double m_e
Definition: Hydjet_i.h:57
PyqPar::t0
double & t0(void)
Definition: PyqPar.h:63
DataVector::begin
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.
PyDat1::paru
double & paru(int n)
Definition: PyDat1.h:83
fitman.k
k
Definition: fitman.py:528
Hydjet::m_events
int m_events
Definition: Hydjet_i.h:69
LB_AnalMapSplitter.lbn
lbn
Definition: LB_AnalMapSplitter.py:28
ServiceHandle< ICondSvc >
PyqPar::nf
int & nf(void)
Definition: PyqPar.h:77