Changeset 9239 for trunk/MagicSoft/Mars/msim/MPhotonData.cc
- Timestamp:
- 01/22/09 19:07:37 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/msim/MPhotonData.cc
r9232 r9239 216 216 gLog << "Weight: " << fWeight << endl; 217 217 } 218 219 /*220 #include <TH2.h>221 #include <TH3.h>222 223 // --------------------------------------------------------------------------224 //225 // Fill radial photon distance scaled by scale into 1D histogram.226 //227 void MPhotonData::FillRad(TH1 &hist, Float_t scale) const228 {229 hist.Fill(TMath::Hypot(fPosX, fPosY)*scale);230 }231 232 // --------------------------------------------------------------------------233 //234 // Fill radial photon distance scaled by scale versus x into 2D histogram.235 //236 void MPhotonData::FillRad(TH2 &hist, Double_t x, Float_t scale) const237 {238 hist.Fill(x, TMath::Hypot(fPosX, fPosY)*scale);239 }240 241 // --------------------------------------------------------------------------242 //243 // Fill photon position (x,y) scaled by scale into 2D histogram.244 // (Note north in the camera plane is -y, and east -x)245 //246 void MPhotonData::Fill(TH2 &hist, Float_t scale) const247 {248 hist.Fill(fPosY*scale, fPosX*scale);249 }250 251 // --------------------------------------------------------------------------252 //253 // Fill photon position (x,y) scaled by scale versus z into 3D histogram.254 // (Note north in the camera plane is -y, and east -x)255 //256 void MPhotonData::Fill(TH3 &hist, Double_t z, Float_t scale) const257 {258 hist.Fill(fPosY*scale, fPosX*scale);259 }260 261 */
Note:
See TracChangeset
for help on using the changeset viewer.