Belle II Software development
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 <Math/Vector3D.h>
16
17namespace 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,
43 const ROOT::Math::XYZVector& extPos, const ROOT::Math::XYZVector& hitPos,
44 double extTime, double hitTime, double chiSq);
45
48 {
49 }
50
52 int getPdgCode() const
53 {
54 return m_PdgCode;
55 }
56
58 ROOT::Math::XYZVector getExtPosition() const
59 {
60 return ROOT::Math::XYZVector(m_ExtPosition[0], m_ExtPosition[1], m_ExtPosition[2]);
61 }
62
64 ROOT::Math::XYZVector getHitPosition() const
65 {
66 return ROOT::Math::XYZVector(m_HitPosition[0], m_HitPosition[1], m_HitPosition[2]);
67 }
68
70 double getExtTime() const
71 {
72 return m_ExtTime;
73 }
74
76 double getHitTime() const
77 {
78 return m_HitTime;
79 }
80
82 bool inBarrel() const
83 {
84 return m_InBarrel;
85 }
86
88 bool isForward() const
89 {
90 return m_IsForward;
91 }
92
94 int getSector() const
95 {
96 return m_Sector;
97 }
98
100 int getLayer() const
101 {
102 return m_Layer;
103 }
104
106 double getChiSquared() const
107 {
108 return m_ChiSquared;
109 }
110
111 private:
112
115
118
120 double m_ExtTime;
121
124
126 double m_HitTime;
127
130
133
136
139
142
145
146 };
148}
Store one muon-identification hit in the KLM as a ROOT object.
Definition: KLMMuidHit.h:24
ROOT::Math::XYZVector getHitPosition() const
Definition: KLMMuidHit.h:64
ROOT::Math::XYZVector getExtPosition() const
Definition: KLMMuidHit.h:58
int getLayer() const
Definition: KLMMuidHit.h:100
bool isForward() const
Definition: KLMMuidHit.h:88
int getPdgCode() const
Definition: KLMMuidHit.h:52
bool m_IsForward
flag to indicate if hit is in forward (true) or backward (false) half
Definition: KLMMuidHit.h:132
~KLMMuidHit()
Destructor.
Definition: KLMMuidHit.h:47
double m_HitTime
time of the matching KLM hit (ns)
Definition: KLMMuidHit.h:126
int m_PdgCode
PDG particleID code for the hypothesis used in this extrapolation.
Definition: KLMMuidHit.h:114
float m_ExtPosition[3]
global-coordinate position of the extrapolated point (cm)
Definition: KLMMuidHit.h:117
int getSector() const
Definition: KLMMuidHit.h:94
double m_ExtTime
time of the extrapolated point (ns)
Definition: KLMMuidHit.h:120
int m_Sector
sector number (1..8 for barrel, 1..4 for endcap)
Definition: KLMMuidHit.h:135
KLMMuidHit()
Empty constructor for ROOT IO (needed to make the class storable)
Definition: KLMMuidHit.cc:14
double getChiSquared() const
Definition: KLMMuidHit.h:106
double getExtTime() const
Definition: KLMMuidHit.h:70
int m_Layer
layer number (1..15 for barrel, 1..14 for endcap)
Definition: KLMMuidHit.h:138
double m_ChiSquared
chi-squared contribution of this hit for extrapolation point and KLM hit
Definition: KLMMuidHit.h:141
float m_HitPosition[3]
global-coordinate position of the matching KLM hit (cm)
Definition: KLMMuidHit.h:123
double getHitTime() const
Definition: KLMMuidHit.h:76
bool m_InBarrel
flag to indicate if hit is in barrel (true) or endcap (false)
Definition: KLMMuidHit.h:129
bool inBarrel() const
Definition: KLMMuidHit.h:82
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.