Changeset b68a60f in git for modules/PileUpMerger.cc
- Timestamp:
- May 16, 2013, 3:51:19 PM (12 years ago)
- Branches:
- ImprovedOutputFile, Timing, dual_readout, llp, master
- Children:
- ae1d49f
- Parents:
- cf22deb
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
modules/PileUpMerger.cc
rcf22deb rb68a60f 87 87 Float_t x, y, z, t; 88 88 Float_t px, py, pz, e; 89 Double_t dz ;89 Double_t dz, dphi; 90 90 Int_t poisson, event; 91 91 Long64_t allEntries, entry; … … 116 116 117 117 dz = gRandom->Gaus(0.0, fZVertexSpread); 118 dphi = gRandom->Uniform(-TMath::Pi(), TMath::Pi()); 118 119 119 120 while(fReader->ReadParticle(pid, x, y, z, t, px, py, pz, e)) … … 132 133 133 134 candidate->Momentum.SetPxPyPzE(px, py, pz, e); 135 candidate->Momentum.RotateZ(dphi); 136 134 137 candidate->Position.SetXYZT(x, y, z + dz, t); 138 candidate->Position.RotateZ(dphi); 135 139 136 140 fOutputArray->Add(candidate);
Note:
See TracChangeset
for help on using the changeset viewer.