Skip to content

Commit 249446f

Browse files
authored
Merge pull request #15 from alibuild/alibot-cleanup-15714
[PWGEM] Please consider the following formatting changes to #15714
2 parents 314ac67 + e1173a6 commit 249446f

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

PWGEM/PhotonMeson/Tasks/emcalPi0Qc.cxx

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ struct EmcalPi0Qc {
320320
void supermoduleHistHelperMeson(float minv, float timeSinceSOR)
321321
{
322322
static constexpr std::string_view MesonInvMassHistSM[20] = {"mesonInvMassVsTimeStamp/mesonInvMassVsTimeStampSM0", "mesonInvMassVsTimeStamp/mesonInvMassVsTimeStampSM1", "mesonInvMassVsTimeStamp/mesonInvMassVsTimeStampSM2", "mesonInvMassVsTimeStamp/mesonInvMassVsTimeStampSM3", "mesonInvMassVsTimeStamp/mesonInvMassVsTimeStampSM4", "mesonInvMassVsTimeStamp/mesonInvMassVsTimeStampSM5", "mesonInvMassVsTimeStamp/mesonInvMassVsTimeStampSM6", "mesonInvMassVsTimeStamp/mesonInvMassVsTimeStampSM7", "mesonInvMassVsTimeStamp/mesonInvMassVsTimeStampSM8", "mesonInvMassVsTimeStamp/mesonInvMassVsTimeStampSM9", "mesonInvMassVsTimeStamp/mesonInvMassVsTimeStampSM10", "mesonInvMassVsTimeStamp/mesonInvMassVsTimeStampSM11", "mesonInvMassVsTimeStamp/mesonInvMassVsTimeStampSM12", "mesonInvMassVsTimeStamp/mesonInvMassVsTimeStampSM13", "mesonInvMassVsTimeStamp/mesonInvMassVsTimeStampSM14", "mesonInvMassVsTimeStamp/mesonInvMassVsTimeStampSM15", "mesonInvMassVsTimeStamp/mesonInvMassVsTimeStampSM16", "mesonInvMassVsTimeStamp/mesonInvMassVsTimeStampSM17", "mesonInvMassVsTimeStamp/mesonInvMassVsTimeStampSM18", "mesonInvMassVsTimeStamp/mesonInvMassVsTimeStampSM19"};
323-
mHistManager.fill(HIST(MesonInvMassHistSM[supermoduleID]), minv, timeSinceSOR,mWeight);
323+
mHistManager.fill(HIST(MesonInvMassHistSM[supermoduleID]), minv, timeSinceSOR, mWeight);
324324
}
325325

326326
void fillSupermoduleHistogramsPhoton(int supermoduleID, float time, float m02, int NCell, float timeSinceSOR)
@@ -571,47 +571,47 @@ struct EmcalPi0Qc {
571571
}
572572
}
573573

574-
mHistManager.fill(HIST("events"), 1, mWeight); // Fill "All events" bin of event histogram
574+
mHistManager.fill(HIST("events"), 1, mWeight); // Fill "All events" bin of event histogram
575575
mHistManager.fill(HIST("eventsWithoutWeight"), 1); // Fill "All events" bin of event histogram without weight
576-
if(collision.has_mcCollision()) {
576+
if (collision.has_mcCollision()) {
577577
mHistManager.fill(HIST("eventsWithoutWeight"), 2); // Fill "Has MC collision" bin of event histogram without weight
578578
}
579579
if (mDoEventSel.value && (!collision.sel8())) { // Check sel8
580580
continue;
581581
}
582582

583-
mHistManager.fill(HIST("events"), 2, mWeight); // Fill sel8
584-
mHistManager.fill(HIST("eventsWithoutWeight"), 3); // Fill sel8 bin of event histogram without weight
583+
mHistManager.fill(HIST("events"), 2, mWeight); // Fill sel8
584+
mHistManager.fill(HIST("eventsWithoutWeight"), 3); // Fill sel8 bin of event histogram without weight
585585
if (mRequireCaloReadout.value && !collision.alias_bit(kTVXinEMC)) { // Check whether EMC was read out
586586
continue;
587587
}
588-
mHistManager.fill(HIST("events"), 3, mWeight); // Fill readout
589-
mHistManager.fill(HIST("eventsWithoutWeight"), 4); // Fill readout bin of event histogram without weight
588+
mHistManager.fill(HIST("events"), 3, mWeight); // Fill readout
589+
mHistManager.fill(HIST("eventsWithoutWeight"), 4); // Fill readout bin of event histogram without weight
590590
if (mDoEventSel.value && collision.numContrib() < 0.5) { // Skip collisions without contributors
591591
continue;
592592
}
593-
mHistManager.fill(HIST("events"), 4, mWeight); // Fill >1 vtx contr. bin of event histogram
593+
mHistManager.fill(HIST("events"), 4, mWeight); // Fill >1 vtx contr. bin of event histogram
594594
mHistManager.fill(HIST("eventsWithoutWeight"), 5); // Fill >1 vtx contr. bin of event histogram without weight
595595
mHistManager.fill(HIST("eventVertexZAll"), collision.posZ(), mWeight);
596596
if (mVertexCut > 0 && std::abs(collision.posZ()) > mVertexCut) {
597597
continue;
598598
}
599-
mHistManager.fill(HIST("events"), 5, mWeight); // Fill z-Vertex selected bin of event histogram
599+
mHistManager.fill(HIST("events"), 5, mWeight); // Fill z-Vertex selected bin of event histogram
600600
mHistManager.fill(HIST("eventsWithoutWeight"), 6); // Fill z-Vertex selected bin of event histogram without weight
601601
mHistManager.fill(HIST("eventVertexZSelected"), collision.posZ(), mWeight);
602602

603603
if (mDoEventSel.value && collision.ambiguous()) { // Skip ambiguous collisions (those that are in BCs including multiple collisions)
604604
continue;
605605
}
606-
mHistManager.fill(HIST("events"), 6, mWeight); // Fill "One collision in BC" bin of event histogram
606+
mHistManager.fill(HIST("events"), 6, mWeight); // Fill "One collision in BC" bin of event histogram
607607
mHistManager.fill(HIST("eventsWithoutWeight"), 7); // Fill "One collision in BC" bin of event histogram without weight
608608
if (mDoEventSel.value) {
609609
auto found = cellGlobalBCs.find(collision.foundBC_as<MyBCs>().globalBC());
610610
if (mRequireEMCalCells.value && (found == cellGlobalBCs.end() || found->second == 0)) { // Skip collisions without any readout EMCal cells
611611
continue;
612612
}
613613
}
614-
mHistManager.fill(HIST("events"), 7, mWeight); // Fill at least one non0 cell in EMCal of event histogram (Selected)
614+
mHistManager.fill(HIST("events"), 7, mWeight); // Fill at least one non0 cell in EMCal of event histogram (Selected)
615615
mHistManager.fill(HIST("eventsWithoutWeight"), 8); // Fill at least one non0 cell in EMCal of event histogram (Selected) without weight
616616
// Get BC and run number
617617
int64_t foundBCId = collision.foundBCId();
@@ -812,7 +812,6 @@ struct EmcalPi0Qc {
812812
}
813813
// TODO: for now this part makes no sense when running JJ MC due to weights
814814
calculateMixedBack(mPhotons[ig1]);
815-
816815
}
817816

818817
evtMix.addEvent(mPhotons);

0 commit comments

Comments
 (0)