Belle II Software development
ECLDigit.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#include <framework/datastore/RelationsObject.h>
12
13namespace Belle2 {
24 class ECLDigit : public RelationsObject {
25 public:
28 {
29 m_CellId = 0;
30 m_Amp = 0;
31 m_TimeFit = 0;
32 m_Quality = 0;
33 m_Chi = 0;
35 ;
36 }
37
40 void setCellId(int CellId) { m_CellId = CellId; }
41
44 void setAmp(int Amp) { m_Amp = Amp; }
45
46
49 void setTimeFit(int TimeFit) { m_TimeFit = TimeFit; }
50
51
54 void setQuality(int Quality) { m_Quality = Quality; }
55
58 void setChi(int Chi) { m_Chi = Chi; }
59
60
64 int getCellId() const { return m_CellId; }
65
66
70 int getAmp() const { return m_Amp; }
71
75 int getTimeFit() const { return m_TimeFit; }
76
80 int getQuality() const { return m_Quality; }
81
85 int getChi() const { return m_Chi; }
86
91 static ECLDigit* getByCellID(int cid);
92
93 private:
94
96 int m_Amp;
99 int m_Chi;
101 // 2: r25301, data member changed to ints
104 };
105
107} // end namespace Belle2
108
Class to store ECL digitized hits (output of ECLDigi) relation to ECLHit filled in ecl/modules/eclDig...
Definition: ECLDigit.h:24
int getAmp() const
Get Fitting Amplitude.
Definition: ECLDigit.h:70
int getQuality() const
Get Fitting Quality.
Definition: ECLDigit.h:80
int getCellId() const
Get Cell ID.
Definition: ECLDigit.h:64
int m_CellId
Cell ID.
Definition: ECLDigit.h:95
void setAmp(int Amp)
Set Fitting Amplitude.
Definition: ECLDigit.h:44
void setTimeFit(int TimeFit)
Set Fitting Time.
Definition: ECLDigit.h:49
static ECLDigit * getByCellID(int cid)
Find ECLDigit by Cell ID using linear search.
Definition: ECLDigit.cc:14
void setCellId(int CellId)
Set Cell ID.
Definition: ECLDigit.h:40
void setQuality(int Quality)
Set Fitting Quality.
Definition: ECLDigit.h:54
int getTimeFit() const
Get Fitting Time.
Definition: ECLDigit.h:75
int getChi() const
Get Chi-squared.
Definition: ECLDigit.h:85
void setChi(int Chi)
Set Chi-squared.
Definition: ECLDigit.h:58
ECLDigit()
default constructor for ROOT
Definition: ECLDigit.h:27
int m_Quality
Fitting Quality.
Definition: ECLDigit.h:98
int m_Chi
Fitting chi2-squared.
Definition: ECLDigit.h:99
int m_Amp
Fitting Amplitude.
Definition: ECLDigit.h:96
ClassDef(ECLDigit, 2)
ClassDef.
int m_TimeFit
Fitting Time.
Definition: ECLDigit.h:97
Defines interface for accessing relations of objects in StoreArray.
Abstract base class for different kinds of events.