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/TRGECLFAMPara.h"
26
27namespace Belle2 {
32
34 class TRGECLFAMModule : public Module {
35 public:
36
39
41 virtual ~TRGECLFAMModule();
43 virtual void initialize() override;
45 virtual void beginRun() override;
47 virtual void event() override;
49 virtual void endRun() override;
51 virtual void terminate() override;
52
53 public:
54
56 std::string version(void) const;
57
58 private:
59
75 int m_FADC;
81
83 std::string m_configFilename;
84
85
86 protected:
87
88
89 private:
90
92 int m_nRun;
96 std::vector<std::vector<double>> m_TCDigiE;
98 std::vector<std::vector<double>> m_TCDigiT;
100 std::vector<std::vector<double>> m_TCFitE;
102 std::vector<std::vector<double>> m_TCFitT;
104 std::vector<int> m_TCEThreshold;
105
111
114
115 };
116
118} // namespace Belle2
119
120#endif // TRGECLFAMModule_H
Class for accessing arrays of objects in the database.
Definition DBArray.h:26
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.
StoreArray< TRGECLFAMAna > m_TRGECLFAMAna
output for TRGECLFAMAna
std::vector< int > m_TCEThreshold
Threshold.
int m_famana
save FAM ana table
int m_binTimeInterval
Time interval.
int m_beambkgtag
save Beam background tag in TRGECLHit table
StoreArray< TRGECLDigi0 > m_TRGECLDigi0
output for TRGECLDigi0
int m_nEvent
Event number.
std::vector< std::vector< double > > m_TCDigiE
Digitized TC E [GeV].
bool m_ConditionDB
Use Condition DB.
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.
DBArray< TRGECLFAMPara > m_FAMPara
FAM Parameters.
int m_FADC
Set Shaping Function.
virtual void initialize() override
Initializes TRGECLFAMModule.
virtual void event() override
Called event by event.
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.
std::string version(void) const
returns version of TRGECLFAMModule.
virtual ~TRGECLFAMModule()
Destructor.
Abstract base class for different kinds of events.