Changeset 2075 for trunk/MagicSoft/Mars/mhistmc
- Timestamp:
- 05/06/03 11:28:47 (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhistmc/MHMcCollectionArea.cc
r2036 r2075 210 210 TH1D &pall = *hall.ProjectionX(); 211 211 212 const Double_t max = psel.GetYaxis()->GetXmax(); 212 TH1D &pally = *hall.ProjectionY(); 213 214 Double_t max = 0.; 215 for (Int_t i = hall.GetNbinsY(); i > 0; i--) 216 if (pally.GetBinContent(i) > 0) 217 { 218 max = pally.GetBinLowEdge(i+1); 219 break; 220 } 213 221 214 222 fHistCol->Divide(&psel, &pall, TMath::Pi()*max*max, 1);
Note:
See TracChangeset
for help on using the changeset viewer.