Changeset 9458496b in git for modules/TrackCountingBTagging.cc
- Timestamp:
- Oct 30, 2017, 7:58:06 PM (7 years ago)
- Branches:
- ImprovedOutputFile, Timing, dual_readout, llp, master
- Children:
- ca9e119
- Parents:
- e40b9cf
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
modules/TrackCountingBTagging.cc
re40b9cf r9458496b 117 117 fItTrackInputArray->Reset(); 118 118 count = 0; 119 while((track = static_cast<Candidate*>(fItTrackInputArray->Next()))) 119 // stop once we have enough tracks 120 while((track = static_cast<Candidate*>(fItTrackInputArray->Next())) and count < fNtracks) 120 121 { 121 122 const TLorentzVector &trkMomentum = track->Momentum; 123 tpt = trkMomentum.Pt(); 124 if(tpt < fPtMin) continue; 122 125 126 d0 = TMath::Abs(track->D0); 127 if(d0 > fIPmax) continue; 128 123 129 dr = jetMomentum.DeltaR(trkMomentum); 124 tpt = trkMomentum.Pt(); 130 if(dr > fDeltaR) continue; 131 125 132 xd = track->Xd; 126 133 yd = track->Yd; 127 134 zd = track->Zd; 128 d0 = TMath::Abs(track->D0);129 135 dd0 = TMath::Abs(track->ErrorD0); 130 136 dz = TMath::Abs(track->DZ); 131 137 ddz = TMath::Abs(track->ErrorDZ); 132 138 133 if(tpt < fPtMin) continue;134 if(dr > fDeltaR) continue;135 if(d0 > fIPmax) continue;136 137 139 if(fUse3D){ 138 140 sign = (jpx*xd + jpy*yd + jpz*zd > 0.0) ? 1 : -1; 139 //add transvers and longitudinal significances in quadrature141 //add transverse and longitudinal significances in quadrature 140 142 sip = sign * TMath::Sqrt( TMath::Power(d0 / dd0, 2) + TMath::Power(dz / ddz, 2) ); 141 143 }
Note:
See TracChangeset
for help on using the changeset viewer.