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

#include <Hijing.h>

Inheritance diagram for Hijing:

Public Member Functions

 Hijing (const std::string &name, ISvcLocator *pSvcLocator)
virtual ~Hijing ()=default
virtual StatusCode genInitialize () override
 For initializing the generator, if required.
virtual StatusCode callGenerator () override
 For calling the generator on each iteration of the event loop.
virtual StatusCode genFinalize () override
 For finalising the generator, if required.
virtual StatusCode fillEvt (HepMC::GenEvent *evt) override
 For filling the HepMC event object.
virtual StatusCode sysInitialize () override
 Override sysInitialize.
virtual const DataObjIDColl & extraOutputDeps () const override
 Return the list of extra output dependencies.
ServiceHandle< StoreGateSvc > & evtStore ()
 The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
const ServiceHandle< StoreGateSvc > & detStore () const
 The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
virtual StatusCode sysStart () override
 Handle START transition.
virtual std::vector< Gaudi::DataHandle * > inputHandles () const override
 Return this algorithm's input handles.
virtual std::vector< Gaudi::DataHandle * > outputHandles () const override
 Return this algorithm's output handles.
Gaudi::Details::PropertyBase & declareProperty (Gaudi::Property< T, V, H > &t)
void updateVHKA (Gaudi::Details::PropertyBase &)
MsgStream & msg () const
bool msgLvl (const MSG::Level lvl) const
Event loop algorithm methods: not to be overloaded
StatusCode initialize ()
StatusCode execute ()
StatusCode finalize ()
Gen-specific event loop methods: to be overloaded
virtual StatusCode genuserInitialize ()
 For initialization of user code, if required. Called after genInitialize.
Event collection accessors (const and non-const)
HepMC::GenEvent *event ATLAS_NOT_CONST_THREAD_SAFE ()
 Access the current signal event (first in the McEventCollection)
McEventCollection *events ATLAS_NOT_CONST_THREAD_SAFE ()
 Access the current event's McEventCollection.
const HepMC::GenEvent * event_const () const
 Access the current signal event (const)
const McEventCollectionevents_const () const
 Access the current event's McEventCollection (const)
const McEventCollectionevents_const (const EventContext &ctx) const
Particle data accessors
const ServiceHandle< IPartPropSvc > partPropSvc () const
 Access the particle property service.
const HepPDT::ParticleDataTable & particleTable () const
 Get a particle data table.
const HepPDT::ParticleDataTable & pdt () const
 Shorter alias to get a particle data table.
const HepPDT::ParticleData * particleData (int pid) const
 Access an element in the particle data table.

Protected Member Functions

virtual CLHEP::HepLorentzVector randomizeVertex (CLHEP::HepRandomEngine *engine)
void set_user_params (void)
void renounceArray (SG::VarHandleKeyArray &handlesArray)
 remove all handles from I/O resolution
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > renounce (T &h)
void extraDeps_update_handler (Gaudi::Details::PropertyBase &ExtraDeps)
 Add StoreName to extra input/output deps as needed.

Protected Attributes

IntegerProperty m_dsid {this, "Dsid", 999999}
float m_efrm {0.}
std::string m_frame
std::string m_proj
std::string m_targ
int m_iap {0}
int m_iat {0}
int m_izp {0}
int m_izt {0}
float m_bmin {0.}
float m_bmax {0.}
float m_x {0.}
float m_y {0.}
float m_z {0.}
bool m_sel {false}
bool m_spec {true}
bool m_rand {false}
bool m_wide {false}
bool m_prand {false}
bool m_keepAllDecayVertices {true}
double m_partonStoreMinPt {5.0}
double m_vertexOffsetCut {1.0E-7}
int m_randomseed {0}
std::vector< long int > m_seeds
int m_events {0}
CommandVector m_InitializeVector
HiParnt m_hiparnt
RanSeed m_ranseed
HiMain1 m_himain1
HiMain2 m_himain2
HijJet1 m_hijjet1
HijJet2 m_hijjet2
HijJet4 m_hijjet4
HiStrng m_histrng
HijCrdn m_hijcrdn
SG::WriteHandleKey< HijingEventParamsm_event_paramsKey {this, "HijingOutputKey", "Hijing_event_params"}
Properties
std::string m_mcEventKey {}
 StoreGate key for the MC event collection (defaults to GEN_EVENT)
BooleanProperty m_mkMcEvent {this, "MakeMcEvent", false, "Create a new MC event collection if it doesn't exist"}
 Flag to determine if a new MC event collection should be made if it doesn't exist.

Private Types

typedef ServiceHandle< StoreGateSvcStoreGateSvc_t

Private Member Functions

Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey>

Private Attributes

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

Features for derived classes to use internally

IntegerProperty m_randomSeed {this, "RandomSeed", 1234567, "Random seed for the built-in random engine"}
 Seed for random number engine.
BooleanProperty m_isAfterburner {this, "IsAfterburner", false, "Set true if generator modifies existing events rather than creating new ones"}
 Flag for normal vs. afterburner generators.
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.
ServiceHandle< IIncidentSvc > m_incidentSvc {this, "IncidentSvc", "IncidentSvc"}
 Handle on the incident service.

Utility event-mangling functions

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

Detailed Description

Definition at line 43 of file Hijing.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

◆ Hijing()

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

Definition at line 68 of file Hijing.cxx.

69 : GenModule(name,pSvcLocator)
70{
72 declareProperty("partonStoreMinPt", m_partonStoreMinPt);
73 declareProperty("vertexOffsetCut", m_vertexOffsetCut);
74 declareProperty("randomizeVertices", m_rand); // Randomize for beam gas
75 declareProperty("selectVertex", m_sel); // Select vertex location (off for random)
76 declareProperty("wide", m_wide); // Allow randoms off the beamline (out to the pipe)
77 declareProperty("x", m_x);
78 declareProperty("y", m_y);
79 declareProperty("z", m_z);
80 declareProperty("keepSpectators", m_spec);
81 declareProperty("randomizeP", m_prand); //BPK randomizes the left<->right direction by mirroring momenta for beam gas
82 declareProperty("keepAllDecayVertices", m_keepAllDecayVertices);
83}
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
GenModule(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition GenModule.cxx:14
bool m_wide
Definition Hijing.h:82
bool m_sel
Definition Hijing.h:77
bool m_prand
Definition Hijing.h:83
float m_y
Definition Hijing.h:75
double m_vertexOffsetCut
Definition Hijing.h:88
bool m_spec
Definition Hijing.h:78
float m_x
Definition Hijing.h:74
float m_z
Definition Hijing.h:76
double m_partonStoreMinPt
Definition Hijing.h:87
bool m_rand
Definition Hijing.h:81
bool m_keepAllDecayVertices
Definition Hijing.h:84
CommandVector m_InitializeVector
Definition Hijing.h:98

◆ ~Hijing()

virtual Hijing::~Hijing ( )
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 }
#define ATH_MSG_ERROR(x)
static const Attributes_t empty

◆ 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 Hijing::callGenerator ( )
overridevirtual

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

Reimplemented from GenModule.

Definition at line 135 of file Hijing.cxx.

136{
137 ATH_MSG_INFO( " HIJING generating. \n" );
138
139 // Save the random number seeds in the event
140 //Re-seed the random number stream
141 long seeds[7];
142 const EventContext& ctx = Gaudi::Hive::currentContext();
143 ATHRNG::calculateSeedsMC21(seeds, hijing_stream, ctx.eventID().event_number(), m_dsid, m_randomSeed);
144 p_Engine->setSeeds(seeds, 0); // NOT THREAD-SAFE
145 m_seeds.clear();
146 m_seeds.push_back(seeds[0]);
147 m_seeds.push_back(seeds[1]);
148
149 // Generate event
150 const char* frame = m_frame.c_str();
151 hijing_(frame, &m_bmin, &m_bmax, strlen(frame));
152
153 // Check for error using the new (custom) error return
154 //
155 int errorStatus = m_himain1.ierrstat();
156 if (errorStatus != 0) {
157 ATH_MSG_ERROR( "Error returned from HIJING, value = " << errorStatus );
158 return StatusCode::FAILURE;
159 }
160
161 // update event counter
162 ++m_events;
163
164 // store hijing event parameters
165 // -----------------------------
166 ATH_MSG_DEBUG( "New HijingEventParams" );
167 int np = m_himain1.np();
168 int nt = m_himain1.nt();
169 int n0 = m_himain1.n0();
170 int n01 = m_himain1.n01();
171 int n10 = m_himain1.n10();
172 int n11 = m_himain1.n11();
173 int natt = m_himain1.natt();
174 int jatt = m_himain1.jatt();
175 float b = m_hiparnt.hint1(19);
176 float bphi = m_hiparnt.hint1(20);
177
178 SG::WriteHandle<HijingEventParams> event_params(m_event_paramsKey);
179 event_params = std::make_unique<HijingEventParams>(np, nt, n0, n01, n10, n11, natt, jatt, b, bphi);
180
181 ATH_MSG_INFO( "\n=================================================\n"
182 << " HIJING event description: \n"
183 << " b = " << b << " fm \n"
184 << " # proj participants = " << np << "\n"
185 << " # targ participants = " << nt << "\n"
186 << " # final particles = " << natt << "\n"
187 << "=================================================\n" );
188
189 ATH_MSG_DEBUG( " HIJING generating done. \n" );
190 return StatusCode::SUCCESS;
191}
#define ATH_MSG_INFO(x)
#define ATH_MSG_DEBUG(x)
void hijing_(const char *, float *, float *, long int)
IntegerProperty m_randomSeed
Seed for random number engine.
Definition GenModule.h:84
HiParnt m_hiparnt
Definition Hijing.h:101
float m_bmax
Definition Hijing.h:70
HiMain1 m_himain1
Definition Hijing.h:107
IntegerProperty m_dsid
Definition Hijing.h:57
float m_bmin
Definition Hijing.h:69
int m_events
Definition Hijing.h:95
std::vector< long int > m_seeds
Definition Hijing.h:92
SG::WriteHandleKey< HijingEventParams > m_event_paramsKey
Definition Hijing.h:117
std::string m_frame
Definition Hijing.h:61
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.

◆ cmTomm()

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

Scale event lengths by x 10.

Definition at line 78 of file GenBase.cxx.

78 {
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);
85 }
86}

◆ declareGaudiProperty()

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

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

Definition at line 156 of file AthCommonDataStore.h.

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

◆ declareProperty()

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

Definition at line 145 of file AthCommonDataStore.h.

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

◆ detStore()

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

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

Definition at line 95 of file AthCommonDataStore.h.

◆ event_const()

const HepMC::GenEvent * GenBase::event_const ( ) const
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 }
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.
const McEventCollection * events_const() const
Access the current event's McEventCollection (const)
Definition GenBase.h:96

◆ 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 {
100 SG::ReadHandle<McEventCollection> ret = SG::makeHandle(m_mcevents_const, ctx);
101 if (!ret.isValid())
102 ATH_MSG_ERROR("No McEventCollection found in StoreGate with key " << m_mcevents_const.key());
103 return ret.cptr();
104 }
SG::ReadHandleKey< McEventCollection > m_mcevents_const
Const handle to the MC event collection.
Definition GenBase.h:163
virtual bool isValid() override final
Can the handle be successfully dereferenced?
const_pointer_type cptr()
Dereference the pointer.
SG::ReadCondHandle< T > makeHandle(const SG::ReadCondHandleKey< T > &key, const EventContext &ctx=Gaudi::Hive::currentContext())

◆ evtStore()

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

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

Definition at line 85 of file AthCommonDataStore.h.

◆ execute()

StatusCode GenModule::execute ( )
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}
#define CHECK(...)
Evaluate an expression and check for errors.
ServiceHandle< IIncidentSvc > m_incidentSvc
Handle on the incident service.
Definition GenModule.h:101
virtual StatusCode callGenerator()
For calling the generator on each iteration of the event loop.
Definition GenModule.h:66
virtual StatusCode fillEvt(HepMC::GenEvent *evt)=0
For filling the HepMC event object.
BooleanProperty m_isAfterburner
Flag for normal vs. afterburner generators.
Definition GenModule.h:87
void fillBarcodesAttribute(GenEvent *)
Definition GenEvent.h:627
GenEvent * newGenEvent(const int a, const int b)
Definition GenEvent.h:625

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

◆ fillEvt()

StatusCode Hijing::fillEvt ( HepMC::GenEvent * evt)
overridevirtual

For filling the HepMC event object.

Implements GenModule.

Definition at line 201 of file Hijing.cxx.

202{
203 // These two parameters need to be made user settable (done - AS)
204 //
205 MsgStream log(msgSvc(), name());
206 ATH_MSG_INFO( " HIJING Filing. \n" );
207
208 // Set the event number
209 evt->set_event_number( m_events );
210
211 // Set the random generator seeds
213
214 // Set the generator id
215 HepMC::set_signal_process_id(evt,50000000 + m_iap);
216
217 // Store collision parameters
218 int np = m_himain1.np();
219 int nt = m_himain1.nt();
220 int n0 = m_himain1.n0();
221 int n01 = m_himain1.n01();
222 int n10 = m_himain1.n10();
223 int n11 = m_himain1.n11();
224 //int natt = m_himain1.natt();
225 int jatt = m_himain1.jatt();
226 float b = m_hiparnt.hint1(19);
227 float bphi = m_hiparnt.hint1(20);
228
229 float sigmainel = m_hiparnt.hint1(12);
230
231 #ifdef HEPMC3
232 HepMC::GenHeavyIonPtr ion= std::make_shared<HepMC::GenHeavyIon>();
233 ion->Ncoll_hard=static_cast<int>(jatt);
234 ion->Npart_proj=static_cast<int>(np);
235 ion->Npart_targ=static_cast<int>(nt);
236 ion->Ncoll=static_cast<int>(n0+n10+n01+n11);
237 ion->N_Nwounded_collisions=static_cast<int>(n01);
238 ion->Nwounded_N_collisions=static_cast<int>(n10);
239 ion->Nwounded_Nwounded_collisions=static_cast<int>(n11);
240 ion->spectator_neutrons=-1;
241 ion->spectator_protons=-1;
242 ion->impact_parameter= b;
243 ion->event_plane_angle=bphi;
244 ion->event_plane_angle=-1;
245 ion->sigma_inel_NN=sigmainel;
246 evt->set_heavy_ion(std::move(ion));
247#else
248 HepMC::HeavyIon ion
249 (
250 static_cast<int>(jatt), // Ncoll_hard
251 static_cast<int>(np), // Npart_proj
252 static_cast<int>(nt), // Npart_targ
253 static_cast<int>(n0+n10+n01+n11), // Ncoll
254 static_cast<int>(-1), // spectator_neutrons
255 static_cast<int>(-1), // spectator_protons
256 static_cast<int>(n01), // N_Nwounded_collisions
257 static_cast<int>(n10), // Nwounded_N_collisions
258 static_cast<int>(n11), // Nwounded_Nwounded_collisions
259 b, // impact_parameter
260 bphi, // event_plane_angle
261 -1, // eccentricity
262 sigmainel ); // sigma_inel_NN
263
264 evt->set_heavy_ion(std::move(ion));
265 std::cout << " heavy ion " << evt->heavy_ion() << std::endl;
266#endif
267
268 // Did we keep decay history?
269 //
270 bool keptHistory = (m_hiparnt.ihpr2(21) == 1);
271
272 // The number of particles in the hijing output
273 //
274 int numHijingPart = m_himain1.natt();
275
276 // Vectors that will keep track of where particles originate from and die
277 //
278 std::vector<int> partOriginVertex_vec(numHijingPart, 0);
279 std::vector<int> partDecayVertex_vec(numHijingPart, -1);
280 std::vector<HepMC::GenParticlePtr> particleHepPartPtr_vec(numHijingPart, nullptr);
281
282 // Vector that will keep pointers to generated vertices
283 //
284 std::vector<HepMC::GenVertexPtr> vertexPtrVec;
285
286 // Create the event vertex
287 //
288 CLHEP::HepLorentzVector newVertex;
289 newVertex = CLHEP::HepLorentzVector(0.,0.,0.,0.);
290
291 if( m_rand )newVertex = randomizeVertex(p_Engine); // Create a random vertex along the pipe
292 else if(m_sel) newVertex = CLHEP::HepLorentzVector(m_x, m_y, m_z, 0.); // Create vertex at selected point - preempted by m_rand
293
294 HepMC::GenVertexPtr v1 = HepMC::newGenVertexPtr(HepMC::FourVector(newVertex.x(),newVertex.y(),newVertex.z(),newVertex.t()));
295
297 vertexPtrVec.push_back(v1);
298
299 double eproj = (double) m_efrm;
300 if ( m_frame == "CMS " ) eproj = eproj / 2.;
301
302 int proj_id = 2212;
303 if ( m_proj == "PBAR " ) {
304 proj_id = -2212;
305 } else if ( m_proj == "N " ) {
306 proj_id = 2112;
307 } else if ( m_proj == "NBAR " ) {
308 proj_id = -2112;
309 } else if ( m_proj == "PI+ " ) {
310 proj_id = 211;
311 } else if ( m_proj == "PI- " ) {
312 proj_id = -211;
313 } else if ( m_proj == "A " ) {
314 proj_id = 3000000 + m_iap;
315 }
316 HepMC::GenParticlePtr part_p = HepMC::newGenParticlePtr(HepMC::FourVector(0., 0., eproj, eproj), proj_id, 101 );
317 v1->add_particle_in( part_p );
318
319 double etarg = 0.;
320 if ( m_frame == "CMS " ) etarg = ( (double) m_efrm ) / 2.;
321
322 int targ_id = 2212;
323 if ( m_targ == "PBAR " ) {
324 targ_id = -2212;
325 } else if ( m_targ == "N " ) {
326 targ_id = 2112;
327 } else if ( m_targ == "NBAR " ) {
328 targ_id = -2112;
329 } else if ( m_targ == "PI+ " ) {
330 targ_id = 211;
331 } else if ( m_targ == "PI- " ) {
332 targ_id = -211;
333 } else if ( m_targ == "A " ) {
334 targ_id = 3000000 + m_iat;
335 }
336 HepMC::GenParticlePtr part_t = HepMC::newGenParticlePtr(HepMC::FourVector(0., 0., -etarg, etarg), targ_id, 102 );
337 v1->add_particle_in( part_t );
338
339 evt->set_beam_particles(std::move(part_p),std::move(part_t));
340
341 ATH_MSG_DEBUG( "Hijing particles for event # " << m_events << ":\n"
342 << " px, "
343 << " py, "
344 << " pz, "
345 << " Id, "
346 << " Source, "
347 << " Parent, "
348 << " Status, " );
349
350 bool inconsistency = false;
351
352 // Loop on all Hijing particles and put them all as outgoing from the event vertex
353 //
354 for (int i = 1; i <= m_himain1.natt(); ++i)
355 {
356 // Skip non-interacting projectile and target nucleons
357 //
358 if (!m_spec && ((m_himain2.katt(i, 2) == 0) || (m_himain2.katt(i, 2)) == 10)) continue;
359
360 // Find the vertex of the parent particle
361 //
362 int parentIndex = m_himain2.katt(i, 3) - 1;
363 int parentOriginIndex = 0;
364 int parentDecayIndex = -1;
365
366 // If the particle has a true parent, record its vertex info
367 //
368 if (parentIndex >= 0)
369 {
370 parentOriginIndex = partOriginVertex_vec[parentIndex];
371 parentDecayIndex = partDecayVertex_vec[parentIndex];
372 }
373
374 // A CLHEP vector containing the particle start point
375 //
376 // If the particle has been shifted, offset the particleStart accordingly
377 //
378 if( m_rand || m_sel ){ // Either way, we need to shift the particle vertex
379 m_himain2.vatt(i,1) += newVertex(0);
380 m_himain2.vatt(i,2) += newVertex(1);
381 m_himain2.vatt(i,3) += newVertex(2);
382 m_himain2.vatt(i,4) += newVertex(3);
383 }
384
385 ATH_MSG_DEBUG( std::fixed << std::setprecision(2)
386 << std::setw(5) << i << ","
387 << std::setw(7) << m_himain2.patt(i, 1) << ", "
388 << std::setw(7) << m_himain2.patt(i, 2) << ", "
389 << std::setw(7) << m_himain2.patt(i, 3) << ", "
390 << std::setw(7) << m_himain2.katt(i, 1) << ", "
391 << std::setw(7) << m_himain2.katt(i, 2) << ", "
392 << std::setw(7) << m_himain2.katt(i, 3) << ", "
393 << std::setw(7) << m_himain2.katt(i, 4) << ", "
394 << std::setw(7) << m_himain2.vatt(i, 1) << ", "
395 << std::setw(7) << m_himain2.vatt(i, 2) << ", "
396 << std::setw(7) << m_himain2.vatt(i, 3) );
397
398 CLHEP::HepLorentzVector particleStart(m_himain2.vatt(i, 1), m_himain2.vatt(i, 2),
399 m_himain2.vatt(i, 3), m_himain2.vatt(i, 4));
400
401 // By default, the particle originates from the primary vertex
402 //
403 int particleVertexIndex = 0;
404
405 // Have we kept the history?
406 //
407 if (keptHistory)
408 {
409 // Check to see if we've already generated a decay vertex for this parent
410 //
411 // std::cout << "ML-> keptHistory == True" << std::endl;
412 if (parentDecayIndex != -1)
413 {
414 // Make sure it is consistent with this track origin
415 //
416 HepGeom::Point3D<double> vertex_pos(vertexPtrVec[parentDecayIndex]->position().x(),
417 vertexPtrVec[parentDecayIndex]->position().y(),
418 vertexPtrVec[parentDecayIndex]->position().z());
419 double distance = vertex_pos.distance(particleStart.vect());
420
421 //std::cout << "ML-> distance = " << distance <<" parentDecayIndex = "<<parentDecayIndex<< std::endl;
422 if (distance > m_vertexOffsetCut)
423 {
424 // We have an inconsistency, print a message
425 //
426 ATH_MSG_WARNING( " Inconsistency in Hijing particle vertexing, particle # " << i
427 << " starting point (x,y,z) = ("
428 << particleStart.x() << ", "
429 << particleStart.y() << ", "
430 << particleStart.z() << ") "
431 << " a distance " << distance << " away from parent decay point " );
432
433
434 // Dump the parent decay vertex
435 //
436 log << MSG::WARNING << " Parent decay vertex: (x,y,z) = " << vertexPtrVec[parentDecayIndex]->position().x()
437 << ", " << vertexPtrVec[parentDecayIndex]->position().y()
438 << ", " << vertexPtrVec[parentDecayIndex]->position().z()
439 << ", associated daughter IDs = ";
440
441#ifdef HEPMC3
442 auto vertexPtrVec_particles_out_const_begin=vertexPtrVec[parentDecayIndex]->particles_out().begin();
443 auto vertexPtrVec_particles_out_const_end=vertexPtrVec[parentDecayIndex]->particles_out().end();
444#else
445 auto vertexPtrVec_particles_out_const_begin=vertexPtrVec[parentDecayIndex]->particles_out_const_begin();
446 auto vertexPtrVec_particles_out_const_end=vertexPtrVec[parentDecayIndex]->particles_out_const_end();
447#endif
448 for (auto iter = vertexPtrVec_particles_out_const_begin;
449 iter != vertexPtrVec_particles_out_const_end;
450 iter++)
451 {
452 log << (*iter) << ", ";
453 }
454
455 log << endmsg;
456 inconsistency = true;
457 }
458
459 // Nonetheless set the parent decay vertex to be this particle's vertex
460 //
461 particleVertexIndex = parentDecayIndex;
462 }
463 else
464 {
465 // Now compare the distance between the vertex FROM which the parent originates and the
466 // start of this particle
467 //
468 HepGeom::Point3D<double> vertex_pos(vertexPtrVec[parentOriginIndex]->position().x(),
469 vertexPtrVec[parentOriginIndex]->position().y(),
470 vertexPtrVec[parentOriginIndex]->position().z());
471 double distance = vertex_pos.distance(particleStart.vect());
472
473 if (distance > m_vertexOffsetCut && parentIndex == -1)
474 {
475 // *** Explicitly handle Hijing bug which generates particle with displaced vertex
476 // *** but no parent ????
477 //
478
479 ATH_MSG_WARNING( "HIJING BUG:: Particle found with displaced vertex but no parent " );
480 ATH_MSG_WARNING( " Particle parameters: " << std::fixed << std::setprecision(2)
481 << std::setw(5) << i << ","
482 << std::setw(7) << m_himain2.patt(i, 1) << ", "
483 << std::setw(7) << m_himain2.patt(i, 2) << ", "
484 << std::setw(7) << m_himain2.patt(i, 3) << ", "
485 << std::setw(7) << m_himain2.katt(i, 1) << ", "
486 << std::setw(7) << m_himain2.katt(i, 2) << ", "
487 << std::setw(7) << m_himain2.katt(i, 3) << ", "
488 << std::setw(7) << m_himain2.katt(i, 4) << ", "
489 << std::setw(7) << m_himain2.vatt(i, 1) << ", "
490 << std::setw(7) << m_himain2.vatt(i, 2) << ", "
491 << std::setw(7) << m_himain2.vatt(i, 3) );
492
493 // Assign the particle to its parent's vertex
494 //
495 particleVertexIndex = parentOriginIndex;
496 //std::cout << "ML-> case 2 distane = " << distance <<" particleVertexIndex = "<<particleVertexIndex<< std::endl;
497 }
498 if( parentIndex!=-1 && ((distance > m_vertexOffsetCut || parentOriginIndex !=0) || m_keepAllDecayVertices ) )
499 {
500 // We need to create a new vertex
501 //
502 HepMC::GenVertexPtr newVertex_p = HepMC::newGenVertexPtr(HepMC::FourVector(particleStart.x(),particleStart.y(),particleStart.z(),particleStart.t()));
503 evt->add_vertex(newVertex_p);
504 vertexPtrVec.push_back(newVertex_p);
505 particleVertexIndex = vertexPtrVec.size() - 1;
506
507 // Now we indicate that the parent has a decay vertex
508 //
509 partDecayVertex_vec[parentIndex] = particleVertexIndex;
510
511 // Now tell the vertex about the particle that created it
512 //
513
514 newVertex_p->add_particle_in(particleHepPartPtr_vec[parentIndex]);
515 }
516 else {
517 // Assign the particle to its parent's vertex
518 //
519 particleVertexIndex = parentOriginIndex;
520 }
521 }
522 }
523 else
524 {
525 // We have to brute-force search for a vertex that might match this particle
526 //
527 int foundVert = -1;
528 for (unsigned int ivert = 0; ivert < vertexPtrVec.size(); ivert++)
529 {
530
531 HepGeom::Point3D<double> vertex_pos(vertexPtrVec[ivert]->position().x(),
532 vertexPtrVec[ivert]->position().y(),
533 vertexPtrVec[ivert]->position().z());
534 double distance = vertex_pos.distance(particleStart.vect());
535 if (distance < m_vertexOffsetCut)
536 {
537 foundVert = ivert;
538 break;
539 }
540 }
541
542 if (foundVert == -1)
543 {
544 // We need to create a new vertex
545 //
546 HepMC::GenVertexPtr newVertex_p = HepMC::newGenVertexPtr(HepMC::FourVector(particleStart.x(),particleStart.y(),particleStart.z(),particleStart.t()));
547
548 evt->add_vertex(newVertex_p);
549 vertexPtrVec.push_back(std::move(newVertex_p));
550 particleVertexIndex = vertexPtrVec.size() - 1;
551 }
552 else
553 {
554 particleVertexIndex = foundVert;
555 }
556 //std::cout << "ML-> case 3 particleVertexIndex = "<<particleVertexIndex<< std::endl;
557 }
558
559 // If the Hijing particle has decayed, set the status appropriately
560 //
561 int particleId = m_himain2.katt(i, 1);
562 int particleStatus = 1;
563 if (m_himain2.katt(i, 4) == 11) particleStatus = 2;
564
565 // Create the new particle
566 //
567 HepMC::FourVector particleP4(m_himain2.patt(i, 1),
568 m_himain2.patt(i, 2),
569 m_himain2.patt(i, 3),
570 m_himain2.patt(i, 4));
571
572 HepMC::GenParticlePtr newParticle_p = HepMC::newGenParticlePtr(particleP4, particleId,
573 particleStatus);
574
575 // Record the particle in the vector of pointers
576 // (ostensibly we only need this when we have the
577 // history but for simplicity always do it)
578 //
579 particleHepPartPtr_vec[i-1] = newParticle_p;
580
581 // Now add the particle to its vertex
582 //
583 vertexPtrVec[particleVertexIndex]->add_particle_out(std::move(newParticle_p));
584 partOriginVertex_vec[i-1] = particleVertexIndex;
585
586 }
587
588 if (inconsistency)
589 {
590 for (int i = 1; i <= m_himain1.natt(); ++i)
591 {
592 // Skip non-interacting projectile and target nucleons
593 //
594 if (!m_spec && ((m_himain2.katt(i, 2) == 0) || (m_himain2.katt(i, 2)) == 10)) continue;
595
596 ATH_MSG_WARNING( " Hijing.cxx inconsistency: " << std::fixed << std::setprecision(2)
597 // std::cout << std::fixed << std::setprecision(2)
598 << std::setw(5) << i << ","
599 << std::setw(7) << m_himain2.patt(i, 1) << ", "
600 << std::setw(7) << m_himain2.patt(i, 2) << ", "
601 << std::setw(7) << m_himain2.patt(i, 3) << ", "
602 << std::setw(7) << m_himain2.katt(i, 1) << ", "
603 << std::setw(7) << m_himain2.katt(i, 2) << ", "
604 << std::setw(7) << m_himain2.katt(i, 3) << ", "
605 << std::setw(7) << m_himain2.katt(i, 4) << ", "
606 << std::setw(7) << m_himain2.vatt(i, 1) << ", "
607 << std::setw(7) << m_himain2.vatt(i, 2) << ", "
608 << std::setw(7) << m_himain2.vatt(i, 3) );
609 }
610 }
611
612 // Generate documentation lines for high-pt partons
613 //
614 for (int isg = 1; isg <= m_hijjet2.nsg(); isg++)
615 {
616 for (int jparton = 1; jparton <= m_hijjet2.njsg(isg); jparton++)
617 {
618 double px = m_hijjet2.pxsg(isg, jparton);
619 double py = m_hijjet2.pysg(isg, jparton);
620 double pz = m_hijjet2.pzsg(isg, jparton);
621 double mass = m_hijjet2.pmsg(isg, jparton);
622
623 double ptsq = px*px + py*py;
624 double e = std::sqrt(ptsq + pz*pz + mass*mass);
625 double mt = std::sqrt(ptsq + mass*mass);
626 double pt = std::sqrt(ptsq);
627
628 double pseud = 0.5*std::log((e + pz)/(e - pz));
629
630 int partonId = m_hijjet2.k2sg(isg, jparton);
631
632 if (mt > m_partonStoreMinPt)
633 {
634 ATH_MSG_DEBUG( "hijjet2 entry: isg = " << isg
635 << ", pt = " << pt
636 << ", mt = " << mt
637 << ", eta = " << pseud );
638
639 // Add aaa non-tracked entry in the hepmc event with status code 103 (temporary)
640 //
641 v1->add_particle_out( HepMC::newGenParticlePtr( HepMC::FourVector(px, py, pz, e), partonId, 103 ) );
642 }
643 }
644 }
645
646 // Generate documentation lines for high-pt partons
647 //
648 int iap = m_hiparnt.ihnt2(1); // # of projectile nucleons
649 int iat = m_hiparnt.ihnt2(3); // # of target nucleons
650
651 for (int iproj = 1; iproj <= iap; iproj++)
652 {
653 for (int jparton = 1; jparton <= m_hijjet1.npj(iproj); jparton++)
654 {
655 double px = m_hijjet1.pjpx(iproj, jparton);
656 double py = m_hijjet1.pjpy(iproj, jparton);
657 double pz = m_hijjet1.pjpz(iproj, jparton);
658 double mass = m_hijjet1.pjpm(iproj, jparton);
659
660 double ptsq = px*px + py*py;
661 double e = std::sqrt(ptsq + pz*pz + mass*mass);
662 double mt = std::sqrt(ptsq + mass*mass);
663 double pt = std::sqrt(ptsq);
664
665 double pseud = 0.5*std::log((e + pz)/(e - pz));
666
667 int partonId = m_hijjet1.kfpj(iproj, jparton);
668
669 if (mt > m_partonStoreMinPt)
670 {
671 ATH_MSG_DEBUG( "hijjet1 entry: iproj = " << iproj
672 << ", pt = " << pt
673 << ", mt = " << mt
674 << ", eta = " << pseud );
675
676 // Add aaa non-tracked entry in the hepmc event with status code 103 (temporary)
677 //
678 v1->add_particle_out( HepMC::newGenParticlePtr( HepMC::FourVector(px, py, pz, e), partonId, 103 ) );
679 }
680 }
681 }
682
683 // Now for target nucleons
684 //
685 for (int itarg = 1; itarg <= iat; itarg++)
686 {
687 for (int jparton = 1; jparton <= m_hijjet1.ntj(itarg); jparton++)
688 {
689 double px = m_hijjet1.pjtx(itarg, jparton);
690 double py = m_hijjet1.pjty(itarg, jparton);
691 double pz = m_hijjet1.pjtz(itarg, jparton);
692 double mass = m_hijjet1.pjtm(itarg, jparton);
693
694 double ptsq = px*px + py*py;
695 double e = std::sqrt(ptsq + pz*pz + mass*mass);
696 double mt = std::sqrt(ptsq + mass*mass);
697 double pt = std::sqrt(ptsq);
698
699 double pseud = 0.5*std::log((e + pz)/(e - pz));
700
701 int partonId = m_hijjet1.kftj(itarg, jparton);
702
703 if (mt > m_partonStoreMinPt)
704 {
705 ATH_MSG_DEBUG( "hijjet1 entry: itarg = " << itarg
706 << ", pt = " << pt
707 << ", mt = " << mt
708 << ", eta = " << pseud );
709
710 // Add aaa non-tracked entry in the hepmc event with status code 103 (temporary)
711 //
712 v1->add_particle_out( HepMC::newGenParticlePtr( HepMC::FourVector(px, py, pz, e), partonId, 103 ) );
713 }
714 }
715 }
716
717#ifdef HEPMC3
718 // Convert GeV -> MeV to ensure correct units
719 evt->set_units(HepMC3::Units::MEV, HepMC3::Units::MM);
720#endif
721
722 //BPK-> Loop over the particles in the event, if p needs to be mirrored:
723 if( m_prand ){
724 HepMC::FourVector tmpmom(0.,0.,0.,0.);
725 double ranz = CLHEP::RandFlat::shoot(p_Engine);
726 // std::cout <<"random="<<ranz <<std::endl;
727 if (ranz < 0.5) {
728 // std::cout <<"flip="<<ranz <<std::endl;
729 for(auto pitr: *evt){
730 tmpmom= pitr->momentum();
731 tmpmom.setX(-tmpmom.x());
732 tmpmom.setY(-tmpmom.y());
733 tmpmom.setZ(-tmpmom.z());
734 tmpmom.setT(tmpmom.t());
735 pitr->set_momentum(tmpmom);
736 }
737 }
738 }
739 //BPK-<
740
741 return StatusCode::SUCCESS;
742}
#define endmsg
#define ATH_MSG_WARNING(x)
#define y
#define x
#define z
std::string m_targ
Definition Hijing.h:63
std::string m_proj
Definition Hijing.h:62
int m_iat
Definition Hijing.h:65
HijJet1 m_hijjet1
Definition Hijing.h:109
HijJet2 m_hijjet2
Definition Hijing.h:110
HiMain2 m_himain2
Definition Hijing.h:108
float m_efrm
Definition Hijing.h:60
int m_iap
Definition Hijing.h:64
virtual CLHEP::HepLorentzVector randomizeVertex(CLHEP::HepRandomEngine *engine)
Definition Hijing.cxx:745
float distance(const Amg::Vector3D &p1, const Amg::Vector3D &p2)
calculates the distance between two point in 3D space
void set_signal_process_vertex(GenEvent *e, T v)
Definition GenEvent.h:651
void set_random_states(GenEvent *e, std::vector< T > a)
Definition GenEvent.h:648
HepMC::GenVertex * GenVertexPtr
Definition GenVertex.h:59
GenVertexPtr newGenVertexPtr(const HepMC::FourVector &pos=HepMC::FourVector(0.0, 0.0, 0.0, 0.0), const int i=0)
Definition GenVertex.h:64
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
void set_signal_process_id(GenEvent *e, const int i)
Definition GenEvent.h:642
GenParticle * GenParticlePtr
Definition GenParticle.h:37
msgSvc
Provide convenience handles for various services.
Definition StdJOSetup.py:36

◆ finalize()

StatusCode GenModule::finalize ( )
inlineinherited

Definition at line 55 of file GenModule.h.

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

◆ genFinalize()

StatusCode Hijing::genFinalize ( )
overridevirtual

For finalising the generator, if required.

Reimplemented from GenModule.

Definition at line 194 of file Hijing.cxx.

195{
196 ATH_MSG_INFO( " HIJING Ending. \n" );
197 return StatusCode::SUCCESS;
198}

◆ genInitialize()

StatusCode Hijing::genInitialize ( )
overridevirtual

For initializing the generator, if required.

Reimplemented from GenModule.

Definition at line 85 of file Hijing.cxx.

86{
87 ATH_CHECK(m_event_paramsKey.initialize());
88
89 // Initialisation of input parameters
90 std::cout << "MetaData: generator = Hijing "
91 << HIJINGVERSION << std::endl;
92 ATH_MSG_INFO( "===> Hijing initialising \n" );
93 if( m_rand ){
94 ATH_MSG_INFO( "===> Vertex randomization ON." );
95 }
96 if( m_wide ){
97 ATH_MSG_INFO( "===> Vertex rand covers whole beampipe." );
98 }
99 //BPK
100 if( m_prand ) ATH_MSG_INFO( "===> Random Momentum Mirroring enabled" );
101 if( m_keepAllDecayVertices ) ATH_MSG_INFO( "===> Keeping all decay vertices" );
102 else ATH_MSG_INFO( "===> NOT keeping all decay vertices" );
103
104#ifdef HEPMC3
105 ATH_MSG_INFO( "===> HEPMC3 is used" );
106#else
107 ATH_MSG_INFO( "===> HEPMC3 is not used" );
108#endif
109
110 //CLHEP::HepRandomEngine* engine
111 p_Engine = getRandomEngineDuringInitialize(hijing_stream, m_randomSeed, m_dsid); // NOT THREAD-SAFE
112 hijing_stream = "HIJING";
113
114 // Set the users' initialisation parameters choices
116
117 const char* frame = m_frame.c_str();
118 const char* proj = m_proj.c_str();
119 const char* targ = m_targ.c_str();
120
121 hijset_( &m_efrm, frame, proj, targ, &m_iap, &m_izp, &m_iat, &m_izt,
122 strlen(frame), strlen(proj), strlen(targ) );
123
124 ATH_MSG_INFO( "\n=================================================\n"
125 << " HIJING initialization results: \n"
126 << " Total sigma = " << m_hiparnt.hint1(13) << " mb\n"
127 << " Inelastic sigma = " << m_hiparnt.hint1(12) << " mb\n"
128 << " Jet sigma = " << m_hiparnt.hint1(11) << " mb\n"
129 << "=================================================\n" );
130
131
132 return StatusCode::SUCCESS;
133}
#define ATH_CHECK
Evaluate an expression and check for errors.
void hijset_(float *, const char *, const char *, const char *, int *, int *, int *, int *, long int, long int, long int)
CLHEP::HepRandomEngine * getRandomEngineDuringInitialize(const std::string &streamName, unsigned long int randomSeedOffset, unsigned int conditionsRun=1, unsigned int lbn=1) const
Definition GenModule.cxx:53
void set_user_params(void)
Definition Hijing.cxx:784
int m_izt
Definition Hijing.h:67
int m_izp
Definition Hijing.h:66

◆ genuserInitialize()

virtual StatusCode GenModule::genuserInitialize ( )
inlinevirtualinherited

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

Reimplemented in Pythia8B_i.

Definition at line 64 of file GenModule.h.

64{ return StatusCode::SUCCESS; }

◆ getRandomEngine() [1/2]

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

Definition at line 34 of file GenModule.cxx.

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

◆ 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}
CLHEP::HepRandomEngine * getRandomEngine(const std::string &streamName, const EventContext &ctx) const
Definition GenModule.cxx:34
void setExtendedEventContext(EventContext &ctx, ExtendedEventContext &&ectx)
Move an extended context into a context object.

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

58 {
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());
66 }
67}

◆ initialize()

StatusCode GenModule::initialize ( )
virtualinherited

Reimplemented from GenBase.

Definition at line 21 of file GenModule.cxx.

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

◆ inputHandles()

virtual std::vector< Gaudi::DataHandle * > AthCommonDataStore< AthCommonMsg< 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 68 of file GenBase.cxx.

68 {
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);
76 }
77}

◆ mmTocm()

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

Scale event lengths by x 1/10.

Definition at line 87 of file GenBase.cxx.

87 {
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);
94 }
95}

◆ msg()

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

Definition at line 24 of file AthCommonMsg.h.

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

◆ 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 }
const HepPDT::ParticleDataTable & pdt() const
Shorter alias to get a particle data table.
Definition GenBase.h:123

◆ 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 }
ServiceHandle< IPartPropSvc > m_ppSvc
Handle on the particle property service.
Definition GenBase.h:160

◆ 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(); }
const HepPDT::ParticleDataTable & particleTable() const
Get a particle data table.
Definition GenBase.h:118

◆ randomizeVertex()

CLHEP::HepLorentzVector Hijing::randomizeVertex ( CLHEP::HepRandomEngine * engine)
protectedvirtual

Definition at line 745 of file Hijing.cxx.

746{
747 // Check the range in Z for the correct pipe diameter
748 // Definitions of constants are in VertexShift.h
749
750 using namespace VertexShift;
751
752 double ranx, rany, xmax, ymax;
753 double ranz = CLHEP::RandFlat::shoot(engine, -Zmax, Zmax);
754 if( m_wide ){ // Allow the whole pipe
755 if( std::abs(ranz) < Start1 ) {
756 xmax = Xmin + Delta1;
757 ymax = xmax;
758 } else if( std::abs(ranz) < Start2 ) {
759 xmax = Xmin + Delta2;
760 ymax = xmax;
761 } else if( std::abs(ranz) < Start3 ) {
762 xmax = Xmin + Delta3;
763 ymax = xmax;
764 } else if ( std::abs(ranz) <= Envelope ){
765 xmax = Xmin;
766 ymax = xmax;
767 } else {
768 ATH_MSG_ERROR( "**** Hijing::randomizeVertex() " << ranz << " (z) is outside the detector (units of mm). Returning a centered event." );
769 return CLHEP::HepLorentzVector(0.,0.,0.,0.);
770 }
771 } else {
772 ATH_MSG_INFO( "New Coordinates: x=0., y=0., z=" << ranz );
773 return CLHEP::HepLorentzVector(0., 0., ranz, 0); // Allow distribution just along the beam (no "width", m_wide is false (default))
774 }
775 ranx = CLHEP::RandFlat::shoot(engine, -xmax, xmax);
776 rany = CLHEP::RandFlat::shoot(engine, -ymax, ymax);
777
778 ATH_MSG_INFO( "New Coordinates: x=" << ranx << ", y=" << rany << ", z=" << ranz );
779
780 return CLHEP::HepLorentzVector(ranx, rany, ranz, 0);
781}
double xmax
Definition listroot.cxx:61
double ymax
Definition listroot.cxx:64
const float Delta1
Definition VertexShift.h:29
const float Xmin
Definition VertexShift.h:25
const float Delta2
Definition VertexShift.h:30
const float Delta3
Definition VertexShift.h:31

◆ 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();
384 }
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > renounce(T &h)

◆ renounceArray()

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

remove all handles from I/O resolution

Definition at line 364 of file AthCommonDataStore.h.

364 {
366 }

◆ set_user_params()

void Hijing::set_user_params ( void )
protected

Definition at line 784 of file Hijing.cxx.

785{
786 // set up the DEFAULT input parameters to hijset: these can be changed by the user ...
787 m_efrm = 14000.;
788 m_frame = "CMS ";
789 m_proj = "P ";
790 m_targ = "P ";
791 m_iap = 1;
792 m_iat = 1;
793 m_izp = 1;
794 m_izt = 1;
795 // ... and to hijing
796 m_bmin = 0.;
797 m_bmax = 0.;
798
799 // Set user Initialization parameters
800 for(CommandVector::iterator i = m_InitializeVector.begin(); i != m_InitializeVector.end(); ++i )
801 {
802 ATH_MSG_INFO( " Hijing init. Command is: " << *i );
803 StringParse mystring(*i);
804 std::string myparam = mystring.piece<std::string>(1);
805 if (myparam == "efrm")
806 {
807 m_efrm = mystring.piece<double>(2);
808 }
809 else if (myparam == "frame")
810 {
811 m_frame = mystring.piece<std::string>(2);
812 if (m_frame.size() < 8)
813 {
814 unsigned nbl = 8 - m_frame.size();
815 for (unsigned i = 0; i < nbl; ++i) m_frame += ' ';
816 }
817 }
818 else if (myparam == "proj")
819 {
820 m_proj = mystring.piece<std::string>(2);
821 if (m_proj.size() < 8)
822 {
823 unsigned nbl = 8 - m_proj.size();
824 for (unsigned i = 0; i < nbl; ++i) m_proj += ' ';
825 }
826 }
827 else if (myparam == "targ")
828 {
829 m_targ = mystring.piece<std::string>(2);
830 if (m_targ.size() < 8)
831 {
832 unsigned nbl = 8 - m_targ.size();
833 for (unsigned i = 0; i < nbl; ++i) m_targ += ' ';
834 }
835 }
836 else if (myparam == "iap")
837 {
838 m_iap = mystring.piece<int>(2);
839 }
840 else if (myparam == "izp")
841 {
842 m_izp = mystring.piece<int>(2);
843 }
844 else if (myparam == "iat")
845 {
846 m_iat = mystring.piece<int>(2);
847 }
848 else if (myparam == "izt")
849 {
850 m_izt = mystring.piece<int>(2);
851 }
852 else if (myparam == "bmin")
853 {
854 m_bmin = mystring.piece<double>(2);
855 }
856 else if (myparam == "bmax")
857 {
858 m_bmax = mystring.piece<double>(2);
859 }
860 else if (myparam == "nseed")
861 {
862 m_ranseed.nseed() = mystring.piece<int>(2);
863 }
864 else if (myparam == "hipr1")
865 {
866 int myelem = mystring.piece<int>(2);
867 m_hiparnt.hipr1(myelem) = mystring.piece<double>(3);
868 }
869 else if (myparam == "ihpr2")
870 {
871 int myelem = mystring.piece<int>(2);
872 m_hiparnt.ihpr2(myelem) = mystring.piece<int>(3);
873 }
874 else if (myparam == "hint1")
875 {
876 int myelem = mystring.piece<int>(2);
877 m_hiparnt.hint1(myelem) = mystring.piece<double>(3);
878 }
879 else if (myparam == "ihnt2")
880 {
881 int myelem = mystring.piece<int>(2);
882 m_hiparnt.ihnt2(myelem) = mystring.piece<int>(3);
883 }
884 else
885 {
886 ATH_MSG_ERROR( " ERROR in HIJING INITIALIZATION PARAMETERS " << myparam << " is an invalid parameter !" );
887 }
888 }
889}
RanSeed m_ranseed
Definition Hijing.h:104

◆ 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, AthHistogramAlgorithm, and PyAthena::Alg.

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}
static Double_t sc
virtual StatusCode sysInitialize() override
Override sysInitialize.
AthCommonDataStore(const std::string &name, T... args)
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
::StatusCode StatusCode
StatusCode definition for legacy code.

◆ 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) {
313 for (auto k : keys) {
314 k->setOwner(this);
315 }
316 }
317 }
std::vector< SG::VarHandleKeyArray * > m_vhka

Member Data Documentation

◆ m_bmax

float Hijing::m_bmax {0.}
protected

Definition at line 70 of file Hijing.h.

70{0.};

◆ m_bmin

float Hijing::m_bmin {0.}
protected

Definition at line 69 of file Hijing.h.

69{0.};

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

IntegerProperty Hijing::m_dsid {this, "Dsid", 999999}
protected

Definition at line 57 of file Hijing.h.

57{this, "Dsid", 999999};

◆ m_efrm

float Hijing::m_efrm {0.}
protected

Definition at line 60 of file Hijing.h.

60{0.};

◆ m_event_paramsKey

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

Definition at line 117 of file Hijing.h.

117{this, "HijingOutputKey", "Hijing_event_params"};

◆ m_events

int Hijing::m_events {0}
protected

Definition at line 95 of file Hijing.h.

95{0};

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

std::string Hijing::m_frame
protected

Definition at line 61 of file Hijing.h.

◆ m_hijcrdn

HijCrdn Hijing::m_hijcrdn
protected

Definition at line 113 of file Hijing.h.

◆ m_hijjet1

HijJet1 Hijing::m_hijjet1
protected

Definition at line 109 of file Hijing.h.

◆ m_hijjet2

HijJet2 Hijing::m_hijjet2
protected

Definition at line 110 of file Hijing.h.

◆ m_hijjet4

HijJet4 Hijing::m_hijjet4
protected

Definition at line 111 of file Hijing.h.

◆ m_himain1

HiMain1 Hijing::m_himain1
protected

Definition at line 107 of file Hijing.h.

◆ m_himain2

HiMain2 Hijing::m_himain2
protected

Definition at line 108 of file Hijing.h.

◆ m_hiparnt

HiParnt Hijing::m_hiparnt
protected

Definition at line 101 of file Hijing.h.

◆ m_histrng

HiStrng Hijing::m_histrng
protected

Definition at line 112 of file Hijing.h.

◆ m_iap

int Hijing::m_iap {0}
protected

Definition at line 64 of file Hijing.h.

64{0};

◆ m_iat

int Hijing::m_iat {0}
protected

Definition at line 65 of file Hijing.h.

65{0};

◆ m_incidentSvc

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

Handle on the incident service.

Definition at line 101 of file GenModule.h.

101{this, "IncidentSvc", "IncidentSvc"};

◆ m_InitializeVector

CommandVector Hijing::m_InitializeVector
protected

Definition at line 98 of file Hijing.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.

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

◆ m_izp

int Hijing::m_izp {0}
protected

Definition at line 66 of file Hijing.h.

66{0};

◆ m_izt

int Hijing::m_izt {0}
protected

Definition at line 67 of file Hijing.h.

67{0};

◆ m_keepAllDecayVertices

bool Hijing::m_keepAllDecayVertices {true}
protected

Definition at line 84 of file Hijing.h.

84{true};

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

137{};

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

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

◆ m_mkMcEvent

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

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

Definition at line 139 of file GenBase.h.

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

◆ m_partonStoreMinPt

double Hijing::m_partonStoreMinPt {5.0}
protected

Definition at line 87 of file Hijing.h.

87{5.0};

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

160{this, "PartPropSvc", "PartPropSvc"};

◆ m_prand

bool Hijing::m_prand {false}
protected

Definition at line 83 of file Hijing.h.

83{false}; //BPK mirror event randomly

◆ m_proj

std::string Hijing::m_proj
protected

Definition at line 62 of file Hijing.h.

◆ m_rand

bool Hijing::m_rand {false}
protected

Definition at line 81 of file Hijing.h.

81{false};

◆ m_randomSeed

IntegerProperty GenModule::m_randomSeed {this, "RandomSeed", 1234567, "Random seed for the built-in random engine"}
protectedinherited

Seed for random number engine.

Definition at line 84 of file GenModule.h.

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

◆ m_randomseed

int Hijing::m_randomseed {0}
protected

Definition at line 91 of file Hijing.h.

91{0};

◆ m_ranseed

RanSeed Hijing::m_ranseed
protected

Definition at line 104 of file Hijing.h.

◆ m_rndmSvc

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

Data members.

Definition at line 99 of file GenModule.h.

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

◆ m_seeds

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

Definition at line 92 of file Hijing.h.

◆ m_sel

bool Hijing::m_sel {false}
protected

Definition at line 77 of file Hijing.h.

77{false}; // Vertex shifting on or off

◆ m_spec

bool Hijing::m_spec {true}
protected

Definition at line 78 of file Hijing.h.

78{true}; // TRUE will keep specator information (default)

◆ m_targ

std::string Hijing::m_targ
protected

Definition at line 63 of file Hijing.h.

◆ m_varHandleArraysDeclared

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

Definition at line 399 of file AthCommonDataStore.h.

◆ m_vertexOffsetCut

double Hijing::m_vertexOffsetCut {1.0E-7}
protected

Definition at line 88 of file Hijing.h.

88{1.0E-7};

◆ m_vhka

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

Definition at line 398 of file AthCommonDataStore.h.

◆ m_wide

bool Hijing::m_wide {false}
protected

Definition at line 82 of file Hijing.h.

82{false}; // True allows particles with x,y distributions

◆ m_x

float Hijing::m_x {0.}
protected

Definition at line 74 of file Hijing.h.

74{0.};

◆ m_y

float Hijing::m_y {0.}
protected

Definition at line 75 of file Hijing.h.

75{0.};

◆ m_z

float Hijing::m_z {0.}
protected

Definition at line 76 of file Hijing.h.

76{0.};

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