Belle II Software  release-08-01-10
MCSlowPionPXDROICreatorModule.h
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 #pragma once
10 
11 #include <framework/core/Module.h>
12 #include <framework/datastore/StoreArray.h>
13 
14 
15 namespace Belle2 {
20  class ROIid;
21  class MCParticle;
22  class PXDDigit;
23 
32 
33  public:
34 
39 
42 
44  virtual void initialize() override;
45 
47  virtual void event() override;
48 
50  virtual void endRun() override;
51 
52  private:
53  std::string m_pxdDigitsName = "";
54  std::string m_MCParticlesName = "";
55  std::string m_ROIsName = "";
61  short m_ROISize = 20;
63  uint m_slowPiCounter = 0;
64  uint m_ROICounter = 0;
65  };
67 }
The MCSlowPionPXDROICreatorModule module Create artificial ROI just for PXDDigits from slow pions fro...
virtual void initialize() override
init the module
virtual void event() override
processes the event
virtual ~MCSlowPionPXDROICreatorModule()
Empty destructor.
uint m_ROICounter
Count the ROI that are created for debugging.
std::string m_pxdDigitsName
PXDDigits StoreArray name.
std::string m_MCParticlesName
MCParticles StoreArray name.
StoreArray< PXDDigit > m_PXDDigits
StoreArray for the PXDDigits.
MCSlowPionPXDROICreatorModule()
Constructor: Sets the description, the properties and the parameters of the module.
StoreArray< MCParticle > m_MCParticles
StoreArray for the MCParticles.
uint m_slowPiCounter
Count the slow pions in MC for debugging.
StoreArray< ROIid > m_ROIs
StoreArray for the ROIs.
Base class for Modules.
Definition: Module.h:72
Accessor to arrays stored in the data store.
Definition: StoreArray.h:113
Abstract base class for different kinds of events.