Changeset 3325 for trunk/MagicSoft/Mars/mhist
- Timestamp:
- 02/26/04 10:55:25 (21 years ago)
- Location:
- trunk/MagicSoft/Mars/mhist
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhist/MHCompProb.cc
r2173 r3325 168 168 { 169 169 case 0: // First loop : fill the fixed-bin histograms with gammas. 170 if (mcevt.GetPartId() == kGAMMA)170 if (mcevt.GetPartId() == MMcEvt::kGAMMA) 171 171 Fill(*fHists); 172 172 return kTRUE; 173 173 174 174 case 1: // Second Loop: fill the variable-bin histograms with protons. 175 if (mcevt.GetPartId() != kGAMMA)175 if (mcevt.GetPartId() != MMcEvt::kGAMMA) 176 176 Fill(*fHistVar); 177 177 return kTRUE; -
trunk/MagicSoft/Mars/mhist/MHEvent.cc
r3239 r3325 237 237 TString txt("#splitline{"); 238 238 239 switch (fMcEvt->GetPartId()) 240 { 241 case kGAMMA: 242 txt += "Gamma: "; 243 break; 244 case kPROTON: 245 txt += "Proton: "; 246 break; 247 case kHELIUM: 248 txt += "Helium: "; 249 break; 250 default: 251 s += "Particle Id#"; 252 s += fMcEvt->GetPartId(); 253 s += ": "; 254 } 239 txt += fMcEvt->GetParticleName(); 255 240 256 241 s.Insert(0, txt); … … 258 243 s += "}{ E="; 259 244 260 if (fMcEvt->GetEnergy()>1000) 261 s += Form("%.1fTeV", fMcEvt->GetEnergy()/1000); 262 else 263 if (fMcEvt->GetEnergy()>10) 264 s += Form("%dGeV", (Int_t)(fMcEvt->GetEnergy()+.5)); 265 else 266 if (fMcEvt->GetEnergy()>1) 267 s += Form("%.1fGeV", fMcEvt->GetEnergy()); 268 else 269 s += Form("%dMeV", (Int_t)(fMcEvt->GetEnergy()*1000+.5)); 245 s+= fMcEvt->GetEnergyStr(); 270 246 271 247 s += " r="; -
trunk/MagicSoft/Mars/mhist/MHHadronness.cc
r2522 r3325 216 216 const Int_t particleid = fMatrix ? (Int_t)(*fMatrix)[fMap] : fMcEvt->GetPartId(); 217 217 218 if (particleid== kGAMMA)218 if (particleid==MMcEvt::kGAMMA) 219 219 fGhness->Fill(h, w); 220 220 else
Note:
See TracChangeset
for help on using the changeset viewer.