eic-smear
1.0.3
A collection of ROOT classes for Monte Carlo events and a fast-smearing code simulating detector effects for the Electron-Ion Collider task force
|
Go to the documentation of this file.
10 #ifndef INCLUDE_EICSMEAR_ERHIC_PARTICLEMC_H_
11 #define INCLUDE_EICSMEAR_ERHIC_PARTICLEMC_H_
15 #include <TLorentzVector.h>
57 virtual void Print(Option_t* =
"")
const;
98 virtual Double_t
GetPx()
const;
103 virtual Double_t
GetPy()
const;
108 virtual Double_t
GetPz()
const;
113 virtual Double_t
GetM()
const;
118 virtual Double_t
GetPt()
const;
135 virtual Double_t
GetP()
const;
145 virtual Double_t
GetPhi()
const;
155 virtual Double_t
GetEta()
const;
161 virtual Double_t
GetZ()
const;
226 virtual Double_t
GetE()
const;
228 virtual void SetE(Double_t);
230 virtual void SetM(Double_t);
232 virtual void SetP(Double_t);
234 virtual void SetPt(Double_t);
236 virtual void SetPz(Double_t);
238 virtual void SetPhi(Double_t);
247 virtual Pid Id()
const;
299 virtual void SetId(
int i) {
id = i; }
317 virtual void Set4Vector(
const TLorentzVector&);
412 explicit ParticleMC(
const std::string&,
bool eAflag);
447 virtual Bool_t
HasChild(Int_t)
const;
501 return TVector3(
xv,
yv,
zv);
592 #endif // INCLUDE_EICSMEAR_ERHIC_PARTICLEMC_H_
virtual Double_t GetRapidity() const
Returns the rapidity.
virtual void SetE(Double_t)
Int_t KS
Particle status code: see PYTHIA manual.
virtual Pid GetPdgCode() const
Returns the ID of the particle.
virtual UShort_t GetChild1Index() const
Returns the index of this particle's first child particle.
virtual Pid Id() const
Returns the ID of the particle.
virtual const ParticleMC * GetParent() const
Returns a pointer to the parent of this particle.
Int_t NoBam
0, 2 create in hard collisions not affected by INC: 0 inside nucleus, 2 outside nucleus;
virtual TVector3 GetVertex() const
Returns the origin point of the particle (cm).
virtual Double_t GetP() const
Returns the total momentum (GeV).
Double32_t ptVsGamma
pt w.r.t.
Double_t yv
y coordinate of particle production vertex
virtual ~ParticleMCbase()
Destructor.
Double32_t phiPrf
Azimuthal angle around virtual photon in hadron beam rest frame.
virtual TLorentzVector Get4Vector() const
Returns the (E,p) 4-vector in the lab frame.
virtual Double_t GetPt() const
Returns momentum transverse to the beam direction.
ParticleMC()
Default constructor.
virtual Double_t GetPy() const
Returns the y component of 3-momentum.
Double_t py
y component of particle momentum
virtual Double_t GetXFeynman() const
Returns Feynman-x.
virtual UInt_t GetNChildren() const
Returns the number of children of this particle.
virtual void SetPhi(Double_t)
Double_t pz
z component of particle momentum
virtual Double_t GetThetaVsGamma() const
Returns the angle with respect to the exchange boson.
virtual Pid GetParentId() const
Returns the identity information of this particle's parent.
virtual void SetParentIndex(int i)
Sets the index of this particle's parent if it has one.
A particle produced by a Monte Carlo generator.
Double32_t thetaGamma
Angle between particle and the exchange boson in the hadron beam rest frame.
virtual void SetM(Double_t)
Double32_t m
Invariant mass of particle.
Double32_t rapidity
Rapidity of particle.
UShort_t orig
I of parent particle.
virtual void SetChildNIndex(int i)
Sets the index of this particle's last child.
virtual void SetStatus(int i)
Sets the status code of the particle (generally final state particles are given status == 1.
UShort_t daughter
I of first child particle.
virtual void SetId(int i)
Sets the ID of the particle.
virtual UShort_t GetStatus() const
Returns the status of the particle.
virtual Bool_t HasChild(Int_t) const
Returns true if n in the range [0, N), where N is the number of children of this particle.
Int_t parentId
PDG code of this particle's parent.
ParticleMC(const ParticleMC &src)
UShort_t orig1
I of parent particle1.
virtual UShort_t GetParentIndex() const
Returns the index of this particle's parent in an event.
Double32_t p
Total momentum of particle.
virtual Double_t GetPx() const
Returns the x component of 3-momentum.
virtual Double_t GetEta() const
Returns the pseudorapidity.
virtual TLorentzVector Get4VectorInHadronBosonFrame() const
Returns the (E,p) 4-vector in the hadron-boson frame.
virtual Double_t GetM() const
Returns invariant mass (GeV/c2).
virtual void SetStatus(UShort_t)
Abstract base class for a general particle.
virtual void SetPz(Double_t)
virtual UInt_t GetIndex() const
Returns the particle index in an event, in the range [1, N].
virtual Double_t GetPtVsGamma() const
Returns the pT with respect to the exchange boson.
virtual void ComputeEventDependentQuantities(EventMC &)
Sets quantities that depend on the properties of the event or associations of one particle with anoth...
Double32_t E
Energy of particle.
virtual void Print(Option_t *="") const
Print the contents of Particle to standard output.
virtual void SetTheta(Double_t)
virtual const ParticleMC * GetChild(UShort_t) const
Returns a pointer to the nth child particle of this particle, where n is in the range [0,...
Double32_t xFeynman
Feynman x = pz/(2sqrt(s))
virtual Double_t GetPhi() const
Returns the polar angle in the range [0, 2pi] radians.
virtual Double_t GetTheta() const
Returns the polar angle in the range [0, pi] radians.
virtual void SetChild1Index(int i)
Sets the index of this particle's first child.
Double_t px
x component of particle momentum
Int_t id
PDG particle code.
virtual void SetParentId(int i)
Sets the ID of this particle's parent.
virtual void SetVertex(const TVector3 &)
Sets the origin coordinates.
const EventMC * GetEvent() const
Returns a pointer to the event containing this particle.
Double_t zv
z coordinate of particle production vertex
UShort_t ldaughter
I of last child particle.
Double32_t pt
Transverse momentum of particle.
virtual void ComputeDerivedQuantities()
Sets quantities derived from the four-momentum (E, px, py, pz), namely.
virtual Double_t GetZ() const
Returns the variable z.
Double32_t theta
Polar angle.
UShort_t I
Particle index in event.
virtual void SetPt(Double_t)
virtual Double_t GetPz() const
Returns the z component of 3-momentum.
virtual void SetIndex(int i)
Sets the index of the particle i.e.
virtual Double_t GetE() const
Returns the energy of the particle in the lab frame.
virtual TLorentzVector PxPyPzE() const
Returns the (E,p) 4-vector in the lab frame.
virtual UShort_t GetParentIndex1() const
virtual void SetP(Double_t)
virtual UShort_t GetChildNIndex() const
Returns the index of this particle's last child particle.
Double_t xv
x coordinate of particle production vertex
Double32_t eta
Pseudorapidity of particle.
void SetEvent(EventMC *event)
Set the event with which to associate this particle.
virtual void Set4Vector(const TLorentzVector &)
Sets the four-momentum of the particle.
Double32_t z
Fraction of virtual photon energy carried by particle.
TRef event
Persistent reference to the event containing this particle.
Double32_t phi
Azimuthal angle.
Abstract base class for DIS Monte Carlo events.