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
20namespace Belle2 {
26 class TRGECLWaveform: public TObject {
27 private:
28
32 int m_tcid;
38 double m_TCDigiE[64];
39
40 public:
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
Digitize result.
void setThetaPhiIDs(int thid, int phid)
Set Theta and Phi Id of TC.
int m_phiid
phi id of TC
TRGECLWaveform()
Empty constructor Recommended for ROOT IO.
double m_TCDigiE[64]
Waveform.
void fillWaveform(double *wf) const
Fill Waveform.
ClassDef(TRGECLWaveform, 1)
the class title
int getThetaID() const
Get Theta Id.
TRGECLWaveform(int tcid, double *digiarray)
Useful Constructor.
const double * getWaveform() const
Get WaveForm.
int m_thetaid
Theta id of TC.
int getTCID() const
Get TC Id.
int getPhiID() const
Get Phi ID.
Abstract base class for different kinds of events.