- Timestamp:
- Jun 2, 2016, 3:36:31 PM (9 years ago)
- Branches:
- ImprovedOutputFile, Timing, dual_readout, llp, master
- Children:
- 9fb48ad
- Parents:
- ab3bdd9
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
modules/PileUpMerger.cc
rab3bdd9 r6fbd089 116 116 TParticlePDG *pdgParticle; 117 117 Int_t pid, nch, nvtx = -1; 118 Float_t x, y, z, t, vx, vy ;118 Float_t x, y, z, t, vx, vy, vz, vt; 119 119 Float_t px, py, pz, e, pt; 120 120 Double_t dz, dphi, dt, sumpt2; … … 136 136 vx = 0.0; 137 137 vy = 0.0; 138 vz = 0.0; 139 vt = 0.0; 140 138 141 numberOfParticles = fInputArray->GetEntriesFast(); 139 142 nch = 0; … … 147 150 t = candidate->Position.T(); 148 151 pt = candidate->Momentum.Pt(); 152 153 vz += z+dz; 154 vt += t+dt; 155 149 156 candidate->Position.SetZ(z + dz); 150 157 candidate->Position.SetT(t + dt); … … 162 169 vx /= numberOfParticles; 163 170 vy /= numberOfParticles; 171 vz /= numberOfParticles; 172 vt /= numberOfParticles; 173 164 174 } 165 175 … … 168 178 169 179 vertex = factory->NewCandidate(); 170 vertex->Position.SetXYZT(vx, vy, dz, dt);180 vertex->Position.SetXYZT(vx, vy, vz, vt); 171 181 vertex->ClusterIndex = nvtx; 172 182 vertex->ClusterNDF = nch; 173 183 vertex->SumPT2 = sumpt2; 174 vertex->GenSumPT2 = sumpt2; 184 vertex->GenSumPT2 = sumpt2; 175 185 176 186 fVertexOutputArray->Add(vertex);
Note:
See TracChangeset
for help on using the changeset viewer.