Changeset 8289
- Timestamp:
- 02/02/07 13:53:02 (18 years ago)
- Location:
- trunk/MagicSoft/Mars/mreflector
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mreflector/MRflEvtData.cc
r8288 r8289 175 175 // Fills all photons into a TH2 scaled with scale (default=1) 176 176 // 177 void MRflEvtData::Fill(TH3 &hist, Double_t z, Float_t scale) const178 { 179 MRflSinglePhoton *ph=NULL; 180 181 TIter Next(&fList); 182 while ((ph=(MRflSinglePhoton*)Next())) 183 ph->Fill(hist, z, scale);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); 184 184 } 185 185 -
trunk/MagicSoft/Mars/mreflector/MRflEvtData.h
r8288 r8289 41 41 42 42 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; 44 44 void Fill(TH2 &hist, Float_t scale=1) const; 45 45 void Fill(TH3 &hist, Double_t z, Float_t scale=1) const; -
trunk/MagicSoft/Mars/mreflector/MRflSinglePhoton.cc
r8288 r8289 55 55 // Fill radial photon distance into histogram scaled by scale. 56 56 // 57 void MRflSinglePhoton::FillRad(TH2 &hist, Double_t z, Float_t scale) const57 void MRflSinglePhoton::FillRad(TH2 &hist, Double_t x, Float_t scale) const 58 58 { 59 hist.Fill( TMath::Hypot(fX, fY)*scale, z);59 hist.Fill(x, TMath::Hypot(fX, fY)*scale); 60 60 } 61 61 -
trunk/MagicSoft/Mars/mreflector/MRflSinglePhoton.h
r8288 r8289 39 39 40 40 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; 42 42 void Fill(TH2 &hist, Float_t scale=1) const; 43 43 void Fill(TH3 &hist, Double_t z, Float_t scale=1) const;
Note:
See TracChangeset
for help on using the changeset viewer.