Belle II Software  release-05-01-25
KLMMuidHit.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2010 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Leo Piilonen *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 #pragma once
12 
13 /* Belle 2 headers. */
14 #include <framework/datastore/RelationsObject.h>
15 
16 /* C++ headers. */
17 #include <TVector3.h>
18 
19 namespace Belle2 {
25  class KLMMuidHit : public RelationsObject {
27 
28  public:
29 
31  KLMMuidHit();
32 
44  KLMMuidHit(int pdgCode, bool inBarrel, bool isForward, int sector, int layer, const TVector3& extPos, const TVector3& hitPos,
45  double extTime, double hitTime, double chiSq);
46 
48  virtual ~KLMMuidHit()
49  {
50  }
51 
53  int getPdgCode() const
54  {
55  return m_PdgCode;
56  }
57 
59  TVector3 getExtPosition() const
60  {
61  return m_ExtPosition;
62  }
63 
65  TVector3 getHitPosition() const
66  {
67  return m_HitPosition;
68  }
69 
71  double getExtTime() const
72  {
73  return m_ExtTime;
74  }
75 
77  double getHitTime() const
78  {
79  return m_HitTime;
80  }
81 
83  bool inBarrel() const
84  {
85  return m_InBarrel;
86  }
87 
89  bool isForward() const
90  {
91  return m_IsForward;
92  }
93 
95  int getSector() const
96  {
97  return m_Sector;
98  }
99 
101  int getLayer() const
102  {
103  return m_Layer;
104  }
105 
107  double getChiSquared() const
108  {
109  return m_ChiSquared;
110  }
111 
112  private:
113 
116 
118  TVector3 m_ExtPosition;
119 
121  double m_ExtTime;
122 
124  TVector3 m_HitPosition;
125 
127  double m_HitTime;
128 
130  bool m_InBarrel;
131 
133  bool m_IsForward;
134 
136  int m_Sector;
137 
139  int m_Layer;
140 
142  double m_ChiSquared;
143 
145  ClassDef(KLMMuidHit, 1)
146 
147  };
149 }
Belle2::KLMMuidHit::m_Sector
int m_Sector
sector number (1..8 for barrel, 1..4 for endcap)
Definition: KLMMuidHit.h:144
Belle2::KLMMuidHit::m_PdgCode
int m_PdgCode
PDG particleID code for the hypothesis used in this extrapolation.
Definition: KLMMuidHit.h:123
Belle2::KLMMuidHit::getChiSquared
double getChiSquared() const
Definition: KLMMuidHit.h:115
Belle2::KLMMuidHit::m_Layer
int m_Layer
layer number (1..15 for barrel, 1..14 for endcap)
Definition: KLMMuidHit.h:147
Belle2::KLMMuidHit::getExtTime
double getExtTime() const
Definition: KLMMuidHit.h:79
Belle2::KLMMuidHit::getExtPosition
TVector3 getExtPosition() const
Definition: KLMMuidHit.h:67
Belle2::KLMMuidHit::isForward
bool isForward() const
Definition: KLMMuidHit.h:97
Belle2::KLMMuidHit::m_HitTime
double m_HitTime
time of the matching KLM hit (ns)
Definition: KLMMuidHit.h:135
Belle2::RelationsInterface::ClassDef
ClassDef(RelationsInterface, 0)
defines interface for accessing relations of objects in StoreArray.
Belle2::KLMMuidHit::m_IsForward
bool m_IsForward
flag to indicate if hit is in forward (true) or backward (false) half
Definition: KLMMuidHit.h:141
Belle2::KLMMuidHit::m_InBarrel
bool m_InBarrel
flag to indicate if hit is in barrel (true) or endcap (false)
Definition: KLMMuidHit.h:138
Belle2::KLMMuidHit::getLayer
int getLayer() const
Definition: KLMMuidHit.h:109
Belle2::KLMMuidHit::getPdgCode
int getPdgCode() const
Definition: KLMMuidHit.h:61
Belle2::KLMMuidHit::m_ChiSquared
double m_ChiSquared
chi-squared contribution of this hit for extrapolation point and KLM hit
Definition: KLMMuidHit.h:150
Belle2::KLMMuidHit::~KLMMuidHit
virtual ~KLMMuidHit()
Destructor.
Definition: KLMMuidHit.h:56
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::KLMMuidHit::m_ExtTime
double m_ExtTime
time of the extrapolated point (ns)
Definition: KLMMuidHit.h:129
Belle2::KLMMuidHit::getHitPosition
TVector3 getHitPosition() const
Definition: KLMMuidHit.h:73
Belle2::KLMMuidHit::KLMMuidHit
KLMMuidHit()
Empty constructor for ROOT IO (needed to make the class storable)
Definition: KLMMuidHit.cc:17
Belle2::KLMMuidHit::inBarrel
bool inBarrel() const
Definition: KLMMuidHit.h:91
Belle2::KLMMuidHit::getSector
int getSector() const
Definition: KLMMuidHit.h:103
Belle2::KLMMuidHit::m_ExtPosition
TVector3 m_ExtPosition
global-coordinate position of the extrapolated point (cm)
Definition: KLMMuidHit.h:126
Belle2::RelationsObject
RelationsInterface< TObject > RelationsObject
Provides interface for getting/adding relations to objects in StoreArrays.
Definition: RelationsObject.h:443
Belle2::KLMMuidHit
Store one muon-identification hit in the KLM as a ROOT object.
Definition: KLMMuidHit.h:34
Belle2::KLMMuidHit::getHitTime
double getHitTime() const
Definition: KLMMuidHit.h:85
Belle2::KLMMuidHit::m_HitPosition
TVector3 m_HitPosition
global-coordinate position of the matching KLM hit (cm)
Definition: KLMMuidHit.h:132