Belle II Software development
KLMMuidHit.cc
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/* Own header. */
10#include <klm/dataobjects/KLMMuidHit.h>
11
12using namespace Belle2;
13
15 m_PdgCode(0),
16 m_ExtPosition{0.0, 0.0, 0.0},
17 m_ExtTime(0.0),
18 m_HitPosition{0.0, 0.0, 0.0},
19 m_HitTime(0.0),
20 m_InBarrel(false),
21 m_IsForward(false),
22 m_Sector(0),
23 m_Layer(0),
24 m_ChiSquared(0.0)
25{
26}
27
28KLMMuidHit::KLMMuidHit(int pdgCode, bool inBarrel, bool isForward, int sector, int layer,
29 const ROOT::Math::XYZVector& extPosition, const ROOT::Math::XYZVector& hitPosition,
30 double extTime, double hitTime, double chiSquared) :
31 m_PdgCode(pdgCode),
32 m_ExtTime(extTime),
33 m_HitTime(hitTime),
36 m_Sector(sector),
37 m_Layer(layer),
38 m_ChiSquared(chiSquared)
39{
40 m_ExtPosition[0] = extPosition.X();
41 m_ExtPosition[1] = extPosition.Y();
42 m_ExtPosition[2] = extPosition.Z();
43 m_HitPosition[0] = hitPosition.X();
44 m_HitPosition[1] = hitPosition.Y();
45 m_HitPosition[2] = hitPosition.Z();
46}
bool isForward() const
Definition KLMMuidHit.h:88
bool m_IsForward
flag to indicate if hit is in forward (true) or backward (false) half
Definition KLMMuidHit.h:132
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
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
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
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
Abstract base class for different kinds of events.