12 #include <background/modules/BGOverlayExecutor/BGOverlayExecutorModule.h>
15 #include <framework/datastore/DataStore.h>
16 #include <framework/datastore/StoreArray.h>
17 #include <framework/datastore/StoreObjPtr.h>
20 #include <framework/logging/Logger.h>
23 #include <pxd/dataobjects/PXDDigit.h>
24 #include <svd/dataobjects/SVDShaperDigit.h>
25 #include <cdc/dataobjects/CDCHit.h>
26 #include <top/dataobjects/TOPDigit.h>
27 #include <arich/dataobjects/ARICHDigit.h>
28 #include <klm/dataobjects/KLMDigit.h>
29 #include <framework/dataobjects/BackgroundInfo.h>
53 setDescription(
"Overlay of measured background with simulated data");
54 setPropertyFlags(c_ParallelProcessingCertified);
57 addParam(
"bkgInfoName", m_BackgroundInfoInstanceName,
"name of the BackgroundInfo StoreObjPtr",
string(
""));
58 addParam(
"PXDDigitsName", m_PXDDigitsName,
59 "name of PXD collection to overlay with BG",
string(
""));
60 addParam(
"SVDShaperDigitsName", m_SVDShaperDigitsName,
61 "name of SVD collection to overlay with BG",
string(
""));
62 addParam(
"CDCHitsName", m_CDCHitsName,
63 "name of CDC collection to overlay with BG",
string(
""));
64 addParam(
"TOPDigitsName", m_TOPDigitsName,
65 "name of TOP collection to overlay with BG",
string(
""));
66 addParam(
"ARICHDigitsName", m_ARICHDigitsName,
67 "name of ARICH collection to overlay with BG",
string(
""));
68 addParam(
"KLMDigitsName", m_KLMDigitsName,
69 "name of KLM collection to overlay with BG",
string(
""));
73 BGOverlayExecutorModule::~BGOverlayExecutorModule()
77 void BGOverlayExecutorModule::initialize()
82 if (bkgInfo->getMethod() == BackgroundInfo::c_Overlay) {
83 m_extensionName = bkgInfo->getExtensionName();
85 B2ERROR(
"BGOverlayExecutor: no BGOverlayInput module in the path");
88 B2ERROR(
"BGOverlayExecutor: no BGOverlayInput module in the path");
92 registerDigits<PXDDigit>(m_PXDDigitsName);
93 registerDigits<SVDShaperDigit>(m_SVDShaperDigitsName);
94 registerDigits<CDCHit>(m_CDCHitsName);
95 registerDigits<TOPDigit>(m_TOPDigitsName);
96 registerDigits<ARICHDigit>(m_ARICHDigitsName);
97 registerDigits<KLMDigit>(m_KLMDigitsName);
101 void BGOverlayExecutorModule::beginRun()
105 void BGOverlayExecutorModule::event()
109 addBGDigits<PXDDigit>(m_PXDDigitsName);
110 addBGDigits<SVDShaperDigit>(m_SVDShaperDigitsName);
111 addBGDigits<CDCHit>(m_CDCHitsName);
112 addBGDigits<TOPDigit>(m_TOPDigitsName);
113 addBGDigits<ARICHDigit>(m_ARICHDigitsName);
115 addBGDigits<KLMDigit>(m_KLMDigitsName);
120 void BGOverlayExecutorModule::endRun()
124 void BGOverlayExecutorModule::terminate()