Belle II Software  release-08-01-10
ARICHAeroHit.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 #ifndef ARICHAEROHIT_H
10 #define ARICHAEROHIT_H
11 
12 #include <framework/datastore/RelationsObject.h>
13 #include <TVector3.h>
14 
15 namespace Belle2 {
23 
27  class ARICHAeroHit : public RelationsObject {
28  public:
29 
31 
33  m_particleID(-1),
34  m_x(0.0),
35  m_y(0.0),
36  m_z(0.0),
37  m_px(0.0),
38  m_py(0.0),
39  m_pz(0.0)
40  {
42  }
43 
45 
51  ARICHAeroHit(int particleId,
52  TVector3 position,
53  TVector3 momentum)
54  {
55  m_particleID = particleId;
56  m_x = (float) position.X();
57  m_y = (float) position.Y();
58  m_z = (float) position.Z();
59  m_px = (float) momentum.X();
60  m_py = (float) momentum.Y();
61  m_pz = (float) momentum.Z();
62  }
63 
65  int getPDG() const { return m_particleID; }
66 
68  TVector3 getPosition() const { TVector3 vec(m_x, m_y, m_z); return vec; }
69 
71  TVector3 getMomentum() const { TVector3 vec(m_px, m_py, m_pz); return vec; }
72 
73  private:
74 
76  float m_x;
77  float m_y;
78  float m_z;
79  float m_px;
80  float m_py;
81  float m_pz;
85  };
86 
88 } // end namespace Belle2
89 
90 #endif // ARICHAEROHIT_H
Datastore class that holds information on track parameters at the entrance in aerogel.
Definition: ARICHAeroHit.h:27
int m_particleID
PDG code of particle.
Definition: ARICHAeroHit.h:75
TVector3 getMomentum() const
Get track momentum (at entrance in 1. aerogel plane)
Definition: ARICHAeroHit.h:71
float m_py
impact momentum, x component (at entrance in 1.
Definition: ARICHAeroHit.h:80
ClassDef(ARICHAeroHit, 1)
the class title
float m_pz
impact momentum, x component (at entrance in 1.
Definition: ARICHAeroHit.h:81
ARICHAeroHit(int particleId, TVector3 position, TVector3 momentum)
Useful Constructor.
Definition: ARICHAeroHit.h:51
int getPDG() const
Get particle PDG identity number.
Definition: ARICHAeroHit.h:65
TVector3 getPosition() const
Get track position (at entrance in 1. aerogel plane)
Definition: ARICHAeroHit.h:68
float m_px
impact momentum, x component (at entrance in 1.
Definition: ARICHAeroHit.h:79
float m_y
impact point, x component (at entrance in 1.
Definition: ARICHAeroHit.h:77
ARICHAeroHit()
Empty constructor.
Definition: ARICHAeroHit.h:32
float m_z
impact point, x component (at entrance in 1.
Definition: ARICHAeroHit.h:78
float m_x
impact point, x component (at entrance in 1.
Definition: ARICHAeroHit.h:76
Defines interface for accessing relations of objects in StoreArray.
Abstract base class for different kinds of events.