Belle II Software  release-08-01-10
TRGECLFAMPara.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 TRGECLFAMPARA_H
10 #define TRGECLFAMPARA_H
11 
12 #include <TObject.h>
13 
14 namespace Belle2 {
21  class TRGECLFAMPara : public TObject {
22  public:
26  m_FPGAversion(1),
27  m_TCId(0),
28  m_FAMId(0),
29  m_ChannelId(0),
30  m_TEreconstruct(0),
32  m_Toffset(0),
33  m_Threshold(0),
34  m_Wavemean(0),
35  m_Wavesigma(0)
36  {
37  m_SignalPDF.clear();
38 
40 
41  }
44  int FPGAversion,
45  int TCId,
46  int FAMId,
47  int ChannelId,
48  int TEreconstruct,
49  double ConversionFactor,
50  int Toffset,
51  int Threshold,
52  int Wavemean,
53  int Wavesigma,
54  const std::vector<double>& SignalPDF,
55  const std::vector<double>& NoiseCovarianceMatrix
56 
57  ):
58  m_FPGAversion(FPGAversion),
59  m_TCId(TCId),
60  m_FAMId(FAMId),
61  m_ChannelId(ChannelId),
62  m_TEreconstruct(TEreconstruct),
63  m_ConversionFactor(ConversionFactor),
64  m_Toffset(Toffset),
65  m_Threshold(Threshold),
66  m_Wavemean(Wavemean),
67  m_Wavesigma(Wavesigma),
69  m_NoiseCovarianceMatrix(NoiseCovarianceMatrix)
70  { }
71 
73  void setFPGAversion(int FPGAversion) { m_FPGAversion = FPGAversion; }
74 
76  void setTCId(int TCId) { m_TCId = TCId; }
77 
79  void setFAMId(int FAMId) { m_FAMId = FAMId; }
80 
82  void setChannelId(int ChannelId) { m_ChannelId = ChannelId; }
83 
85  void setTEreconstruct(int TEreconstruct) { m_TEreconstruct = TEreconstruct; }
86 
88  void setConversionFactor(double ConversionFactor) { m_ConversionFactor = ConversionFactor; }
89 
91  void setToffset(int Toffset) { m_Toffset = Toffset; }
92 
94  void setThreshold(int Threshold) { m_Threshold = Threshold; }
95 
97  void setWavemean(int Wavemean) { m_Wavemean = Wavemean; }
98 
100  void setWavesigma(int Wavesigma) { m_Wavesigma = Wavesigma; }
101 
103  void setSignalPDF(const std::vector<double>& SignalPDF) { m_SignalPDF = SignalPDF;}
105  void setNoiseCovarianceMatrix(const std::vector<double>& NoiseCovarianceMatrix) { m_NoiseCovarianceMatrix = NoiseCovarianceMatrix;}
106 
108  int getFPGAversion() const
109  { return m_FPGAversion ; }
110 
112  int getTCId() const
113  { return m_TCId ; }
114 
116  int getFAMId() const
117  { return m_FAMId ; }
118 
120  int getChannelId() const
121  { return m_ChannelId ; }
122 
124  int getTEreconstruct() const
125  { return m_TEreconstruct ; }
126 
129  { return m_ConversionFactor ; }
130 
132  int getToffset() const
133  { return m_Toffset ; }
134 
136  int getThreshold() const
137  { return m_Threshold ; }
138 
140  int getWavemean() const
141  { return m_Wavemean ; }
142 
144  int getWavesigma() const
145  { return m_Wavesigma ; }
147  std::vector<double> setSignalPDF() { return m_SignalPDF ;}
149  std::vector<double> setNoiseCovarianceMatrix() { return m_NoiseCovarianceMatrix ;}
150 
151 
152  // private :
153 
156 
158  int m_TCId;
159 
161  int m_FAMId;
166 
169 
172 
175 
178 
182  std::vector<double> m_SignalPDF;
184  std::vector<double> m_NoiseCovarianceMatrix;
185 
186 
188  ClassDef(TRGECLFAMPara, 2); /*< the class title */
189  };
191 }
192 
193 #endif
194 
Parametrization of signal PDF in a single pixel.
Definition: SignalPDF.h:25
Raw TC result nefor digitizing.
Definition: TRGECLFAMPara.h:21
int getThreshold() const
Get Threshold.
void setTCId(int TCId)
Set TCId.
Definition: TRGECLFAMPara.h:76
int getTEreconstruct() const
Get T&E reconstruction method.
int getWavemean() const
Get Wavemean.
int m_Toffset
T offset.
void setThreshold(int Threshold)
Set Threshold.
Definition: TRGECLFAMPara.h:94
ClassDef(TRGECLFAMPara, 2)
the class title
int getConversionFactor() const
Get ConversionFactor CC.
void setWavesigma(int Wavesigma)
Set Wavesigma.
void setChannelId(int ChannelId)
Set TCId.
Definition: TRGECLFAMPara.h:82
void setNoiseCovarianceMatrix(const std::vector< double > &NoiseCovarianceMatrix)
set Fitter Timing Coefficient
TRGECLFAMPara()
Empty constructor Recommended for ROOT IO.
Definition: TRGECLFAMPara.h:25
std::vector< double > setSignalPDF()
Get Fitter Amplitude Coefficient.
double m_ConversionFactor
ConversionFactor CC.
TRGECLFAMPara(int FPGAversion, int TCId, int FAMId, int ChannelId, int TEreconstruct, double ConversionFactor, int Toffset, int Threshold, int Wavemean, int Wavesigma, const std::vector< double > &SignalPDF, const std::vector< double > &NoiseCovarianceMatrix)
Construction.
Definition: TRGECLFAMPara.h:43
void setConversionFactor(double ConversionFactor)
Set ConversionFactor CC.
Definition: TRGECLFAMPara.h:88
void setToffset(int Toffset)
Set T offset.
Definition: TRGECLFAMPara.h:91
int getWavesigma() const
Get Wavesigma.
void setFAMId(int FAMId)
Set FAMId.
Definition: TRGECLFAMPara.h:79
int m_Wavesigma
Wavesigma.
int m_ChannelId
FAM Channel ID.
void setWavemean(int Wavemean)
Set Wavemean.
Definition: TRGECLFAMPara.h:97
std::vector< double > setNoiseCovarianceMatrix()
Get Fitter Timing Coefficient.
int getChannelId() const
Get ChannelId.
int getFPGAversion() const
Get FPGAversion.
void setSignalPDF(const std::vector< double > &SignalPDF)
set Fitter Amplitude Coefficient
int getTCId() const
Get TCId.
void setFPGAversion(int FPGAversion)
Set FPGAversion.
Definition: TRGECLFAMPara.h:73
int getFAMId() const
Get FAMId.
int m_TEreconstruct
T&E reconstruction method.
int m_Threshold
Threshold.
int m_Wavemean
Wavemean.
std::vector< double > m_SignalPDF
Fitter Amplitude Coefficient.
int getToffset() const
Get T offset.
std::vector< double > m_NoiseCovarianceMatrix
Fitter Timing Coefficient.
int m_FPGAversion
FPGAversion.
void setTEreconstruct(int TEreconstruct)
Set T&E reconstruction method.
Definition: TRGECLFAMPara.h:85
Abstract base class for different kinds of events.