Belle II Software  release-05-02-19
ARICHAeroHit.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2010 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Luka Santelj *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 #ifndef ARICHAEROHIT_H
12 #define ARICHAEROHIT_H
13 
14 #include <framework/datastore/RelationsObject.h>
15 #include <TVector3.h>
16 
17 namespace Belle2 {
24 
29  class ARICHAeroHit : public RelationsObject {
30  public:
31 
33 
34  ARICHAeroHit():
35  m_particleID(-1),
36  m_x(0.0),
37  m_y(0.0),
38  m_z(0.0),
39  m_px(0.0),
40  m_py(0.0),
41  m_pz(0.0)
42  {
44  }
45 
47 
53  ARICHAeroHit(int particleId,
54  TVector3 position,
55  TVector3 momentum)
56  {
57  m_particleID = particleId;
58  m_x = (float) position.x();
59  m_y = (float) position.y();
60  m_z = (float) position.z();
61  m_px = (float) momentum.x();
62  m_py = (float) momentum.y();
63  m_pz = (float) momentum.z();
64  }
65 
67  int getPDG() const { return m_particleID; }
68 
70  TVector3 getPosition() const { TVector3 vec(m_x, m_y, m_z); return vec; }
71 
73  TVector3 getMomentum() const { TVector3 vec(m_px, m_py, m_pz); return vec; }
74 
75  private:
76 
77  int m_particleID;
78  float m_x;
79  float m_y;
80  float m_z;
81  float m_px;
82  float m_py;
83  float m_pz;
87  };
88 
90 } // end namespace Belle2
91 
92 #endif // ARICHAEROHIT_H
Belle2::ARICHAeroHit::getPosition
TVector3 getPosition() const
Get track position (at entrance in 1. aerogel plane)
Definition: ARICHAeroHit.h:78
Belle2::ARICHAeroHit::getMomentum
TVector3 getMomentum() const
Get track momentum (at entrance in 1. aerogel plane)
Definition: ARICHAeroHit.h:81
Belle2::ARICHAeroHit
Datastore class that holds information on track parameters at the entrance in aerogel.
Definition: ARICHAeroHit.h:37
Belle2::ARICHAeroHit::m_py
float m_py
impact momentum, x component (at entrance in 1.
Definition: ARICHAeroHit.h:90
Belle2::ARICHAeroHit::m_pz
float m_pz
impact momentum, x component (at entrance in 1.
Definition: ARICHAeroHit.h:91
Belle2::ARICHAeroHit::m_px
float m_px
impact momentum, x component (at entrance in 1.
Definition: ARICHAeroHit.h:89
Belle2::ARICHAeroHit::m_particleID
int m_particleID
PDG code of particle.
Definition: ARICHAeroHit.h:85
Belle2::ARICHAeroHit::ClassDef
ClassDef(ARICHAeroHit, 1)
the class title
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::ARICHAeroHit::m_y
float m_y
impact point, x component (at entrance in 1.
Definition: ARICHAeroHit.h:87
Belle2::ARICHAeroHit::ARICHAeroHit
ARICHAeroHit()
Empty constructor.
Definition: ARICHAeroHit.h:42
Belle2::RelationsObject
RelationsInterface< TObject > RelationsObject
Provides interface for getting/adding relations to objects in StoreArrays.
Definition: RelationsObject.h:443
Belle2::ARICHAeroHit::m_z
float m_z
impact point, x component (at entrance in 1.
Definition: ARICHAeroHit.h:88
Belle2::ARICHAeroHit::getPDG
int getPDG() const
Get particle PDG identity number.
Definition: ARICHAeroHit.h:75
Belle2::ARICHAeroHit::m_x
float m_x
impact point, x component (at entrance in 1.
Definition: ARICHAeroHit.h:86