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;
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);
static const double x2[5]
static const double x1[5]
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.
Particle definition, partly based on GEANT3 particle definition.
static TAttParticle * GetParticle(const char *name)
Get a pointer to the particle object according to the name given.
static void DefinePDG()
Defines particles according to the Particle Data Group.
static THashList * fgList
virtual const char * GetName() const
Returns name of object.
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...
virtual void Paint(Option_t *option="")
Paint this polyline with its current attributes.
Old version of a dynamic particle class created by event generators.
virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py)
Execute action corresponding to one event.
virtual void Print(Option_t *option="") const
Print the internals of the primary vertex particle.
virtual void Paint(Option_t *option="")
Paint a primary track.
TPrimary()
Primary vertex particle default constructor.
virtual const char * GetTitle() const
Return title of primary particle.
virtual ~TPrimary()
Primaray vertex particle default destructor.
virtual const TAttParticle * GetParticle() const
Returning a pointer to the particle attributes.
virtual const char * GetName() const
Return name of primary particle.
virtual void Sizeof3D() const
Return total X3D size of this primary.
virtual Int_t DistancetoPrimitive(Int_t px, Int_t py)
Compute distance from point px,py to a primary track.
const char * Data() const
virtual void WCtoNDC(const Float_t *pw, Float_t *pn)=0
virtual void GetRange(Float_t *min, Float_t *max)=0
static constexpr double second
Double_t Sqrt(Double_t x)