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),
34 m_InBarrel(inBarrel),
35 m_IsForward(isForward),
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}
float m_ExtPosition[3]
global-coordinate position of the extrapolated point (cm)
Definition: KLMMuidHit.h:117
KLMMuidHit()
Empty constructor for ROOT IO (needed to make the class storable)
Definition: KLMMuidHit.cc:14
float m_HitPosition[3]
global-coordinate position of the matching KLM hit (cm)
Definition: KLMMuidHit.h:123
Abstract base class for different kinds of events.