Skip to content

Commit be700ed

Browse files
committed
fixedlinters
1 parent 0b328c0 commit be700ed

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

PWGCF/EbyEFluctuations/Tasks/FactorialMomentsTask.cxx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ struct FactorialMoments {
134134
OutputObjHandlingPolicy::AnalysisObject,
135135
true};
136136
static const Int_t nBins = 52;
137+
constexpr double kMinCharge = 1e-6;
137138
static const Int_t nfqOrder = 6;
138139
Int_t countSamples = 0;
139140
Int_t testc1 = 0, testc2 = 0, testc3 = 0;
@@ -392,7 +393,7 @@ struct FactorialMoments {
392393
binConEvent = {{{0, 0, 0, 0, 0}}};
393394
for (Int_t const& track : tracks) {
394395
double recoCharge = (track.sign() != 0) ? track.sign() : 0.;
395-
if (std::abs(track.eta()) centralEta && track.isGlobalTrack() && std::abs(recoCharge) >= 1e-6) {
396+
if (std::abs(track.eta()) centralEta && track.isGlobalTrack() && std::abs(recoCharge) >= kMinCharge) {
396397
histos.fill(HIST("mCollID"), track.collisionId());
397398
histos.fill(HIST("mNFindableClsTPC"), track.tpcNClsFindable());
398399
histos.fill(HIST("mNClsTPC"), track.tpcNClsFound());
@@ -423,7 +424,7 @@ struct FactorialMoments {
423424
double charge = pdgInfo->Charge();
424425
double physCharge = charge / 3.0;
425426
histos.fill(HIST("mChargeBefore"), physCharge);
426-
if (mc.isPhysicalPrimary() && std::abs(mc.eta()) centralEta && std::abs(physCharge) >= 1e-6) {
427+
if (mc.isPhysicalPrimary() && std::abs(mc.eta()) centralEta && std::abs(physCharge) >= kMinCharge) {
427428
histos.fill(HIST("mChargeAfter"), physCharge);
428429
histos.fill(HIST("mEta"), mc.eta());
429430
histos.fill(HIST("mPt"), mc.pt());

0 commit comments

Comments
 (0)