Ignore:
Timestamp:
02/02/07 14:03:58 (18 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mreflector
Files:
2 edited

Legend:

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

    r8289 r8290  
    134134// --------------------------------------------------------------------------
    135135//
    136 // Fills all photon distances into a TH1 scaled with scale (default=1)
     136// Fills all photon distances scaled with scale (default=1) into a TH1
    137137//
    138138void MRflEvtData::FillRad(TH1 &hist, Float_t scale) const
     
    147147// --------------------------------------------------------------------------
    148148//
    149 // Fills all photon distances into a TH1 scaled with scale (default=1)
    150 //
    151 void 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 //
    162 // Fills all photons into a TH2 scaled with scale (default=1)
     149// Fills all photon distances scaled with scale (default=1) versus x
     150// into a TH2
     151//
     152void MRflEvtData::FillRad(TH2 &hist, Double_t x, Float_t scale) const
     153{
     154    MRflSinglePhoton *ph=NULL;
     155
     156    TIter Next(&fList);
     157    while ((ph=(MRflSinglePhoton*)Next()))
     158        ph->FillRad(hist, x, scale);
     159}
     160
     161// --------------------------------------------------------------------------
     162//
     163// Fills all photons (x,y) scaled with scale (default=1) into a TH2.
    163164//
    164165void MRflEvtData::Fill(TH2 &hist, Float_t scale) const
     
    173174// --------------------------------------------------------------------------
    174175//
    175 // Fills all photons into a TH2 scaled with scale (default=1)
    176 //
    177 void 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);
     176// Fills all photons (x,y) scaled with scale (default=1) versus z into a TH3
     177//
     178void MRflEvtData::Fill(TH3 &hist, Double_t z, Float_t scale) const
     179{
     180    MRflSinglePhoton *ph=NULL;
     181
     182    TIter Next(&fList);
     183    while ((ph=(MRflSinglePhoton*)Next()))
     184        ph->Fill(hist, z, scale);
    184185}
    185186
  • trunk/MagicSoft/Mars/mreflector/MRflSinglePhoton.cc

    r8289 r8290  
    4444// --------------------------------------------------------------------------
    4545//
    46 // Fill radial photon distance into histogram scaled by scale.
     46// Fill radial photon distance scaled by scale into 1D histogram.
    4747//
    4848void MRflSinglePhoton::FillRad(TH1 &hist, Float_t scale) const
     
    5353// --------------------------------------------------------------------------
    5454//
    55 // Fill radial photon distance into histogram scaled by scale.
     55// Fill radial photon distance scaled by scale versus x into 2D histogram.
    5656//
    5757void MRflSinglePhoton::FillRad(TH2 &hist, Double_t x, Float_t scale) const
     
    6262// --------------------------------------------------------------------------
    6363//
    64 // Fill photon position into histogram scaled by scale.
     64// Fill photon position (x,y) scaled by scale into 2D histogram.
    6565//
    6666void MRflSinglePhoton::Fill(TH2 &hist, Float_t scale) const
     
    7171// --------------------------------------------------------------------------
    7272//
    73 // Fill photon position into histogram scaled by scale.
     73// Fill photon position (x,y) scaled by scale versus z into 3D histogram.
    7474//
    7575void MRflSinglePhoton::Fill(TH3 &hist, Double_t z, Float_t scale) const
Note: See TracChangeset for help on using the changeset viewer.