Belle II Software development
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
14namespace Belle2 {
22 class ARICHInfo : public RelationsObject {
23 public:
24
26
28 m_trgtype(0),
29 m_pciedata(false),
31 m_vth_thscan(0.0)
32 {
34 }
35
37
40 explicit ARICHInfo(int trgtype)
41 {
42 m_trgtype = trgtype;
43 }
44
46 void settrgtype(int trgtype) { m_trgtype = trgtype; }
47
49 void setpciedata(bool pciedata) { m_pciedata = pciedata; }
50
52 void setthscan_mode(bool mode) { m_thscan_mode = mode; }
53
55 void setvth_thscan(double vth_thscan) { m_vth_thscan = vth_thscan; }
56
58 void setntrack(double n_track) { m_n_track = n_track; }
59
61 void setnexthit(double n_exthit) { m_n_exthit = n_exthit; }
62
64 void setnhit(double n_hit) { m_n_hit = n_hit; }
65
67 int gettrgtype() const { return m_trgtype; }
68
70 bool getpciedata() const { return m_pciedata; }
71
73 bool getthscan_mode() const { return m_thscan_mode; }
74
76 double getvth_thscan() const { return m_vth_thscan; }
77
79 int getntrack() const { return m_n_track; }
80
82 int getnexthit() const { return m_n_exthit; }
83
85 int getnhit() const { return m_n_hit; }
86
87 private:
88
89 int m_trgtype = 0;
90 bool m_pciedata = false;
91 bool m_thscan_mode = false;
92 double m_vth_thscan = 0;
93 int m_n_track = 0;
94 int m_n_exthit = 0;
95 int m_n_hit = 0;
101 };
102
104} // end namespace Belle2
105
106#endif // ARICHINFO_H
Datastore class to keep ARICH event infomation e.g. trigger type.
Definition: ARICHInfo.h:22
ClassDef(ARICHInfo, 4)
the class title
int getntrack() const
Get number of tracks of this event.
Definition: ARICHInfo.h:79
bool m_pciedata
PCIe40 readout data (true), or Copper data (false)
Definition: ARICHInfo.h:90
int m_n_hit
number of ARICHHits of this event
Definition: ARICHInfo.h:95
void setntrack(double n_track)
Set number of tracks of this event.
Definition: ARICHInfo.h:58
void setvth_thscan(double vth_thscan)
Set vth for thscan mode.
Definition: ARICHInfo.h:55
int getnexthit() const
Get number of eligible ExtHits of this event.
Definition: ARICHInfo.h:82
void settrgtype(int trgtype)
Set the trigger type.
Definition: ARICHInfo.h:46
int m_n_exthit
number of eligible ExtHits of this event
Definition: ARICHInfo.h:94
int gettrgtype() const
Get the trigger type.
Definition: ARICHInfo.h:67
bool getthscan_mode() const
Get the threshold scan mode flag.
Definition: ARICHInfo.h:73
void setpciedata(bool pciedata)
Set the readout type.
Definition: ARICHInfo.h:49
void setnhit(double n_hit)
Set number of ARICHHits of this event.
Definition: ARICHInfo.h:64
void setnexthit(double n_exthit)
Set number of eligible ExtHits of this event.
Definition: ARICHInfo.h:61
int m_trgtype
trigger type
Definition: ARICHInfo.h:89
bool getpciedata() const
Get the readout type.
Definition: ARICHInfo.h:70
double getvth_thscan() const
Get vth for thscan.
Definition: ARICHInfo.h:76
bool m_thscan_mode
Flag of threshold scan run
Definition: ARICHInfo.h:91
ARICHInfo(int trgtype)
Useful Constructor.
Definition: ARICHInfo.h:40
void setthscan_mode(bool mode)
Set the threshold scan mode flag.
Definition: ARICHInfo.h:52
int m_n_track
number of tracks of this event
Definition: ARICHInfo.h:93
double m_vth_thscan
vth value for thscan mode
Definition: ARICHInfo.h:92
ARICHInfo()
Empty constructor.
Definition: ARICHInfo.h:27
int getnhit() const
Get number of ARICHHits of this event.
Definition: ARICHInfo.h:85
Defines interface for accessing relations of objects in StoreArray.
Abstract base class for different kinds of events.