Changeset 8438


Ignore:
Timestamp:
04/23/07 21:04:21 (18 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mmovie/MMovieWrite.cc

    r8434 r8438  
    778778    */
    779779
    780     TString s = Form("%d: ", GetNumExecutions()+1);
    781     s += "Evt #";
     780    TString s = Form("%d:  Evt #", GetNumExecutions()+1);
    782781    s += fHead->GetDAQEvtNumber();
    783782    s += " of ";
  • trunk/MagicSoft/include-Classes/MMcFormat/MMcEvt.cxx

    r8434 r8438  
    5858#include "MLogManip.h"
    5959
     60#include "MString.h"
     61
    6062ClassImp(MMcEvt);
    6163
     
    224226// Return a proper description of the monte carlo event
    225227//
    226 TString MMcEvt::GetDescription(TString s) const
     228TString MMcEvt::GetDescription(const TString &s) const
    227229{
    228230    TString txt("#splitline{");
     
    233235    txt += "}{  E=";
    234236    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  ";
    240242    if (GetPhotElfromShower()>=10000)
    241         txt += Form("%dk", (Int_t)(GetPhotElfromShower()/1000.+.5));
     243        txt += MString::Format("%dk", TMath::Nint(GetPhotElfromShower()/1000.));
    242244    else
    243245        if (GetPhotElfromShower()>=1000)
    244             txt += Form("%.1fk", GetPhotElfromShower()/1000.);
     246            txt += MString::Format("%.1fk", GetPhotElfromShower()/1000.);
    245247        else
    246248            txt += GetPhotElfromShower();
  • trunk/MagicSoft/include-Classes/MMcFormat/MMcEvt.hxx

    r8434 r8438  
    100100    Float_t GetMuonCphFraction() const { return fMuonCphFraction; }
    101101
    102     TString GetDescription(TString s="") const;
     102    TString GetDescription(const TString &s="") const;
    103103
    104104    // Setter
Note: See TracChangeset for help on using the changeset viewer.