Skip to content

Commit 194a8cb

Browse files
authored
Add files via upload
1 parent a727717 commit 194a8cb

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

PWGLF/TableProducer/Strangeness/hStrangeCorrelationFilter.cxx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,11 @@ 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"};
86+
Configurable<bool> applyNewMCSelection{"applyNewMCSelection", false, "apply new MC Generated selection"};
8487
} eventSelections;
8588

8689
struct : ConfigurableGroup {
@@ -366,11 +369,11 @@ struct HStrangeCorrelationFilter {
366369
template <typename TCollision>
367370
bool isCollisionSelectedPbPb(TCollision collision)
368371
{
369-
if (!collision.selection_bit(aod::evsel::kIsTriggerTVX)) /* FT0 vertex (acceptable FT0C-FT0A time difference) collisions */
372+
if (!collision.selection_bit(aod::evsel::kIsTriggerTVX) && eventSelections.requireGoodTriggerTVX) /* FT0 vertex (acceptable FT0C-FT0A time difference) collisions */
370373
return false;
371-
if (!collision.selection_bit(o2::aod::evsel::kIsGoodITSLayersAll)) // cut time intervals with dead ITS staves
374+
if (!collision.selection_bit(o2::aod::evsel::kIsGoodITSLayersAll) && eventSelections.requireAllGoodITSLayers) // cut time intervals with dead ITS staves
372375
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
376+
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
374377
return false;
375378
auto occupancy = collision.trackOccupancyInTimeRange();
376379
if (occupancy < cfgCutOccupancyLow || occupancy > cfgCutOccupancyHigh) /* Below min occupancy and Above max occupancy*/

0 commit comments

Comments
 (0)