Changeset 4ac0049 in git for modules/PileUpSubtractor4D.cc
- Timestamp:
- Jan 24, 2020, 3:51:00 PM (5 years ago)
- Branches:
- Timing
- Children:
- 79a7b3e
- Parents:
- 6049672
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
modules/PileUpSubtractor4D.cc
r6049672 r4ac0049 170 170 t_err = particle->PositionError.T(); 171 171 172 distanceCharged = pow((zvtx - z),2)/pow((zvtx_err - z_err),2) + pow((tvtx - t),2)/pow((tvtx_err - t_err),2);173 distanceNeutral = pow((tvtx - t),2)/pow((tvtx_err - t_err),2);172 distanceCharged = TMath::Sqrt(pow((zvtx - z),2)/pow((zvtx_err),2) + pow((tvtx - t),2)/pow((tvtx_err),2)); 173 distanceNeutral = TMath::Sqrt(pow((tvtx - t),2)/pow((tvtx_err),2)); 174 174 175 175 if(candidate->Charge != 0 && distanceCharged < fChargedMinSignificance) 176 176 { 177 candidate->IsRecoPU = 1;177 candidate->IsRecoPU = 0; 178 178 } 179 179 else if(candidate->Charge == 0 && distanceNeutral < fNeutralMinSignificance) 180 180 { 181 candidate->IsRecoPU = 1;181 candidate->IsRecoPU = 0; 182 182 } 183 183 else 184 184 { 185 candidate->IsRecoPU = 0;185 candidate->IsRecoPU = 1; 186 186 if(candidate->Momentum.Pt() > fPTMin) array->Add(candidate); 187 187 }
Note:
See TracChangeset
for help on using the changeset viewer.