Changeset 2529 for trunk/MagicSoft/Mars/mhist/MHEvent.cc
- Timestamp:
- 11/19/03 00:03:53 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhist/MHEvent.cc
r2512 r2529 226 226 s.Insert(0, txt); 227 227 228 s += "}{ ";229 s += " E="; 228 s += "}{ E="; 229 230 230 if (fMcEvt->GetEnergy()>1000) 231 231 s += Form("%.1fTeV", fMcEvt->GetEnergy()/1000); 232 232 else 233 s += Form("%dGeV", fMcEvt->GetEnergy()+.5); 233 if (fMcEvt->GetEnergy()>10) 234 s += Form("%dGeV", (Int_t)(fMcEvt->GetEnergy()+.5)); 235 else 236 if (fMcEvt->GetEnergy()>1) 237 s += Form("%.1fGeV", fMcEvt->GetEnergy()); 238 else 239 s += Form("%dMeV", (Int_t)(fMcEvt->GetEnergy()*1000+.5)); 240 234 241 s += " r="; 235 242 s += (int)(fMcEvt->GetImpact()/100+.5); 236 s += "m Z A=";243 s += "m Zd="; 237 244 s += (int)(fMcEvt->GetTheta()*180/TMath::Pi()+.5); 238 s += "\xb0 "; 239 s += fMcEvt->GetPhotElfromShower(); 240 s += "PhEl"; 241 s += "}"; 245 s += "\\circ "; 246 if (fMcEvt->GetPhotElfromShower()>=10000) 247 s += Form("%dk", (Int_t)(fMcEvt->GetPhotElfromShower()/1000.+.5)); 248 else 249 if (fMcEvt->GetPhotElfromShower()>=1000) 250 s += Form("%.1fk", fMcEvt->GetPhotElfromShower()/1000.); 251 else 252 s += fMcEvt->GetPhotElfromShower(); 253 s += "PhEl}"; 242 254 } 243 255
Note:
See TracChangeset
for help on using the changeset viewer.