Changeset 8288 for trunk/MagicSoft/Mars/mreflector/MRflSinglePhoton.cc
- Timestamp:
- 02/02/07 13:50:45 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mreflector/MRflSinglePhoton.cc
r8270 r8288 33 33 34 34 #include <TH2.h> 35 #include <TH3.h> 35 36 36 37 #include "MLog.h" … … 52 53 // -------------------------------------------------------------------------- 53 54 // 55 // Fill radial photon distance into histogram scaled by scale. 56 // 57 void MRflSinglePhoton::FillRad(TH2 &hist, Double_t z, Float_t scale) const 58 { 59 hist.Fill(TMath::Hypot(fX, fY)*scale, z); 60 } 61 62 // -------------------------------------------------------------------------- 63 // 54 64 // Fill photon position into histogram scaled by scale. 55 65 // 56 66 void MRflSinglePhoton::Fill(TH2 &hist, Float_t scale) const 67 { 68 hist.Fill(fX*scale, fY*scale); 69 } 70 71 // -------------------------------------------------------------------------- 72 // 73 // Fill photon position into histogram scaled by scale. 74 // 75 void MRflSinglePhoton::Fill(TH3 &hist, Double_t z, Float_t scale) const 57 76 { 58 77 hist.Fill(fX*scale, fY*scale);
Note:
See TracChangeset
for help on using the changeset viewer.