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 {
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:
74 int _FADC;
80
82 std::string _configFilename;
83
84
85 protected:
86
87
88 private:
90 int m_nRun;
94 std::vector<std::vector<double>> TCDigiE;
96 std::vector<std::vector<double>> TCDigiT;
98 std::vector<std::vector<double>> TCFitE;
100 std::vector<std::vector<double>> TCFitT;
102 std::vector<int> Threshold;
103
112
113 };
114
116} // namespace Belle2
117
118#endif // TRGECLFAMModule_H
Class for accessing arrays of objects in the database.
Definition: DBArray.h:26
Base class for Modules.
Definition: Module.h:72
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
int _FADC
Set Shaping Function.
int m_SourceOfTC
Set source of TC data (1:=ECLHit or 2:=ECLSimHit or 3:=ECLHit+TRGECLBGTCHit)
int _famana
save FAM ana table
std::vector< std::vector< double > > TCDigiT
Digitized TC T [ns].
std::string _configFilename
Config.
int _ConditionDB
Use Condition DB.
StoreArray< TRGECLFAMAna > m_TRGECLFAMAna
output for TRGECLFAMAna
int _debugLevel
Parameters.
int _beambkgtag
save Beam background tag in TRGECLHit table
int _binTimeInterval
Time interval.
std::vector< std::vector< double > > TCDigiE
Digitized TC E [GeV].
StoreArray< TRGECLDigi0 > m_TRGECLDigi0
output for TRGECLDigi0
int m_nEvent
Event number.
std::vector< std::vector< double > > TCFitT
Fit TC T [ns].
int _threshold
Threshold input.
std::vector< std::vector< double > > TCFitE
Fit TC E [GeV].
StoreArray< TRGECLWaveform > m_TRGECLWaveform
output for TRGECLWaveform
StoreArray< TRGECLHit > m_TRGECLHit
output for TRGECLHit
std::vector< int > Threshold
Threshold.
StoreObjPtr< EventLevelClusteringInfo > m_eventLevelClusteringInfo
EventLevelClusteringInfo.
DBArray< TRGECLFAMPara > m_FAMPara
FAM Parameters.
virtual void initialize() override
Initilizes TRGECLFAMModule.
TRGECLFAMModule()
Constructor.
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.