Ignore:
Timestamp:
04/23/07 20:11:25 (18 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/include-Classes/MMcFormat
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/include-Classes/MMcFormat/MMcEvt.cxx

    r7880 r8434  
    1818!   Author(s):
    1919!
    20 !   Copyright: MAGIC Software Development, 2000-2005
     20!   Copyright: MAGIC Software Development, 2000-2007
    2121!
    2222!
     
    199199
    200200    fFadcTimeJitter = fadc_jitter;
    201    
     201
    202202    fEventReuse = reuse;
    203203}
     
    217217    TString str(opt);
    218218    if (str.IsNull())
    219     {
    220219        *fLog << " Photoelectrons: " << fPhotElfromShower << endl;
    221         return;
    222     }
    223 }
     220}
     221
     222// --------------------------------------------------------------------------
     223//
     224// Return a proper description of the monte carlo event
     225//
     226TString 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  
    100100    Float_t GetMuonCphFraction() const { return fMuonCphFraction; }
    101101
     102    TString GetDescription(TString s="") const;
     103
    102104    // Setter
    103105    void SetTheta(Float_t Theta) { fTheta=Theta; }                //Set Theta angle
Note: See TracChangeset for help on using the changeset viewer.