Belle II Software  release-05-02-19
ARICHHit.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 ARICHHIT_H
12 #define ARICHHIT_H
13 
14 #include <framework/datastore/RelationsObject.h>
15 #include <TVector3.h>
16 
17 namespace Belle2 {
24  class ARICHHit : public RelationsObject {
26  public:
27 
29 
30  ARICHHit():
31  m_x(0.0),
32  m_y(0.0),
33  m_z(0.0),
34  m_mod(0),
35  m_ch(0)
36  {
38  }
39 
41 
44  ARICHHit(TVector3 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  TVector3 getPosition() const { TVector3 vec(m_x, m_y, m_z); return vec; }
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;
71  ClassDef(ARICHHit, 1);
73  };
74 
76 } // end namespace Belle2
77 
78 #endif // ARICHHIT_H
Belle2::ARICHHit::ARICHHit
ARICHHit()
Empty constructor.
Definition: ARICHHit.h:38
Belle2::ARICHHit::m_z
float m_z
hit z position
Definition: ARICHHit.h:74
Belle2::ARICHHit::m_x
float m_x
hit x position
Definition: ARICHHit.h:72
Belle2::ARICHHit::m_y
float m_y
hit y position
Definition: ARICHHit.h:73
Belle2::ARICHHit::m_ch
int m_ch
hit channels ID
Definition: ARICHHit.h:76
Belle2::ARICHHit::getChannel
int getChannel() const
Get channel ID.
Definition: ARICHHit.h:65
Belle2::ARICHHit
Datastore class that holds photon hits. Input to the reconstruction.
Definition: ARICHHit.h:33
Belle2::ARICHHit::getPosition
TVector3 getPosition() const
Get photon hit position.
Definition: ARICHHit.h:62
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::ARICHHit::ClassDef
ClassDef(ARICHHit, 1)
the class title
Belle2::RelationsObject
RelationsInterface< TObject > RelationsObject
Provides interface for getting/adding relations to objects in StoreArrays.
Definition: RelationsObject.h:443
Belle2::ARICHHit::getModule
int getModule() const
Get module ID.
Definition: ARICHHit.h:68
Belle2::ARICHHit::m_mod
int m_mod
hit module ID
Definition: ARICHHit.h:75