Belle II Software development
TRGECLFAMModule.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#ifndef TRGECLFAMModule_H
10#define TRGECLFAMModule_H
11
12#include <string>
13#include <framework/core/Module.h>
14#include <framework/datastore/StoreArray.h>
15#include <framework/database/DBArray.h>
16#include <framework/database/DBObjPtr.h>
17
18#include <mdst/dataobjects/EventLevelClusteringInfo.h>
19
20#include <trg/ecl/dataobjects/TRGECLFAMAna.h>
21#include <trg/ecl/dataobjects/TRGECLDigi0.h>
22#include <trg/ecl/dataobjects/TRGECLHit.h>
23#include <trg/ecl/dataobjects/TRGECLWaveform.h>
24
25#include <trg/ecl/dbobjects/TRGECLFAMTCADCThreshold.h>
26#include <trg/ecl/dbobjects/TRGECLETMParameters.h>
27#include <trg/ecl/TrgEclDigitizer.h>
28#include <trg/ecl/TrgEclFAMFit.h>
29
30namespace Belle2 {
35
37 class TRGECLFAMModule : public Module {
38 public:
39
42
44 virtual ~TRGECLFAMModule();
46 virtual void initialize() override;
48 virtual void beginRun() override;
50 virtual void event() override;
52 virtual void endRun() override;
54 virtual void terminate() override;
55
56 public:
57
59 std::string version(void) const;
60
61 private:
62
64 int m_debugLevel = 0;
66 int m_famMethod = 1;
72 int m_beambkgtag = 0;
74 int m_famana = 0;
78 int m_FADC = 1;
80 bool m_ConditionDBFAM = true;
83 int m_SourceOfTC = 3;
84
86 std::string m_configFilename;
87
88
89 protected:
90
91
92 private:
94 static constexpr int c_NTC = 576;
96 static constexpr int c_NSamplingDigi01 = 64;
98 static constexpr int c_NSamplingDigi02 = 666;
99
101 double getDBparmap(const std::map<std::string, double>, std::string, double);
102
108 std::vector<std::vector<double>> m_TCDigiE;
110 std::vector<std::vector<double>> m_TCDigiT;
112 std::vector<std::vector<double>> m_TCFitE;
114 std::vector<std::vector<double>> m_TCFitT;
116 std::array<int, c_NTC> m_TCEThreshold;
119
128
131
136 };
137
139} // namespace Belle2
140
141#endif // TRGECLFAMModule_H
Class for accessing arrays of objects in the database.
Definition DBArray.h:26
Class for accessing objects in the database.
Definition DBObjPtr.h:21
Module()
Constructor.
Definition Module.cc:30
Accessor to arrays stored in the data store.
Definition StoreArray.h:113
Type-safe access to single objects in the data store.
Definition StoreObjPtr.h:96
std::string m_configFilename
Config.
int m_SourceOfTC
Set source of TC data (1:=ECLHit or 2:=ECLSimHit or 3:=ECLHit+TRGECLBGTCHit)
int m_debugLevel
Parameters.
std::array< int, c_NTC > m_TCEThreshold
TC Energy Threshold [MeV].
StoreArray< TRGECLFAMAna > m_TRGECLFAMAna
output for TRGECLFAMAna
static constexpr int c_NTC
Number of ECL TriggerCells (TC)
DBArray< TRGECLFAMTCADCThreshold > m_FAMTCADCThreshold
FAM TC ADC Thresholds.
static constexpr int c_NSamplingDigi02
Numer of sampling points for digitizer02.
int m_famana
save FAM ana table
int m_binTimeInterval
Time interval.
double m_TCADCtoEnergy
TC ADC Energy conversion factor [MeV].
int m_beambkgtag
save Beam background tag in TRGECLHit table
StoreArray< TRGECLDigi0 > m_TRGECLDigi0
output for TRGECLDigi0
bool m_ConditionDBFAM
Use Condition DB.
int m_nEvent
Event number.
DBObjPtr< TRGECLETMParameters > m_ETMParameters
ETM Parameters.
std::vector< std::vector< double > > m_TCDigiE
Digitized TC E [GeV].
TrgEclFAMFit m_TrgEclFAMFit
TrgEclFAMFit.
std::vector< std::vector< double > > m_TCFitT
Fit TC T [ns].
std::vector< std::vector< double > > m_TCFitE
Fit TC E [GeV].
StoreArray< TRGECLWaveform > m_TRGECLWaveform
output for TRGECLWaveform
int m_SetTCEThreshold
Threshold input.
StoreArray< TRGECLHit > m_TRGECLHit
output for TRGECLHit
std::vector< std::vector< double > > m_TCDigiT
Digitized TC T [ns].
StoreObjPtr< EventLevelClusteringInfo > m_eventLevelClusteringInfo
EventLevelClusteringInfo.
int m_FADC
Set Shaping Function.
TrgEclDigitizer m_Digitizer
TRGECLDigitizer.
static constexpr int c_NSamplingDigi01
Numer of sampling points for digitizer01.
virtual void initialize() override
Initializes TRGECLFAMModule.
virtual void event() override
Called event by event.
std::string version(void) const
returns version of TRGECLFAMModule.
virtual void endRun() override
Called when run ended.
virtual void terminate() override
Called when processing ended.
virtual void beginRun() override
Called when new run started.
double getDBparmap(const std::map< std::string, double >, std::string, double)
get payload from conditionDB (TRGECLETMParameters)
virtual ~TRGECLFAMModule()
Destructor.
Abstract base class for different kinds of events.