Belle II Software development
ARICHHit.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 ARICHHIT_H
10#define ARICHHIT_H
11
12#include <framework/datastore/RelationsObject.h>
13#include <Math/Vector3D.h>
14
15namespace Belle2 {
23 class ARICHHit : public RelationsObject {
24 public:
25
27
29 m_x(0.0),
30 m_y(0.0),
31 m_z(0.0),
32 m_mod(0),
33 m_ch(0)
34 {
36 }
37
39
44 ARICHHit(ROOT::Math::XYZVector position, int mod, int ch)
45 {
46 m_x = (float) position.X();
47 m_y = (float) position.Y();
48 m_z = (float) position.Z();
49 m_mod = mod;
50 m_ch = ch;
51 }
52
54 ROOT::Math::XYZVector getPosition() const { return ROOT::Math::XYZVector(m_x, m_y, m_z); }
55
57 int getChannel() const {return m_ch;}
58
60 int getModule() const {return m_mod;}
61
62 private:
63
64 float m_x;
65 float m_y;
66 float m_z;
67 int m_mod;
68 int m_ch;
73 };
74
76} // end namespace Belle2
77
78#endif // ARICHHIT_H
Datastore class that holds photon hits. Input to the reconstruction.
Definition: ARICHHit.h:23
ARICHHit(ROOT::Math::XYZVector position, int mod, int ch)
Useful Constructor.
Definition: ARICHHit.h:44
int m_mod
hit module ID
Definition: ARICHHit.h:67
ARICHHit()
Empty constructor.
Definition: ARICHHit.h:28
int getChannel() const
Get channel ID.
Definition: ARICHHit.h:57
int getModule() const
Get module ID.
Definition: ARICHHit.h:60
float m_y
hit y position
Definition: ARICHHit.h:65
ROOT::Math::XYZVector getPosition() const
Get photon hit position.
Definition: ARICHHit.h:54
ClassDef(ARICHHit, 1)
the class title
float m_z
hit z position
Definition: ARICHHit.h:66
float m_x
hit x position
Definition: ARICHHit.h:64
int m_ch
hit channels ID
Definition: ARICHHit.h:68
Defines interface for accessing relations of objects in StoreArray.
Abstract base class for different kinds of events.