137 TAttLine::operator=(p);
138 TAtt3D::operator=(p);
216 const Int_t big = 9999;
220 if(!view)
return big;
224 if (pmom == 0)
return big;
257 static char def[4] =
"XXX";
299 static char def[4] =
"XXX";
318 if (pmom == 0)
return;
327 pline->SetPoint(1, xend, yend, zend);
331 pline->Paint(option);
341 Printf(
"TParticle: %-13s p: %8f %8f %8f Vertex: %8e %8e %8e %5d %5d",
354 static Int_t nWarnings = 0;
360 if (nWarnings < 10) {
361 Warning(
"SetPdgCode",
"PDG code %d unknown from TDatabasePDG",pdg);
375 if(polx || poly || polz) {
391 if (pmom == 0)
return;
394 gSize3D.numSegs += (npoints-1);
int Int_t
Signed integer 4 bytes (int).
short Version_t
Class version identifier (short).
unsigned int UInt_t
Unsigned integer 4 bytes (unsigned int).
double Double_t
Double 8 bytes.
float Float_t
Float 4 bytes (float).
const char Option_t
Option string (const char).
void Printf(const char *fmt,...)
Formats a string in a circular formatting buffer and prints the string.
virtual void Streamer(TBuffer &)
virtual Color_t GetLineColor() const
Return the line color.
virtual Width_t GetLineWidth() const
Return the line width.
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)
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.
TObject & operator=(const TObject &rhs) noexcept
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.
TObject()
TObject constructor.
Description of the static properties of a particle.
Int_t Strangeness() const
Double_t GetMass() const
Return nominal particle mass from PDG table.
TParticlePDG * fParticlePDG
! reference to the particle record in PDG database
const char * GetTitle() const override
Return particle title.
void GetPolarisation(TVector3 &v) const
Return particle polarisation.
TParticle & operator=(const TParticle &)
Equal operator.
~TParticle() override
destructor
void SetPolarisation(Double_t theta, Double_t phi)
void Paint(Option_t *option="") override
Paint a primary track.
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 DistancetoPrimitive(Int_t px, Int_t py) override
Compute distance from point px,py to a primary track.
Int_t Charm() const
Return charm quantum number.
const char * GetName() const override
Return particle name.
TClass * IsA() const override
void ExecuteEvent(Int_t event, Int_t px, Int_t py) override
Execute action corresponding to one event.
TParticle()
default constructor
void SetPdgCode(Int_t pdg)
Change the PDG code for this particle.
void Sizeof3D() const override
Return total X3D size of this primary.
void Streamer(TBuffer &) override
Stream an object of class TParticle.
Int_t Strangeness() const
Return strangeness quantum number.
void Print(Option_t *option="") const override
Print the internals of the primary vertex particle.
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.