46 ISvcLocator* pSvcLocator)
48 m_HaloNumSegment_Cut(0),
49 m_HaloNumClusterShape_Cut(0),
50 m_HaloNumOneSidedLoose_Cut(0),
51 m_HaloNumTwoSided_Cut(0),
52 m_PixMultiplicityHuge_Cut(0),
53 m_PixSPNonEmpty_Cut(0),
54 m_SCTMultiplicityHuge_Cut(0),
55 m_SCTSPNonEmpty_Cut(0),
56 m_LUCIDBeamVeto_Cut(0),
57 m_BCMTimeDiffCol_Cut(0),
58 m_BCMTimeDiffHalo_CutLo(0),
61 m_MBTSBeamVeto_MultiplicityCut(0),
62 m_MBTSBeamVeto_TimeCut(0),
63 m_MBTSBeamVeto_ThresholdCut(0),
68 m_LArECTimeDiffCol_Cut(0),
69 m_LArECTimeDiffHalo_CutLo(0),
70 m_LArECTimeDiffHalo_CutHi(0),
72 m_bitnamevec{{
"MBTSTimeDiffHalo",
"MBTSTimeDiffCol",
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.);
144 return StatusCode::SUCCESS;
170 if (!beamBackgroundDataReadHandle.
isValid())
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();
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);
306 if (!sctSP.isValid() or !pixSP.isValid()) {
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();
368 if (!tileCellContainerReadHandle.
isValid())
374 for (
auto tileCellContainer : *tileCellContainerReadHandle) {
377 const uint8_t qbit1 = tileCellContainer->qbit1();
406 if (!lArCollisionTimeReadHandle.
isValid())
412 float LArECtimeDiff = lArCollisionTimeReadHandle->
timeA() -
413 lArCollisionTimeReadHandle->
timeC();
476 return StatusCode::SUCCESS;
486 "Job Summary for Background Word (NB. MBTS time bits not counted by this "
492 return StatusCode::SUCCESS;