Belle II Software  release-05-02-19
MCMatcherECLClustersModule.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2010 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Benjamin Oberhof *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 
12 #pragma once
13 
14 #include <framework/core/Module.h>
15 #include <framework/datastore/StoreArray.h>
16 #include <framework/datastore/RelationArray.h>
17 
18 namespace Belle2 {
23  class MCParticle;
24  class ECLHit;
25  class ECLCalDigit;
26  class ECLDigit;
27  class ECLSimHit;
28  class ECLCluster;
29  class ECLShower;
30 
35  class MCMatcherECLClustersModule : public Module {
36 
37  public:
40 
43 
45  virtual void initialize() override;
46 
48  virtual void beginRun() override;
49 
53  virtual void event() override;
54 
56  virtual void endRun() override;
57 
59  virtual void terminate() override;
60 
61  private:
62 
72  virtual const char* eclDigitArrayName() const
73  { return "ECLDigits" ; }
74 
76  virtual const char* eclCalDigitArrayName() const
77  { return "ECLCalDigits" ; }
78 
80  virtual const char* eclClusterArrayName() const
81  { return "ECLClusters" ; }
82 
84  virtual const char* eclShowerArrayName() const
85  { return "ECLShowers" ; }
86 
91  };
92 
95 
96  public:
97 
99  virtual const char* eclDigitArrayName() const override
100  { return "ECLDigitsPureCsI" ; }
101 
103  virtual const char* eclCalDigitArrayName() const override
104  { return "ECLCalDigitsPureCsI" ; }
105 
107  virtual const char* eclShowerArrayName() const override
108  { return "ECLShowersPureCsI" ; }
109 
111  virtual const char* eclClusterArrayName() const override
112  { return "ECLClustersPureCsI" ; }
113 
114  };
115 
117 } // end of Belle2 namespace
Belle2::MCMatcherECLClustersModule::eclClusterArrayName
virtual const char * eclClusterArrayName() const
Default name ECLClusters.
Definition: MCMatcherECLClustersModule.h:88
Belle2::MCMatcherECLClustersModule::terminate
virtual void terminate() override
Stopping of CPU clock.
Definition: MCMatcherECLClustersModule.cc:191
Belle2::MCMatcherECLClustersModule::m_mcParticles
StoreArray< MCParticle > m_mcParticles
MCParticles StoreArray.
Definition: MCMatcherECLClustersModule.h:71
Belle2::RelationArray
Low-level class to create/modify relations between StoreArrays.
Definition: RelationArray.h:72
Belle2::MCMatcherECLClustersModule::beginRun
virtual void beginRun() override
Nothing so far.
Definition: MCMatcherECLClustersModule.cc:69
Belle2::MCMatcherECLClustersModule::MCMatcherECLClustersModule
MCMatcherECLClustersModule()
Constructor.
Definition: MCMatcherECLClustersModule.cc:35
Belle2::MCMatcherECLClustersModule::event
virtual void event() override
Actual digitization of all hits in the ECL.
Definition: MCMatcherECLClustersModule.cc:73
Belle2::MCMatcherECLClustersPureCsIModule::eclCalDigitArrayName
virtual const char * eclCalDigitArrayName() const override
PureCsI name ECLCalDigitsPureCsI.
Definition: MCMatcherECLClustersModule.h:111
Belle2::MCMatcherECLClustersModule::m_eclHits
StoreArray< ECLHit > m_eclHits
ECLHits StoreArray.
Definition: MCMatcherECLClustersModule.h:72
Belle2::MCMatcherECLClustersModule::eclShowerArrayName
virtual const char * eclShowerArrayName() const
Default name ECLShowers.
Definition: MCMatcherECLClustersModule.h:92
Belle2::MCMatcherECLClustersModule
Class to represent the hit of one cell.
Definition: MCMatcherECLClustersModule.h:43
Belle2::MCMatcherECLClustersModule::eclDigitArrayName
virtual const char * eclDigitArrayName() const
Default name ECLDigits.
Definition: MCMatcherECLClustersModule.h:80
Belle2::MCMatcherECLClustersModule::m_eclShowers
StoreArray< ECLShower > m_eclShowers
ECLShowers StoreArray.
Definition: MCMatcherECLClustersModule.h:77
Belle2::MCMatcherECLClustersPureCsIModule
Same module but for pure CsI.
Definition: MCMatcherECLClustersModule.h:102
Belle2::MCMatcherECLClustersModule::m_eclDigits
StoreArray< ECLDigit > m_eclDigits
ECLDigits StoreArray.
Definition: MCMatcherECLClustersModule.h:74
Belle2::MCMatcherECLClustersModule::m_eclClusters
StoreArray< ECLCluster > m_eclClusters
ECLClusters StoreArray.
Definition: MCMatcherECLClustersModule.h:76
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::MCMatcherECLClustersModule::eclCalDigitArrayName
virtual const char * eclCalDigitArrayName() const
Default name ECLCalDigits.
Definition: MCMatcherECLClustersModule.h:84
Belle2::MCMatcherECLClustersPureCsIModule::eclClusterArrayName
virtual const char * eclClusterArrayName() const override
PureCsI name ECLClustersPureCsI.
Definition: MCMatcherECLClustersModule.h:119
Belle2::MCMatcherECLClustersModule::initialize
virtual void initialize() override
Initialize variables, print info, and start CPU clock.
Definition: MCMatcherECLClustersModule.cc:52
Belle2::MCMatcherECLClustersModule::endRun
virtual void endRun() override
Nothing so far.
Definition: MCMatcherECLClustersModule.cc:187
Belle2::MCMatcherECLClustersPureCsIModule::eclShowerArrayName
virtual const char * eclShowerArrayName() const override
PureCsI name ECLShowersPureCsI.
Definition: MCMatcherECLClustersModule.h:115
Belle2::MCMatcherECLClustersModule::~MCMatcherECLClustersModule
virtual ~MCMatcherECLClustersModule()
Destructor.
Definition: MCMatcherECLClustersModule.cc:48
Belle2::MCMatcherECLClustersModule::m_eclCalDigits
StoreArray< ECLCalDigit > m_eclCalDigits
ECLCalDigits StoreArray.
Definition: MCMatcherECLClustersModule.h:73
Belle2::StoreArray< MCParticle >
Belle2::MCMatcherECLClustersModule::m_mcParticleToECLSimHitRelationArray
RelationArray m_mcParticleToECLSimHitRelationArray
MCParticles to ECLSimHits RelationArray.
Definition: MCMatcherECLClustersModule.h:97
Belle2::MCMatcherECLClustersModule::m_mcParticleToECLHitRelationArray
RelationArray m_mcParticleToECLHitRelationArray
MCParticles to ECLHits RelationArray.
Definition: MCMatcherECLClustersModule.h:95
Belle2::MCMatcherECLClustersModule::m_eclSimHits
StoreArray< ECLSimHit > m_eclSimHits
ECLSimHits StoreArray.
Definition: MCMatcherECLClustersModule.h:75
Belle2::MCMatcherECLClustersPureCsIModule::eclDigitArrayName
virtual const char * eclDigitArrayName() const override
PureCsI name ECLDigitsPureCsI.
Definition: MCMatcherECLClustersModule.h:107