Belle II Software development
ECLSplitterN2Module.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/* Basf2 headers. */
12#include <framework/core/Module.h>
13#include <framework/datastore/StoreArray.h>
14
15namespace Belle2 {
20 class ECLShower;
21 class ECLLocalMaximum;
22 class ECLConnectedRegion;
23 class ECLCalDigit;
24
26 class ECLSplitterN2Module : public Module {
27
28 public:
31
34
36 virtual void initialize() override;
37
39 virtual void beginRun() override;
40
42 virtual void event() override;
43
45 virtual void endRun() override;
46
48 virtual void terminate() override;
49
50 private:
51
52 // Position
53 std::string m_positionMethod;
57 std::vector< double > m_liloParameters;
59 // Background
60 //const int c_fullBkgdCount = 280; /**< Number of expected background digits at full background, FIXME: ove to database. */
61
64
67
70
73
75 virtual const char* eclCalDigitArrayName() const
76 { return "ECLCalDigits" ; }
77
79 virtual const char* eclConnectedRegionArrayName() const
80 { return "ECLConnectedRegions" ; }
81
83 virtual const char* eclLocalMaximumArrayName() const
84 { return "ECLLocalMaximums" ; }
85
87 virtual const char* eclShowerArrayName() const
88 { return "ECLShowers" ; }
89
90 }; // end of ECLSplitterN2Module
91
92
95 public:
97 virtual const char* eclCalDigitArrayName() const override
98 { return "ECLCalDigitsPureCsI" ; }
99
101 virtual const char* eclConnectedRegionArrayName() const override
102 { return "ECLConnectedRegionsPureCsI" ; }
103
105 virtual const char* eclLocalMaximumArrayName() const override
106 { return "ECLLocalMaximumsPureCsI" ; }
107
109 virtual const char* eclShowerArrayName() const override
110 { return "ECLShowersPureCsI" ; }
111
112 }; // end of ECLSplitterN2PureCsIModule
113
115} // end of Belle2 namespace
Class to perform the shower correction.
virtual const char * eclShowerArrayName() const
Default name ECLShowers.
double m_liloParameterB
lin-log parameter B
StoreArray< ECLShower > m_eclShowers
Store array: ECLShower.
StoreArray< ECLConnectedRegion > m_eclConnectedRegions
Store array: ECLConnectedRegion.
std::string m_positionMethod
Position calculation: lilo or linear.
virtual void initialize() override
Initialize.
StoreArray< ECLLocalMaximum > m_eclLocalMaximums
Store array: ECLLocalMaximum.
virtual void event() override
Event.
virtual const char * eclLocalMaximumArrayName() const
Default name ECLLocalMaximums.
virtual void endRun() override
End run.
virtual void terminate() override
Terminate.
virtual void beginRun() override
Begin run.
std::vector< double > m_liloParameters
lin-log parameters A, B, and C
virtual const char * eclConnectedRegionArrayName() const
Default name ECLConnectedRegions.
virtual const char * eclCalDigitArrayName() const
Default name ECLCalDigits.
double m_liloParameterA
lin-log parameter A
StoreArray< ECLCalDigit > m_eclCalDigits
Store array: ECLCalDigit.
double m_liloParameterC
lin-log parameter C
The very same module but for PureCsI.
virtual const char * eclCalDigitArrayName() const override
PureCsI name ECLCalDigitsPureCsI.
virtual const char * eclShowerArrayName() const override
PureCsI name ECLShowersPureCsI.
virtual const char * eclLocalMaximumArrayName() const override
PureCsI name ECLLocalMaximumsPureCsI.
virtual const char * eclConnectedRegionArrayName() const override
PureCsI name ECLConnectedRegionsPureCsI.
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.