Belle II Software development
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
14namespace Belle2 {
19 class ROIid;
20 class MCParticle;
21 class PXDDigit;
22
28
29 public:
30
35
38
40 virtual void initialize() override;
41
43 virtual void event() override;
44
46 virtual void endRun() override;
47
48 private:
49 std::string m_pxdDigitsName = "";
50 std::string m_MCParticlesName = "";
51 std::string m_ROIsName = "";
57 short m_ROISize = 20;
59 uint m_slowPiCounter = 0;
60 uint m_ROICounter = 0;
61 };
63}
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.