Belle II Software
development
TRGECLWaveform.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
// $Id$
10
//-----------------------------------------------------------
11
// Filename : TRGECLWaveform.h
12
// Section : TRG ECL
13
14
#ifndef TRGECLWAVEFORM_H
15
#define TRGECLWAVEFORM_H
16
17
#include <TObject.h>
18
19
20
namespace
Belle2
{
26
class
TRGECLWaveform
:
public
TObject {
27
private
:
28
30
int
m_eventid
;
32
int
m_tcid
;
34
int
m_phiid
;
36
int
m_thetaid
;
38
double
m_TCDigiE
[64];
39
40
public
:
43
TRGECLWaveform
()
44
{
45
m_eventid
= 0;
46
m_tcid
= 0;
47
m_phiid
= 0;
48
m_thetaid
= 0;
49
for
(
int
i = 0; i < 64; i++)
m_TCDigiE
[i] = 0;
50
}
52
TRGECLWaveform
(
int
tcid,
double
* digiarray)
53
{
54
m_tcid
= tcid;
55
m_eventid
= 0;
56
m_phiid
= 0;
57
m_thetaid
= 0;
58
for
(
int
i = 0 ; i < 64; i++) {
59
m_TCDigiE
[i] = digiarray[i];
60
}
61
62
}
63
~TRGECLWaveform
() {};
65
int
getTCID
()
const
66
{
67
return
m_tcid
;
68
}
70
const
double
*
getWaveform
()
const
71
{
72
return
m_TCDigiE
;
73
}
75
void
fillWaveform
(
double
* wf)
const
76
{
77
for
(
int
i = 0; i < 64; i++) wf[i] =
m_TCDigiE
[i];
78
}
80
void
setThetaPhiIDs
(
int
thid,
int
phid)
81
{
82
m_phiid
= phid;
83
m_thetaid
= thid;
84
}
86
int
getThetaID
()
const
87
{
88
return
m_thetaid
;
89
}
91
int
getPhiID
()
const
92
{
93
return
m_phiid
;
94
}
95
97
ClassDef
(
TRGECLWaveform
, 1);
/*< the class title */
98
};
100
}
101
102
#endif
Belle2::TRGECLWaveform
Digitize result.
Definition:
TRGECLWaveform.h:26
Belle2::TRGECLWaveform::setThetaPhiIDs
void setThetaPhiIDs(int thid, int phid)
Set Theta and Phi Id of TC.
Definition:
TRGECLWaveform.h:80
Belle2::TRGECLWaveform::m_phiid
int m_phiid
phi id of TC
Definition:
TRGECLWaveform.h:34
Belle2::TRGECLWaveform::m_eventid
int m_eventid
Event Id.
Definition:
TRGECLWaveform.h:30
Belle2::TRGECLWaveform::TRGECLWaveform
TRGECLWaveform()
Empty constructor Recommended for ROOT IO.
Definition:
TRGECLWaveform.h:43
Belle2::TRGECLWaveform::m_TCDigiE
double m_TCDigiE[64]
Waveform.
Definition:
TRGECLWaveform.h:38
Belle2::TRGECLWaveform::fillWaveform
void fillWaveform(double *wf) const
Fill Waveform.
Definition:
TRGECLWaveform.h:75
Belle2::TRGECLWaveform::m_tcid
int m_tcid
TC id.
Definition:
TRGECLWaveform.h:32
Belle2::TRGECLWaveform::ClassDef
ClassDef(TRGECLWaveform, 1)
the class title
Belle2::TRGECLWaveform::getThetaID
int getThetaID() const
Get Theta Id.
Definition:
TRGECLWaveform.h:86
Belle2::TRGECLWaveform::TRGECLWaveform
TRGECLWaveform(int tcid, double *digiarray)
Useful Constructor.
Definition:
TRGECLWaveform.h:52
Belle2::TRGECLWaveform::getWaveform
const double * getWaveform() const
Get WaveForm.
Definition:
TRGECLWaveform.h:70
Belle2::TRGECLWaveform::m_thetaid
int m_thetaid
Theta id of TC.
Definition:
TRGECLWaveform.h:36
Belle2::TRGECLWaveform::getTCID
int getTCID() const
Get TC Id.
Definition:
TRGECLWaveform.h:65
Belle2::TRGECLWaveform::getPhiID
int getPhiID() const
Get Phi ID.
Definition:
TRGECLWaveform.h:91
Belle2
Abstract base class for different kinds of events.
Definition:
MillepedeAlgorithm.h:17
trg
ecl
dataobjects
include
TRGECLWaveform.h
Generated on Fri Nov 8 2024 03:02:11 for Belle II Software by
1.9.6