Belle II Software  release-08-01-10
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 <TVector3.h>
14 
15 namespace 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 
42  ARICHHit(TVector3 position, int mod, int ch)
43  {
44  m_x = (float) position.X();
45  m_y = (float) position.Y();
46  m_z = (float) position.Z();
47  m_mod = mod;
48  m_ch = ch;
49  }
50 
52  TVector3 getPosition() const { TVector3 vec(m_x, m_y, m_z); return vec; }
53 
55  int getChannel() const {return m_ch;}
56 
58  int getModule() const {return m_mod;}
59 
60  private:
61 
62  float m_x;
63  float m_y;
64  float m_z;
65  int m_mod;
66  int m_ch;
71  };
72 
74 } // end namespace Belle2
75 
76 #endif // ARICHHIT_H
Datastore class that holds photon hits. Input to the reconstruction.
Definition: ARICHHit.h:23
int m_mod
hit module ID
Definition: ARICHHit.h:65
ARICHHit()
Empty constructor.
Definition: ARICHHit.h:28
int getChannel() const
Get channel ID.
Definition: ARICHHit.h:55
int getModule() const
Get module ID.
Definition: ARICHHit.h:58
TVector3 getPosition() const
Get photon hit position.
Definition: ARICHHit.h:52
float m_y
hit y position
Definition: ARICHHit.h:63
ClassDef(ARICHHit, 1)
the class title
float m_z
hit z position
Definition: ARICHHit.h:64
float m_x
hit x position
Definition: ARICHHit.h:62
ARICHHit(TVector3 position, int mod, int ch)
Useful Constructor.
Definition: ARICHHit.h:42
int m_ch
hit channels ID
Definition: ARICHHit.h:66
Defines interface for accessing relations of objects in StoreArray.
Abstract base class for different kinds of events.