Changeset 2024 for trunk/MagicSoft/Mars


Ignore:
Timestamp:
04/28/03 13:43:17 (22 years ago)
Author:
wittek
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/manalysis/MPadSchweizer.cc

    r2023 r2024  
    295295  Int_t binNumber = fHSigmaTheta->GetXaxis()->FindBin(theta);
    296296
    297   TH1D *fHSigma;
     297  TH1D *hsigma;
    298298
    299299  if ( binNumber < 1  ||  binNumber > fHSigmaTheta->GetNbinsX() )
     
    309309  else
    310310  {
    311     fHSigma = fHSigmaTheta->ProjectionY("", binNumber, binNumber, "");
    312     if ( fHSigma->GetEntries() == 0.0 )
     311    hsigma = fHSigmaTheta->ProjectionY("", binNumber, binNumber, "");
     312    if ( hsigma->GetEntries() == 0.0 )
    313313    {
    314314      *fLog << "MPadSchweizer::Process(); projection for Theta bin "
    315315            << binNumber << " has no entries; Skip event " << endl;
    316316      // event cannot be padded; skip event
    317       delete fHSigma;
     317      delete hsigma;
    318318
    319319      rc = 3;
     
    323323    else
    324324    {
    325       sigmabar = fHSigma->GetRandom();
     325      sigmabar = hsigma->GetRandom();
    326326
    327327      //*fLog << "Theta, bin number = " << theta << ",  " << binNumber
    328328      //      << ",  sigmabar = " << sigmabar << endl;
    329329    }
    330     delete fHSigma;
     330    delete hsigma;
    331331  }
    332332  const Double_t sigmabar2 = sigmabar*sigmabar;
     
    427427
    428428    Int_t count;
    429     Int_t ok;
     429    Bool_t ok;
    430430
    431431    TH1D *hdiff;
     
    452452
    453453      count = 0;
    454       ok = 0;
     454      ok = kFALSE;
    455455      for (Int_t m=0; m<20; m++)
    456456      {
     
    496496
    497497      count = 0;
    498       ok = 0;
     498      ok = kFALSE;
    499499      for (Int_t m=0; m<20; m++)
    500500      {
Note: See TracChangeset for help on using the changeset viewer.