Skip to content

Commit 0480d39

Browse files
committed
Please consider the following formatting changes
1 parent 24f175c commit 0480d39

1 file changed

Lines changed: 30 additions & 33 deletions

File tree

PWGCF/EbyEFluctuations/Tasks/netchargeFluctuations.cxx

Lines changed: 30 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,6 @@ struct NetchargeFluctuations {
266266
if (std::abs(coll.posZ()) > vertexZcut)
267267
return false;
268268

269-
270269
if constexpr (run == kRun3) {
271270
if (cSel8Trig && !coll.sel8()) {
272271
return false;
@@ -574,7 +573,6 @@ struct NetchargeFluctuations {
574573
return;
575574
histogramRegistry.fill(HIST("delta_eta/cent"), cent);
576575

577-
578576
int fpos = 0, fneg = 0, posneg = 0, termn = 0, termp = 0, nch = 0, nchCor = 0, nchTotal = 0;
579577
for (const auto& track : tracks) {
580578
nchTotal += 1;
@@ -587,41 +585,40 @@ struct NetchargeFluctuations {
587585
double weight = 1.0 / eff;
588586
nchCor += weight;
589587

590-
int fpos = 0, fneg = 0, posneg = 0, termn = 0, termp = 0;
591-
for (const auto& track : tracks) {
592-
if (!selTrack(track))
593-
continue;
588+
int fpos = 0, fneg = 0, posneg = 0, termn = 0, termp = 0;
589+
for (const auto& track : tracks) {
590+
if (!selTrack(track))
591+
continue;
594592

595-
double eta = track.eta();
596-
if (eta < deta1 || eta > deta2)
597-
continue;
593+
double eta = track.eta();
594+
if (eta < deta1 || eta > deta2)
595+
continue;
598596

599-
histogramRegistry.fill(HIST("delta_eta/track_eta"), eta);
597+
histogramRegistry.fill(HIST("delta_eta/track_eta"), eta);
600598

601-
if (track.sign() == 1)
602-
fpos++;
603-
else if (track.sign() == -1)
604-
fneg++;
599+
if (track.sign() == 1)
600+
fpos++;
601+
else if (track.sign() == -1)
602+
fneg++;
603+
}
604+
termp = fpos * (fpos - 1);
605+
termn = fneg * (fneg - 1);
606+
posneg = fpos * fneg;
607+
608+
float deltaEtaWidth = deta2 - deta1 + 1e-5f;
609+
610+
histogramRegistry.fill(HIST("delta_eta/nchTotal"), deltaEtaWidth, nchTotal);
611+
histogramRegistry.fill(HIST("delta_eta/nch"), deltaEtaWidth, nch);
612+
histogramRegistry.fill(HIST("delta_eta/nchCor"), deltaEtaWidth, nchCor);
613+
614+
histogramRegistry.fill(HIST("delta_eta/pos"), deltaEtaWidth, fpos);
615+
histogramRegistry.fill(HIST("delta_eta/neg"), deltaEtaWidth, fneg);
616+
histogramRegistry.fill(HIST("delta_eta/termp"), deltaEtaWidth, termp);
617+
histogramRegistry.fill(HIST("delta_eta/termn"), deltaEtaWidth, termn);
618+
histogramRegistry.fill(HIST("delta_eta/pos_sq"), deltaEtaWidth, fpos * fpos);
619+
histogramRegistry.fill(HIST("delta_eta/neg_sq"), deltaEtaWidth, fneg * fneg);
620+
histogramRegistry.fill(HIST("delta_eta/posneg"), deltaEtaWidth, posneg);
605621
}
606-
termp = fpos * (fpos - 1);
607-
termn = fneg * (fneg - 1);
608-
posneg = fpos * fneg;
609-
610-
float deltaEtaWidth = deta2 - deta1 + 1e-5f;
611-
612-
613-
histogramRegistry.fill(HIST("delta_eta/nchTotal"), deltaEtaWidth, nchTotal);
614-
histogramRegistry.fill(HIST("delta_eta/nch"), deltaEtaWidth, nch);
615-
histogramRegistry.fill(HIST("delta_eta/nchCor"), deltaEtaWidth, nchCor);
616-
617-
histogramRegistry.fill(HIST("delta_eta/pos"), deltaEtaWidth, fpos);
618-
histogramRegistry.fill(HIST("delta_eta/neg"), deltaEtaWidth, fneg);
619-
histogramRegistry.fill(HIST("delta_eta/termp"), deltaEtaWidth, termp);
620-
histogramRegistry.fill(HIST("delta_eta/termn"), deltaEtaWidth, termn);
621-
histogramRegistry.fill(HIST("delta_eta/pos_sq"), deltaEtaWidth, fpos * fpos);
622-
histogramRegistry.fill(HIST("delta_eta/neg_sq"), deltaEtaWidth, fneg * fneg);
623-
histogramRegistry.fill(HIST("delta_eta/posneg"), deltaEtaWidth, posneg);
624-
}
625622

626623
SliceCache cache;
627624
Preslice<aod::McParticles> mcTrack = o2::aod::mcparticle::mcCollisionId;

0 commit comments

Comments
 (0)