Skip to content

Commit 85013e3

Browse files
committed
Formatting
1 parent 24151df commit 85013e3

File tree

1 file changed

+26
-18
lines changed

1 file changed

+26
-18
lines changed

PWGLF/Tasks/Strangeness/strangeCascTrack.cxx

Lines changed: 26 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -160,33 +160,40 @@ struct StrangeCascTrack {
160160
{
161161
bool passedAllSels = true;
162162
//* inel>0 cut
163-
if (!selCuts.cutDoINEL || collision.multNTracksPVeta1() > 0)
164-
{if (fillHists) histos.fill(HIST("Rec-Events/EvFilter"), 0.5);}
165-
else
163+
if (!selCuts.cutDoINEL || collision.multNTracksPVeta1() > 0) {
164+
if (fillHists)
165+
histos.fill(HIST("Rec-Events/EvFilter"), 0.5);
166+
} else
166167
passedAllSels = false;
167168
//* pvz cut
168-
if (std::abs(collision.posZ()) < selCuts.cutZVertex)
169-
{if (fillHists) histos.fill(HIST("Rec-Events/EvFilter"), 1.5);}
170-
else
169+
if (std::abs(collision.posZ()) < selCuts.cutZVertex) {
170+
if (fillHists)
171+
histos.fill(HIST("Rec-Events/EvFilter"), 1.5);
172+
} else
171173
passedAllSels = false;
172174
//* sel8 cut
173-
if (!selCuts.cutDoSel8 || collision.sel8())
174-
{if (fillHists) histos.fill(HIST("Rec-Events/EvFilter"), 2.5);}
175-
else
175+
if (!selCuts.cutDoSel8 || collision.sel8()) {
176+
if (fillHists)
177+
histos.fill(HIST("Rec-Events/EvFilter"), 2.5);
178+
} else
176179
passedAllSels = false;
177180
//* pileup cut
178-
if (!selCuts.cutDoNoPileup || collision.selection_bit(o2::aod::evsel::kNoSameBunchPileup))
179-
{if (fillHists) histos.fill(HIST("Rec-Events/EvFilter"), 3.5);}
180-
else
181+
if (!selCuts.cutDoNoPileup || collision.selection_bit(o2::aod::evsel::kNoSameBunchPileup)) {
182+
if (fillHists)
183+
histos.fill(HIST("Rec-Events/EvFilter"), 3.5);
184+
} else
181185
passedAllSels = false;
182186
//* good ft0 z-vertex vs pv cut
183-
if (!selCuts.cutDoGoodFT0 || collision.selection_bit(o2::aod::evsel::kIsGoodZvtxFT0vsPV))
184-
{if (fillHists) histos.fill(HIST("Rec-Events/EvFilter"), 4.5);}
185-
else
187+
if (!selCuts.cutDoGoodFT0 || collision.selection_bit(o2::aod::evsel::kIsGoodZvtxFT0vsPV)) {
188+
if (fillHists)
189+
histos.fill(HIST("Rec-Events/EvFilter"), 4.5);
190+
} else
186191
passedAllSels = false;
187192
//* all cuts
188-
if (passedAllSels)
189-
{if (fillHists) histos.fill(HIST("Rec-Events/EvFilter"), 5.5);}
193+
if (passedAllSels) {
194+
if (fillHists)
195+
histos.fill(HIST("Rec-Events/EvFilter"), 5.5);
196+
}
190197
return passedAllSels;
191198
}
192199
// checks cascade pt
@@ -1037,7 +1044,8 @@ struct StrangeCascTrack {
10371044
auto slicedRecColls = recColls.sliceBy(perMcCollision, genColl.globalIndex());
10381045
bool recoCounter = false;
10391046
for (auto const& recColl : slicedRecColls) {
1040-
if (!isValidEvent(recColl, false)) continue; // from this point on - only gen events (and cascades from such events) that were reconstructed
1047+
if (!isValidEvent(recColl, false))
1048+
continue; // from this point on - only gen events (and cascades from such events) that were reconstructed
10411049
int64_t genCollId = recColl.straMCCollisionId();
10421050
if (genColl.index() != genCollId)
10431051
continue; // safety check for correct slicing

0 commit comments

Comments
 (0)