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

#include <Hijing.h>

Inheritance diagram for Hijing:

Public Member Functions

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.
 GenModule (const std::string &name, ISvcLocator *pSvcLocator)
 Constructor.
virtual StatusCode sysInitialize () override
 Override sysInitialize.
virtual bool isClonable () const override
 Specify if the algorithm is clonable.
virtual StatusCode sysExecute (const EventContext &ctx) override
 Execute an algorithm.
virtual const DataObjIDColl & extraOutputDeps () const override
 Return the list of extra output dependencies.
virtual bool filterPassed (const EventContext &ctx) const
 Get filter decision:
virtual void setFilterPassed (bool state, const EventContext &ctx) const
 Set filter decision:
ServiceHandle< StoreGateSvc > & evtStore ()
 The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
const ServiceHandle< StoreGateSvc > & detStore () const
 The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
virtual StatusCode sysStart () override
 Handle START transition.
virtual std::vector< Gaudi::DataHandle * > inputHandles () const override
 Return this algorithm's input handles.
virtual std::vector< Gaudi::DataHandle * > outputHandles () const override
 Return this algorithm's output handles.
Gaudi::Details::PropertyBase & declareProperty (Gaudi::Property< T, V, H > &t)
void updateVHKA (Gaudi::Details::PropertyBase &)
MsgStream & msg () const
bool msgLvl (const MSG::Level lvl) const
Event loop algorithm methods: not to be overloaded
StatusCode initialize ()
StatusCode execute (const EventContext &ctx)
 Execute method.
StatusCode finalize ()
Gen-specific event loop methods: to be overloaded
virtual StatusCode genuserInitialize ()
 For initialization of user code, if required. Called after genInitialize.
Event collection accessors (const and non-const)
HepMC::GenEvent *event ATLAS_NOT_CONST_THREAD_SAFE ()
 Access the current signal event (first in the McEventCollection).
McEventCollection *events ATLAS_NOT_CONST_THREAD_SAFE ()
 Access the current event's McEventCollection.
const HepMC::GenEvent * event_const (const EventContext &ctx) const
 Access the current signal event (const).
const McEventCollection * events_const (const EventContext &ctx) const
 Access the current event's McEventCollection (const).

Protected Member Functions

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

Protected Attributes

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.}
DoubleProperty m_x {this, "x", 0.}
DoubleProperty m_y {this, "y", 0.}
DoubleProperty m_z {this, "z", 0.}
BooleanProperty m_sel {this, "selectVertex", false}
BooleanProperty m_spec {this, "keepSpectators", true}
BooleanProperty m_rand {this, "randomizeVertices", false}
BooleanProperty m_wide {this, "wide", false}
BooleanProperty m_prand {this, "randomizeP", false}
BooleanProperty m_keepAllDecayVertices {this, "keepAllDecayVertices", true}
DoubleProperty m_partonStoreMinPt {this, "partonStoreMinPt", 5.0}
DoubleProperty m_vertexOffsetCut {this, "vertexOffsetCut", 1.0E-7}
int m_randomseed {0}
std::vector< long int > m_seeds
int m_events {0}
StringArrayProperty 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< HijingEventParams > m_event_paramsKey {this, "HijingOutputKey", "Hijing_event_params"}

Private Types

typedef ServiceHandle< StoreGateSvc > StoreGateSvc_t

Private Member Functions

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

Private Attributes

DataObjIDColl m_extendedExtraObjects
 Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.
StoreGateSvc_t m_evtStore
 Pointer to StoreGate (event store by default).
StoreGateSvc_t m_detStore
 Pointer to StoreGate (detector store by default).
std::vector< SG::VarHandleKeyArray * > m_vhka
bool m_varHandleArraysDeclared

Features for derived classes to use internally

IntegerProperty m_randomSeed {this, "RandomSeed", 1234567, "Random seed for the built-in random engine"}
 Seed for random number engine.
BooleanProperty m_isAfterburner {this, "IsAfterburner", false, "Set true if generator modifies existing events rather than creating new ones"}
 Flag for normal vs. afterburner generators.
std::shared_ptr< HepMC3::GenRunInfo > m_runinfo {}
 The run info for HepMC3.
CLHEP::HepRandomEngine * getRandomEngine (const std::string &streamName, const EventContext &ctx) const
CLHEP::HepRandomEngine * getRandomEngine (const std::string &streamName, unsigned long int randomSeedOffset, const EventContext &ctx) const
CLHEP::HepRandomEngine * getRandomEngineDuringInitialize (const std::string &streamName, unsigned long int randomSeedOffset, unsigned int conditionsRun=1, unsigned int lbn=1) const
ServiceHandle< IAthRNGSvc > m_rndmSvc {this, "RndmSvc", "AthRNGSvc"}
 Data members.
ServiceHandle< IIncidentSvc > m_incidentSvc {this, "IncidentSvc", "IncidentSvc"}
 Handle on the incident service.

Properties

std::string m_mcEventKey {}
 StoreGate key for the MC event collection (defaults to GEN_EVENT).
BooleanProperty m_mkMcEvent {this, "MakeMcEvent", false, "Create a new MC event collection if it doesn't exist"}
 Flag to determine if a new MC event collection should be made if it doesn't exist.
SG::ReadHandleKey< McEventCollection > m_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 41 of file Hijing.h.

Member Typedef Documentation

◆ StoreGateSvc_t

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

Definition at line 376 of file AthCommonDataStore.h.

Constructor & Destructor Documentation

◆ ~Hijing()

virtual Hijing::~Hijing ( )
virtualdefault

Member Function Documentation

◆ ATLAS_NOT_CONST_THREAD_SAFE() [1/2]

McEventCollection *events GenBase::ATLAS_NOT_CONST_THREAD_SAFE ( )
inherited

Access the current event's McEventCollection.

Note
This function will make a new McEventCollection if there is not already a valid one and MakeMcEvent=True.

◆ ATLAS_NOT_CONST_THREAD_SAFE() [2/2]

HepMC::GenEvent *event GenBase::ATLAS_NOT_CONST_THREAD_SAFE ( )
inlineinherited

Access the current signal event (first in the McEventCollection).

Note
This function will make a new McEventCollection if there is not already a valid one and MakeMcEvent=True.

Definition at line 72 of file GenBase.h.

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

◆ callGenerator()

StatusCode Hijing::callGenerator ( )
overridevirtual

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

Reimplemented from GenModule.

Definition at line 162 of file Hijing.cxx.

163{
164 ATH_MSG_INFO( " HIJING generating. \n" );
165
166 // Save the random number seeds in the event
167 //Re-seed the random number stream
168 long seeds[7];
169 const EventContext& ctx = Gaudi::Hive::currentContext();
170 ATHRNG::calculateSeedsMC21(seeds, hijing_stream, ctx.eventID().event_number(), m_dsid, m_randomSeed);
171 p_Engine->setSeeds(seeds, 0); // NOT THREAD-SAFE
172 m_seeds.clear();
173 m_seeds.push_back(seeds[0]);
174 m_seeds.push_back(seeds[1]);
175
176 // Generate event
177 ATH_MSG_DEBUG( "Generate event" );
178 const char* frame = m_frame.c_str();
179 hijing_(frame, &m_bmin, &m_bmax, strlen(frame));
180
181
182 ATH_MSG_DEBUG( "Check for error using the new (custom) error return" );
183 // Check for error using the new (custom) error return
184 //
185 int errorStatus = m_himain1.ierrstat();
186 if (errorStatus != 0) {
187 ATH_MSG_ERROR( "Error returned from HIJING, value = " << errorStatus );
188 return StatusCode::FAILURE;
189 }
190
191 // update event counter
192 ++m_events;
193
194 // store hijing event parameters
195 // -----------------------------
196 ATH_MSG_DEBUG( "New HijingEventParams" );
197 int np = m_himain1.np();
198 int nt = m_himain1.nt();
199 int n0 = m_himain1.n0();
200 int n01 = m_himain1.n01();
201 int n10 = m_himain1.n10();
202 int n11 = m_himain1.n11();
203 int natt = m_himain1.natt();
204 int jatt = m_himain1.jatt();
205 float b = m_hiparnt.hint1(19);
206 float bphi = m_hiparnt.hint1(20);
207
208 SG::WriteHandle<HijingEventParams> event_params(m_event_paramsKey);
209 event_params = std::make_unique<HijingEventParams>(np, nt, n0, n01, n10, n11, natt, jatt, b, bphi);
210
211 ATH_MSG_INFO( "\n=================================================\n"
212 << " HIJING event description: \n"
213 << " b = " << b << " fm \n"
214 << " # proj participants = " << np << "\n"
215 << " # targ participants = " << nt << "\n"
216 << " # final particles = " << natt << "\n"
217 << "=================================================\n" );
218
219 ATH_MSG_DEBUG( " HIJING generating done. \n" );
220 return StatusCode::SUCCESS;
221}
#define ATH_MSG_DEBUG(x,...)
#define ATH_MSG_INFO(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:104
float m_bmax
Definition Hijing.h:68
HiMain1 m_himain1
Definition Hijing.h:110
IntegerProperty m_dsid
Definition Hijing.h:55
float m_bmin
Definition Hijing.h:67
int m_events
Definition Hijing.h:94
std::vector< long int > m_seeds
Definition Hijing.h:91
SG::WriteHandleKey< HijingEventParams > m_event_paramsKey
Definition Hijing.h:120
std::string m_frame
Definition Hijing.h:59
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.

◆ declareGaudiProperty()

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

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

Definition at line 156 of file AthCommonDataStore.h.

158 {
160 hndl.value(),
161 hndl.documentation());
162
163 }
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)

◆ declareProperty()

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

Definition at line 145 of file AthCommonDataStore.h.

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

◆ detStore()

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

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

Definition at line 95 of file AthCommonDataStore.h.

◆ event_const()

const HepMC::GenEvent * GenBase::event_const ( const EventContext & ctx) const
inlineinherited

Access the current signal event (const).

Definition at line 79 of file GenBase.h.

79 {
80 const McEventCollection* coll = events_const(ctx);
81 if (coll->empty())
82 ATH_MSG_ERROR("Const McEventCollection is empty during first event access");
83 return *(coll->begin());
84 }
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.
bool empty() const noexcept
Returns true if the collection is empty.
const McEventCollection * events_const(const EventContext &ctx) const
Access the current event's McEventCollection (const).
Definition GenBase.h:93

◆ events_const()

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

Access the current event's McEventCollection (const).

Definition at line 93 of file GenBase.h.

93 {
94 SG::ReadHandle<McEventCollection> ret = SG::makeHandle(m_mcevents_const, ctx);
95 if (!ret.isValid())
96 ATH_MSG_ERROR("No McEventCollection found in StoreGate with key " << m_mcevents_const.key());
97 return ret.cptr();
98 }
SG::ReadHandleKey< McEventCollection > m_mcevents_const
Const handle to the MC event collection.
Definition GenBase.h:117
virtual bool isValid() override final
Can the handle be successfully dereferenced?
const_pointer_type cptr()
Dereference the pointer.
SG::ReadCondHandle< T > makeHandle(const SG::ReadCondHandleKey< T > &key, const EventContext &ctx=Gaudi::Hive::currentContext())

◆ evtStore()

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

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

Definition at line 85 of file AthCommonDataStore.h.

◆ execute()

StatusCode GenModule::execute ( const EventContext & ctx)
virtualinherited

Execute method.

Todo
Remove hard-coded alg name checking (already incomplete)

Reimplemented from GenBase.

Definition at line 70 of file GenModule.cxx.

70 {
71 // Examples of how to retrieve the random number engine for a given
72 // stream.
73 // NB getRandomEngine should only be called once per event for a
74 // given stream, as it causes the stream to be re-seeded each time
75 // it is called.
76
77 // Example 1 - seeded based on the current event number (+ slot, run, streamName)
78 //CLHEP::HepRandomEngine* rndmEngine = this->getRandomEngine("MyStream", ctx);
79
80 // Example 2 - seeded based on the m_randomSeed property (+ slot, run, streamName)
81 //CLHEP::HepRandomEngine* rndmEngine = this->getRandomEngine("MyStream", m_randomSeed.value(), ctx);
82
83 // Call the code that generates an event
84 CHECK(this->callGenerator());
85
86 // Create the MC event and send the GeneratorEvent stored in it to fillEvt
88 CHECK(this->fillEvt(evt));
90
91 // Add the event to the MC event collection
92 if (events()) {
93 // If this is an "afterburner" generator, replace the last event rather than add a new one
95 if (m_isAfterburner.value() || name() == "Tauola" || name() == "Photos") {
96 events()->pop_back();
97 }
98 // Add the event to the end of the collection
99 events()->push_back(evt);
100 ATH_MSG_DEBUG("MC event added to McEventCollection");
101
102 // remove the empty event in case of ParticleDecayer
103 if (name() == "ParticleDecayer") {
104 events()->pop_back();
105 }
106 }
107
108 // Call the incident service to notify that an event has been made
109 m_incidentSvc->fireIncident( Incident(name(), "McEventGenerated") );
110 return StatusCode::SUCCESS;
111}
#define CHECK(...)
Evaluate an expression and check for errors.
ServiceHandle< IIncidentSvc > m_incidentSvc
Handle on the incident service.
Definition GenModule.h:99
virtual StatusCode callGenerator()
For calling the generator on each iteration of the event loop.
Definition GenModule.h:66
virtual StatusCode fillEvt(HepMC::GenEvent *evt)=0
For filling the HepMC event object.
BooleanProperty m_isAfterburner
Flag for normal vs. afterburner generators.
Definition GenModule.h:87
void fillBarcodesAttribute(GenEvent *e)
Definition GenEvent.h:393
GenEvent * newGenEvent(const int signal_process_id, const int event_number)
Definition GenEvent.h:360
HepMC3::GenEvent GenEvent
Definition GenEvent.h:39

◆ extraDeps_update_handler()

void AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::extraDeps_update_handler ( Gaudi::Details::PropertyBase & ExtraDeps)
protectedinherited

Add StoreName to extra input/output deps as needed.

use the logic of the VarHandleKey to parse the DataObjID keys supplied via the ExtraInputs and ExtraOuputs Properties to add the StoreName if it's not explicitly given

◆ extraOutputDeps()

const DataObjIDColl & AthCommonAlgorithm< Gaudi::Algorithm >::extraOutputDeps ( ) const
overridevirtualinherited

Return the list of extra output dependencies.

This list is extended to include symlinks implied by inheritance relations.

Definition at line 89 of file AthCommonAlgorithm.cxx.

54{
55 // If we didn't find any symlinks to add, just return the collection
56 // from the base class. Otherwise, return the extended collection.
57 if (!m_extendedExtraObjects.empty()) {
59 }
61}
Common base class for algorithms.

◆ fillEvt()

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

For filling the HepMC event object.

Implements GenModule.

Definition at line 231 of file Hijing.cxx.

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

◆ filterPassed()

virtual bool AthCommonAlgorithm< Gaudi::Algorithm >::filterPassed ( const EventContext & ctx) const
inlinevirtualinherited

Get filter decision:

Definition at line 93 of file AthCommonAlgorithm.h.

93 {
94 return execState( ctx ).filterPassed();
95 }
virtual bool filterPassed(const EventContext &ctx) const
Get filter decision:

◆ finalize()

StatusCode GenModule::finalize ( )
inlineinherited

Definition at line 55 of file GenModule.h.

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

◆ genFinalize()

StatusCode Hijing::genFinalize ( )
overridevirtual

For finalising the generator, if required.

Reimplemented from GenModule.

Definition at line 224 of file Hijing.cxx.

225{
226 ATH_MSG_INFO( " HIJING Ending. \n" );
227 return StatusCode::SUCCESS;
228}

◆ genInitialize()

StatusCode Hijing::genInitialize ( )
overridevirtual

For initializing the generator, if required.

Reimplemented from GenModule.

Definition at line 118 of file Hijing.cxx.

119{
120 ATH_CHECK(m_event_paramsKey.initialize());
121
122 // Initialisation of input parameters
123 std::cout << "MetaData: generator = Hijing "
124 << HIJINGVERSION << std::endl;
125 ATH_MSG_INFO( "===> Hijing initialising \n" );
126 if( m_rand ){
127 ATH_MSG_INFO( "===> Vertex randomization ON." );
128 }
129 if( m_wide ){
130 ATH_MSG_INFO( "===> Vertex rand covers whole beampipe." );
131 }
132 //BPK
133 if( m_prand ) ATH_MSG_INFO( "===> Random Momentum Mirroring enabled" );
134 if( m_keepAllDecayVertices ) ATH_MSG_INFO( "===> Keeping all decay vertices" );
135 else ATH_MSG_INFO( "===> NOT keeping all decay vertices" );
136
137 //CLHEP::HepRandomEngine* engine
138 p_Engine = getRandomEngineDuringInitialize(hijing_stream, m_randomSeed, m_dsid); // NOT THREAD-SAFE
139 hijing_stream = "HIJING";
140
141 // Set the users' initialisation parameters choices
143
144 const char* frame = m_frame.c_str();
145 const char* proj = m_proj.c_str();
146 const char* targ = m_targ.c_str();
147
148 hijset_( &m_efrm, frame, proj, targ, &m_iap, &m_izp, &m_iat, &m_izt,
149 strlen(frame), strlen(proj), strlen(targ) );
150
151 ATH_MSG_INFO( "\n=================================================\n"
152 << " HIJING initialization results: \n"
153 << " Total sigma = " << m_hiparnt.hint1(13) << " mb\n"
154 << " Inelastic sigma = " << m_hiparnt.hint1(12) << " mb\n"
155 << " Jet sigma = " << m_hiparnt.hint1(11) << " mb\n"
156 << "=================================================\n" );
157
158
159 return StatusCode::SUCCESS;
160}
#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
BooleanProperty m_wide
Definition Hijing.h:81
void set_user_params(void)
Definition Hijing.cxx:786
int m_izt
Definition Hijing.h:65
int m_izp
Definition Hijing.h:64
const ClassName & targ(size_t i) const
Return one template argument.

◆ GenModule()

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

Constructor.

Definition at line 45 of file GenModule.cxx.

15 : GenBase(name, pSvcLocator)
16{
17 m_mkMcEvent = true;
18}
GenBase(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition GenBase.cxx:11
BooleanProperty m_mkMcEvent
Flag to determine if a new MC event collection should be made if it doesn't exist.
Definition GenBase.h:110

◆ 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:154
CLHEP::HepRandomEngine * getEngine(const EventContext &ctx) const
Retrieve the random engine corresponding to the provided EventContext.
Definition RNGWrapper.h:108
ServiceHandle< IAthRNGSvc > m_rndmSvc
Data members.
Definition GenModule.h:97

◆ getRandomEngine() [2/2]

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

Definition at line 44 of file GenModule.cxx.

46{
47 ATHRNG::RNGWrapper* rngWrapper = m_rndmSvc->getEngine(this, streamName);
48 rngWrapper->setSeed( streamName, ctx.slot(), randomSeedOffset, ctx.eventID().run_number() );
49 return rngWrapper->getEngine(ctx);
50}

◆ getRandomEngineDuringInitialize()

CLHEP::HepRandomEngine * GenModule::getRandomEngineDuringInitialize ( const std::string & streamName,
unsigned long int randomSeedOffset,
unsigned int conditionsRun = 1,
unsigned int lbn = 1 ) const
protectedinherited

Definition at line 53 of file GenModule.cxx.

54{
55 const size_t slot=0;
56 EventContext ctx;
57 ctx.setSlot( slot );
58 ctx.setEventID (EventIDBase (conditionsRun,
59 EventIDBase::UNDEFEVT, // event
60 EventIDBase::UNDEFNUM, // timestamp
61 EventIDBase::UNDEFNUM, // timestamp ns
62 lbn));
64 Atlas::ExtendedEventContext( evtStore()->hiveProxyDict(),
65 conditionsRun) );
66 return getRandomEngine(streamName, randomSeedOffset, ctx);
67}
ServiceHandle< StoreGateSvc > & evtStore()
CLHEP::HepRandomEngine * getRandomEngine(const std::string &streamName, const EventContext &ctx) const
Definition GenModule.cxx:34
void setExtendedEventContext(EventContext &ctx, ExtendedEventContext &&ectx)
Move an extended context into a context object.

◆ initialize()

StatusCode GenModule::initialize ( )
virtualinherited

Reimplemented from GenBase.

Definition at line 21 of file GenModule.cxx.

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

◆ inputHandles()

virtual std::vector< Gaudi::DataHandle * > AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::inputHandles ( ) const
overridevirtualinherited

Return this algorithm's input handles.

We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.

◆ isClonable()

virtual bool AthCommonAlgorithm< Gaudi::Algorithm >::isClonable ( ) const
inlineoverridevirtualinherited

Specify if the algorithm is clonable.

Only relevant for non-reentrant algorithms. Actual number of clones needs to be set via the "Cardinality" property.

Reimplemented in AFP_DigiTop, AlgB, AlgT, BCM_Digitization, CscDigitBuilder, CscDigitToCscRDO, G4AtlasAlg, G4RunAlg, HGTD_Digitization, HiveAlgBase, InDet::GNNSeedingTrackMaker, InDet::SCT_Clusterization, InDet::SiSPGNNTrackMaker, InDet::SiSPSeededTrackFinder, InDet::SiTrackerSpacePointFinder, ISF::SimKernelMT, ITk::StripDigitization, ITkPixelCablingAlg, ITkStripCablingAlg, LArHitEMapMaker, LArTTL1Maker, LUCID_DigiTop, LVL1::L1TopoSimulation, MergeCalibHits, MergeGenericMuonSimHitColl, MergeHijingPars, MergeMcEventCollection, MergeTrackRecordCollection, MergeTruthJets, MergeTruthParticles, MuonDigitizer, PileUpMTAlg, PixelDigitization, RoIBResultToxAOD, SCT_ByteStreamErrorsTestAlg, SCT_CablingCondAlgFromCoraCool, SCT_CablingCondAlgFromText, SCT_ConditionsParameterTestAlg, SCT_ConditionsSummaryTestAlg, SCT_ConfigurationConditionsTestAlg, SCT_Digitization, SCT_FlaggedConditionTestAlg, SCT_LinkMaskingTestAlg, SCT_MajorityConditionsTestAlg, SCT_ModuleVetoTestAlg, SCT_MonitorConditionsTestAlg, SCT_PrepDataToxAOD, SCT_RawDataToxAOD, SCT_ReadCalibChipDataTestAlg, SCT_ReadCalibDataTestAlg, SCT_RODVetoTestAlg, SCT_SensorsTestAlg, SCT_SiliconConditionsTestAlg, SCT_StripVetoTestAlg, SCT_TdaqEnabledTestAlg, SCT_TestCablingAlg, SCTEventFlagWriter, SCTRawDataProvider, SCTSiLorentzAngleTestAlg, SCTSiPropertiesTestAlg, SGInputLoader, Simulation::BeamEffectsAlg, TileHitVecToCnt, TileMuonFitter, TilePulseForTileMuonReceiver, TileRawChannelMaker, TRTDigitization, and ZDC_DigiTop.

Definition at line 68 of file AthCommonAlgorithm.h.

68 {
69 return true;
70 }

◆ isReEntrant()

virtual bool AthAlgorithm::isReEntrant ( ) const
inlinefinaloverrideprotectedvirtualinherited

Legacy algorithms are not thread-safe.

Definition at line 47 of file AthAlgorithm.h.

47{ return false; }

◆ msg()

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

Definition at line 24 of file AthCommonMsg.h.

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

◆ msgLvl()

bool AthCommonMsg< Gaudi::Algorithm >::msgLvl ( const MSG::Level lvl) const
inlineinherited

Definition at line 30 of file AthCommonMsg.h.

30 {
31 return this->msgLevel(lvl);
32 }

◆ outputHandles()

virtual std::vector< Gaudi::DataHandle * > AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::outputHandles ( ) const
overridevirtualinherited

Return this algorithm's output handles.

We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.

◆ randomizeVertex()

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

Definition at line 747 of file Hijing.cxx.

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

Definition at line 368 of file AthCommonDataStore.h.

369 {
370 h.renounce();
372 }
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > renounce(T &h)

◆ renounceArray()

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

remove all handles from I/O resolution

Definition at line 352 of file AthCommonDataStore.h.

352 {
354 }

◆ set_user_params()

void Hijing::set_user_params ( void )
protected

Definition at line 786 of file Hijing.cxx.

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

◆ setFilterPassed()

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

Set filter decision:

Definition at line 99 of file AthCommonAlgorithm.h.

99 {
101 }
virtual void setFilterPassed(bool state, const EventContext &ctx) const
Set filter decision:

◆ sysExecute()

StatusCode AthCommonAlgorithm< Gaudi::Algorithm >::sysExecute ( const EventContext & ctx)
overridevirtualinherited

Execute an algorithm.

We override this in order to work around an issue with the Algorithm base class storing the event context in a member variable that can cause crashes in MT jobs.

Reimplemented in AthAnalysisAlgorithm.

Definition at line 80 of file AthCommonAlgorithm.cxx.

41{
42 return BaseAlg::sysExecute (ctx);
43}

◆ sysInitialize()

StatusCode AthCommonAlgorithm< Gaudi::Algorithm >::sysInitialize ( )
overridevirtualinherited

Override sysInitialize.

Override sysInitialize from the base class.

Loop through all output handles, and if they're WriteCondHandles, automatically register them and this Algorithm with the CondSvc

Scan through all outputHandles, and if they're WriteCondHandles, register them with the CondSvc

Reimplemented from AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >.

Reimplemented in AthAnalysisAlgorithm, AthHistogramAlgorithm, HypoBase, InputMakerBase, and PyAthena::Alg.

Definition at line 60 of file AthCommonAlgorithm.cxx.

71 {
73
74 if (sc.isFailure()) {
75 return sc;
76 }
77
78 ServiceHandle<ICondSvc> cs("CondSvc",name());
79 for (auto h : outputHandles()) {
80 if (h->isCondition() && h->mode() == Gaudi::DataHandle::Writer) {
81 // do this inside the loop so we don't create the CondSvc until needed
82 if ( cs.retrieve().isFailure() ) {
83 ATH_MSG_WARNING("no CondSvc found: won't autoreg WriteCondHandles");
85 }
86 if (cs->regHandle(this,*h).isFailure()) {
88 ATH_MSG_ERROR("unable to register WriteCondHandle " << h->fullKey()
89 << " with CondSvc");
90 }
91 }
92 }
93 return sc;
94}
virtual StatusCode sysInitialize() override
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override

◆ sysStart()

virtual StatusCode AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::sysStart ( )
overridevirtualinherited

Handle START transition.

We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.

◆ updateVHKA()

void AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::updateVHKA ( Gaudi::Details::PropertyBase & )
inlineinherited

Definition at line 298 of file AthCommonDataStore.h.

298 {
299 for (auto &a : m_vhka) {
301 for (auto k : keys) {
302 k->setOwner(this);
303 }
304 }
305 }

Member Data Documentation

◆ m_bmax

float Hijing::m_bmax {0.}
protected

Definition at line 68 of file Hijing.h.

68{0.};

◆ m_bmin

float Hijing::m_bmin {0.}
protected

Definition at line 67 of file Hijing.h.

67{0.};

◆ m_detStore

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

Pointer to StoreGate (detector store by default).

Definition at line 381 of file AthCommonDataStore.h.

◆ m_dsid

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

Definition at line 55 of file Hijing.h.

55{this, "Dsid", 999999};

◆ m_efrm

float Hijing::m_efrm {0.}
protected

Definition at line 58 of file Hijing.h.

58{0.};

◆ m_event_paramsKey

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

Definition at line 120 of file Hijing.h.

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

◆ m_events

int Hijing::m_events {0}
protected

Definition at line 94 of file Hijing.h.

94{0};

◆ m_evtStore

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

Pointer to StoreGate (event store by default).

Definition at line 378 of file AthCommonDataStore.h.

◆ m_extendedExtraObjects

DataObjIDColl AthCommonAlgorithm< Gaudi::Algorithm >::m_extendedExtraObjects
privateinherited

Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.

Empty if no symlinks were found.

Definition at line 108 of file AthCommonAlgorithm.h.

◆ m_frame

std::string Hijing::m_frame
protected

Definition at line 59 of file Hijing.h.

◆ m_hijcrdn

HijCrdn Hijing::m_hijcrdn
protected

Definition at line 116 of file Hijing.h.

◆ m_hijjet1

HijJet1 Hijing::m_hijjet1
protected

Definition at line 112 of file Hijing.h.

◆ m_hijjet2

HijJet2 Hijing::m_hijjet2
protected

Definition at line 113 of file Hijing.h.

◆ m_hijjet4

HijJet4 Hijing::m_hijjet4
protected

Definition at line 114 of file Hijing.h.

◆ m_himain1

HiMain1 Hijing::m_himain1
protected

Definition at line 110 of file Hijing.h.

◆ m_himain2

HiMain2 Hijing::m_himain2
protected

Definition at line 111 of file Hijing.h.

◆ m_hiparnt

HiParnt Hijing::m_hiparnt
protected

Definition at line 104 of file Hijing.h.

◆ m_histrng

HiStrng Hijing::m_histrng
protected

Definition at line 115 of file Hijing.h.

◆ m_iap

int Hijing::m_iap {0}
protected

Definition at line 62 of file Hijing.h.

62{0};

◆ m_iat

int Hijing::m_iat {0}
protected

Definition at line 63 of file Hijing.h.

63{0};

◆ m_incidentSvc

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

Handle on the incident service.

Definition at line 99 of file GenModule.h.

99{this, "IncidentSvc", "IncidentSvc"};

◆ m_InitializeVector

StringArrayProperty Hijing::m_InitializeVector
protected
Initial value:
{this,
"Initialize",
{},
"List of parameters for Hijing initialization",
"GeneratorSettings<std::string>"}

Definition at line 97 of file Hijing.h.

97 {this,
98 "Initialize",
99 {},
100 "List of parameters for Hijing initialization",
101 "GeneratorSettings<std::string>"};

◆ 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 64 of file Hijing.h.

64{0};

◆ m_izt

int Hijing::m_izt {0}
protected

Definition at line 65 of file Hijing.h.

65{0};

◆ m_keepAllDecayVertices

BooleanProperty Hijing::m_keepAllDecayVertices {this, "keepAllDecayVertices", true}
protected

Definition at line 83 of file Hijing.h.

83{this, "keepAllDecayVertices", true};

◆ m_mcEventKey

std::string GenBase::m_mcEventKey {}
protectedinherited

StoreGate key for the MC event collection (defaults to GEN_EVENT).

Definition at line 108 of file GenBase.h.

108{};

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

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

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

◆ m_partonStoreMinPt

DoubleProperty Hijing::m_partonStoreMinPt {this, "partonStoreMinPt", 5.0}
protected

Definition at line 86 of file Hijing.h.

86{this, "partonStoreMinPt", 5.0};

◆ m_prand

BooleanProperty Hijing::m_prand {this, "randomizeP", false}
protected

Definition at line 82 of file Hijing.h.

82{this, "randomizeP", false}; // BPK randomizes the left<->right direction by mirroring momenta for beam gas

◆ m_proj

std::string Hijing::m_proj
protected

Definition at line 60 of file Hijing.h.

◆ m_rand

BooleanProperty Hijing::m_rand {this, "randomizeVertices", false}
protected

Definition at line 79 of file Hijing.h.

79{this, "randomizeVertices", 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 90 of file Hijing.h.

90{0};

◆ m_ranseed

RanSeed Hijing::m_ranseed
protected

Definition at line 107 of file Hijing.h.

◆ m_rndmSvc

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

Data members.

Definition at line 97 of file GenModule.h.

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

◆ m_runinfo

std::shared_ptr<HepMC3::GenRunInfo> GenModule::m_runinfo {}
protectedinherited

The run info for HepMC3.

Definition at line 90 of file GenModule.h.

90{};

◆ m_seeds

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

Definition at line 91 of file Hijing.h.

◆ m_sel

BooleanProperty Hijing::m_sel {this, "selectVertex", false}
protected

Definition at line 75 of file Hijing.h.

75{this, "selectVertex", false}; // Select vertex location (off for random)

◆ m_spec

BooleanProperty Hijing::m_spec {this, "keepSpectators", true}
protected

Definition at line 76 of file Hijing.h.

76{this, "keepSpectators", true}; // TRUE will keep specator information (default)

◆ m_targ

std::string Hijing::m_targ
protected

Definition at line 61 of file Hijing.h.

◆ m_varHandleArraysDeclared

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

Definition at line 387 of file AthCommonDataStore.h.

◆ m_vertexOffsetCut

DoubleProperty Hijing::m_vertexOffsetCut {this, "vertexOffsetCut", 1.0E-7}
protected

Definition at line 87 of file Hijing.h.

87{this, "vertexOffsetCut", 1.0E-7};

◆ m_vhka

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

Definition at line 386 of file AthCommonDataStore.h.

◆ m_wide

BooleanProperty Hijing::m_wide {this, "wide", false}
protected

Definition at line 81 of file Hijing.h.

81{this, "wide", false}; // True allows particles with x,y distributions

◆ m_x

DoubleProperty Hijing::m_x {this, "x", 0.}
protected

Definition at line 72 of file Hijing.h.

72{this, "x", 0.};

◆ m_y

DoubleProperty Hijing::m_y {this, "y", 0.}
protected

Definition at line 73 of file Hijing.h.

73{this, "y", 0.};

◆ m_z

DoubleProperty Hijing::m_z {this, "z", 0.}
protected

Definition at line 74 of file Hijing.h.

74{this, "z", 0.};

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