Changeset 8290 for trunk/MagicSoft/Mars/mreflector
- Timestamp:
- 02/02/07 14:03:58 (18 years ago)
- Location:
- trunk/MagicSoft/Mars/mreflector
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mreflector/MRflEvtData.cc
r8289 r8290 134 134 // -------------------------------------------------------------------------- 135 135 // 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 137 137 // 138 138 void MRflEvtData::FillRad(TH1 &hist, Float_t scale) const … … 147 147 // -------------------------------------------------------------------------- 148 148 // 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 // 152 void 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. 163 164 // 164 165 void MRflEvtData::Fill(TH2 &hist, Float_t scale) const … … 173 174 // -------------------------------------------------------------------------- 174 175 // 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) const178 { 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 // 178 void 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); 184 185 } 185 186 -
trunk/MagicSoft/Mars/mreflector/MRflSinglePhoton.cc
r8289 r8290 44 44 // -------------------------------------------------------------------------- 45 45 // 46 // Fill radial photon distance into histogram scaled by scale.46 // Fill radial photon distance scaled by scale into 1D histogram. 47 47 // 48 48 void MRflSinglePhoton::FillRad(TH1 &hist, Float_t scale) const … … 53 53 // -------------------------------------------------------------------------- 54 54 // 55 // Fill radial photon distance into histogram scaled by scale.55 // Fill radial photon distance scaled by scale versus x into 2D histogram. 56 56 // 57 57 void MRflSinglePhoton::FillRad(TH2 &hist, Double_t x, Float_t scale) const … … 62 62 // -------------------------------------------------------------------------- 63 63 // 64 // Fill photon position into histogram scaled by scale.64 // Fill photon position (x,y) scaled by scale into 2D histogram. 65 65 // 66 66 void MRflSinglePhoton::Fill(TH2 &hist, Float_t scale) const … … 71 71 // -------------------------------------------------------------------------- 72 72 // 73 // Fill photon position into histogram scaled by scale.73 // Fill photon position (x,y) scaled by scale versus z into 3D histogram. 74 74 // 75 75 void MRflSinglePhoton::Fill(TH3 &hist, Double_t z, Float_t scale) const
Note:
See TracChangeset
for help on using the changeset viewer.