Skip to content

Commit 23ad7a8

Browse files
authored
Update femtoDreamCollisionSelection.h
Slight change of the sphericity matrix element definition
1 parent 167199f commit 23ad7a8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

PWGCF/FemtoDream/Core/femtoDreamCollisionSelection.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ class FemtoDreamCollisionSelection
197197
if (numOfTracks < 3)
198198
return -9999.;
199199

200-
for (auto& track : tracks) {
200+
for (auto const& track : tracks) {
201201
double pt = track.pt();
202202
double eta = track.eta();
203203
double px = track.px();
@@ -210,7 +210,7 @@ class FemtoDreamCollisionSelection
210210

211211
s00 += px * px / pt;
212212
s01 += px * py / pt;
213-
s10 = s01;
213+
//s10 = s01;
214214
s11 += py * py / pt;
215215
}
216216

@@ -219,12 +219,12 @@ class FemtoDreamCollisionSelection
219219
return -9999.;
220220
s00 /= ptTot;
221221
s11 /= ptTot;
222-
s10 /= ptTot;
222+
s01 /= ptTot;
223223

224224
// Calculate the trace of the sphericity matrix:
225225
double T = s00 + s11;
226226
// Calculate the determinant of the sphericity matrix:
227-
double D = s00 * s11 - s10 * s10; // S10 = S01
227+
double D = s00 * s11 - s01 * s01; // S10 = S01
228228

229229
// Calculate the eigenvalues of the sphericity matrix:
230230
double lambda1 = 0.5 * (T + std::sqrt(T * T - 4. * D));

0 commit comments

Comments
 (0)