Changeset d612dec in git for modules/TrackSmearing.cc
- Timestamp:
- Dec 9, 2021, 7:52:15 AM (3 years ago)
- Children:
- 29b722a
- Parents:
- a5af1df (diff), 0c0c9af (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
modules/TrackSmearing.cc
ra5af1df rd612dec 158 158 TLorentzVector beamSpotPosition; 159 159 Candidate *candidate, *mother; 160 Double_t pt, eta, d0, d0Error, trueD0, dz, dzError, trueDZ, p, pError, trueP, ctgTheta, ctgThetaError, trueCtgTheta, phi, phiError, truePhi;160 Double_t pt, eta, e, m, d0, d0Error, trueD0, dz, dzError, trueDZ, p, pError, trueP, ctgTheta, ctgThetaError, trueCtgTheta, phi, phiError, truePhi; 161 161 Double_t x, y, z, t, px, py, pz, theta; 162 162 Double_t q, r; … … 223 223 pt = momentum.Pt(); 224 224 eta = momentum.Eta(); 225 e = momentum.E(); 226 m = momentum.M(); 225 227 226 228 d0 = trueD0 = candidate->D0; … … 232 234 233 235 if(fUseD0Formula) 234 d0Error = fD0Formula->Eval(pt, eta );236 d0Error = fD0Formula->Eval(pt, eta, phi, e, candidate); 235 237 else 236 238 { … … 247 249 248 250 if(fUseDZFormula) 249 dzError = fDZFormula->Eval(pt, eta );251 dzError = fDZFormula->Eval(pt, eta, phi, e, candidate); 250 252 else 251 253 { … … 262 264 263 265 if(fUsePFormula) 264 pError = fPFormula->Eval(pt, eta ) * p;266 pError = fPFormula->Eval(pt, eta, phi, e, candidate) * p; 265 267 else 266 268 { … … 277 279 278 280 if(fUseCtgThetaFormula) 279 ctgThetaError = fCtgThetaFormula->Eval(pt, eta );281 ctgThetaError = fCtgThetaFormula->Eval(pt, eta, phi, e, candidate); 280 282 else 281 283 { … … 292 294 293 295 if(fUsePhiFormula) 294 phiError = fPhiFormula->Eval(pt, eta );296 phiError = fPhiFormula->Eval(pt, eta, phi, e, candidate); 295 297 else 296 298 { … … 331 333 candidate->Momentum.SetPy(p * TMath::Sin(phi) * TMath::Sin(theta)); 332 334 candidate->Momentum.SetPz(p * TMath::Cos(theta)); 333 candidate->Momentum.SetE( candidate->Momentum.Pt() * TMath::CosH(eta));335 candidate->Momentum.SetE(TMath::Sqrt(p*p + m*m)); 334 336 candidate->PT = candidate->Momentum.Pt(); 335 337
Note:
See TracChangeset
for help on using the changeset viewer.