Belle II Software development
TRGECLDigi.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 TRGECLTCHIT_H
10#define TRGECLTCHIT_H
11
12#include <TObject.h>
13
14namespace Belle2 {
21 class TRGECLDigi : public TObject {
22 public:
23
27 int m_tcid;
50 void setEventId(int eventid) { m_eventid = eventid; }
52 void setTCId(int tcid) { m_tcid = tcid; }
54 void setPhiId(int phiid) { m_phiid = phiid; }
56 void setThetaId(int thetaid) { m_thetaid = thetaid; }
59 void setRawEnergy(double raw_energy) { m_raw_energy = raw_energy; }
61 void setRawTiming(double raw_timing) { m_raw_timing = raw_timing; }
63 void setRawEnergyTot(double raw_energy_tot) { m_raw_energy_tot = raw_energy_tot; }
65 void setRawTimingTot(double raw_timing_tot) { m_raw_timing_tot = raw_timing_tot; }
67 void setFitEnergy(double fit_energy) { m_fit_energy = fit_energy; }
69 void setFitTiming(double fit_timing) { m_fit_timing = fit_timing; }
71 void setBeamBkgTag(int beambkgtag) { m_beambkgtag = beambkgtag; }
72
74 void setTCnOutput(int TC_noutput) { m_tcnoutput = TC_noutput; }
75
77 int getEventId() const { return m_eventid; }
79 int getTCId() const { return m_tcid; }
81 int getPhiId() const { return m_phiid; }
83 int getThetaId() const { return m_thetaid; }
86 double getRawEnergy() const {return m_raw_energy; }
88 double getRawTiming() const {return m_raw_timing; }
90 double getRawEnergyTot() const {return m_raw_energy_tot; }
92 double getRawTimingTot() const {return m_raw_timing_tot; }
94 double getFitEnergy() const {return m_fit_energy; }
96 double getFitTiming() const {return m_fit_timing; }
98 int getBeamBkgTag() const {return m_beambkgtag; }
99
100
104 {
105 m_eventid = 0;
106 m_tcid = 0;
107 m_phiid = 0;
108 m_thetaid = 0;
109 m_tcnoutput = 0;
110 m_beambkgtag = 0;
111
112 m_raw_energy = 0;
113 m_raw_timing = 0;
116 m_fit_energy = 0;
117 m_fit_timing = 0;
118
119
120
121
122 }
123
126 int eventid,
127 int tcid,
128 int phiid,
129 int thetaid,
130 int tcnoutput,
131 int beambkgtag,
132 double raw_energy,
133 double raw_timing,
134 double raw_energy_tot,
135 double raw_timing_tot,
136 double fit_energy,
137 double fit_timing
138 )
139 {
140 m_eventid = eventid;
141 m_tcid = tcid;
142 m_phiid = phiid;
143 m_thetaid = thetaid;
144 m_raw_energy = raw_energy;
145 m_raw_timing = raw_timing;
146 m_raw_energy_tot = raw_energy_tot;
147 m_raw_timing_tot = raw_timing_tot;
148 m_fit_energy = fit_energy;
149 m_fit_timing = fit_timing;
150 m_tcnoutput = tcnoutput;
151 m_beambkgtag = beambkgtag;
152
153
154 }
156 ClassDef(TRGECLDigi, 1); /*< the class title */
157 };
159}
160
161#endif
Digitize result.
Definition: TRGECLDigi.h:21
void setRawEnergyTot(double raw_energy_tot)
Set Raw total Energy.
Definition: TRGECLDigi.h:63
int getPhiId() const
Get phi Id.
Definition: TRGECLDigi.h:81
double m_raw_energy
TC Energy and Timing Raw TC energy.
Definition: TRGECLDigi.h:36
int m_phiid
phi id of TC
Definition: TRGECLDigi.h:29
void setBeamBkgTag(int beambkgtag)
Set Beam background veto.
Definition: TRGECLDigi.h:71
int m_eventid
Event Id.
Definition: TRGECLDigi.h:25
void setRawTimingTot(double raw_timing_tot)
Set Raw Total Timing.
Definition: TRGECLDigi.h:65
ClassDef(TRGECLDigi, 1)
the class title
double m_fit_energy
Fitting energy.
Definition: TRGECLDigi.h:44
double m_raw_energy_tot
Raw TC total energy.
Definition: TRGECLDigi.h:40
double getRawTimingTot() const
Get raw total timing.
Definition: TRGECLDigi.h:92
void setTCId(int tcid)
Set TC id.
Definition: TRGECLDigi.h:52
double getFitTiming() const
Get fit timing.
Definition: TRGECLDigi.h:96
int m_beambkgtag
beam bkg tag
Definition: TRGECLDigi.h:48
void setFitTiming(double fit_timing)
Set fitting timing.
Definition: TRGECLDigi.h:69
void setThetaId(int thetaid)
Set Theta id.
Definition: TRGECLDigi.h:56
void setTCnOutput(int TC_noutput)
Set # of TC output.
Definition: TRGECLDigi.h:74
double getRawEnergyTot() const
Get raw total energy.
Definition: TRGECLDigi.h:90
int getThetaId() const
Get theta Id.
Definition: TRGECLDigi.h:83
int getEventId() const
Get event id.
Definition: TRGECLDigi.h:77
int m_tcid
TC id.
Definition: TRGECLDigi.h:27
int getBeamBkgTag() const
Get beam background tag.
Definition: TRGECLDigi.h:98
TRGECLDigi(int eventid, int tcid, int phiid, int thetaid, int tcnoutput, int beambkgtag, double raw_energy, double raw_timing, double raw_energy_tot, double raw_timing_tot, double fit_energy, double fit_timing)
Useful Constructor.
Definition: TRGECLDigi.h:125
void setPhiId(int phiid)
Set Phi id.
Definition: TRGECLDigi.h:54
TRGECLDigi()
Empty constructor Recommended for ROOT IO.
Definition: TRGECLDigi.h:103
double getRawTiming() const
Get raw timing.
Definition: TRGECLDigi.h:88
int getTCId() const
Get TC id.
Definition: TRGECLDigi.h:79
void setRawEnergy(double raw_energy)
Set Energy and Timing Set Raw enrgy.
Definition: TRGECLDigi.h:59
double m_raw_timing
Raw TC timing.
Definition: TRGECLDigi.h:38
int m_thetaid
Theta id of TC.
Definition: TRGECLDigi.h:31
void setEventId(int eventid)
Set event id.
Definition: TRGECLDigi.h:50
void setRawTiming(double raw_timing)
Set Raw Timing.
Definition: TRGECLDigi.h:61
double getRawEnergy() const
Get Energy and Timing Get raw energy.
Definition: TRGECLDigi.h:86
double m_raw_timing_tot
Raw TC total timing.
Definition: TRGECLDigi.h:42
double getFitEnergy() const
get fit energy
Definition: TRGECLDigi.h:94
void setFitEnergy(double fit_energy)
Set fitting energy.
Definition: TRGECLDigi.h:67
double m_fit_timing
Fitting timing.
Definition: TRGECLDigi.h:46
Abstract base class for different kinds of events.