46 ISvcLocator* pSvcLocator)
73 "LArECTimeDiffHalo",
"LArECTimeDiffCol",
74 "PixMultiplicityHuge",
"PixSPNonEmpty",
75 "SCTMultiplicityHuge",
"SCTSPNonEmpty",
76 "CSCTimeDiffHalo",
"CSCTimeDiffCol",
77 "BCMTimeDiffHalo",
"BCMTimeDiffCol",
78 "MuonTimingCol",
"MuonTimingCosmic",
79 "MBTSBeamVeto",
"BCMBeamVeto",
80 "LUCIDBeamVeto",
"HaloMuonSegment",
81 "HaloClusterShape",
"HaloMuonOneSided",
82 "HaloMuonTwoSided",
"HaloTileClusterPattern",
83 "BeamGasPixel",
"CosmicStandAlone",
84 "CosmicStandAloneTight",
"CosmicCombined",
85 "CosmicCombinedTight",
"BkgdResvBit1",
86 "BkgdResvBit2",
"BkgdResvBit3",
87 "BkgdResvBit4",
"BkgdResvBit5"}}
91 declareProperty(
"HaloNumSegment_Cut", m_HaloNumSegment_Cut = 0);
92 declareProperty(
"HaloNumClusterShape_Cut", m_HaloNumClusterShape_Cut = 0);
93 declareProperty(
"HaloNumOneSidedLoose_Cut", m_HaloNumOneSidedLoose_Cut = 0);
94 declareProperty(
"HaloNumTwoSided_Cut", m_HaloNumTwoSided_Cut = 0);
95 declareProperty(
"PixMultiplicityHuge_Cut",
96 m_PixMultiplicityHuge_Cut = 100000);
97 declareProperty(
"PixSPNonEmpty_Cut", m_PixSPNonEmpty_Cut = 10);
98 declareProperty(
"SCTMultiplicityHuge_Cut",
99 m_SCTMultiplicityHuge_Cut = 100000);
100 declareProperty(
"SCTSPNonEmpty_Cut", m_SCTSPNonEmpty_Cut = 10);
103 declareProperty(
"LUCIDBeamVeto_Cut", m_LUCIDBeamVeto_Cut = 0);
105 declareProperty(
"BCMTimeDiffCol_Cut", m_BCMTimeDiffCol_Cut = 6.);
106 declareProperty(
"BCMTimeDiffHalo_CutLo", m_BCMTimeDiffHalo_CutLo = 6.);
107 declareProperty(
"BCMLowGainCut", m_BCMLowGainCut = 1);
108 declareProperty(
"BCMHiGainCut", m_BCMHiGainCut = 1);
110 declareProperty(
"MBTSBeamVeto_MultiplicityCut",
111 m_MBTSBeamVeto_MultiplicityCut = 0);
112 declareProperty(
"MBTSBeamVeto_TimeCut", m_MBTSBeamVeto_TimeCut = 15.);
113 declareProperty(
"MBTSBeamVeto_ThresholdCut",
114 m_MBTSBeamVeto_ThresholdCut = 40.0 / 222.0);
116 declareProperty(
"LArEC_SideCut", m_LArEC_SideCut = 1);
117 declareProperty(
"LArECTimeDiffCol_Cut", m_LArECTimeDiffCol_Cut = 10.);
118 declareProperty(
"LArECTimeDiffHalo_CutLo", m_LArECTimeDiffHalo_CutLo = 10.);
119 declareProperty(
"LArECTimeDiffHalo_CutHi", m_LArECTimeDiffHalo_CutHi = 30.);
170 if (!beamBackgroundDataReadHandle.
isValid())
174 if (beamBackgroundDataReadHandle->GetNumSegment() >
176 if (eventInfoReadHandle->updateEventFlagBit(
183 if (beamBackgroundDataReadHandle->GetNumClusterShape() >
185 if (eventInfoReadHandle->updateEventFlagBit(
192 if (beamBackgroundDataReadHandle->GetNumNoTimeLoose() >
194 if (eventInfoReadHandle->updateEventFlagBit(
201 if (beamBackgroundDataReadHandle->GetNumTwoSidedNoTime() >
203 if (eventInfoReadHandle->updateEventFlagBit(
221 if (!LUCID_rawDataContainerReadHandle.
isValid())
222 ATH_MSG_WARNING(
"Invalid ReadHandle to LUCID_RawDataContainer with name: "
226 for (
auto LUCID_rawData : *LUCID_rawDataContainerReadHandle) {
227 LUCIDcounter += LUCID_rawData->getNhitsPMTsideA();
228 LUCIDcounter += LUCID_rawData->getNhitsPMTsideC();
231 if (eventInfoReadHandle->updateEventFlagBit(
248 if (!bcmCollisionTimeReadHandle.
isValid())
252 std::vector<float> bcmTDs = bcmCollisionTimeReadHandle->getDeltaT();
254 << bcmCollisionTimeReadHandle->getMultiLG() <<
" getMultiHG "
255 << bcmCollisionTimeReadHandle->getMultiHG() <<
" TDs size "
260 for (
unsigned int i = 0; i < bcmTDs.size(); i++) {
261 float td = bcmTDs.at(i);
263 if (fabs(td) > fabs(maxTD))
265 if (fabs(td) < fabs(minTD))
269 ATH_MSG_DEBUG(
" BCMCollisionTime minDT " << minTD <<
" maxDT " << maxTD);
272 if (eventInfoReadHandle->updateEventFlagBit(
280 if (eventInfoReadHandle->updateEventFlagBit(
289 if (eventInfoReadHandle->updateEventFlagBit(
311 std::for_each(sctSP->begin(), sctSP->end(), [&NSCTsps](
const auto coll) {
313 NSCTsps += coll->size();
315 std::for_each(pixSP->begin(), pixSP->end(), [&NPIXsps](
const auto coll) {
317 NPIXsps += coll->size();
322 if (eventInfoReadHandle->updateEventFlagBit(
332 if (eventInfoReadHandle->updateEventFlagBit(
341 if (eventInfoReadHandle->updateEventFlagBit(
351 if (eventInfoReadHandle->updateEventFlagBit(
368 if (!tileCellContainerReadHandle.
isValid())
374 for (
auto tileCellContainer : *tileCellContainerReadHandle) {
377 const uint8_t qbit1 = tileCellContainer->qbit1();
388 if (eventInfoReadHandle->updateEventFlagBit(
406 if (!lArCollisionTimeReadHandle.
isValid())
412 float LArECtimeDiff = lArCollisionTimeReadHandle->timeA() -
413 lArCollisionTimeReadHandle->timeC();
415 if (eventInfoReadHandle->updateEventFlagBit(
424 if (eventInfoReadHandle->updateEventFlagBit(
439 ATH_MSG_DEBUG(
"MBTSTimeDiffHalo: " << eventInfoReadHandle->isEventFlagBitSet(
441 ATH_MSG_DEBUG(
"MBTSTimeDiffCol: " << eventInfoReadHandle->isEventFlagBitSet(
443 ATH_MSG_DEBUG(
"MBTSBeamVeto: " << eventInfoReadHandle->isEventFlagBitSet(
445 ATH_MSG_DEBUG(
"LArECTimeDiffHalo: " << eventInfoReadHandle->isEventFlagBitSet(
447 ATH_MSG_DEBUG(
"LArECTimeDiffCol: " << eventInfoReadHandle->isEventFlagBitSet(
450 "PixMultiplicityHuge: " << eventInfoReadHandle->isEventFlagBitSet(
452 ATH_MSG_DEBUG(
"PixSPNonEmpty: " << eventInfoReadHandle->isEventFlagBitSet(
455 "SCTMultiplicityHuge: " << eventInfoReadHandle->isEventFlagBitSet(
457 ATH_MSG_DEBUG(
"SCTSPNonEmpty: " << eventInfoReadHandle->isEventFlagBitSet(
459 ATH_MSG_DEBUG(
"CSCTimeDiffHalo: " << eventInfoReadHandle->isEventFlagBitSet(
461 ATH_MSG_DEBUG(
"CSCTimeDiffCol: " << eventInfoReadHandle->isEventFlagBitSet(
463 ATH_MSG_DEBUG(
"BCMTimeDiffHalo: " << eventInfoReadHandle->isEventFlagBitSet(
465 ATH_MSG_DEBUG(
"BCMTimeDiffCol: " << eventInfoReadHandle->isEventFlagBitSet(
467 ATH_MSG_DEBUG(
"BCMBeamVeto: " << eventInfoReadHandle->isEventFlagBitSet(
469 ATH_MSG_DEBUG(
"MuonTimingCol: " << eventInfoReadHandle->isEventFlagBitSet(
471 ATH_MSG_DEBUG(
"MuonTimingCosmic: " << eventInfoReadHandle->isEventFlagBitSet(
473 ATH_MSG_DEBUG(
"LUCIDBeamVeto: " << eventInfoReadHandle->isEventFlagBitSet(
476 return StatusCode::SUCCESS;