@@ -196,12 +196,12 @@ struct StrangenessBuilder {
196196 kCascFoundTags ,
197197 nTables };
198198
199- enum V0PreSelection : uint8_t { selGamma = static_cast < uint8_t >( 1 ) << static_cast < uint8_t >( 0 ) ,
199+ enum V0PreSelection : uint8_t { selGamma = 0 ,
200200 selK0Short,
201201 selLambda,
202202 selAntiLambda };
203203
204- enum CascPreSelection : uint8_t { selXiMinus = static_cast < uint8_t >( 1 ) << static_cast < uint8_t >( 0 ) ,
204+ enum CascPreSelection : uint8_t { selXiMinus = 0 ,
205205 selXiPlus,
206206 selOmegaMinus,
207207 selOmegaPlus };
@@ -716,11 +716,6 @@ struct StrangenessBuilder {
716716 straHelper.cascadeselections .maxDaughterEta = cascadeBuilderOpts.maxDaughterEta ;
717717 }
718718
719- bool verifyMask (uint8_t bitmap, uint8_t mask)
720- {
721- return (bitmap & mask) == mask;
722- }
723-
724719 // for sorting
725720 template <typename T>
726721 std::vector<std::size_t > sort_indices (const std::vector<T>& v, bool doSorting = false )
@@ -1485,10 +1480,7 @@ struct StrangenessBuilder {
14851480
14861481 histos.fill (HIST (" hPreselectionV0s" ), maskV0Preselection);
14871482
1488- if (!verifyMask (maskV0Preselection, selGamma) &&
1489- !verifyMask (maskV0Preselection, selK0Short) &&
1490- !verifyMask (maskV0Preselection, selLambda) &&
1491- !verifyMask (maskV0Preselection, selAntiLambda)) {
1483+ if (maskV0Preselection == 0 ) {
14921484 products.v0dataLink (-1 , -1 );
14931485 continue ;
14941486 }
@@ -2048,10 +2040,7 @@ struct StrangenessBuilder {
20482040
20492041 histos.fill (HIST (" hPreselectionCascades" ), maskCascadePreselection);
20502042
2051- if (!verifyMask (maskCascadePreselection, selXiMinus) &&
2052- !verifyMask (maskCascadePreselection, selXiPlus) &&
2053- !verifyMask (maskCascadePreselection, selOmegaMinus) &&
2054- !verifyMask (maskCascadePreselection, selOmegaPlus)) {
2043+ if (maskCascadePreselection == 0 ) {
20552044 products.cascdataLink (-1 );
20562045 interlinks.cascadeToCascCores .push_back (-1 );
20572046 continue ;
0 commit comments