Changeset 4513 for trunk/MagicSoft/include-Classes/MMcFormat
- Timestamp:
- 08/05/04 15:03:07 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/include-Classes/MMcFormat/MMcEvt.hxx
r3894 r4513 14 14 enum ParticleId_t 15 15 { 16 kGAMMA =1,16 kGAMMA = 1, 17 17 kPOSITRON = 2, 18 18 kELECTRON = 3, 19 kANTIMUON = 5, 20 kMUON = 6, 21 kPI0 = 7, 22 kNEUTRON = 13, 19 23 kPROTON = 14, 20 24 kHELIUM = 402, … … 145 149 case kPOSITRON: return "Positron"; 146 150 case kELECTRON: return "Electron"; 151 case kANTIMUON: return "Anti-Muon"; 152 case kMUON: return "Muon"; 153 case kPI0: return "Pi-0"; 154 case kNEUTRON: return "Neutron"; 147 155 case kPROTON: return "Proton"; 148 156 case kHELIUM: return "Helium"; … … 151 159 } 152 160 153 return Form("%d", fPartId); 161 return Form("Id:%d", fPartId); 162 } 163 TString GetParticleSymbol() const 164 { 165 switch (fPartId) 166 { 167 case kGAMMA: return "\\gamma"; 168 case kPOSITRON: return "e^{+}"; 169 case kELECTRON: return "e^{-}"; 170 case kANTIMUON: return "\\mu^{+}"; 171 case kMUON: return "\\mu^{-}"; 172 case kPI0: return "\\pi^{0}"; 173 case kNEUTRON: return "n"; 174 case kPROTON: return "p"; 175 case kHELIUM: return "He"; 176 case kOXYGEN: return "O"; 177 case kIRON: return "Fe"; 178 } 179 180 return Form("Id:%d", fPartId); 154 181 } 155 182 TString GetEnergyStr() const
Note:
See TracChangeset
for help on using the changeset viewer.