|
34 | 34 | #include "PWGLF/DataModel/LFStrangenessTables.h" |
35 | 35 |
|
36 | 36 | #include "Common/CCDB/EventSelectionParams.h" |
| 37 | +#include "Common/CCDB/RCTSelectionFlags.h" |
37 | 38 | #include "Common/CCDB/TriggerAliases.h" |
38 | 39 | #include "Common/CCDB/ctpRateFetcher.h" |
39 | 40 | #include "Common/Core/RecoDecay.h" |
@@ -86,6 +87,7 @@ using namespace o2::analysis::femto_universe; |
86 | 87 | using namespace o2::framework; |
87 | 88 | using namespace o2::framework::expressions; |
88 | 89 | using namespace o2::constants::physics; |
| 90 | +using namespace o2::aod::rctsel; |
89 | 91 |
|
90 | 92 | namespace o2::aod |
91 | 93 | { |
@@ -137,6 +139,8 @@ struct FemtoUniverseProducerTask { |
137 | 139 | Produces<aod::FDExtMCParticles> outputDebugPartsMC; |
138 | 140 | Produces<aod::FDCascParticles> outputCascParts; |
139 | 141 |
|
| 142 | + RCTFlagsChecker rctChecker; |
| 143 | + |
140 | 144 | Configurable<bool> confIsDebug{"confIsDebug", true, "Enable Debug tables"}; |
141 | 145 | Configurable<bool> confFillITSPid{"confFillITSPid", false, "Fill ITSPid information"}; |
142 | 146 | Configurable<bool> confIsUseCutculator{"confIsUseCutculator", true, "Enable cutculator for track cuts"}; |
@@ -188,6 +192,7 @@ struct FemtoUniverseProducerTask { |
188 | 192 | Configurable<int> confTPCOccupancyMin{"confTPCOccupancyMin", 0, "Minimum value for TPC Occupancy selection"}; |
189 | 193 | Configurable<int> confTPCOccupancyMax{"confTPCOccupancyMax", 5000, "Maximum value for TPC Occupancy selection"}; |
190 | 194 | Configurable<bool> confIsCent{"confIsCent", true, "Centrality or multiplicity selection"}; |
| 195 | + Configurable<bool> confIsCheckRCTFlags{"confIsCheckRCTFlags", true, "Use RCTFlags"}; |
191 | 196 | } ConfGeneral; |
192 | 197 | Filter customCollCentFilter = (aod::cent::centFT0C > ConfGeneral.confCentFT0Min) && |
193 | 198 | (aod::cent::centFT0C < ConfGeneral.confCentFT0Max); |
@@ -595,6 +600,7 @@ struct FemtoUniverseProducerTask { |
595 | 600 | } |
596 | 601 |
|
597 | 602 | zorroSummary.setObject(zorro.getZorroSummary()); |
| 603 | + rctChecker.init("CBT_hadronPID", false, true); |
598 | 604 |
|
599 | 605 | colCuts.setCuts(ConfGeneral.confEvtZvtx, ConfGeneral.confEvtTriggerCheck, ConfGeneral.confEvtTriggerSel, ConfGeneral.confEvtOfflineCheck, confIsRun3, ConfGeneral.confCentFT0Min, ConfGeneral.confCentFT0Max); |
600 | 606 | colCuts.init(&qaRegistry); |
@@ -1053,6 +1059,9 @@ struct FemtoUniverseProducerTask { |
1053 | 1059 | template <bool isMC, typename CollisionType, typename TrackType> |
1054 | 1060 | bool fillCollisions(CollisionType const& col, TrackType const& tracks) |
1055 | 1061 | { |
| 1062 | + if (ConfGeneral.confIsCheckRCTFlags && !rctChecker(col)) { |
| 1063 | + return false; |
| 1064 | + } |
1056 | 1065 | const auto vtxZ = col.posZ(); |
1057 | 1066 | float mult = 0; |
1058 | 1067 | int multNtr = 0; |
|
0 commit comments