- Timestamp:
- 01/25/07 10:00:31 (18 years ago)
- Location:
- trunk/MagicSoft/Mars/mreflector
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mreflector/MRflEvtData.cc
r8266 r8267 132 132 } 133 133 134 // -------------------------------------------------------------------------- 135 // 136 // Fills all photons into a TH2 scaled with scale (default=1) 137 // 138 void MRflEvtData::Fill(TH2 &hist, Float_t scale) const 139 { 140 MRflSinglePhoton *ph=NULL; 141 142 TIter Next(&fList); 143 while ((ph=(MRflSinglePhoton*)Next())) 144 ph->Fill(hist, scale); 145 } 146 134 147 void MRflEvtData::DrawPixelContent(Int_t num) const 135 148 { -
trunk/MagicSoft/Mars/mreflector/MRflEvtData.h
r8266 r8267 14 14 #endif 15 15 16 class TH2; 16 17 class MRflSinglePhoton; 17 18 … … 36 37 const MRflSinglePhoton &GetPhoton(Int_t i) const; 37 38 39 void Fill(TH2 &hist, Float_t scale=1) const; 40 38 41 void Print(Option_t *o="") const; 39 42 void Paint(Option_t *o=""); -
trunk/MagicSoft/Mars/mreflector/MRflSinglePhoton.cc
r2173 r8267 32 32 #include "MRflSinglePhoton.h" 33 33 34 #include <TH2.h> 35 34 36 #include "MLog.h" 35 37 #include "MLogManip.h" … … 41 43 // -------------------------------------------------------------------------- 42 44 // 45 // Fill photon position into histogram scaled by scale. 46 // 47 void MRflSinglePhoton::Fill(TH2 &hist, Float_t scale) const 48 { 49 hist.Fill(fX*scale, fY*scale); 50 } 51 52 // -------------------------------------------------------------------------- 53 // 43 54 // Dump all photon information 44 55 // -
trunk/MagicSoft/Mars/mreflector/MRflSinglePhoton.h
r8266 r8267 5 5 #include "MParContainer.h" 6 6 #endif 7 8 class TH2; 7 9 8 10 class MRflSinglePhoton : public MParContainer … … 33 35 Float_t GetY() const { return fY; } 34 36 37 void Fill(TH2 &hist, Float_t scale=1) const; 38 35 39 void Print(Option_t *o="") const; 36 40
Note:
See TracChangeset
for help on using the changeset viewer.