1 #ifndef __StarGenEvent_h__
2 #define __StarGenEvent_h__
6 #include "TClonesArray.h"
7 #include "TCollection.h"
86 StarGenEvent(
const Char_t *name=
"event",
const Char_t *title=
"" );
158 Double_t px, Double_t py, Double_t pz, Double_t E, Double_t M,
159 Double_t vx, Double_t vy, Double_t vz, Double_t vt );
169 void Print(
const Option_t *opts=
"head" )
const;
178 virtual void Clear(
const Option_t *opts=
"part,data" );
Int_t GetYell()
Get the yellow beam ID.
void SetFilterResult(UInt_t result)
Sets the filter result.
Int_t operator++(Int_t)
Postfix increment operator increases event number.
~StarGenEvent()
Destructor.
StarGenParticle * operator[](Int_t idx)
void SetGeneratorId(Int_t id)
Set the generator ID.
StarGenEvent(const Char_t *name="event", const Char_t *title="")
Constructor.
Int_t GetNumberOfParticles()
Obtain the number of particles in the event record.
Int_t operator++()
Prefix increment operator increases event number.
Int_t mBlueId
PDG for blue beam.
void AddFilterResult(UInt_t result)
Int_t mEventNumber
Event number.
Int_t mProcessId
Event generator process ID.
void Print(const Option_t *opts="head") const
Int_t GetDaqFileNumber()
Get the file number in an embedding job.
void SetOffset(Int_t o)
Set the particle index offset for this event.
UInt_t mFilterResult
Result of filter.
Yet another particle class.
const std::vector< double > & GetUserWeights()
Retrieve the user weights vector.
void SetDaqFileNumber(Int_t fnum)
Set the file number in an embedding job.
Int_t GetDaqRunNumber()
Get the run number for the DAQ file in this event.
virtual void Clear(const Option_t *opts="part,data")
Clear the event.
Int_t GetEventNumber()
Get the event number.
void SetRootS(Double_t rs)
Set the sqrt(s) of the collision.
const std::vector< double > & GetUserWeights() const
Retrieve the user weights vector.
std::vector< Double_t > mWeights
User weights.
void AddUserWeight(double w)
Attach a user-weight to the event.
Int_t GetBlue()
Get the blue beam ID.
void SetBlue(Int_t id)
Set the blue beam ID.
Int_t mOffset
Event generator offset.
void InitArrays()
Initialize clowns arrays.
Double_t mCmsEnergy
aka sqrt(s)
Int_t GetProcessId()
Get the process ID for this event.
Int_t mGeneratorId
Generator Id.
Base class for event records.
Int_t mYellId
PDG for yellow beam.
void SetYell(Int_t id)
Set the yellow beam ID.
TIter IterAll(Bool_t dir=kIterForward)
Int_t GetOffset()
Get the particle index offset for this event.
Double_t GetRootS()
Get the sqrt(s) of the collision.
UInt_t GetFilterResult()
Returns the filter result.
void SetDaqRunNumber(Int_t run)
Set the run number for the DAQ file in an embedding job.
void SetProcessId(Int_t id)
Set the process ID for this event.
Int_t mDaqFileNumber
File number (for embedding)
Int_t mNumRejected[3]
0=total, 1=EG, 2=filter
TClonesArray * mParticles
Array of particles.
Int_t mNumParticles
Number of particles in the record.
Int_t mRunNumber
Monte Carlo run number.
FilterResult
Filter result enumeration.
Int_t mDaqRunNumber
DAQ run number (for embedding)
StarGenParticle * AddParticle()
Int_t GetRunNumber()
Get the run number for this event.
void SetRunNumber(Int_t run)
Set the run number for this event.
Int_t GetGeneratorId()
Returns the generator ID.