Changeset 8270
- Timestamp:
- 01/25/07 10:59:26 (18 years ago)
- Location:
- trunk/MagicSoft/Mars/mreflector
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mreflector/MRflEvtData.cc
r8267 r8270 134 134 // -------------------------------------------------------------------------- 135 135 // 136 // Fills all photon distances into a TH1 scaled with scale (default=1) 137 // 138 void MRflEvtData::FillRad(TH1 &hist, Float_t scale) const 139 { 140 MRflSinglePhoton *ph=NULL; 141 142 TIter Next(&fList); 143 while ((ph=(MRflSinglePhoton*)Next())) 144 ph->FillRad(hist, scale); 145 } 146 147 // -------------------------------------------------------------------------- 148 // 136 149 // Fills all photons into a TH2 scaled with scale (default=1) 137 150 // -
trunk/MagicSoft/Mars/mreflector/MRflEvtData.h
r8267 r8270 14 14 #endif 15 15 16 class TH1; 16 17 class TH2; 17 18 class MRflSinglePhoton; … … 37 38 const MRflSinglePhoton &GetPhoton(Int_t i) const; 38 39 40 void FillRad(TH1 &hist, Float_t scale=1) const; 39 41 void Fill(TH2 &hist, Float_t scale=1) const; 40 42 -
trunk/MagicSoft/Mars/mreflector/MRflSinglePhoton.cc
r8267 r8270 43 43 // -------------------------------------------------------------------------- 44 44 // 45 // Fill radial photon distance into histogram scaled by scale. 46 // 47 void MRflSinglePhoton::FillRad(TH1 &hist, Float_t scale) const 48 { 49 hist.Fill(TMath::Hypot(fX, fY)*scale); 50 } 51 52 // -------------------------------------------------------------------------- 53 // 45 54 // Fill photon position into histogram scaled by scale. 46 55 // -
trunk/MagicSoft/Mars/mreflector/MRflSinglePhoton.h
r8267 r8270 6 6 #endif 7 7 8 class TH1; 8 9 class TH2; 9 10 … … 35 36 Float_t GetY() const { return fY; } 36 37 38 void FillRad(TH1 &hist, Float_t scale=1) const; 37 39 void Fill(TH2 &hist, Float_t scale=1) const; 38 40
Note:
See TracChangeset
for help on using the changeset viewer.