Belle II Software development
KLMTriggerHit.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 KLMTRIGGERHIT_H
10#define KLMTRIGGERHIT_H
11
12#include <framework/datastore/RelationsObject.h>
13
14namespace Belle2 {
21
22 public:
25 m_section(0),
26 m_sector(0),
27 m_layer(0),
28 m_phiStrip(0),
29 m_zStrip(0),
30 m_x(0.0),
31 m_y(0.0),
32 m_z(0.0),
33 m_xInt(0),
34 m_yInt(0),
35 m_zInt(0)
36 { }
37
44 KLMTriggerHit(int section, int sector, int layer, int phiStrip, int zStrip):
45 m_section(section),
46 m_sector(sector),
47 m_layer(layer),
48 m_phiStrip(phiStrip),
49 m_zStrip(zStrip),
50 m_x(0.0),
51 m_y(0.0),
52 m_z(0.0),
53 m_xInt(0),
54 m_yInt(0),
55 m_zInt(0)
56 { }
57
59 virtual ~KLMTriggerHit() {}
60
61 // accessors
62
65 int getSection() const { return m_section; }
66
69 int getSector() const { return m_sector; }
70
73 int getLayer() const { return m_layer; }
74
77 int getPhiStrip() const { return m_phiStrip; }
78
81 int getZStrip() const { return m_zStrip; }
82
85 double getX() const { return m_x; }
86
89 double getY() const { return m_y; }
90
93 double getZ() const { return m_z; }
94
97 int getXInt() const { return m_xInt; }
98
101 int getYInt() const { return m_yInt; }
102
105 int getZInt() const { return m_zInt; }
106
107 // modifiers
108
111 void setX(double x) { m_x = x; }
112
115 void setY(double y) { m_y = y; }
116
119 void setZ(double z) { m_z = z; }
120
123 void setXInt(int xInt) { m_xInt = xInt; }
124
127 void setYInt(int yInt) { m_yInt = yInt; }
128
131 void setZInt(int zInt) { m_zInt = zInt; }
132
133 private:
136
139
142
145
148
150 double m_x;
151
153 double m_y;
154
156 double m_z;
157
160
163
166
169 };
171} // end of namespace Belle2
172
173#endif //KLMTRIGGERHIT_H
Store KLM TRG hit information as a ROOT object.
Definition: KLMTriggerHit.h:20
int m_section
section number
ClassDef(KLMTriggerHit, 3)
Needed to make the ROOT object storable.
int getLayer() const
Get layer number.
Definition: KLMTriggerHit.h:73
virtual ~KLMTriggerHit()
Destructor.
Definition: KLMTriggerHit.h:59
double getX() const
Get x coordinate.
Definition: KLMTriggerHit.h:85
void setXInt(int xInt)
Set x integer coordinate.
int getYInt() const
Get y integer coordinate.
int m_zStrip
z channel number
int getSection() const
Get detector end.
Definition: KLMTriggerHit.h:65
void setZ(double z)
Set z coordinate.
void setYInt(int yInt)
Set y integer coordinate.
int m_xInt
x integer coordinate in 1/8 cm
int getZStrip() const
Get z strip number.
Definition: KLMTriggerHit.h:81
int getPhiStrip() const
Get phi strip number.
Definition: KLMTriggerHit.h:77
double m_x
x coordinate
int m_zInt
z integer coordinate in 1/8 cm
int getSector() const
Get sector number.
Definition: KLMTriggerHit.h:69
int m_sector
sector number
int getZInt() const
Get z integer coordinate.
void setY(double y)
Set y coordinate.
int getXInt() const
Get x integer coordinate.
Definition: KLMTriggerHit.h:97
double getZ() const
Get z coordinate.
Definition: KLMTriggerHit.h:93
void setX(double x)
Set x coordinate.
KLMTriggerHit()
Empty constructor for ROOT IO (needed to make the class storable)
Definition: KLMTriggerHit.h:24
int m_phiStrip
phi channel number
double getY() const
Get y coordinate.
Definition: KLMTriggerHit.h:89
KLMTriggerHit(int section, int sector, int layer, int phiStrip, int zStrip)
Constructor with initial values for a hit.
Definition: KLMTriggerHit.h:44
int m_yInt
y integer coordinate in 1/8 cm
double m_z
z coordinate
void setZInt(int zInt)
Set z integer coordinate.
double m_y
y coordinate
Defines interface for accessing relations of objects in StoreArray.
Abstract base class for different kinds of events.