Ignore:
Timestamp:
02/02/07 13:50:45 (18 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r8270 r8288  
    147147// --------------------------------------------------------------------------
    148148//
     149// Fills all photon distances into a TH1 scaled with scale (default=1)
     150//
     151void MRflEvtData::FillRad(TH2 &hist, Double_t z, Float_t scale) const
     152{
     153    MRflSinglePhoton *ph=NULL;
     154
     155    TIter Next(&fList);
     156    while ((ph=(MRflSinglePhoton*)Next()))
     157        ph->FillRad(hist, z, scale);
     158}
     159
     160// --------------------------------------------------------------------------
     161//
    149162// Fills all photons into a TH2 scaled with scale (default=1)
    150163//
     
    156169    while ((ph=(MRflSinglePhoton*)Next()))
    157170        ph->Fill(hist, scale);
     171}
     172
     173// --------------------------------------------------------------------------
     174//
     175// Fills all photons into a TH2 scaled with scale (default=1)
     176//
     177void 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);
    158184}
    159185
Note: See TracChangeset for help on using the changeset viewer.