Skip to content

Commit 6547610

Browse files
authored
[PWGLF] Added a switch for the collision selection filter. (#15699)
1 parent 61a25c4 commit 6547610

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

PWGLF/TableProducer/Strangeness/hStrangeCorrelationFilter.cxx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ struct HStrangeCorrelationFilter {
7979
Configurable<float> zVertexCut{"zVertexCut", 10, "Cut on PV position"};
8080
Configurable<bool> selectINELgtZERO{"selectINELgtZERO", true, "select INEL>0 events"};
8181
Configurable<bool> requireAllGoodITSLayers{"requireAllGoodITSLayers", false, " require that in the event all ITS are good"};
82+
Configurable<bool> requireGoodTriggerTVX{"requireGoodTriggerTVX", false, " require acceptable FT0C-FT0A time difference"};
83+
Configurable<bool> requireGoodZvtxFT0vsPV{"requireGoodZvtxFT0vsPV", false, " require small difference between z-vertex from PV and from FT0"};
8284
Configurable<float> minCentPercent{"minCentPercent", 0, "minimum centrality percentage"};
8385
Configurable<float> maxCentPercent{"maxCentPercent", 100, "maximum centrality percentage"};
8486
} eventSelections;
@@ -366,11 +368,11 @@ struct HStrangeCorrelationFilter {
366368
template <typename TCollision>
367369
bool isCollisionSelectedPbPb(TCollision collision)
368370
{
369-
if (!collision.selection_bit(aod::evsel::kIsTriggerTVX)) /* FT0 vertex (acceptable FT0C-FT0A time difference) collisions */
371+
if (!collision.selection_bit(aod::evsel::kIsTriggerTVX) && eventSelections.requireGoodTriggerTVX) /* FT0 vertex (acceptable FT0C-FT0A time difference) collisions */
370372
return false;
371-
if (!collision.selection_bit(o2::aod::evsel::kIsGoodITSLayersAll)) // cut time intervals with dead ITS staves
373+
if (!collision.selection_bit(o2::aod::evsel::kIsGoodITSLayersAll) && eventSelections.requireAllGoodITSLayers) // cut time intervals with dead ITS staves
372374
return false;
373-
if (!collision.selection_bit(o2::aod::evsel::kIsGoodZvtxFT0vsPV)) // removes collisions with large differences between z of PV by tracks and z of PV from FT0 A-C time difference
375+
if (!collision.selection_bit(o2::aod::evsel::kIsGoodZvtxFT0vsPV) && eventSelections.requireGoodZvtxFT0vsPV) // removes collisions with large differences between z of PV by tracks and z of PV from FT0 A-C time difference
374376
return false;
375377
auto occupancy = collision.trackOccupancyInTimeRange();
376378
if (occupancy < cfgCutOccupancyLow || occupancy > cfgCutOccupancyHigh) /* Below min occupancy and Above max occupancy*/

0 commit comments

Comments
 (0)