Changes in modules/Isolation.cc [e2339af:844a970] in git
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
modules/Isolation.cc
re2339af r844a970 110 110 111 111 fUseRhoCorrection = GetBool("UseRhoCorrection", true); 112 113 fDeltaRMin = GetDouble("DeltaRMin", 0.01);114 fUseMiniCone = GetBool("UseMiniCone", false);115 112 116 113 fClassifier->fPTMin = GetDouble("PTMin", 0.5); … … 160 157 Double_t sumChargedNoPU, sumChargedPU, sumNeutral, sumAllParticles; 161 158 Double_t sumDBeta, ratioDBeta, sumRhoCorr, ratioRhoCorr, sum, ratio; 162 Bool_t pass = kFALSE;159 Int_t counter; 163 160 Double_t eta = 0.0; 164 161 Double_t rho = 0.0; … … 200 197 sumAllParticles = 0.0; 201 198 199 counter = 0; 202 200 itIsolationArray.Reset(); 201 203 202 while((isolation = static_cast<Candidate*>(itIsolationArray.Next()))) 204 203 { 205 204 const TLorentzVector &isolationMomentum = isolation->Momentum; 206 205 207 if(fUseMiniCone) 206 if(candidateMomentum.DeltaR(isolationMomentum) <= fDeltaRMax && 207 candidate->GetUniqueID() != isolation->GetUniqueID()) 208 208 { 209 pass = candidateMomentum.DeltaR(isolationMomentum) <= fDeltaRMax &&210 candidateMomentum.DeltaR(isolationMomentum) > fDeltaRMin;211 }212 else213 {214 pass = candidateMomentum.DeltaR(isolationMomentum) <= fDeltaRMax &&215 candidate->GetUniqueID() != isolation->GetUniqueID();216 }217 218 if(pass)219 {220 221 209 sumAllParticles += isolationMomentum.Pt(); 222 210 if(isolation->Charge != 0) … … 235 223 sumNeutral += isolationMomentum.Pt(); 236 224 } 225 ++counter; 237 226 } 238 239 227 } 240 228 241 // find rho229 // find rho 242 230 rho = 0.0; 243 231 if(fRhoInputArray) … … 253 241 } 254 242 255 256 257 243 // correct sum for pile-up contamination 258 244 sumDBeta = sumChargedNoPU + TMath::Max(sumNeutral - 0.5*sumChargedPU, 0.0);
Note:
See TracChangeset
for help on using the changeset viewer.