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)
217 const Int_t big = 9999;
221 if(!view)
return big;
225 if (pmom == 0)
return big;
231 xe[0] = xv[0]+rbox*
fPx/pmom;
232 xe[1] = xv[1]+rbox*
fPy/pmom;
233 xe[2] = xv[2]+rbox*
fPz/pmom;
258 static char def[4] =
"XXX";
300 static char def[4] =
"XXX";
319 if (pmom == 0)
return;
328 pline->
SetPoint(1, xend, yend, zend);
332 pline->
Paint(option);
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);
403 void TParticle::Streamer(
TBuffer &R__b)
414 TObject::Streamer(R__b);
415 TAttLine::Streamer(R__b);
virtual const char * GetName() const
Returns name of object.
Int_t Beauty() const
Return beauty quantum number.
virtual void SetLineWidth(Width_t lwidth)
Set the line width.
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.
virtual void WCtoNDC(const Float_t *pw, Float_t *pn)=0
Double_t GetMass() const
Return nominal particle mass from PDG table.
Description of the dynamic properties of a particle.
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 Int_t ReadStaticArray(Bool_t *b)=0
virtual Width_t GetLineWidth() const
Return the line width.
virtual Style_t GetLineStyle() const
Return the line style.
static const double x2[5]
static TDatabasePDG * Instance()
static function
virtual const char * GetName() const
Return particle name.
virtual void Print(Option_t *option="") const
Print the internals of the primary vertex particle.
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)
Int_t Strangeness() const
Return strangeness quantum number.
TVector3 is a general three vector class, which can be used for the description of different vectors ...
virtual void SetLineColor(Color_t lcolor)
Set the line color.
TLorentzVector is a general four-vector class, which can be used either for the description of positi...
virtual const char * GetTitle() const
Return particle title.
TParticle & operator=(const TParticle &)
Equal operator.
Int_t Strangeness() const
Description of the static properties of a particle.
Int_t Charm() const
Return charm quantum number.
virtual Color_t GetLineColor() const
Return the line color.
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]
TParticlePDG * GetPDG(Int_t mode=0) const
Returns a pointer to the TParticlePDG object using the pdgcode.
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.
TParticlePDG * GetParticle(Int_t pdgCode) const
Get a pointer to the particle object according to the MC code number.
virtual void SetLineStyle(Style_t lstyle)
Set the line style.
Binding & operator=(OUT(*fun)(void))
Mother of all ROOT objects.
virtual void Sizeof3D() const
Return total X3D size of this primary.
void SetPdgCode(Int_t pdg)
Change the PDG code for this particle.
TParticlePDG * fParticlePDG
void SetPolarisation(Double_t theta, Double_t phi)
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.
void GetPolarisation(TVector3 &v) const
Return particle polarisation.
Double_t Sqrt(Double_t x)
virtual void Warning(const char *method, const char *msgfmt,...) const
Issue warning message.
virtual Version_t ReadVersion(UInt_t *start=0, UInt_t *bcnt=0, const TClass *cl=0)=0
virtual const char * GetTitle() const
Returns title of object.