Belle II Software  release-08-01-10
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 
12 using namespace Belle2;
13 
15  m_PdgCode(0),
16  m_ExtPosition(0, 0, 0),
17  m_ExtTime(0.0),
18  m_HitPosition(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 
28 KLMMuidHit::KLMMuidHit(int pdgCode, bool inBarrel, bool isForward, int sector, int layer, const TVector3& extPosition,
29  const TVector3& hitPosition, double extTime, double hitTime, double chiSquared) :
30  m_PdgCode(pdgCode),
31  m_ExtTime(extTime),
32  m_HitTime(hitTime),
33  m_InBarrel(inBarrel),
34  m_IsForward(isForward),
35  m_Sector(sector),
36  m_Layer(layer),
37  m_ChiSquared(chiSquared)
38 {
39  m_ExtPosition[0] = extPosition.X();
40  m_ExtPosition[1] = extPosition.Y();
41  m_ExtPosition[2] = extPosition.Z();
42  m_HitPosition[0] = hitPosition.X();
43  m_HitPosition[1] = hitPosition.Y();
44  m_HitPosition[2] = hitPosition.Z();
45 }
TVector3 m_HitPosition
global-coordinate position of the matching KLM hit (cm)
Definition: KLMMuidHit.h:122
KLMMuidHit()
Empty constructor for ROOT IO (needed to make the class storable)
Definition: KLMMuidHit.cc:14
TVector3 m_ExtPosition
global-coordinate position of the extrapolated point (cm)
Definition: KLMMuidHit.h:116
Abstract base class for different kinds of events.