- Timestamp:
- Nov 20, 2015, 2:08:49 PM (9 years ago)
- Branches:
- ImprovedOutputFile, Timing, dual_readout, llp, master
- Children:
- 9b756ad
- Parents:
- fc4143c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
modules/Isolation.cc
rfc4143c rcef50c9 153 153 Candidate *candidate, *isolation, *object; 154 154 TObjArray *isolationArray; 155 Double_t sumCharged , sumNeutral, sumAllParticles, sumChargedPU;155 Double_t sumChargedNoPU, sumChargedPU, sumNeutral, sumAllParticles; 156 156 Double_t sumDBeta, ratioDBeta, sumRhoCorr, ratioRhoCorr, sum, ratio; 157 157 Int_t counter; … … 191 191 192 192 sumNeutral = 0.0; 193 sumCharged = 0.0;193 sumChargedNoPU = 0.0; 194 194 sumChargedPU = 0.0; 195 195 sumAllParticles = 0.0; … … 214 214 else 215 215 { 216 sumCharged += isolationMomentum.Pt();216 sumChargedNoPU += isolationMomentum.Pt(); 217 217 } 218 218 } … … 240 240 241 241 // correct sum for pile-up contamination 242 sumDBeta = sumCharged + TMath::Max(sumNeutral - 0.5*sumChargedPU, 0.0);243 sumRhoCorr = sumCharged + TMath::Max(sumNeutral - TMath::Max(rho, 0.0)*fDeltaRMax*fDeltaRMax*TMath::Pi(), 0.0);242 sumDBeta = sumChargedNoPU + TMath::Max(sumNeutral - 0.5*sumChargedPU, 0.0); 243 sumRhoCorr = sumChargedNoPU + TMath::Max(sumNeutral - TMath::Max(rho, 0.0)*fDeltaRMax*fDeltaRMax*TMath::Pi(), 0.0); 244 244 ratioDBeta = sumDBeta/candidateMomentum.Pt(); 245 245 ratioRhoCorr = sumRhoCorr/candidateMomentum.Pt(); … … 247 247 candidate->IsolationVar = ratioDBeta; 248 248 candidate->IsolationVarRhoCorr = ratioRhoCorr; 249 candidate->SumPtCharged = sumCharged ;249 candidate->SumPtCharged = sumChargedNoPU; 250 250 candidate->SumPtNeutral = sumNeutral; 251 251 candidate->SumPtChargedPU = sumChargedPU;
Note:
See TracChangeset
for help on using the changeset viewer.