Changes in modules/TrackSmearing.cc [84a097e:341014c] in git
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
modules/TrackSmearing.cc
r84a097e r341014c 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 , m;160 Double_t pt, eta, 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; … … 328 328 329 329 theta = TMath::ACos(ctgTheta / TMath::Sqrt(1.0 + ctgTheta * ctgTheta)); 330 m = candidate->Momentum.M();331 332 330 candidate->Momentum.SetPx(p * TMath::Cos(phi) * TMath::Sin(theta)); 333 331 candidate->Momentum.SetPy(p * TMath::Sin(phi) * TMath::Sin(theta)); 334 332 candidate->Momentum.SetPz(p * TMath::Cos(theta)); 335 //candidate->Momentum.SetE(candidate->Momentum.Pt() * TMath::CosH(eta)); 336 candidate->Momentum.SetE( TMath::Sqrt(m*m + p*p) ); 333 candidate->Momentum.SetE(candidate->Momentum.Pt() * TMath::CosH(eta)); 337 334 candidate->PT = candidate->Momentum.Pt(); 338 335 … … 385 382 candidate->Yd = yd * 1.0E3; 386 383 candidate->Zd = zd * 1.0E3; 387 candidate->Td = -9999*c_light*1E-3; 388 384 389 385 if(fApplyToPileUp || !candidate->IsPU) 390 386 {
Note:
See TracChangeset
for help on using the changeset viewer.