Changeset 8765 for trunk/MagicSoft/include-Classes
- Timestamp:
- 10/27/07 21:59:05 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/include-Classes/MMcFormat/MMcEvtBasic.h
r8315 r8765 49 49 Float_t GetTelescopeTheta() const { return fTelescopeTheta; } 50 50 51 TString GetParticleName() const51 static TString GetParticleName(Int_t id) 52 52 { 53 switch ( fPartId)53 switch (id) 54 54 { 55 55 case kUNDEFINED:return "Undefined"; … … 67 67 } 68 68 69 return Form("Id:%d", fPartId);69 return Form("Id:%d", id); 70 70 } 71 71 72 TString GetParticleSymbol() const72 static TString GetParticleSymbol(Int_t id) 73 73 { 74 switch ( fPartId)74 switch (id) 75 75 { 76 76 case kUNDEFINED:return "N/A"; … … 88 88 } 89 89 90 return Form("Id:%d", fPartId);90 return Form("Id:%d", id); 91 91 } 92 92 … … 103 103 104 104 return Form("%dMeV", (Int_t)(e*1000+.5)); 105 } 106 107 TString GetParticleSymbol() const 108 { 109 return GetParticleSymbol(fPartId); 110 } 111 112 TString GetParticleName() const 113 { 114 return GetParticleName(fPartId); 105 115 } 106 116
Note:
See TracChangeset
for help on using the changeset viewer.