Belle II Software  release-05-01-25
PXDGatedInfoFillerModule.cc
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2017 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Bjoern Spruck *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 #include <pxd/modules/pxdUnpacking/PXDGatedInfoFillerModule.h>
12 
13 using namespace Belle2;
14 using namespace Belle2::PXD;
15 
16 //-----------------------------------------------------------------
17 // Register the Module
18 //-----------------------------------------------------------------
19 REG_MODULE(PXDGatedInfoFiller)
20 
21 //-----------------------------------------------------------------
22 // Implementation
23 //-----------------------------------------------------------------
24 
26 {
27  //Set module properties
28  setDescription("Fill Gates Mode Information from ... for Reconstruction");
29  setPropertyFlags(c_ParallelProcessingCertified);
30 
31  addParam("GatedModeInfoName", m_GatedModeInfoName, "The name of the StoreObject of GatedModeInfo", std::string(""));
32 }
33 
35 {
36 // m_someobjwheretoreaddatafrom.isRequired();
37  m_storeGatedModeInfo.registerInDataStore(m_GatedModeInfoName, DataStore::EStoreFlags::c_ErrorIfAlreadyRegistered);
38 }
39 
41 {
42  m_storeGatedModeInfo.create();
43  m_storeGatedModeInfo->setFullGated(false);
44  m_storeGatedModeInfo->setReadoutGated(true);
45  for (int i = 0; i < 192; i++) {
46  m_storeGatedModeInfo->setGateGatedL2(i, true);
47  }
48 }
REG_MODULE
#define REG_MODULE(moduleName)
Register the given module (without 'Module' suffix) with the framework.
Definition: Module.h:652
Belle2::PXD::PXDGatedInfoFillerModule::m_GatedModeInfoName
std::string m_GatedModeInfoName
Name of input array for DAQ Status.
Definition: PXDGatedInfoFillerModule.h:54
Belle2::PXD::PXDGatedInfoFillerModule
PXD Gates Mode infromation on readout gate basis.
Definition: PXDGatedInfoFillerModule.h:40
Belle2::Module
Base class for Modules.
Definition: Module.h:74
Belle2::PXD::PXDGatedInfoFillerModule::initialize
void initialize() override final
Initialize the Module.
Definition: PXDGatedInfoFillerModule.cc:34
Belle2::PXD
Namespace to encapsulate code needed for simulation and reconstrucion of the PXD.
Definition: PXDCalibrationUtilities.h:28
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::PXD::PXDGatedInfoFillerModule::m_storeGatedModeInfo
StoreObjPtr< PXDGatedModeInfo > m_storeGatedModeInfo
Input array for DAQ Status.
Definition: PXDGatedInfoFillerModule.h:56
Belle2::PXD::PXDGatedInfoFillerModule::event
void event() override final
This method is the core of the module.
Definition: PXDGatedInfoFillerModule.cc:40