Ignore:
Timestamp:
05/06/03 11:28:47 (22 years ago)
Author:
moralejo
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.