56 fPdgCode(0), fStatusCode(0), fWeight(0),fCalcMass(0), fPx(0), fPy(0),
57 fPz(0), fE(0), fVx(0), fVy(0), fVz(0), fVt(0), fPolarTheta(0), fPolarPhi(0)
74 fPdgCode(pdg), fStatusCode(status), fWeight(1.),fPx(px), fPy(py),
75 fPz(pz), fE(etot), fVx(vx), fVy(vy), fVz(vz), fVt(time)
95 fPdgCode(pdg), fStatusCode(status), fWeight(1.),fPx(p.Px()), fPy(p.Py()),
96 fPz(p.Pz()), fE(p.
E()), fVx(v.
X()), fVy(v.
Y()), fVz(v.
Z()), fVt(v.
T())
113 fWeight(p.fWeight), fCalcMass(p.fCalcMass), fPx(p.fPx), fPy(p.fPy), fPz(p.fPz),
114 fE(p.fE), fVx(p.fVx), fVy(p.fVy), fVz(p.fVz), fVt(p.fVt), fPolarTheta(p.fPolarTheta),
115 fPolarPhi(p.fPolarPhi), fParticlePDG(p.fParticlePDG)
210 const Int_t big = 9999;
214 if(!view)
return big;
218 if (pmom == 0)
return big;
224 xe[0] = xv[0]+rbox*fPx/pmom;
225 xe[1] = xv[1]+rbox*fPy/pmom;
226 xe[2] = xv[2]+rbox*fPz/pmom;
251 static char def[4] =
"XXX";
279 if(fPolarTheta == -99 && fPolarPhi == -99)
293 static char def[4] =
"XXX";
312 if (pmom == 0)
return;
321 pline->
SetPoint(1, xend, yend, zend);
325 pline->
Paint(option);
336 Printf(
"TParticle: %-13s p: %8f %8f %8f Vertex: %8e %8e %8e %5d %5d",
348 static Int_t nWarnings = 0;
354 if (nWarnings < 10) {
355 Warning(
"SetPdgCode",
"PDG code %d unknown from TDatabasePDG",pdg);
369 if(polx || poly || polz) {
385 if (pmom == 0)
return;
388 gSize3D.numSegs += (npoints-1);
396 void TParticle::Streamer(
TBuffer &R__b)
407 TObject::Streamer(R__b);
408 TAttLine::Streamer(R__b);
virtual const char * GetTitle() const
Returns title of object.
virtual Style_t GetLineStyle() const
virtual void SetLineWidth(Width_t lwidth)
Int_t Beauty() const
Return beauty quantum number.
virtual Int_t WriteClassBuffer(const TClass *cl, void *pointer)=0
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.
virtual void WCtoNDC(const Float_t *pw, Float_t *pn)=0
TParticlePDG * GetParticle(Int_t pdgCode) const
Get a pointer to the particle object according to the MC code number.
Use this attribute class when an object should have 3D capabilities.
Buffer base class used for serializing objects.
virtual ~TParticle()
destructor
virtual Int_t CheckByteCount(UInt_t startpos, UInt_t bcnt, const TClass *clss)=0
A 3-dimensional polyline.
virtual const char * GetTitle() const
return particle title
virtual Int_t ReadStaticArray(Bool_t *b)=0
static const double x2[5]
static TDatabasePDG * Instance()
static function
void SetPolarisation(Double_t polx, Double_t poly, Double_t polz)
set particle polarisation
void SetXYZ(Double_t x, Double_t y, Double_t z)
TObject & operator=(const TObject &rhs)
TObject assignment operator.
Double_t ATan2(Double_t, Double_t)
virtual void SetLineColor(Color_t lcolor)
TParticle & operator=(const TParticle &)
Equal operator.
TParticlePDG * GetPDG(Int_t mode=0) const
returns a pointer to the TParticlePDG object using the pdgcode if mode == 0 (default) always get a fr...
virtual const char * GetName() const
Returns name of object.
virtual Color_t GetLineColor() const
virtual void Print(Option_t *option="") const
Print the internals of the primary vertex particle.
TParticle()
reference to the particle record in PDG database
virtual Int_t ReadClassBuffer(const TClass *cl, void *pointer, const TClass *onfile_class=0)=0
virtual void SetPoint(Int_t point, Double_t x, Double_t y, Double_t z)
Set point n to x, y, z.
static const double x1[5]
virtual const char * GetName() const
return particle name
Int_t Strangeness() const
Return strangeness quantum number.
virtual void Paint(Option_t *option="")
Paint a TPolyLine3D.
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.
virtual void Paint(Option_t *option="")
Paint a primary track.
virtual void SetLineStyle(Style_t lstyle)
Binding & operator=(OUT(*fun)(void))
Mother of all ROOT objects.
Int_t Strangeness() const
void SetPdgCode(Int_t pdg)
change the PDG code for this particle Get a new pointer to a TParticlePDG from TDatabasePDG Recompute...
TParticlePDG * fParticlePDG
void GetPolarisation(TVector3 &v) const
return particle polarisation
ClassImp(TParticle) TParticle
default constructor
virtual void GetRange(Float_t *min, Float_t *max)=0
virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py)
*-*-*-*-*-*-*-*-*-*-*Execute action corresponding to one event*-*-*-* *-* ===========================...
Int_t Charm() const
Return charm quantum number.
Double_t Sqrt(Double_t x)
std::complex< float_v > Z
virtual Width_t GetLineWidth() const
virtual void Sizeof3D() const
*-*-*-*-*-*Return total X3D size of this primary*-*-*-*-*-*-* *-* ===================================...
virtual Version_t ReadVersion(UInt_t *start=0, UInt_t *bcnt=0, const TClass *cl=0)=0
virtual void Warning(const char *method, const char *msgfmt,...) const
Issue warning message.