73 Error(
"GetDaughterId",
"No daughter track with index %d",
index);
76 return daughter->
GetId();
93 for (
Int_t i=0; i<nd; i++) {
118 if (!timecut)
return kTRUE;
120 if (!point)
return kFALSE;
121 if (point[3]>tmax)
return kFALSE;
123 if (point[3]<tmin)
return kFALSE;
133 if (!strcmp(
name,
"gamma")) {
140 if (!strcmp(
name,
"pi+") || !strcmp(
name,
"proton") || !strcmp(
name,
"K+")) {
146 if (!strcmp(
name,
"pi-") || !strcmp(
name,
"K-")) {
152 if (!strcmp(
name,
"pi0") || !strcmp(
name,
"K0")) {
158 if (!strcmp(
name,
"neutron")) {
165 if (!strcmp(
name,
"Alpha") || !strcmp(
name,
"Deuteron") || !strcmp(
name,
"Triton")) {
171 if (!strcmp(
name,
"e-") || !strcmp(
name,
"mu-")) {
178 if (!strcmp(
name,
"e+") || !strcmp(
name,
"mu+")) {
Option_t Option_t SetLineWidth
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t index
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize id
Option_t Option_t SetLineColor
R__EXTERN TGeoManager * gGeoManager
virtual void SetLineStyle(Style_t lstyle)
Set the line style.
virtual void SetMarkerColor(Color_t mcolor=1)
Set the marker color.
void SetPdgName(Int_t pdg, const char *name)
Set a name for a particle having a given pdg.
const char * GetPdgName(Int_t pdg) const
Get name for given pdg code;.
Bool_t GetTminTmax(Double_t &tmin, Double_t &tmax) const
Get time cut for drawing tracks.
void Delete(Option_t *option="") override
Remove all objects from the array AND delete all heap based objects.
Mother of all ROOT objects.
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
Base class for user-defined tracks attached to a geometry.
const Double_t * GetFirstPoint() const
virtual Int_t GetDaughterId(Int_t index) const
Returns daughter id.
TVirtualGeoTrack * fParent
void SetName(const char *name)
Set a default name for this track.
virtual const char * GetName() const
Get the PDG name.
const Double_t * GetLastPoint() const
TVirtualGeoTrack * GetDaughter(Int_t index) const
TVirtualGeoTrack()
Virtual tracks default constructor.
virtual TVirtualGeoTrack * FindTrackWithId(Int_t id) const
Recursively search through this track for a daughter particle (at any depth) with the specified id.
Bool_t IsInTimeRange() const
True if track TOF range overlaps with time interval of TGeoManager.
virtual ~TVirtualGeoTrack()
Destructor.
Int_t GetNdaughters() const