104 const Int_t big = 9999;
108 if(!view)
return big;
112 if (pmom == 0)
return big;
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);
int Int_t
Signed integer 4 bytes (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 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)
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
const char * GetName() const override
Returns name of object.
~TPrimary() override
Primaray vertex particle default destructor.
const char * GetTitle() const override
Return title of primary particle.
const char * GetName() const override
Return name of primary particle.
TPrimary()
Primary vertex particle default constructor.
void ExecuteEvent(Int_t event, Int_t px, Int_t py) override
Execute action corresponding to one event.
void Paint(Option_t *option="") override
Paint a primary track.
void Print(Option_t *option="") const override
Print the internals of the primary vertex particle.
Int_t DistancetoPrimitive(Int_t px, Int_t py) override
Compute distance from point px,py to a primary track.
virtual const TAttParticle * GetParticle() const
Returning a pointer to the particle attributes.
void Sizeof3D() const override
Return total X3D size of this primary.
virtual void WCtoNDC(const Float_t *pw, Float_t *pn)=0
virtual void GetRange(Float_t *min, Float_t *max)=0
Double_t Sqrt(Double_t x)
Returns the square root of x.