BOSS 7.1.0
BESIII Offline Software System
Loading...
Searching...
No Matches
TofHitStatus.h
Go to the documentation of this file.
1#ifndef TOFHITSTATUS_H
2#define TOFHITSTATUS_H
3
5
7
8 public:
9
11 virtual ~TofHitStatus() {}
12
13 void init();
14 TofHitStatus& operator=(const DstTofTrack& source);
15 TofHitStatus& operator=(const TofHitStatus& source);
16 // TofHitStatus& operator+(const TofHitStatus& source1, const TofHitStatus& source2 )
17
18 public:
19
20 unsigned int value() const { return m_status; }
21 // void status( const bool raw, bool readout, bool counter, bool cluster,bool barrel, bool east, const unsigned int layer, unsigned int ncounter, unsigned int neast, unsigned int nwest ) const;
22 bool is_raw() const { return m_raw; }
23 bool is_readout() const { return m_readout; }
24 bool is_counter() const { return m_counter; }
25 bool is_cluster() const { return m_cluster; }
26 bool is_barrel() const { return m_barrel; }
27 bool is_east() const { return m_east; }
28 unsigned int layer() const { return m_layer; }
29 bool is_overflow() const { return m_overflow; }
30 bool is_multihit() const { return m_multihit; }
31 unsigned int ncounter() const { return m_ncounter; }
32 unsigned int neast() const { return m_neast; }
33 unsigned int nwest() const { return m_nwest; }
34 bool is_mrpc() const { return m_mrpc; }
35
36 static bool is_raw( unsigned int status );
37 static bool is_readout( unsigned int status );
38 static bool is_counter( unsigned int status );
39 static bool is_cluster( unsigned int status );
40 static bool is_barrel( unsigned int status );
41 static bool is_east( unsigned int status );
42 static unsigned int layer( unsigned int status );
43 static bool is_overflow( unsigned int status );
44 static bool is_multihit( unsigned int status );
45 static unsigned int ncounter( unsigned int status );
46 static unsigned int neast( unsigned int status );
47 static unsigned int nwest( unsigned int status );
48 static unsigned int part( unsigned int status );
49 static bool is_mrpc( unsigned int status );
50
51 public:
52
53 void setStatus( unsigned int status );
54 void setRaw( bool raw );
55 void setReadout( bool readout );
56 void setCounter( bool counter );
57 void setCluster( bool cluster );
58 void setBarrel( bool barrel );
59 void setEast( bool east );
60 void setLayer( unsigned int layer );
61 void setOverflow( bool overflow );
62 void setMultihit( bool multihit );
63 void setNCounter( unsigned int ncounter );
64 void setNEast( unsigned int neast );
65 void setNWest( unsigned int nwest );
66 void setMRPC( bool mrpc );
67
68 void setBarrelCluster( unsigned int layer );
69 void setBarrelCounter( unsigned int layer );
70 void setBarrelReadout( unsigned int layer, bool east );
71 void setBarrelRaw( unsigned int layer, bool east );
72 void setEndcapCluster( bool east );
73 void setEndcapRaw( bool east );
74 void setMRPCReadout( bool east );
75 void setMRPCCluster( bool cluster, bool east );
76 void setNoHit();
77
78 private:
79
80 unsigned int m_status;
81 bool m_raw;
82 bool m_readout;
83 bool m_counter;
84 bool m_cluster;
85 bool m_barrel;
86 bool m_east;
87 unsigned int m_layer;
88 bool m_overflow;
89 bool m_multihit;
90 unsigned int m_ncounter;
91 unsigned int m_neast;
92 unsigned int m_nwest;
93 bool m_mrpc;
94
95 static const unsigned int Raw_Index = 0;
96 static const unsigned int Raw_Mask = 0x00000001;
97 static const unsigned int Readout_Index = 1;
98 static const unsigned int Readout_Mask = 0x00000002;
99 static const unsigned int Counter_Index = 2;
100 static const unsigned int Counter_Mask = 0x00000004;
101 static const unsigned int Cluster_Index = 3;
102 static const unsigned int Cluster_Mask = 0x00000008;
103 static const unsigned int Barrel_Index = 4;
104 static const unsigned int Barrel_Mask = 0x00000010;
105 static const unsigned int East_Index = 5;
106 static const unsigned int East_Mask = 0x00000020;
107 static const unsigned int Layer_Index = 6;
108 static const unsigned int Layer_Mask = 0x000000C0;
109 static const unsigned int Overflow_Index = 8;
110 static const unsigned int Overflow_Mask = 0x00000100;
111 static const unsigned int Multihit_Index = 9;
112 static const unsigned int Multihit_Mask = 0x00000200;
113 static const unsigned int Ncounter_Index = 12;
114 static const unsigned int Ncounter_Mask = 0x0000F000;
115 static const unsigned int Neast_Index = 16;
116 static const unsigned int Neast_Mask = 0x000F0000;
117 static const unsigned int Nwest_Index = 20;
118 static const unsigned int Nwest_Mask = 0x00F00000;
119 static const unsigned int N_Mask = 0x0000000F;
120 static const unsigned int MRPC_Index = 24;
121 static const unsigned int MRPC_Mask = 0x01000000;
122 static const unsigned int N_MRPC = 0x00000001;
123
124};
125#endif //TOFHITSTATUS_H
bool is_barrel() const
Definition: TofHitStatus.h:26
void setMRPCReadout(bool east)
unsigned int ncounter() const
Definition: TofHitStatus.h:31
void setMRPC(bool mrpc)
unsigned int layer() const
Definition: TofHitStatus.h:28
unsigned int value() const
Definition: TofHitStatus.h:20
static unsigned int part(unsigned int status)
void setMRPCCluster(bool cluster, bool east)
bool is_cluster() const
Definition: TofHitStatus.h:25
void setBarrelReadout(unsigned int layer, bool east)
void setStatus(unsigned int status)
void setNWest(unsigned int nwest)
bool is_multihit() const
Definition: TofHitStatus.h:30
virtual ~TofHitStatus()
Definition: TofHitStatus.h:11
bool is_overflow() const
Definition: TofHitStatus.h:29
void setLayer(unsigned int layer)
void setCounter(bool counter)
void setMultihit(bool multihit)
void setBarrel(bool barrel)
unsigned int nwest() const
Definition: TofHitStatus.h:33
bool is_mrpc() const
Definition: TofHitStatus.h:34
void setBarrelRaw(unsigned int layer, bool east)
bool is_counter() const
Definition: TofHitStatus.h:24
void setCluster(bool cluster)
void setEast(bool east)
void setOverflow(bool overflow)
bool is_east() const
Definition: TofHitStatus.h:27
bool is_readout() const
Definition: TofHitStatus.h:23
unsigned int neast() const
Definition: TofHitStatus.h:32
void setNCounter(unsigned int ncounter)
void setEndcapRaw(bool east)
void setEndcapCluster(bool east)
bool is_raw() const
Definition: TofHitStatus.h:22
void setNEast(unsigned int neast)
void setBarrelCounter(unsigned int layer)
TofHitStatus & operator=(const DstTofTrack &source)
void setBarrelCluster(unsigned int layer)
void setReadout(bool readout)
void setRaw(bool raw)