Changes in modules/TrackSmearing.cc [341014c:fd4b326] in git
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
modules/TrackSmearing.cc
r341014c rfd4b326 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.