Fork me on GitHub

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


Ignore:
Location:
modules
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • modules/Isolation.cc

    r386e60f r16217da  
    108108
    109109  fUsePTSum = GetBool("UsePTSum", false);
     110
     111  fUseRhoCorr = GetBool("UseRhoCorrection", false);
    110112
    111113  fClassifier->fPTMin = GetDouble("PTMin", 0.5);
     
    153155  Candidate *candidate, *isolation, *object;
    154156  TObjArray *isolationArray;
    155   Double_t sumCharged, sumNeutral, sumAllParticles, sumChargedPU, sumDBeta, ratioDBeta, sumRhoCorr, ratioRhoCorr;
     157  Double_t sumCharged, sumNeutral, sumAllParticles, sumChargedPU, sumDBeta, ratioDBeta, sumRhoCorr, ratioRhoCorr, sum, ratio;
    156158  Int_t counter;
    157159  Double_t eta = 0.0;
     
    245247    candidate->SumPt = sumAllParticles;
    246248
    247     if((fUsePTSum && sumDBeta > fPTSumMax) || (!fUsePTSum && ratioDBeta > fPTRatioMax)) continue;
     249    sum = (fUseRhoCorr) ? sumRhoCorr : sumDBeta;
     250    if(fUsePTSum && sum > fPTSumMax) continue;
     251
     252    ratio = (fUseRhoCorr) ? ratioRhoCorr : ratioDBeta;
     253    if(!fUsePTSum && ratio > fPTRatioMax) continue;
     254
    248255    fOutputArray->Add(candidate);
    249256  }
  • modules/Isolation.h

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