Ignore:
Timestamp:
10/27/07 21:59:05 (17 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mreflector
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mreflector/MRflEvtHeader.cc

    r7430 r8765  
    3030#include "MRflEvtHeader.h"
    3131
     32#include "MLog.h"
     33#include "MLogManip.h"
     34
    3235ClassImp(MRflEvtHeader);
     36
     37using namespace std;
    3338
    3439// --------------------------------------------------------------------------
     
    4045}
    4146
     47void MRflEvtHeader::Print(Option_t *) const
     48{
     49    *fLog << all;
     50    *fLog << "Event Number:                " << fEvtNumber << endl;
     51    *fLog << "Energy:                      " << fEnergy << "GeV" << endl;
     52    *fLog << "Height of first intercation: " << fHeightFirstInt << "cm" << endl;
     53    *fLog << "Momentum X/Y/Z:              " << fMomentum.X() << "/" << fMomentum.Y() << "/" << fMomentum.Z() << endl;
     54    *fLog << "Zenith/Azimuth angle:        " << fTheta*TMath::RadToDeg() << "/" << fPhi*TMath::RadToDeg() << endl;
     55    *fLog << endl;
     56}
  • trunk/MagicSoft/Mars/mreflector/MRflEvtHeader.h

    r7430 r8765  
    7272    void SetPhi(Float_t x)   { fPhi = x; }
    7373    void SetTheta(Float_t x) { fTheta = x; }
    74      
     74
    7575    void SetNmax(Float_t x)  { fNmax = x ; }
    7676    void SetT0(Float_t x)    { fT0 = x; }
    7777    void SetTmax(Float_t x)  { fTmax = x ; }
    7878    void SetChi2(Float_t x)  { fChi2 = x ; }
    79      
     79
    8080    void SetEFraction(Float_t x) { fEFraction = x ; }
    8181    void SetMFraction(Float_t x) { fMFraction = x ; }
    8282    void SetOFraction(Float_t x) { fOFraction = x ; }
    83      
     83
     84    // TObject
     85    void Print(Option_t *o="") const;
     86
    8487    ClassDef(MRflEvtHeader, 1) // Header of an event from the reflector program
    8588};
Note: See TracChangeset for help on using the changeset viewer.