@@ -162,30 +162,33 @@ struct UpcCandProducer {
162162 // initialize RCT flag checker
163163 if (rctLabel.value != " none" && rctLabel.value != " muon" && rctLabel.value != " muon_glo" ) {
164164 myRCTChecker.init (rctLabel.value , checkZDC.value , useLAasBad.value );
165- } else if (rctLabel.value == " none" ) {
165+ }
166+ else if (rctLabel.value == " none" ){
166167 useRCTflags = false ;
167168 myRCTChecker.init (" CBT_muon" );
168- } else if (rctLabel. value == " muon " ) {
169- std::initializer_list<RCTSelectionFlags> flags = { kFV0Bad , kMCHBad , kMIDBad };
169+ }
170+ else if (rctLabel. value == " muon " ) {
170171 if (checkZDC.value && useLAasBad.value ) {
171- flags = {kFV0Bad , kMCHBad , kMIDBad , kZDCBad , kMCHLimAccMCRepr , kMIDLimAccMCRepr };
172+ myRCTChecker. init ( {kFV0Bad , kMCHBad , kMIDBad , kZDCBad , kMCHLimAccMCRepr , kMIDLimAccMCRepr }) ;
172173 } else if (checkZDC.value ) {
173- flags = {kFV0Bad , kMCHBad , kMIDBad , kZDCBad };
174+ myRCTChecker. init ( {kFV0Bad , kMCHBad , kMIDBad , kZDCBad }) ;
174175 } else if (useLAasBad.value ) {
175- flags = {kFV0Bad , kMCHBad , kMIDBad , kMCHLimAccMCRepr , kMIDLimAccMCRepr };
176+ myRCTChecker.init ({kFV0Bad , kMCHBad , kMIDBad , kMCHLimAccMCRepr , kMIDLimAccMCRepr });
177+ } else {
178+ myRCTChecker.init ({kFV0Bad , kMCHBad , kMIDBad });
176179 }
177- myRCTChecker.init (flags);
178- } else if (rctLabel.value == " muon_glo" ) {
179- std::initializer_list<RCTSelectionFlags> flags = {kFV0Bad , kMCHBad , kMIDBad , kMFTBad };
180+ }
181+ else if (rctLabel.value == " muon_glo" ) {
180182 if (checkZDC.value && useLAasBad.value ) {
181- flags = {kFV0Bad , kMCHBad , kMIDBad , kMFTBad , kZDCBad , kMCHLimAccMCRepr , kMIDLimAccMCRepr , kMFTLimAccMCRepr };
183+ myRCTChecker. init ( {kFV0Bad , kMCHBad , kMIDBad , kMFTBad , kZDCBad , kMCHLimAccMCRepr , kMIDLimAccMCRepr , kMFTLimAccMCRepr }) ;
182184 } else if (checkZDC.value ) {
183- flags = {kFV0Bad , kMCHBad , kMIDBad , kMFTBad , kZDCBad };
185+ myRCTChecker. init ( {kFV0Bad , kMCHBad , kMIDBad , kMFTBad , kZDCBad }) ;
184186 } else if (useLAasBad.value ) {
185- flags = {kFV0Bad , kMCHBad , kMIDBad , kMFTBad , kMCHLimAccMCRepr , kMIDLimAccMCRepr , kMFTLimAccMCRepr };
187+ myRCTChecker.init ({kFV0Bad , kMCHBad , kMIDBad , kMFTBad , kMCHLimAccMCRepr , kMIDLimAccMCRepr , kMFTLimAccMCRepr });
188+ } else {
189+ myRCTChecker.init ({kFV0Bad , kMCHBad , kMIDBad , kMFTBad });
186190 }
187- myRCTChecker.init (flags);
188- }
191+ }
189192
190193 const AxisSpec axisTrgCounters{10 , 0.5 , 10.5 , " " };
191194 histRegistry.add (" hCountersTrg" , " " , kTH1F , {axisTrgCounters});
0 commit comments