Belle II Software development
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#include <pxd/dataobjects/PXDGatedModeInfo.h>
11
12using namespace Belle2;
13using namespace Belle2::PXD;
14
15//-----------------------------------------------------------------
16// Register the Module
17//-----------------------------------------------------------------
18REG_MODULE(PXDGatedInfoFiller);
19
20//-----------------------------------------------------------------
21// Implementation
22//-----------------------------------------------------------------
23
25{
26 //Set module properties
27 setDescription("Fill Gates Mode Information from ... for Reconstruction");
29
30 addParam("GatedModeInfoName", m_GatedModeInfoName, "The name of the StoreObject of GatedModeInfo", std::string(""));
31}
32
34{
35// m_someobjwheretoreaddatafrom.isRequired();
37}
38
40{
41 m_storeGatedModeInfo.create();
42 m_storeGatedModeInfo->setFullGated(false);
43 m_storeGatedModeInfo->setReadoutGated(true);
44 for (int i = 0; i < 192; i++) {
45 m_storeGatedModeInfo->setGateGatedL2(i, true);
46 }
47}
@ c_ErrorIfAlreadyRegistered
If the object/array was already registered, produce an error (aborting initialisation).
Definition DataStore.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
Module()
Constructor.
Definition Module.cc:30
@ 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.
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:559
#define REG_MODULE(moduleName)
Register the given module (without 'Module' suffix) with the framework.
Definition Module.h:649
Namespace to encapsulate code needed for simulation and reconstrucion of the PXD.
Abstract base class for different kinds of events.