72 Error(
"GetDaughterId",
"No daughter track with index %d", index);
75 return daughter->
GetId();
91 for (
Int_t i = 0; i < nd; i++)
94 for (
Int_t i = 0; i < nd; i++) {
139 if (!strcmp(
name,
"gamma")) {
146 if (!strcmp(
name,
"pi+") || !strcmp(
name,
"proton") || !strcmp(
name,
"K+")) {
152 if (!strcmp(
name,
"pi-") || !strcmp(
name,
"K-")) {
158 if (!strcmp(
name,
"pi0") || !strcmp(
name,
"K0")) {
164 if (!strcmp(
name,
"neutron")) {
171 if (!strcmp(
name,
"Alpha") || !strcmp(
name,
"Deuteron") || !strcmp(
name,
"Triton")) {
177 if (!strcmp(
name,
"e-") || !strcmp(
name,
"mu-")) {
184 if (!strcmp(
name,
"e+") || !strcmp(
name,
"mu+")) {
int Int_t
Signed integer 4 bytes (int).
bool Bool_t
Boolean (0=false, 1=true) (bool).
double Double_t
Double 8 bytes.
externTGeoManager * gGeoManager
virtual void SetLineStyle(Style_t lstyle)
Set the line style.
virtual void SetLineWidth(Width_t lwidth)
Set the line width.
virtual void SetLineColor(Color_t lcolor)
Set the line color.
virtual void SetMarkerColor(Color_t mcolor=1)
Set the marker color.
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
TObject()
TObject constructor.
const Double_t * GetFirstPoint() const
virtual Int_t GetDaughterId(Int_t index) const
Returns daughter id.
TVirtualGeoTrack * fParent
~TVirtualGeoTrack() override
Destructor.
void SetName(const char *name)
Set a default name for this track.
const Double_t * GetLastPoint() const
TVirtualGeoTrack(const TVirtualGeoTrack &)=delete
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.
const char * GetName() const override
Get the PDG name.
Int_t GetNdaughters() const