Belle II Software  release-05-01-25
KLMTriggerHit.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2010 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Dmitri Liventsev *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 #ifndef KLMTRIGGERHIT_H
12 #define KLMTRIGGERHIT_H
13 
14 #include <framework/datastore/RelationsObject.h>
15 
16 namespace Belle2 {
21  class KLMTriggerHit : public RelationsObject {
23 
24  public:
26  KLMTriggerHit():
27  m_section(0),
28  m_sector(0),
29  m_layer(0),
31  m_zStrip(0),
32  m_x(0.0),
33  m_y(0.0),
34  m_z(0.0),
35  m_xInt(0),
36  m_yInt(0),
37  m_zInt(0)
38  { }
39 
46  KLMTriggerHit(int section, int sector, int layer, int phiStrip, int zStrip):
47  m_section(section),
48  m_sector(sector),
49  m_layer(layer),
50  m_phiStrip(phiStrip),
51  m_zStrip(zStrip),
52  m_x(0.0),
53  m_y(0.0),
54  m_z(0.0),
55  m_xInt(0),
56  m_yInt(0),
57  m_zInt(0)
58  { }
59 
61  virtual ~KLMTriggerHit() {}
62 
63  // accessors
64 
67  int getSection() const { return m_section; }
68 
71  int getSector() const { return m_sector; }
72 
75  int getLayer() const { return m_layer; }
76 
79  int getPhiStrip() const { return m_phiStrip; }
80 
83  int getZStrip() const { return m_zStrip; }
84 
87  double getX() const { return m_x; }
88 
91  double getY() const { return m_y; }
92 
95  double getZ() const { return m_z; }
96 
99  int getXInt() const { return m_xInt; }
100 
103  int getYInt() const { return m_yInt; }
104 
107  int getZInt() const { return m_zInt; }
108 
109  // modifiers
110 
113  void setX(double x) { m_x = x; }
114 
117  void setY(double y) { m_y = y; }
118 
121  void setZ(double z) { m_z = z; }
122 
125  void setXInt(int xInt) { m_xInt = xInt; }
126 
129  void setYInt(int yInt) { m_yInt = yInt; }
130 
133  void setZInt(int zInt) { m_zInt = zInt; }
134 
135  private:
138 
140  int m_sector;
141 
143  int m_layer;
144 
146  int m_phiStrip;
147 
149  int m_zStrip;
150 
152  double m_x;
153 
155  double m_y;
156 
158  double m_z;
159 
161  int m_xInt;
162 
164  int m_yInt;
165 
167  int m_zInt;
168 
171  };
173 } // end of namespace Belle2
174 
175 #endif //KLMTRIGGERHIT_H
Belle2::KLMTriggerHit::getY
double getY() const
Get y coordinate.
Definition: KLMTriggerHit.h:99
Belle2::KLMTriggerHit::getYInt
int getYInt() const
Get y integer coordinate.
Definition: KLMTriggerHit.h:111
Belle2::KLMTriggerHit::m_xInt
int m_xInt
x integer coordinate in 1/8 cm
Definition: KLMTriggerHit.h:169
Belle2::KLMTriggerHit::getXInt
int getXInt() const
Get x integer coordinate.
Definition: KLMTriggerHit.h:107
Belle2::KLMTriggerHit::m_sector
int m_sector
sector number
Definition: KLMTriggerHit.h:148
Belle2::KLMTriggerHit::getZ
double getZ() const
Get z coordinate.
Definition: KLMTriggerHit.h:103
Belle2::KLMTriggerHit::getZInt
int getZInt() const
Get z integer coordinate.
Definition: KLMTriggerHit.h:115
Belle2::KLMTriggerHit::m_zStrip
int m_zStrip
z channel number
Definition: KLMTriggerHit.h:157
Belle2::KLMTriggerHit::getPhiStrip
int getPhiStrip() const
Get phi strip number.
Definition: KLMTriggerHit.h:87
Belle2::KLMTriggerHit::getX
double getX() const
Get x coordinate.
Definition: KLMTriggerHit.h:95
Belle2::KLMTriggerHit::setZInt
void setZInt(int zInt)
Set z integer coordinate.
Definition: KLMTriggerHit.h:141
Belle2::KLMTriggerHit::m_section
int m_section
section number
Definition: KLMTriggerHit.h:145
Belle2::KLMTriggerHit::m_y
double m_y
y coordinate
Definition: KLMTriggerHit.h:163
Belle2::KLMTriggerHit::m_x
double m_x
x coordinate
Definition: KLMTriggerHit.h:160
Belle2::KLMTriggerHit::m_zInt
int m_zInt
z integer coordinate in 1/8 cm
Definition: KLMTriggerHit.h:175
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::KLMTriggerHit::setY
void setY(double y)
Set y coordinate.
Definition: KLMTriggerHit.h:125
Belle2::KLMTriggerHit::setX
void setX(double x)
Set x coordinate.
Definition: KLMTriggerHit.h:121
Belle2::KLMTriggerHit::m_layer
int m_layer
layer
Definition: KLMTriggerHit.h:151
Belle2::KLMTriggerHit::getSection
int getSection() const
Get detector end.
Definition: KLMTriggerHit.h:75
Belle2::KLMTriggerHit
Store KLM TRG hit information as a ROOT object.
Definition: KLMTriggerHit.h:30
Belle2::KLMTriggerHit::setXInt
void setXInt(int xInt)
Set x integer coordinate.
Definition: KLMTriggerHit.h:133
Belle2::KLMTriggerHit::setYInt
void setYInt(int yInt)
Set y integer coordinate.
Definition: KLMTriggerHit.h:137
Belle2::KLMTriggerHit::m_z
double m_z
z coordinate
Definition: KLMTriggerHit.h:166
Belle2::KLMTriggerHit::ClassDef
ClassDef(KLMTriggerHit, 3)
Needed to make the ROOT object storable.
Belle2::KLMTriggerHit::m_yInt
int m_yInt
y integer coordinate in 1/8 cm
Definition: KLMTriggerHit.h:172
Belle2::RelationsObject
RelationsInterface< TObject > RelationsObject
Provides interface for getting/adding relations to objects in StoreArrays.
Definition: RelationsObject.h:443
Belle2::KLMTriggerHit::m_phiStrip
int m_phiStrip
phi channel number
Definition: KLMTriggerHit.h:154
Belle2::KLMTriggerHit::setZ
void setZ(double z)
Set z coordinate.
Definition: KLMTriggerHit.h:129
Belle2::KLMTriggerHit::getZStrip
int getZStrip() const
Get z strip number.
Definition: KLMTriggerHit.h:91
Belle2::KLMTriggerHit::getLayer
int getLayer() const
Get layer number.
Definition: KLMTriggerHit.h:83
Belle2::KLMTriggerHit::~KLMTriggerHit
virtual ~KLMTriggerHit()
Destructor.
Definition: KLMTriggerHit.h:69
Belle2::KLMTriggerHit::getSector
int getSector() const
Get sector number.
Definition: KLMTriggerHit.h:79
Belle2::KLMTriggerHit::KLMTriggerHit
KLMTriggerHit()
Empty constructor for ROOT IO (needed to make the class storable)
Definition: KLMTriggerHit.h:34