Belle II Software  release-06-00-14
ARICHInfo.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 ARICHINFO_H
10 #define ARICHINFO_H
11 
12 #include <framework/datastore/RelationsObject.h>
13 
14 namespace Belle2 {
22  class ARICHInfo : public RelationsObject {
23  public:
24 
26 
28  m_trgtype(0),
29  m_thscan_mode(0),
30  m_vth_thscan(0.0)
31  {
33  }
34 
36 
39  explicit ARICHInfo(int trgtype)
40  {
41  m_trgtype = trgtype;
42  }
43 
45  void settrgtype(int trgtype) { m_trgtype = trgtype; }
46 
48  void setthscan_mode(bool mode) { m_thscan_mode = mode; }
49 
51  void setvth_thscan(double vth_thscan) { m_vth_thscan = vth_thscan; }
52 
54  void setntrack(double n_track) { m_n_track = n_track; }
55 
57  void setnexthit(double n_exthit) { m_n_exthit = n_exthit; }
58 
60  void setnhit(double n_hit) { m_n_hit = n_hit; }
61 
63  int gettrgtype() const { return m_trgtype; }
64 
66  bool getthscan_mode() const { return m_thscan_mode; }
67 
69  double getvth_thscan() const { return m_vth_thscan; }
70 
72  int getntrack() const { return m_n_track; }
73 
75  int getnexthit() const { return m_n_exthit; }
76 
78  int getnhit() const { return m_n_hit; }
79 
80  private:
81 
82  int m_trgtype = 0;
83  bool m_thscan_mode = false;
84  double m_vth_thscan = 0;
85  int m_n_track = 0;
86  int m_n_exthit = 0;
87  int m_n_hit = 0;
93  };
94 
96 } // end namespace Belle2
97 
98 #endif // ARICHINFO_H
Datastore class to keep ARICH event infomation e.g. trigger type.
Definition: ARICHInfo.h:22
int getntrack() const
Get number of tracks of this event.
Definition: ARICHInfo.h:72
int m_n_hit
number of ARICHHits of this event
Definition: ARICHInfo.h:87
void setntrack(double n_track)
Set number of tracks of this event.
Definition: ARICHInfo.h:54
void setvth_thscan(double vth_thscan)
Set vth for thscan mode.
Definition: ARICHInfo.h:51
int getnexthit() const
Get number of eligible ExtHits of this event.
Definition: ARICHInfo.h:75
void settrgtype(int trgtype)
Set the trigger type.
Definition: ARICHInfo.h:45
int m_n_exthit
number of eligible ExtHits of this event
Definition: ARICHInfo.h:86
int gettrgtype() const
Get the trigger type.
Definition: ARICHInfo.h:63
bool getthscan_mode() const
Get the threshold scan mode flag.
Definition: ARICHInfo.h:66
void setnhit(double n_hit)
Set number of ARICHHits of this event.
Definition: ARICHInfo.h:60
void setnexthit(double n_exthit)
Set number of eligible ExtHits of this event.
Definition: ARICHInfo.h:57
int m_trgtype
trigger type
Definition: ARICHInfo.h:82
ClassDef(ARICHInfo, 3)
the class title
double getvth_thscan() const
Get vth for thscan.
Definition: ARICHInfo.h:69
bool m_thscan_mode
Flag of threshold scan run
Definition: ARICHInfo.h:83
ARICHInfo(int trgtype)
Useful Constructor.
Definition: ARICHInfo.h:39
void setthscan_mode(bool mode)
Set the threshold scan mode flag.
Definition: ARICHInfo.h:48
int m_n_track
number of tracks of this event
Definition: ARICHInfo.h:85
double m_vth_thscan
vth value for thscan mode
Definition: ARICHInfo.h:84
ARICHInfo()
Empty constructor.
Definition: ARICHInfo.h:27
int getnhit() const
Get number of ARICHHits of this event.
Definition: ARICHInfo.h:78
Defines interface for accessing relations of objects in StoreArray.
Abstract base class for different kinds of events.