- Timestamp:
- Jun 30, 2015, 4:25:20 PM (9 years ago)
- Branches:
- ImprovedOutputFile, Timing, dual_readout, llp, master
- Children:
- 8b13e78
- Parents:
- c627b07
- Location:
- modules
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
modules/Isolation.cc
rc627b07 re8abecd 109 109 fUsePTSum = GetBool("UsePTSum", false); 110 110 111 fVetoLeptons = GetBool("VetoLeptons", true);112 113 111 fClassifier->fPTMin = GetDouble("PTMin", 0.5); 114 115 112 116 113 // import input array(s) … … 197 194 198 195 if(candidateMomentum.DeltaR(isolationMomentum) <= fDeltaRMax && 199 candidate->GetUniqueID() != isolation->GetUniqueID() && 200 ( !fVetoLeptons || (TMath::Abs(candidate->PID) != 11 && (TMath::Abs(candidate->PID) != 13)) ) ) 196 candidate->GetUniqueID() != isolation->GetUniqueID()) 201 197 { 202 203 198 sumAllParticles += isolationMomentum.Pt(); 204 199 if(isolation->Charge !=0) … … 207 202 if(isolation->IsRecoPU != 0) sumChargedPU += isolationMomentum.Pt(); 208 203 } 209 210 else sumNeutral += isolationMomentum.Pt(); 211 204 else 205 { 206 sumNeutral += isolationMomentum.Pt(); 207 } 212 208 ++counter; 213 209 } … … 228 224 } 229 225 230 231 226 // correct sum for pile-up contamination 232 227 sumDBeta = sumCharged + TMath::Max(sumNeutral-0.5*sumChargedPU,0.0); … … 242 237 candidate->SumPt = sumAllParticles; 243 238 244 if((fUsePTSum && sumDBeta > fPTSumMax) || ratioDBeta > fPTRatioMax) continue;239 if((fUsePTSum && sumDBeta > fPTSumMax) || (!fUsePTSum && ratioDBeta > fPTRatioMax)) continue; 245 240 fOutputArray->Add(candidate); 246 241 } -
modules/Isolation.h
rc627b07 re8abecd 59 59 Bool_t fUsePTSum; 60 60 61 Bool_t fVetoLeptons;62 63 61 IsolationClassifier *fClassifier; //! 64 62
Note:
See TracChangeset
for help on using the changeset viewer.