Changeset 8289 for trunk/MagicSoft


Ignore:
Timestamp:
02/02/07 13:53:02 (18 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mreflector
Files:
4 edited

Legend:

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

    r8288 r8289  
    175175// Fills all photons into a TH2 scaled with scale (default=1)
    176176//
    177 void MRflEvtData::Fill(TH3 &hist, Double_t z, Float_t scale) const
    178 {
    179     MRflSinglePhoton *ph=NULL;
    180 
    181     TIter Next(&fList);
    182     while ((ph=(MRflSinglePhoton*)Next()))
    183         ph->Fill(hist, z, scale);
     177void MRflEvtData::Fill(TH3 &hist, Double_t x, Float_t scale) const
     178{
     179    MRflSinglePhoton *ph=NULL;
     180
     181    TIter Next(&fList);
     182    while ((ph=(MRflSinglePhoton*)Next()))
     183        ph->Fill(hist, x, scale);
    184184}
    185185
  • trunk/MagicSoft/Mars/mreflector/MRflEvtData.h

    r8288 r8289  
    4141
    4242    void FillRad(TH1 &hist, Float_t scale=1) const;
    43     void FillRad(TH2 &hist, Double_t z, Float_t scale=1) const;
     43    void FillRad(TH2 &hist, Double_t x, Float_t scale=1) const;
    4444    void Fill(TH2 &hist, Float_t scale=1) const;
    4545    void Fill(TH3 &hist, Double_t z, Float_t scale=1) const;
  • trunk/MagicSoft/Mars/mreflector/MRflSinglePhoton.cc

    r8288 r8289  
    5555// Fill radial photon distance into histogram scaled by scale.
    5656//
    57 void MRflSinglePhoton::FillRad(TH2 &hist, Double_t z, Float_t scale) const
     57void MRflSinglePhoton::FillRad(TH2 &hist, Double_t x, Float_t scale) const
    5858{
    59     hist.Fill(TMath::Hypot(fX, fY)*scale, z);
     59    hist.Fill(x, TMath::Hypot(fX, fY)*scale);
    6060}
    6161
  • trunk/MagicSoft/Mars/mreflector/MRflSinglePhoton.h

    r8288 r8289  
    3939
    4040    void FillRad(TH1 &hist, Float_t scale=1) const;
    41     void FillRad(TH2 &hist, Double_t z, Float_t scale=1) const;
     41    void FillRad(TH2 &hist, Double_t x, Float_t scale=1) const;
    4242    void Fill(TH2 &hist, Float_t scale=1) const;
    4343    void Fill(TH3 &hist, Double_t z, Float_t scale=1) const;
Note: See TracChangeset for help on using the changeset viewer.