Fork me on GitHub

Changes in / [16217da:386e60f] in git


Ignore:
Location:
modules
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • modules/Isolation.cc

    r16217da r386e60f  
    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  }
  • modules/Isolation.h

    r16217da r386e60f  
    5959  Bool_t fUsePTSum;
    6060
    61   Bool_t fUseRhoCorr;
    62 
    6361  IsolationClassifier *fClassifier; //!
    6462
Note: See TracChangeset for help on using the changeset viewer.