Changeset 84a097e in git for modules/TrackSmearing.cc
- Timestamp:
- Dec 2, 2019, 6:55:22 PM (5 years ago)
- Branches:
- Timing
- Children:
- 2ad823e, 6fc566b
- Parents:
- c614dd7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
modules/TrackSmearing.cc
rc614dd7 r84a097e 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, d0, d0Error, trueD0, dz, dzError, trueDZ, p, pError, trueP, ctgTheta, ctgThetaError, trueCtgTheta, phi, phiError, truePhi, m; 161 161 Double_t x, y, z, t, px, py, pz, theta; 162 162 Double_t q, r; … … 328 328 329 329 theta = TMath::ACos(ctgTheta / TMath::Sqrt(1.0 + ctgTheta * ctgTheta)); 330 m = candidate->Momentum.M(); 331 330 332 candidate->Momentum.SetPx(p * TMath::Cos(phi) * TMath::Sin(theta)); 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(candidate->Momentum.Pt() * TMath::CosH(eta)); 336 candidate->Momentum.SetE( TMath::Sqrt(m*m + p*p) ); 334 337 candidate->PT = candidate->Momentum.Pt(); 335 338 … … 382 385 candidate->Yd = yd * 1.0E3; 383 386 candidate->Zd = zd * 1.0E3; 384 387 candidate->Td = -9999*c_light*1E-3; 388 385 389 if(fApplyToPileUp || !candidate->IsPU) 386 390 {
Note:
See TracChangeset
for help on using the changeset viewer.