1 #include "StarGenEvent.h"
3 #include "StarGenParticle.h"
5 #include "TDatabasePDG.h"
6 #include "TParticlePDG.h"
32 mParticles =
new TClonesArray(
"StarGenParticle", 1000 );
43 if ( Opts.Contains(
"part") ) {
47 if ( Opts.Contains(
"data") ) {
64 Double_t px, Double_t py, Double_t pz, Double_t E, Double_t M,
65 Double_t vx, Double_t vy, Double_t vz, Double_t vt )
102 if ( Opts.Contains(
"head") )
104 cout <<
"----------------------------------------------------------------------------- "
105 << mName.Data() << endl;
109 cout <<
"Offset: " <<
mOffset << endl;
111 cout <<
"----------------------------------------------------------------------------- "
115 for ( Int_t i=0;i<
mParticles->GetEntriesFast();i++ )
118 if ( !Opts.Contains(
"simu")||part->
Simulate() )
Float_t GetVz()
Get the z-component of the start vertex.
~StarGenEvent()
Destructor.
void SetPx(Float_t px)
Set the x-component of the momentum.
StarGenEvent(const Char_t *name="event", const Char_t *title="")
Constructor.
Int_t mEventNumber
Event number.
void SetVy(Float_t vy)
Set the y-component of the start vertex.
Int_t mProcessId
Event generator process ID.
void Print(const Option_t *opts="head") const
UInt_t mFilterResult
Result of filter.
void SetLastMother(Int_t last)
Set the last mother particle in the array of particles.
Yet another particle class.
Int_t GetStatus()
Get the status code of the particle according to the HEPEVT standard.
Float_t GetTof()
Get the tof.
Float_t GetPz()
Get the z-component of the momentum.
Float_t GetEnergy()
Get the energy.
void SetVz(Float_t vz)
Set the z-component of the start vertex.
void SetVx(Float_t vx)
Set the x-component of the start vertex.
void SetIndex(Int_t i)
Set the line number in the event record.
virtual void Clear(const Option_t *opts="part,data")
Clear the event.
Int_t GetId()
Get the id code of the particle according to the PDG standard.
std::vector< Double_t > mWeights
User weights.
void SetStatus(Int_t status)
Set the status code of the particle according to the HEPEVT standard.
void SetPz(Float_t pz)
Set the z-component of the momentum.
Int_t mOffset
Event generator offset.
Double_t mCmsEnergy
aka sqrt(s)
void SetMass(Float_t mass)
Set the mass.
void SetTof(Float_t tof)
Set the tof.
Float_t GetPx()
Get the x-component of the momentum.
Int_t mGeneratorId
Generator Id.
Int_t GetLastMother()
Get the last mother particle.
Float_t GetVy()
Get the y-component of the start vertex.
Float_t GetPy()
Get the y-component of the momentum.
Int_t GetFirstMother()
Get the first mother particle.
Base class for event records.
void SetLastDaughter(Int_t last)
Set the last daughter particle in the array of particles.
Float_t GetVx()
Get the x-component of the start vertex.
Int_t GetLastDaughter()
Get the last daughter particle.
void SetFirstDaughter(Int_t first)
Set the first daughter particle in the array of particles.
void SetPy(Float_t py)
Set the y-component of the momentum.
void SetEnergy(Float_t energy)
Set the energy.
Int_t mNumRejected[3]
0=total, 1=EG, 2=filter
void Print(const Option_t *opts="") const
Print the particle.
TClonesArray * mParticles
Array of particles.
void SetFirstMother(Int_t first)
Set the first mother particle in the array of particles.
Int_t mNumParticles
Number of particles in the record.
Int_t mRunNumber
Monte Carlo run number.
Float_t GetMass()
Get the mass.
Int_t GetFirstDaughter()
Get the first daughter particle.
StarGenParticle * AddParticle()