Belle II Software  release-06-01-15
PXDGatedInfoFillerModule.cc
1 /**************************************************************************
2  * basf2 (Belle II Analysis Software Framework) *
3  * Author: The Belle II Collaboration *
4  * *
5  * See git log for contributors and copyright holders. *
6  * This file is licensed under LGPL-3.0, see LICENSE.md. *
7  **************************************************************************/
8 
9 #include <pxd/modules/pxdUnpacking/PXDGatedInfoFillerModule.h>
10 
11 using namespace Belle2;
12 using namespace Belle2::PXD;
13 
14 //-----------------------------------------------------------------
15 // Register the Module
16 //-----------------------------------------------------------------
17 REG_MODULE(PXDGatedInfoFiller)
18 
19 //-----------------------------------------------------------------
20 // Implementation
21 //-----------------------------------------------------------------
22 
24 {
25  //Set module properties
26  setDescription("Fill Gates Mode Information from ... for Reconstruction");
27  setPropertyFlags(c_ParallelProcessingCertified);
28 
29  addParam("GatedModeInfoName", m_GatedModeInfoName, "The name of the StoreObject of GatedModeInfo", std::string(""));
30 }
31 
33 {
34 // m_someobjwheretoreaddatafrom.isRequired();
35  m_storeGatedModeInfo.registerInDataStore(m_GatedModeInfoName, DataStore::EStoreFlags::c_ErrorIfAlreadyRegistered);
36 }
37 
39 {
40  m_storeGatedModeInfo.create();
41  m_storeGatedModeInfo->setFullGated(false);
42  m_storeGatedModeInfo->setReadoutGated(true);
43  for (int i = 0; i < 192; i++) {
44  m_storeGatedModeInfo->setGateGatedL2(i, true);
45  }
46 }
Base class for Modules.
Definition: Module.h:72
PXD Gates Mode infromation on readout gate basis.
void initialize() override final
Initialize.
StoreObjPtr< PXDGatedModeInfo > m_storeGatedModeInfo
Input array for DAQ Status.
std::string m_GatedModeInfoName
Name of input array for DAQ Status.
#define REG_MODULE(moduleName)
Register the given module (without 'Module' suffix) with the framework.
Definition: Module.h:650
Namespace to encapsulate code needed for simulation and reconstrucion of the PXD.
Abstract base class for different kinds of events.