Belle II Software  release-08-01-10
KLMMuidHit.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 #pragma once
10 
11 /* Basf2 headers. */
12 #include <framework/datastore/RelationsObject.h>
13 
14 /* C++ headers. */
15 #include <TVector3.h>
16 
17 namespace Belle2 {
24  class KLMMuidHit : public RelationsObject {
25 
26  public:
27 
29  KLMMuidHit();
30 
42  KLMMuidHit(int pdgCode, bool inBarrel, bool isForward, int sector, int layer, const TVector3& extPos, const TVector3& hitPos,
43  double extTime, double hitTime, double chiSq);
44 
47  {
48  }
49 
51  int getPdgCode() const
52  {
53  return m_PdgCode;
54  }
55 
57  TVector3 getExtPosition() const
58  {
59  return m_ExtPosition;
60  }
61 
63  TVector3 getHitPosition() const
64  {
65  return m_HitPosition;
66  }
67 
69  double getExtTime() const
70  {
71  return m_ExtTime;
72  }
73 
75  double getHitTime() const
76  {
77  return m_HitTime;
78  }
79 
81  bool inBarrel() const
82  {
83  return m_InBarrel;
84  }
85 
87  bool isForward() const
88  {
89  return m_IsForward;
90  }
91 
93  int getSector() const
94  {
95  return m_Sector;
96  }
97 
99  int getLayer() const
100  {
101  return m_Layer;
102  }
103 
105  double getChiSquared() const
106  {
107  return m_ChiSquared;
108  }
109 
110  private:
111 
114 
116  TVector3 m_ExtPosition;
117 
119  double m_ExtTime;
120 
122  TVector3 m_HitPosition;
123 
125  double m_HitTime;
126 
129 
132 
134  int m_Sector;
135 
137  int m_Layer;
138 
140  double m_ChiSquared;
141 
143  ClassDef(KLMMuidHit, 1)
144 
145  };
147 }
Store one muon-identification hit in the KLM as a ROOT object.
Definition: KLMMuidHit.h:24
TVector3 getHitPosition() const
Definition: KLMMuidHit.h:63
int getLayer() const
Definition: KLMMuidHit.h:99
bool isForward() const
Definition: KLMMuidHit.h:87
int getPdgCode() const
Definition: KLMMuidHit.h:51
TVector3 m_HitPosition
global-coordinate position of the matching KLM hit (cm)
Definition: KLMMuidHit.h:122
bool m_IsForward
flag to indicate if hit is in forward (true) or backward (false) half
Definition: KLMMuidHit.h:131
~KLMMuidHit()
Destructor.
Definition: KLMMuidHit.h:46
double m_HitTime
time of the matching KLM hit (ns)
Definition: KLMMuidHit.h:125
int m_PdgCode
PDG particleID code for the hypothesis used in this extrapolation.
Definition: KLMMuidHit.h:113
int getSector() const
Definition: KLMMuidHit.h:93
double m_ExtTime
time of the extrapolated point (ns)
Definition: KLMMuidHit.h:119
int m_Sector
sector number (1..8 for barrel, 1..4 for endcap)
Definition: KLMMuidHit.h:134
KLMMuidHit()
Empty constructor for ROOT IO (needed to make the class storable)
Definition: KLMMuidHit.cc:14
double getChiSquared() const
Definition: KLMMuidHit.h:105
double getExtTime() const
Definition: KLMMuidHit.h:69
int m_Layer
layer number (1..15 for barrel, 1..14 for endcap)
Definition: KLMMuidHit.h:137
double m_ChiSquared
chi-squared contribution of this hit for extrapolation point and KLM hit
Definition: KLMMuidHit.h:140
double getHitTime() const
Definition: KLMMuidHit.h:75
TVector3 getExtPosition() const
Definition: KLMMuidHit.h:57
bool m_InBarrel
flag to indicate if hit is in barrel (true) or endcap (false)
Definition: KLMMuidHit.h:128
TVector3 m_ExtPosition
global-coordinate position of the extrapolated point (cm)
Definition: KLMMuidHit.h:116
bool inBarrel() const
Definition: KLMMuidHit.h:81
Defines interface for accessing relations of objects in StoreArray.
ClassDef(RelationsInterface, 0)
defines interface for accessing relations of objects in StoreArray.
Abstract base class for different kinds of events.