Changeset 8438 for trunk/MagicSoft/include-Classes/MMcFormat
- Timestamp:
- 04/23/07 21:04:21 (18 years ago)
- Location:
- trunk/MagicSoft/include-Classes/MMcFormat
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/include-Classes/MMcFormat/MMcEvt.cxx
r8434 r8438 58 58 #include "MLogManip.h" 59 59 60 #include "MString.h" 61 60 62 ClassImp(MMcEvt); 61 63 … … 224 226 // Return a proper description of the monte carlo event 225 227 // 226 TString MMcEvt::GetDescription( TStrings) const228 TString MMcEvt::GetDescription(const TString &s) const 227 229 { 228 230 TString txt("#splitline{"); … … 233 235 txt += "}{ E="; 234 236 txt += GetEnergyStr(); 235 txt += " r=";236 txt += (int)(GetImpact()/100+.5);237 txt += "m Zd=";238 txt += 0.1*TMath::Nint(GetTelescopeTheta()*180/TMath::Pi()*10);239 txt += "\\circ ";237 txt += " r="; 238 txt += TMath::Nint(GetImpact()/100); 239 txt += "m Zd="; 240 txt += MString::Format("%.1f", GetTelescopeTheta()*TMath::RadToDeg()); 241 txt += "\\circ "; 240 242 if (GetPhotElfromShower()>=10000) 241 txt += Form("%dk", (Int_t)(GetPhotElfromShower()/1000.+.5));243 txt += MString::Format("%dk", TMath::Nint(GetPhotElfromShower()/1000.)); 242 244 else 243 245 if (GetPhotElfromShower()>=1000) 244 txt += Form("%.1fk", GetPhotElfromShower()/1000.);246 txt += MString::Format("%.1fk", GetPhotElfromShower()/1000.); 245 247 else 246 248 txt += GetPhotElfromShower(); -
trunk/MagicSoft/include-Classes/MMcFormat/MMcEvt.hxx
r8434 r8438 100 100 Float_t GetMuonCphFraction() const { return fMuonCphFraction; } 101 101 102 TString GetDescription( TStrings="") const;102 TString GetDescription(const TString &s="") const; 103 103 104 104 // Setter
Note:
See TracChangeset
for help on using the changeset viewer.