Skip to content

Commit 13f091f

Browse files
committed
Updated format tableDiffWake 3
1 parent 25d674a commit 13f091f

1 file changed

Lines changed: 41 additions & 43 deletions

File tree

PWGJE/TableProducer/tableDiffWake.cxx

Lines changed: 41 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -204,63 +204,61 @@ struct tableDiffWake {
204204

205205
for (auto& track : tracks) {
206206

207-
// Track cut
208-
if (!track.isGlobalTrack())
207+
// Track cut
208+
if (!track.isGlobalTrack())
209209
continue; // General track cuts
210210

211-
histos.fill(HIST("etaHistogram"), track.eta());
212-
histos.fill(HIST("pTHistogram"), track.pt());
211+
histos.fill(HIST("etaHistogram"), track.eta());
212+
histos.fill(HIST("pTHistogram"), track.pt());
213213

214-
//------------ Translate values to less memory consuming values --------------------
215-
// Px, Py, Pz
216-
ULong64_t Substitute_p = 0;
214+
//------------ Translate values to less memory consuming values --------------------
215+
// Px, Py, Pz
216+
ULong64_t Substitute_p = 0;
217217

218-
Long64_t Particle_px = (track.px() * 6000);
219-
if (Particle_px < 0)
218+
Long64_t Particle_px = (track.px() * 6000);
219+
if (Particle_px < 0)
220220
Substitute_p |= (ULong64_t)1 << 20;
221-
if (Particle_px < 0)
221+
if (Particle_px < 0)
222222
Particle_px = (-1) * Particle_px;
223-
for (Int_t i_bit = 0; i_bit < 20; i_bit++) {
223+
for (Int_t i_bit = 0; i_bit < 20; i_bit++) {
224224
if ((Particle_px & ((Long64_t)1 << i_bit)))
225-
Substitute_p |= (ULong64_t)1 << i_bit;
226-
};
225+
Substitute_p |= (ULong64_t)1 << i_bit;
226+
};
227227

228-
Long64_t Particle_py = (track.py() * 6000);
229-
if(Particle_py < 0)
230-
Substitute_p |=(ULong64_t)1 << 41;
231-
if(Particle_py < 0)
228+
Long64_t Particle_py = (track.py() * 6000);
229+
if (Particle_py < 0)
230+
Substitute_p |= (ULong64_t)1 << 41;
231+
if (Particle_py < 0)
232232
Particle_py = (-1) * Particle_py;
233-
for(Int_t i_bit = 21; i_bit < 41 ;i_bit++)
234-
{
235-
if((Particle_py & ((Long64_t)1 << (i_bit-21))))
236-
Substitute_p |= (ULong64_t)1 << i_bit;
237-
};
233+
for (Int_t i_bit = 21; i_bit < 41; i_bit++) {
234+
if ((Particle_py & ((Long64_t)1 << (i_bit - 21))))
235+
Substitute_p |= (ULong64_t)1 << i_bit;
236+
};
238237

239-
Long64_t Particle_pz = (track.pz() * 6000);
240-
if(Particle_pz < 0)
241-
Substitute_p |=(ULong64_t)1 << 62;
242-
if(Particle_pz < 0)
238+
Long64_t Particle_pz = (track.pz() * 6000);
239+
if (Particle_pz < 0)
240+
Substitute_p |= (ULong64_t)1 << 62;
241+
if (Particle_pz < 0)
243242
Particle_pz = (-1) * Particle_pz;
244-
for(Int_t i_bit = 42; i_bit < 62 ;i_bit++)
245-
{
246-
if((Particle_pz & ((Long64_t)1 << (i_bit-42))))
247-
Substitute_p |= (ULong64_t)1 << i_bit;
248-
};
243+
for (Int_t i_bit = 42; i_bit < 62; i_bit++) {
244+
if ((Particle_pz & ((Long64_t)1 << (i_bit - 42))))
245+
Substitute_p |= (ULong64_t)1 << i_bit;
246+
};
249247

250-
//dEdx
251-
UShort_t Substitute_dEdx = (UShort_t)(track.tpcSignal() * 10);
248+
// dEdx
249+
UShort_t Substitute_dEdx = (UShort_t)(track.tpcSignal() * 10);
252250

253-
//DCA
254-
Short_t Substitute_DCAXY = (Short_t)(track.dcaXY() * 100);
255-
Short_t Substitute_DCAZ = (Short_t)(track.dcaZ() * 100);
251+
// DCA
252+
Short_t Substitute_DCAXY = (Short_t)(track.dcaXY() * 100);
253+
Short_t Substitute_DCAZ = (Short_t)(track.dcaZ() * 100);
256254

257-
//--------------- Fill track table ------------------
258-
testtrack(track.collisionId(),
259-
track.sign(),
260-
Substitute_p,
261-
Substitute_dEdx,
262-
Substitute_DCAXY,
263-
Substitute_DCAZ);
255+
//--------------- Fill track table ------------------
256+
testtrack(track.collisionId(),
257+
track.sign(),
258+
Substitute_p,
259+
Substitute_dEdx,
260+
Substitute_DCAXY,
261+
Substitute_DCAZ);
264262
}
265263
}
266264
};

0 commit comments

Comments
 (0)