Belle II Software  release-08-01-10
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");
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
void setDescription(const std::string &description)
Sets the description of the module.
Definition: Module.cc:214
void setPropertyFlags(unsigned int propertyFlags)
Sets the flags for the module properties.
Definition: Module.cc:208
@ c_ParallelProcessingCertified
This module can be run in parallel processing mode safely (All I/O must be done through the data stor...
Definition: Module.h:80
void initialize() override final
Initialize.
StoreObjPtr< PXDGatedModeInfo > m_storeGatedModeInfo
Input array for DAQ Status.
PXDGatedInfoFillerModule()
Constructor defining the parameters.
std::string m_GatedModeInfoName
Name of input array for DAQ Status.
REG_MODULE(arichBtest)
Register the Module.
void addParam(const std::string &name, T &paramVariable, const std::string &description, const T &defaultValue)
Adds a new parameter to the module.
Definition: Module.h:560
Namespace to encapsulate code needed for simulation and reconstrucion of the PXD.
Abstract base class for different kinds of events.