Fork me on GitHub

Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • modules/Isolation.cc

    re72ee4b r48b6e45  
    108108
    109109  fUsePTSum = GetBool("UsePTSum", false);
    110 
    111   fUseRhoCorr = GetBool("UseRhoCorrection", false);
    112110
    113111  fClassifier->fPTMin = GetDouble("PTMin", 0.5);
     
    155153  Candidate *candidate, *isolation, *object;
    156154  TObjArray *isolationArray;
    157   Double_t sumCharged, sumNeutral, sumAllParticles, sumChargedPU, sumDBeta, ratioDBeta, sumRhoCorr, ratioRhoCorr, sum, ratio;
     155  Double_t sumCharged, sumNeutral, sumAllParticles, sumChargedPU, sumDBeta, ratioDBeta, sumRhoCorr, ratioRhoCorr;
    158156  Int_t counter;
    159157  Double_t eta = 0.0;
     
    247245    candidate->SumPt = sumAllParticles;
    248246
    249     sum = (fUseRhoCorr) ? sumRhoCorr : sumDBeta;
    250     if(fUsePTSum && sum > fPTSumMax) continue;
    251 
    252     ratio = (fUseRhoCorr) ? ratioRhoCorr : ratioDBeta;
    253     if(!fUsePTSum && ratio > fPTRatioMax) continue;
    254 
     247    if((fUsePTSum && sumDBeta > fPTSumMax) || (!fUsePTSum && ratioDBeta > fPTRatioMax)) continue;
    255248    fOutputArray->Add(candidate);
    256249  }
Note: See TracChangeset for help on using the changeset viewer.