Belle II Software  release-05-01-25
ARICHInfo.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 ARICHINFO_H
12 #define ARICHINFO_H
13 
14 #include <framework/datastore/RelationsObject.h>
15 
16 namespace Belle2 {
23  class ARICHInfo : public RelationsObject {
25  public:
26 
28 
29  ARICHInfo():
30  m_trgtype(0),
31  m_thscan_mode(0),
33  {
35  }
36 
38 
41  explicit ARICHInfo(int trgtype)
42  {
43  m_trgtype = trgtype;
44  }
45 
47  void settrgtype(int trgtype) { m_trgtype = trgtype; }
48 
50  void setthscan_mode(bool mode) { m_thscan_mode = mode; }
51 
53  void setvth_thscan(double vth_thscan) { m_vth_thscan = vth_thscan; }
54 
56  void setntrack(double n_track) { m_n_track = n_track; }
57 
59  void setnexthit(double n_exthit) { m_n_exthit = n_exthit; }
60 
62  void setnhit(double n_hit) { m_n_hit = n_hit; }
63 
65  int gettrgtype() const { return m_trgtype; }
66 
68  bool getthscan_mode() const { return m_thscan_mode; }
69 
71  double getvth_thscan() const { return m_vth_thscan; }
72 
74  int getntrack() const { return m_n_track; }
75 
77  int getnexthit() const { return m_n_exthit; }
78 
80  int getnhit() const { return m_n_hit; }
81 
82  private:
83 
84  int m_trgtype = 0;
85  bool m_thscan_mode = false;
86  double m_vth_thscan = 0;
87  int m_n_track = 0;
88  int m_n_exthit = 0;
89  int m_n_hit = 0;
95  };
96 
98 } // end namespace Belle2
99 
100 #endif // ARICHINFO_H
Belle2::ARICHInfo::setntrack
void setntrack(double n_track)
Set number of tracks of this event.
Definition: ARICHInfo.h:64
Belle2::ARICHInfo::getvth_thscan
double getvth_thscan() const
Get vth for thscan.
Definition: ARICHInfo.h:79
Belle2::ARICHInfo::m_n_hit
int m_n_hit
number of ARICHHits of this event
Definition: ARICHInfo.h:97
Belle2::ARICHInfo::m_thscan_mode
bool m_thscan_mode
Flag of threshold scan run
Definition: ARICHInfo.h:93
Belle2::ARICHInfo::ClassDef
ClassDef(ARICHInfo, 3)
the class title
Belle2::ARICHInfo::gettrgtype
int gettrgtype() const
Get the trigger type.
Definition: ARICHInfo.h:73
Belle2::ARICHInfo::setvth_thscan
void setvth_thscan(double vth_thscan)
Set vth for thscan mode.
Definition: ARICHInfo.h:61
Belle2::ARICHInfo::setnexthit
void setnexthit(double n_exthit)
Set number of eligible ExtHits of this event.
Definition: ARICHInfo.h:67
Belle2::ARICHInfo::getntrack
int getntrack() const
Get number of tracks of this event.
Definition: ARICHInfo.h:82
Belle2::ARICHInfo::m_vth_thscan
double m_vth_thscan
vth value for thscan mode
Definition: ARICHInfo.h:94
Belle2::ARICHInfo::m_n_exthit
int m_n_exthit
number of eligible ExtHits of this event
Definition: ARICHInfo.h:96
Belle2::ARICHInfo::setnhit
void setnhit(double n_hit)
Set number of ARICHHits of this event.
Definition: ARICHInfo.h:70
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::ARICHInfo::getnhit
int getnhit() const
Get number of ARICHHits of this event.
Definition: ARICHInfo.h:88
Belle2::ARICHInfo::settrgtype
void settrgtype(int trgtype)
Set the trigger type.
Definition: ARICHInfo.h:55
Belle2::ARICHInfo
Datastore class to keep ARICH event infomation e.g. trigger type.
Definition: ARICHInfo.h:32
Belle2::RelationsObject
RelationsInterface< TObject > RelationsObject
Provides interface for getting/adding relations to objects in StoreArrays.
Definition: RelationsObject.h:443
Belle2::ARICHInfo::setthscan_mode
void setthscan_mode(bool mode)
Set the threshold scan mode flag.
Definition: ARICHInfo.h:58
Belle2::ARICHInfo::getthscan_mode
bool getthscan_mode() const
Get the threshold scan mode flag.
Definition: ARICHInfo.h:76
Belle2::ARICHInfo::m_trgtype
int m_trgtype
trigger type
Definition: ARICHInfo.h:92
Belle2::ARICHInfo::m_n_track
int m_n_track
number of tracks of this event
Definition: ARICHInfo.h:95
Belle2::ARICHInfo::getnexthit
int getnexthit() const
Get number of eligible ExtHits of this event.
Definition: ARICHInfo.h:85
Belle2::ARICHInfo::ARICHInfo
ARICHInfo()
Empty constructor.
Definition: ARICHInfo.h:37