Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions PWGUD/Core/DGSelector.h
Original file line number Diff line number Diff line change
Expand Up @@ -162,23 +162,23 @@ class DGSelector
// good collision selection per-partes
std::vector<int> sels = diffCuts.collisionSel();
// timeframe border
if (sels[0] && !udhelpers::cutNoTimeFrameBorder(collision)){
if (sels[0] && !udhelpers::cutNoTimeFrameBorder(collision)) {
return 13;
}
// same bunch pileup
if (sels[1] && !udhelpers::cutNoSameBunchPileup(collision)){
if (sels[1] && !udhelpers::cutNoSameBunchPileup(collision)) {
return 14;
}
// ITS ROF border
if (sels[2] && !udhelpers::cutNoITSROFrameBorder(collision)){
if (sels[2] && !udhelpers::cutNoITSROFrameBorder(collision)) {
return 15;
}
// z-vtx from PV and FT0 agrees
if (sels[3] && !udhelpers::cutIsGoodZvtxFT0vsPV(collision)){
if (sels[3] && !udhelpers::cutIsGoodZvtxFT0vsPV(collision)) {
return 16;
}
// is ITS-TPC track
if (sels[4] && !udhelpers::cutIsVertexITSTPC(collision)){
if (sels[4] && !udhelpers::cutIsVertexITSTPC(collision)) {
return 17;
}

Expand Down
19 changes: 12 additions & 7 deletions PWGUD/Core/UDHelpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@ bool cutNoTimeFrameBorder(T const& coll)
// https://its.cern.ch/jira/browse/O2-4623
// Return true when event is good.
{
return coll.selection_bit(o2::aod::evsel::kNoTimeFrameBorder);
return coll.selection_bit(o2::aod::evsel::kNoTimeFrameBorder);
}

// -----------------------------------------------------------------------------
Expand Down Expand Up @@ -582,7 +582,7 @@ bool cutIsGoodZvtxFT0vsPV(T const& coll)
// The large vertexZ difference can be due to the in-bunch pileup or wrong BC assigned to a collision.
// Return true when event is good.
{
return coll.selection_bit(o2::aod::evsel::kIsGoodZvtxFT0vsPV);
return coll.selection_bit(o2::aod::evsel::kIsGoodZvtxFT0vsPV);
}

// -----------------------------------------------------------------------------
Expand All @@ -604,11 +604,16 @@ bool goodCollision(T const& coll, DGCutparHolder const& diffCuts)
{
bool accepted = true;
std::vector<int> sels = diffCuts.collisionSel();
if (sels[0]) accepted = cutNoTimeFrameBorder(coll);
if (sels[1]) accepted = cutNoSameBunchPileup(coll);
if (sels[2]) accepted = cutNoITSROFrameBorder(coll);
if (sels[3]) accepted = cutIsGoodZvtxFT0vsPV(coll);
if (sels[4]) accepted = cutIsVertexITSTPC(coll);
if (sels[0])
accepted = cutNoTimeFrameBorder(coll);
if (sels[1])
accepted = cutNoSameBunchPileup(coll);
if (sels[2])
accepted = cutNoITSROFrameBorder(coll);
if (sels[3])
accepted = cutIsGoodZvtxFT0vsPV(coll);
if (sels[4])
accepted = cutIsVertexITSTPC(coll);

return accepted;
}
Expand Down
Loading