Belle II Software development
TRGECLHit.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 TRGECLHIT_H
10#define TRGECLHIT_H
11
12
13#include <TObject.h>
14
15namespace Belle2 {
22 class TRGECLHit : public TObject {
23 public:
24
25
28
30 int m_TCId;
34 double m_edep;
35
37 double m_TimeAve;
38
40 void setEventId(int eventId) { m_eventId = eventId; }
41
43 void setTCId(int TCId) { m_TCId = TCId; }
44
46 void setBeamBkgTag(int beambkgtag) { m_beambkgtag = beambkgtag; }
47
49 void setEnergyDep(double edep) { m_edep = edep; }
50
52 void setTimeAve(double TimeAve) { m_TimeAve = TimeAve; }
53
55 int getEventId() const { return m_eventId; }
56
58 int getTCId() const { return m_TCId; }
59
61 double getEnergyDep() const { return m_edep; }
62
64 double getTimeAve() const {return m_TimeAve;}
66 int getBeamBkgTag() const {return m_beambkgtag; }
67
68
69 // Empty constructor
70 // Recommended for ROOT IO
71 TRGECLHit()
72 {
73 m_eventId = 0;
74 m_TCId = 0;
75 m_edep = 0;
76 m_TimeAve = 0;
77 m_beambkgtag = 0;
78 }
79
82 int eventId,
83 int TCId,
84 int beambkgtag,
85 double edep,
86 double TimeAve
87 )
88 {
89 m_eventId = eventId;
90 m_TCId = TCId;
91 m_edep = edep;
92 m_TimeAve = TimeAve;
93 m_beambkgtag = beambkgtag;
94
95 }
98
99 };
100
102} // end namespace Belle2
103
104#endif
Example Detector.
Definition: TRGECLHit.h:22
TRGECLHit(int eventId, int TCId, int beambkgtag, double edep, double TimeAve)
Useful Constructor.
Definition: TRGECLHit.h:81
int m_TCId
The TC id of this hit.
Definition: TRGECLHit.h:30
double getTimeAve() const
The method to get hit average time.
Definition: TRGECLHit.h:64
void setBeamBkgTag(int beambkgtag)
The method to set Beam Background tag.
Definition: TRGECLHit.h:46
void setTCId(int TCId)
The method to set TC id.
Definition: TRGECLHit.h:43
double getEnergyDep() const
The method to get deposited energy.
Definition: TRGECLHit.h:61
int m_beambkgtag
beambkg tag
Definition: TRGECLHit.h:32
void setEnergyDep(double edep)
The method to set deposited energy.
Definition: TRGECLHit.h:49
int m_eventId
The TC id of this hit.
Definition: TRGECLHit.h:27
int getEventId() const
The method to get event id.
Definition: TRGECLHit.h:55
double m_edep
Deposited energy of this hit.
Definition: TRGECLHit.h:34
double m_TimeAve
Hit average time.
Definition: TRGECLHit.h:37
int getBeamBkgTag() const
The method to get Beam Background tag.
Definition: TRGECLHit.h:66
void setEventId(int eventId)
The method to set event id.
Definition: TRGECLHit.h:40
int getTCId() const
The method to get TC id.
Definition: TRGECLHit.h:58
void setTimeAve(double TimeAve)
The method to set hit average time.
Definition: TRGECLHit.h:52
ClassDef(TRGECLHit, 1)
the class title
Abstract base class for different kinds of events.