Belle II Software development
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 <Math/Vector3D.h>
14
15namespace Belle2 {
23
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
50 ARICHAeroHit(int particleId,
51 ROOT::Math::XYZVector position,
52 ROOT::Math::XYZVector momentum)
53 {
54 m_particleID = particleId;
55 m_x = (float) position.X();
56 m_y = (float) position.Y();
57 m_z = (float) position.Z();
58 m_px = (float) momentum.X();
59 m_py = (float) momentum.Y();
60 m_pz = (float) momentum.Z();
61 }
62
64 int getPDG() const { return m_particleID; }
65
67 ROOT::Math::XYZVector getPosition() const { return ROOT::Math::XYZVector(m_x, m_y, m_z); }
68
70 ROOT::Math::XYZVector getMomentum() const { return ROOT::Math::XYZVector(m_px, m_py, m_pz); }
71
72 private:
73
75 float m_x;
76 float m_y;
77 float m_z;
78 float m_px;
79 float m_py;
80 float m_pz;
84 };
85
87} // end namespace Belle2
88
89#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:74
ARICHAeroHit(int particleId, ROOT::Math::XYZVector position, ROOT::Math::XYZVector momentum)
Useful Constructor.
Definition: ARICHAeroHit.h:50
float m_py
impact momentum, x component (at entrance in 1.
Definition: ARICHAeroHit.h:79
ClassDef(ARICHAeroHit, 1)
the class title
float m_pz
impact momentum, x component (at entrance in 1.
Definition: ARICHAeroHit.h:80
int getPDG() const
Get particle PDG identity number.
Definition: ARICHAeroHit.h:64
float m_px
impact momentum, x component (at entrance in 1.
Definition: ARICHAeroHit.h:78
float m_y
impact point, x component (at entrance in 1.
Definition: ARICHAeroHit.h:76
ROOT::Math::XYZVector getMomentum() const
Get track momentum (at entrance in 1. aerogel plane)
Definition: ARICHAeroHit.h:70
ROOT::Math::XYZVector getPosition() const
Get track position (at entrance in 1. aerogel plane)
Definition: ARICHAeroHit.h:67
ARICHAeroHit()
Empty constructor.
Definition: ARICHAeroHit.h:32
float m_z
impact point, x component (at entrance in 1.
Definition: ARICHAeroHit.h:77
float m_x
impact point, x component (at entrance in 1.
Definition: ARICHAeroHit.h:75
Defines interface for accessing relations of objects in StoreArray.
Abstract base class for different kinds of events.