104 const Int_t big = 9999;
108 if(!view)
return big;
112 if (pmom == 0)
return big;
118 xe[0] =
fVx+rbox*
fPx/pmom;
119 xe[1] =
fVy+rbox*
fPy/pmom;
120 xe[2] =
fVz+rbox*fPz/pmom;
146 static char def[4] =
"XXX";
168 static char title[128];
170 snprintf(title,128,
"pmom=%f GeV",pmom);
187 if (pmom == 0)
return;
196 pline->
SetPoint(1, xend, yend, zend);
200 pline->
Paint(option);
210 char def[8] =
"XXXXXXX";
215 Printf(
"TPrimary: %-13s p: %8f %8f %8f Vertex: %8e %8e %8e %5d %5d %s",
227 if (pmom == 0)
return;
230 gSize3D.numSegs += (npoints-1);
virtual const TAttParticle * GetParticle() const
Returning a pointer to the particle attributes.
virtual const char * GetName() const
Returns name of object.
virtual void SetLineWidth(Width_t lwidth)
Set the line width.
virtual void Sizeof3D() const
Return total X3D size of this primary.
virtual void Paint(Option_t *option="")
Paint a primary track.
virtual void WCtoNDC(const Float_t *pw, Float_t *pn)=0
A 3-dimensional polyline.
virtual const char * GetName() const
Return name of primary particle.
virtual Width_t GetLineWidth() const
Return the line width.
virtual Style_t GetLineStyle() const
Return the line style.
static const double x2[5]
static void DefinePDG()
Defines particles according to the Particle Data Group.
virtual void Print(Option_t *option="") const
Print the internals of the primary vertex particle.
static constexpr double second
static TAttParticle * GetParticle(const char *name)
Get a pointer to the particle object according to the name given.
virtual void SetLineColor(Color_t lcolor)
Set the line color.
virtual const char * GetTitle() const
Return title of primary particle.
virtual Int_t DistancetoPrimitive(Int_t px, Int_t py)
Compute distance from point px,py to a primary track.
Particle definition, partly based on GEANT3 particle definition.
Old version of a dynamic particle class created by event generators.
virtual Color_t GetLineColor() const
Return the line color.
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 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 SetLineStyle(Style_t lstyle)
Set the line style.
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.
Double_t Sqrt(Double_t x)
virtual ~TPrimary()
Primaray vertex particle default destructor.
TPrimary()
Primary vertex particle default constructor.
const char * Data() const
static THashList * fgList