Skip to content

Commit 167199f

Browse files
authored
Merge pull request #42 from alibuild/alibot-cleanup-12677
Please consider the following formatting changes to #12677
2 parents febb409 + 83f7fa0 commit 167199f

File tree

3 files changed

+6
-11
lines changed

3 files changed

+6
-11
lines changed

PWGCF/FemtoDream/Core/femtoDreamCollisionSelection.h

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ class FemtoDreamCollisionSelection
188188
float computeSphericity(T1 const& col, T2 const& tracks)
189189
{
190190
double ptTot = 0.;
191-
double s00 = 0.; //elements of the sphericity matrix taken form EPJC72:2124
191+
double s00 = 0.; // elements of the sphericity matrix taken form EPJC72:2124
192192
double s01 = 0.;
193193
double s10 = 0.;
194194
double s11 = 0.;
@@ -197,7 +197,6 @@ class FemtoDreamCollisionSelection
197197
if (numOfTracks < 3)
198198
return -9999.;
199199

200-
201200
for (auto& track : tracks) {
202201
double pt = track.pt();
203202
double eta = track.eta();
@@ -213,22 +212,21 @@ class FemtoDreamCollisionSelection
213212
s01 += px * py / pt;
214213
s10 = s01;
215214
s11 += py * py / pt;
216-
217215
}
218216

219-
//normalize to total Pt to obtain a linear form:
217+
// normalize to total Pt to obtain a linear form:
220218
if (ptTot == 0.)
221219
return -9999.;
222220
s00 /= ptTot;
223221
s11 /= ptTot;
224222
s10 /= ptTot;
225223

226-
//Calculate the trace of the sphericity matrix:
224+
// Calculate the trace of the sphericity matrix:
227225
double T = s00 + s11;
228-
//Calculate the determinant of the sphericity matrix:
229-
double D = s00 * s11 - s10 * s10; //S10 = S01
226+
// Calculate the determinant of the sphericity matrix:
227+
double D = s00 * s11 - s10 * s10; // S10 = S01
230228

231-
//Calculate the eigenvalues of the sphericity matrix:
229+
// Calculate the eigenvalues of the sphericity matrix:
232230
double lambda1 = 0.5 * (T + std::sqrt(T * T - 4. * D));
233231
double lambda2 = 0.5 * (T - std::sqrt(T * T - 4. * D));
234232

@@ -243,7 +241,6 @@ class FemtoDreamCollisionSelection
243241
spt = 2. * lambda2 / (lambda1 + lambda2);
244242
}
245243

246-
247244
mHistogramRegistry->fill(HIST("Event/Sphericity"), spt);
248245

249246
return spt;

PWGCF/FemtoDream/TableProducer/femtoDreamProducerReducedTask.cxx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,6 @@ struct femtoDreamProducerReducedTask {
120120

121121
colCuts.setCuts(ConfEvtZvtx.value, ConfEvtTriggerCheck.value, ConfEvtTriggerSel.value, ConfEvtOfflineCheck.value, ConfEvtAddOfflineCheck.value, ConfIsRun3.value, ConfEvtMinSphericity.value, ConfEvtSphericityPtmin.value);
122122
colCuts.init(&qaRegistry);
123-
124123

125124
trackCuts.setSelection(ConfTrkCharge, femtoDreamTrackSelection::kSign, femtoDreamSelection::kEqual);
126125
trackCuts.setSelection(ConfTrkPtmin, femtoDreamTrackSelection::kpTMin, femtoDreamSelection::kLowerLimit);

PWGCF/FemtoDream/TableProducer/femtoDreamProducerTask.cxx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
#include "Common/DataModel/TrackSelectionTables.h"
3131
#include "EventFiltering/Zorro.h"
3232

33-
3433
#include "DataFormatsParameters/GRPMagField.h"
3534
#include "DataFormatsParameters/GRPObject.h"
3635
#include "Framework/ASoAHelpers.h"

0 commit comments

Comments
 (0)