105 const Int_t big = 9999;
109 if(!view)
return big;
113 if (pmom == 0)
return big;
147 static char def[4] =
"XXX";
169 static char title[128];
171 snprintf(title,128,
"pmom=%f GeV",pmom);
188 if (pmom == 0)
return;
211 char def[8] =
"XXXXXXX";
216 Printf(
"TPrimary: %-13s p: %8f %8f %8f Vertex: %8e %8e %8e %5d %5d %s",
228 if (pmom == 0)
return;
231 gSize3D.numSegs += (npoints-1);
Option_t Option_t TPoint TPoint const char x2
Option_t Option_t TPoint TPoint const char x1
Option_t Option_t TPoint TPoint const char y2
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t Atom_t Atom_t Time_t type
Option_t Option_t TPoint TPoint const char y1
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 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
const char * GetName() const override
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...
void Paint(Option_t *option="") override
Paint this polyline with its current attributes.
Old version of a dynamic particle class created by event generators.
~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.
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
Double_t Sqrt(Double_t x)
Returns the square root of x.