@@ -99,23 +99,23 @@ struct DQFilterPbPbTask {
9999 auto isSGEvent = sgSelector.IsSelected (sgCuts, collision, bcRange, bc);
100100 int issgevent = isSGEvent.value ;
101101 // Translate SGSelector values to DQEventFilter values
102- if (issgevent == 0 ) {
102+ if (issgevent == sgselector::SingleGapA ) {
103103 filter |= (static_cast <uint64_t >(1 ) << VarManager::kSingleGapA );
104104 fFilterOutcome ->Fill (3 , 1 );
105- } else if (issgevent == 1 ) {
105+ } else if (issgevent == sgselector::SingleGapC ) {
106106 filter |= (static_cast <uint64_t >(1 ) << VarManager::kSingleGapC );
107107 fFilterOutcome ->Fill (4 , 1 );
108- } else if (issgevent == 2 ) {
108+ } else if (issgevent == sgselector::DoubleGap ) {
109109 filter |= (static_cast <uint64_t >(1 ) << VarManager::kDoubleGap );
110110 fFilterOutcome ->Fill (2 , 1 );
111- } else if (issgevent == 3 ) {
111+ } else if (issgevent == sgselector::NoUpc ) {
112112 fFilterOutcome ->Fill (5 , 1 );
113- } else if (issgevent == 4 ) {
113+ } else if (issgevent == sgselector::TrkOutOfRange ) {
114114 fFilterOutcome ->Fill (6 , 1 );
115115 }
116116
117117 // Get closest bc with FIT activity above threshold
118- if (isSGEvent.bc && issgevent < 2 ) {
118+ if (isSGEvent.bc ) {
119119 newbc = *(isSGEvent.bc );
120120 }
121121 upchelpers::FITInfo fitInfo{};
0 commit comments