Changeset 2075 for trunk/MagicSoft
- Timestamp:
- 05/06/03 11:28:47 (22 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r2071 r2075 1 1 -*-*- END OF LINE -*-*- 2 2 3 2003/05/06: Abelardo Moralejo 4 5 * mhistmc/MHMcCollectionArea.cc 6 - in procedure Calc(TH2D &hsel, TH2D &hall) : changed the 7 calculation of maximum impact parameter. Now it looks for 8 the highest non-empty impact parameter bin of histogram "hall" 9 The code could not work as it was before, but this had 10 influence only when running over camera files containing all 11 events, including non-triggers (while we usually run over files 12 containing only triggers). 3 13 4 14 2003/05/06: Thomas Bretz -
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.