Changeset 8434 for trunk/MagicSoft/include-Classes/MMcFormat
- Timestamp:
- 04/23/07 20:11:25 (18 years ago)
- Location:
- trunk/MagicSoft/include-Classes/MMcFormat
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/include-Classes/MMcFormat/MMcEvt.cxx
r7880 r8434 18 18 ! Author(s): 19 19 ! 20 ! Copyright: MAGIC Software Development, 2000-200 520 ! Copyright: MAGIC Software Development, 2000-2007 21 21 ! 22 22 ! … … 199 199 200 200 fFadcTimeJitter = fadc_jitter; 201 201 202 202 fEventReuse = reuse; 203 203 } … … 217 217 TString str(opt); 218 218 if (str.IsNull()) 219 {220 219 *fLog << " Photoelectrons: " << fPhotElfromShower << endl; 221 return; 222 } 223 } 220 } 221 222 // -------------------------------------------------------------------------- 223 // 224 // Return a proper description of the monte carlo event 225 // 226 TString MMcEvt::GetDescription(TString s) const 227 { 228 TString txt("#splitline{"); 229 230 txt += GetParticleName(); 231 txt += " "; 232 txt += s; 233 txt += "}{ E="; 234 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 "; 240 if (GetPhotElfromShower()>=10000) 241 txt += Form("%dk", (Int_t)(GetPhotElfromShower()/1000.+.5)); 242 else 243 if (GetPhotElfromShower()>=1000) 244 txt += Form("%.1fk", GetPhotElfromShower()/1000.); 245 else 246 txt += GetPhotElfromShower(); 247 txt += "PhEl}"; 248 249 return txt; 250 } -
trunk/MagicSoft/include-Classes/MMcFormat/MMcEvt.hxx
r7880 r8434 100 100 Float_t GetMuonCphFraction() const { return fMuonCphFraction; } 101 101 102 TString GetDescription(TString s="") const; 103 102 104 // Setter 103 105 void SetTheta(Float_t Theta) { fTheta=Theta; } //Set Theta angle
Note:
See TracChangeset
for help on using the changeset viewer.