64 fPdgCode(0), fStatusCode(0), fWeight(0),fCalcMass(0), fPx(0), fPy(0),
65 fPz(0), fE(0), fVx(0), fVy(0), fVz(0), fVt(0), fPolarTheta(0), fPolarPhi(0)
82 fPdgCode(pdg), fStatusCode(status), fWeight(1.),fPx(px), fPy(py),
83 fPz(pz), fE(etot), fVx(vx), fVy(vy), fVz(vz), fVt(time)
103 fPdgCode(pdg), fStatusCode(status), fWeight(1.),fPx(
p.Px()), fPy(
p.Py()),
104 fPz(
p.Pz()), fE(
p.E()), fVx(
v.X()), fVy(
v.Y()), fVz(
v.Z()), fVt(
v.T())
121 fWeight(
p.fWeight), fCalcMass(
p.fCalcMass), fPx(
p.fPx), fPy(
p.fPy), fPz(
p.fPz),
122 fE(
p.fE), fVx(
p.fVx), fVy(
p.fVy), fVz(
p.fVz), fVt(
p.fVt), fPolarTheta(
p.fPolarTheta),
123 fPolarPhi(
p.fPolarPhi), fParticlePDG(
p.fParticlePDG)
138 TAttLine::operator=(
p);
139 TAtt3D::operator=(
p);
217 const Int_t big = 9999;
221 if(!view)
return big;
225 if (pmom == 0)
return big;
258 static char def[4] =
"XXX";
300 static char def[4] =
"XXX";
319 if (pmom == 0)
return;
342 Printf(
"TParticle: %-13s p: %8f %8f %8f Vertex: %8e %8e %8e %5d %5d",
355 static Int_t nWarnings = 0;
361 if (nWarnings < 10) {
362 Warning(
"SetPdgCode",
"PDG code %d unknown from TDatabasePDG",pdg);
376 if(polx || poly || polz) {
392 if (pmom == 0)
return;
395 gSize3D.numSegs += (npoints-1);
winID h TVirtualViewer3D TVirtualGLPainter p
Option_t Option_t TPoint TPoint const char x2
Option_t Option_t TPoint TPoint const char x1
Option_t Option_t TPoint TPoint const char mode
Option_t Option_t TPoint TPoint const char y2
Option_t Option_t TPoint TPoint const char y1
void Printf(const char *fmt,...)
Formats a string in a circular formatting buffer and prints the string.
Use this attribute class when an object should have 3D capabilities.
virtual void Streamer(TBuffer &)
virtual Color_t GetLineColor() const
Return the line color.
virtual void SetLineStyle(Style_t lstyle)
Set the line style.
virtual Width_t GetLineWidth() const
Return the line width.
virtual void SetLineWidth(Width_t lwidth)
Set the line width.
virtual void SetLineColor(Color_t lcolor)
Set the line color.
virtual Style_t GetLineStyle() const
Return the line style.
Int_t DistancetoLine(Int_t px, Int_t py, Double_t xp1, Double_t yp1, Double_t xp2, Double_t yp2)
Compute distance from point px,py to a line.
Buffer base class used for serializing objects.
virtual Version_t ReadVersion(UInt_t *start=nullptr, UInt_t *bcnt=nullptr, const TClass *cl=nullptr)=0
virtual Int_t CheckByteCount(UInt_t startpos, UInt_t bcnt, const TClass *clss)=0
virtual Int_t ReadClassBuffer(const TClass *cl, void *pointer, const TClass *onfile_class=nullptr)=0
virtual Int_t ReadStaticArray(Bool_t *b)=0
virtual Int_t WriteClassBuffer(const TClass *cl, void *pointer)=0
static TDatabasePDG * Instance()
static function
TParticlePDG * GetParticle(Int_t pdgCode) const
Get a pointer to the particle object according to the MC code number.
const char * GetName() const override
Returns name of object.
const char * GetTitle() const override
Returns title of object.
Mother of all ROOT objects.
TObject & operator=(const TObject &rhs)
TObject assignment operator.
virtual void Streamer(TBuffer &)
Stream an object of class TObject.
virtual void Warning(const char *method, const char *msgfmt,...) const
Issue warning message.
Description of the static properties of a particle.
Int_t Strangeness() const
Description of the dynamic properties of a particle.
virtual Int_t DistancetoPrimitive(Int_t px, Int_t py)
Compute distance from point px,py to a primary track.
Double_t GetMass() const
Return nominal particle mass from PDG table.
TParticlePDG * fParticlePDG
void GetPolarisation(TVector3 &v) const
Return particle polarisation.
TParticle & operator=(const TParticle &)
Equal operator.
virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py)
Execute action corresponding to one event.
void SetPolarisation(Double_t theta, Double_t phi)
virtual void Streamer(TBuffer &)
Stream an object of class TParticle.
Int_t Beauty() const
Return beauty quantum number.
TParticlePDG * GetPDG(Int_t mode=0) const
Returns a pointer to the TParticlePDG object using the pdgcode.
Int_t Charm() const
Return charm quantum number.
virtual ~TParticle()
destructor
virtual void Print(Option_t *option="") const
Print the internals of the primary vertex particle.
virtual void Sizeof3D() const
Return total X3D size of this primary.
TParticle()
reference to the particle record in PDG database
virtual const char * GetName() const
Return particle name.
void SetPdgCode(Int_t pdg)
Change the PDG code for this particle.
virtual TClass * IsA() const
virtual void Paint(Option_t *option="")
Paint a primary track.
Int_t Strangeness() const
Return strangeness quantum number.
virtual const char * GetTitle() const
Return particle title.
A 3-dimensional polyline.
virtual void SetPoint(Int_t point, Double_t x, Double_t y)
Set point number n to (x, y) If n is greater than the current size, the arrays are automatically exte...
void Paint(Option_t *option="") override
Paint this polyline with its current attributes.
virtual void WCtoNDC(const Float_t *pw, Float_t *pn)=0
virtual void GetRange(Float_t *min, Float_t *max)=0
Double_t ACos(Double_t)
Returns the principal value of the arc cosine of x, expressed in radians.
Double_t ATan2(Double_t y, Double_t x)
Returns the principal value of the arc tangent of y/x, expressed in radians.
Double_t Sqrt(Double_t x)
Returns the square root of x.
Double_t Cos(Double_t)
Returns the cosine of an angle of x radians.
Double_t Sin(Double_t)
Returns the sine of an angle of x radians.