Changeset 2075 for trunk/MagicSoft


Ignore:
Timestamp:
05/06/03 11:28:47 (22 years ago)
Author:
moralejo
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r2071 r2075  
    11                                                 -*-*- END OF LINE -*-*-
    22
     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).
    313
    414 2003/05/06: Thomas Bretz
  • trunk/MagicSoft/Mars/mhistmc/MHMcCollectionArea.cc

    r2036 r2075  
    210210    TH1D &pall = *hall.ProjectionX();
    211211
    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        }
    213221
    214222    fHistCol->Divide(&psel, &pall, TMath::Pi()*max*max, 1);
Note: See TracChangeset for help on using the changeset viewer.