BOSS 7.0.4
BESIII Offline Software System
Loading...
Searching...
No Matches
TofHitStatus Class Reference

#include <TofHitStatus.h>

Public Member Functions

 TofHitStatus ()
 
virtual ~TofHitStatus ()
 
void init ()
 
TofHitStatusoperator= (const DstTofTrack &source)
 
TofHitStatusoperator= (const TofHitStatus &source)
 
unsigned int value () const
 
bool is_raw () const
 
bool is_readout () const
 
bool is_counter () const
 
bool is_cluster () const
 
bool is_barrel () const
 
bool is_east () const
 
unsigned int layer () const
 
bool is_overflow () const
 
bool is_multihit () const
 
unsigned int ncounter () const
 
unsigned int neast () const
 
unsigned int nwest () const
 
bool is_mrpc () const
 
void setStatus (unsigned int status)
 
void setRaw (bool raw)
 
void setReadout (bool readout)
 
void setCounter (bool counter)
 
void setCluster (bool cluster)
 
void setBarrel (bool barrel)
 
void setEast (bool east)
 
void setLayer (unsigned int layer)
 
void setOverflow (bool overflow)
 
void setMultihit (bool multihit)
 
void setNCounter (unsigned int ncounter)
 
void setNEast (unsigned int neast)
 
void setNWest (unsigned int nwest)
 
void setMRPC (bool mrpc)
 
void setBarrelCluster (unsigned int layer)
 
void setBarrelCounter (unsigned int layer)
 
void setBarrelReadout (unsigned int layer, bool east)
 
void setBarrelRaw (unsigned int layer, bool east)
 
void setEndcapCluster (bool east)
 
void setEndcapRaw (bool east)
 
void setMRPCReadout (bool east)
 
void setMRPCCluster (bool cluster, bool east)
 
void setNoHit ()
 
 TofHitStatus ()
 
virtual ~TofHitStatus ()
 
void init ()
 
TofHitStatusoperator= (const DstTofTrack &source)
 
TofHitStatusoperator= (const TofHitStatus &source)
 
unsigned int value () const
 
bool is_raw () const
 
bool is_readout () const
 
bool is_counter () const
 
bool is_cluster () const
 
bool is_barrel () const
 
bool is_east () const
 
unsigned int layer () const
 
bool is_overflow () const
 
bool is_multihit () const
 
unsigned int ncounter () const
 
unsigned int neast () const
 
unsigned int nwest () const
 
bool is_mrpc () const
 
void setStatus (unsigned int status)
 
void setRaw (bool raw)
 
void setReadout (bool readout)
 
void setCounter (bool counter)
 
void setCluster (bool cluster)
 
void setBarrel (bool barrel)
 
void setEast (bool east)
 
void setLayer (unsigned int layer)
 
void setOverflow (bool overflow)
 
void setMultihit (bool multihit)
 
void setNCounter (unsigned int ncounter)
 
void setNEast (unsigned int neast)
 
void setNWest (unsigned int nwest)
 
void setMRPC (bool mrpc)
 
void setBarrelCluster (unsigned int layer)
 
void setBarrelCounter (unsigned int layer)
 
void setBarrelReadout (unsigned int layer, bool east)
 
void setBarrelRaw (unsigned int layer, bool east)
 
void setEndcapCluster (bool east)
 
void setEndcapRaw (bool east)
 
void setMRPCReadout (bool east)
 
void setMRPCCluster (bool cluster, bool east)
 
void setNoHit ()
 

Static Public Member Functions

static bool is_raw (unsigned int status)
 
static bool is_readout (unsigned int status)
 
static bool is_counter (unsigned int status)
 
static bool is_cluster (unsigned int status)
 
static bool is_barrel (unsigned int status)
 
static bool is_east (unsigned int status)
 
static unsigned int layer (unsigned int status)
 
static bool is_overflow (unsigned int status)
 
static bool is_multihit (unsigned int status)
 
static unsigned int ncounter (unsigned int status)
 
static unsigned int neast (unsigned int status)
 
static unsigned int nwest (unsigned int status)
 
static unsigned int part (unsigned int status)
 
static bool is_mrpc (unsigned int status)
 
static bool is_raw (unsigned int status)
 
static bool is_readout (unsigned int status)
 
static bool is_counter (unsigned int status)
 
static bool is_cluster (unsigned int status)
 
static bool is_barrel (unsigned int status)
 
static bool is_east (unsigned int status)
 
static unsigned int layer (unsigned int status)
 
static bool is_overflow (unsigned int status)
 
static bool is_multihit (unsigned int status)
 
static unsigned int ncounter (unsigned int status)
 
static unsigned int neast (unsigned int status)
 
static unsigned int nwest (unsigned int status)
 
static unsigned int part (unsigned int status)
 
static bool is_mrpc (unsigned int status)
 

Detailed Description

Constructor & Destructor Documentation

◆ TofHitStatus() [1/2]

TofHitStatus::TofHitStatus ( )

Definition at line 5 of file TofHitStatus.cxx.

5 {
6 m_status = 0;
7 m_raw = false;
8 m_readout = false;
9 m_counter = false;
10 m_cluster = false;
11 m_barrel = false;
12 m_east = false;
13 m_layer = 0;
14 m_overflow = false;
15 m_multihit = false;
16 m_ncounter = 0;
17 m_neast = 0;
18 m_nwest = 0;
19 m_mrpc = false;
20}

◆ ~TofHitStatus() [1/2]

virtual TofHitStatus::~TofHitStatus ( )
inlinevirtual

◆ TofHitStatus() [2/2]

TofHitStatus::TofHitStatus ( )

◆ ~TofHitStatus() [2/2]

virtual TofHitStatus::~TofHitStatus ( )
inlinevirtual

Definition at line 11 of file InstallArea/include/DstEvent/DstEvent/TofHitStatus.h.

11{}

Member Function Documentation

◆ init() [1/2]

void TofHitStatus::init ( )

Definition at line 23 of file TofHitStatus.cxx.

23 {
24 m_status = 0;
25 m_raw = false;
26 m_readout = false;
27 m_counter = false;
28 m_cluster = false;
29 m_barrel = false;
30 m_east = false;
31 m_layer = 0;
32 m_overflow = false;
33 m_multihit = false;
34 m_ncounter = 0;
35 m_neast = 0;
36 m_nwest = 0;
37 m_mrpc = false;
38}

◆ init() [2/2]

void TofHitStatus::init ( )

◆ is_barrel() [1/4]

◆ is_barrel() [2/4]

bool TofHitStatus::is_barrel ( ) const
inline

Definition at line 26 of file InstallArea/include/DstEvent/DstEvent/TofHitStatus.h.

26{ return m_barrel; }

◆ is_barrel() [3/4]

bool TofHitStatus::is_barrel ( unsigned int  status)
static

Definition at line 89 of file TofHitStatus.cxx.

89 {
90 return ((status & Barrel_Mask) >> Barrel_Index ) ? true : false;
91}

◆ is_barrel() [4/4]

static bool TofHitStatus::is_barrel ( unsigned int  status)
static

◆ is_cluster() [1/4]

◆ is_cluster() [2/4]

bool TofHitStatus::is_cluster ( ) const
inline

Definition at line 25 of file InstallArea/include/DstEvent/DstEvent/TofHitStatus.h.

25{ return m_cluster; }

◆ is_cluster() [3/4]

bool TofHitStatus::is_cluster ( unsigned int  status)
static

Definition at line 84 of file TofHitStatus.cxx.

84 {
85 return ((status & Cluster_Mask) >> Cluster_Index ) ? true : false;
86}

◆ is_cluster() [4/4]

static bool TofHitStatus::is_cluster ( unsigned int  status)
static

◆ is_counter() [1/4]

◆ is_counter() [2/4]

bool TofHitStatus::is_counter ( ) const
inline

Definition at line 24 of file InstallArea/include/DstEvent/DstEvent/TofHitStatus.h.

24{ return m_counter; }

◆ is_counter() [3/4]

bool TofHitStatus::is_counter ( unsigned int  status)
static

Definition at line 79 of file TofHitStatus.cxx.

79 {
80 return ((status & Counter_Mask) >> Counter_Index ) ? true : false;
81}

◆ is_counter() [4/4]

static bool TofHitStatus::is_counter ( unsigned int  status)
static

◆ is_east() [1/4]

◆ is_east() [2/4]

bool TofHitStatus::is_east ( ) const
inline

Definition at line 27 of file InstallArea/include/DstEvent/DstEvent/TofHitStatus.h.

27{ return m_east; }

◆ is_east() [3/4]

bool TofHitStatus::is_east ( unsigned int  status)
static

Definition at line 94 of file TofHitStatus.cxx.

94 {
95 return ((status & East_Mask) >> East_Index ) ? true : false;
96}

◆ is_east() [4/4]

static bool TofHitStatus::is_east ( unsigned int  status)
static

◆ is_mrpc() [1/4]

◆ is_mrpc() [2/4]

bool TofHitStatus::is_mrpc ( ) const
inline

Definition at line 34 of file InstallArea/include/DstEvent/DstEvent/TofHitStatus.h.

34{ return m_mrpc; }

◆ is_mrpc() [3/4]

bool TofHitStatus::is_mrpc ( unsigned int  status)
static

Definition at line 129 of file TofHitStatus.cxx.

129 {
130 return ((status & MRPC_Mask) >> MRPC_Index ) ? true : false;
131}

◆ is_mrpc() [4/4]

static bool TofHitStatus::is_mrpc ( unsigned int  status)
static

◆ is_multihit() [1/4]

bool TofHitStatus::is_multihit ( ) const
inline

Definition at line 30 of file Event/DstEvent/DstEvent-00-02-51/DstEvent/TofHitStatus.h.

30{ return m_multihit; }

Referenced by TofCheckData::Fill().

◆ is_multihit() [2/4]

bool TofHitStatus::is_multihit ( ) const
inline

Definition at line 30 of file InstallArea/include/DstEvent/DstEvent/TofHitStatus.h.

30{ return m_multihit; }

◆ is_multihit() [3/4]

bool TofHitStatus::is_multihit ( unsigned int  status)
static

Definition at line 109 of file TofHitStatus.cxx.

109 {
110 return ((status & Multihit_Mask) >> Multihit_Index ) ? true : false;
111}

◆ is_multihit() [4/4]

static bool TofHitStatus::is_multihit ( unsigned int  status)
static

◆ is_overflow() [1/4]

bool TofHitStatus::is_overflow ( ) const
inline

Definition at line 29 of file Event/DstEvent/DstEvent-00-02-51/DstEvent/TofHitStatus.h.

29{ return m_overflow; }

Referenced by TofCheckData::Fill().

◆ is_overflow() [2/4]

bool TofHitStatus::is_overflow ( ) const
inline

Definition at line 29 of file InstallArea/include/DstEvent/DstEvent/TofHitStatus.h.

29{ return m_overflow; }

◆ is_overflow() [3/4]

bool TofHitStatus::is_overflow ( unsigned int  status)
static

Definition at line 104 of file TofHitStatus.cxx.

104 {
105 return ((status & Overflow_Mask) >> Overflow_Index ) ? true : false;
106}

◆ is_overflow() [4/4]

static bool TofHitStatus::is_overflow ( unsigned int  status)
static

◆ is_raw() [1/4]

◆ is_raw() [2/4]

bool TofHitStatus::is_raw ( ) const
inline

Definition at line 22 of file InstallArea/include/DstEvent/DstEvent/TofHitStatus.h.

22{ return m_raw; }

◆ is_raw() [3/4]

bool TofHitStatus::is_raw ( unsigned int  status)
static

Definition at line 69 of file TofHitStatus.cxx.

69 {
70 return ((status & Raw_Mask) >> Raw_Index ) ? true : false;
71}

◆ is_raw() [4/4]

static bool TofHitStatus::is_raw ( unsigned int  status)
static

◆ is_readout() [1/4]

◆ is_readout() [2/4]

bool TofHitStatus::is_readout ( ) const
inline

Definition at line 23 of file InstallArea/include/DstEvent/DstEvent/TofHitStatus.h.

23{ return m_readout; }

◆ is_readout() [3/4]

bool TofHitStatus::is_readout ( unsigned int  status)
static

Definition at line 74 of file TofHitStatus.cxx.

74 {
75 return ((status & Readout_Mask) >> Readout_Index ) ? true : false;
76}

◆ is_readout() [4/4]

static bool TofHitStatus::is_readout ( unsigned int  status)
static

◆ layer() [1/4]

◆ layer() [2/4]

unsigned int TofHitStatus::layer ( ) const
inline

Definition at line 28 of file InstallArea/include/DstEvent/DstEvent/TofHitStatus.h.

28{ return m_layer; }

◆ layer() [3/4]

unsigned int TofHitStatus::layer ( unsigned int  status)
static

Definition at line 99 of file TofHitStatus.cxx.

99 {
100 return (status & Layer_Mask) >> Layer_Index;
101}

◆ layer() [4/4]

static unsigned int TofHitStatus::layer ( unsigned int  status)
static

◆ ncounter() [1/4]

unsigned int TofHitStatus::ncounter ( ) const
inline

◆ ncounter() [2/4]

unsigned int TofHitStatus::ncounter ( ) const
inline

Definition at line 31 of file InstallArea/include/DstEvent/DstEvent/TofHitStatus.h.

31{ return m_ncounter; }

◆ ncounter() [3/4]

unsigned int TofHitStatus::ncounter ( unsigned int  status)
static

Definition at line 114 of file TofHitStatus.cxx.

114 {
115 return (status >> Ncounter_Index ) & N_Mask;
116}

◆ ncounter() [4/4]

static unsigned int TofHitStatus::ncounter ( unsigned int  status)
static

◆ neast() [1/4]

unsigned int TofHitStatus::neast ( ) const
inline

◆ neast() [2/4]

unsigned int TofHitStatus::neast ( ) const
inline

Definition at line 32 of file InstallArea/include/DstEvent/DstEvent/TofHitStatus.h.

32{ return m_neast; }

◆ neast() [3/4]

unsigned int TofHitStatus::neast ( unsigned int  status)
static

Definition at line 119 of file TofHitStatus.cxx.

119 {
120 return (status >> Neast_Index ) & N_Mask;
121}

◆ neast() [4/4]

static unsigned int TofHitStatus::neast ( unsigned int  status)
static

◆ nwest() [1/4]

unsigned int TofHitStatus::nwest ( ) const
inline

◆ nwest() [2/4]

unsigned int TofHitStatus::nwest ( ) const
inline

Definition at line 33 of file InstallArea/include/DstEvent/DstEvent/TofHitStatus.h.

33{ return m_nwest; }

◆ nwest() [3/4]

unsigned int TofHitStatus::nwest ( unsigned int  status)
static

Definition at line 124 of file TofHitStatus.cxx.

124 {
125 return (status >> Nwest_Index ) & N_Mask;
126}

◆ nwest() [4/4]

static unsigned int TofHitStatus::nwest ( unsigned int  status)
static

◆ operator=() [1/4]

TofHitStatus & TofHitStatus::operator= ( const DstTofTrack source)

Definition at line 42 of file TofHitStatus.cxx.

42 {
43 m_status = source.status();
44 m_raw = ((m_status & Raw_Mask) >> Raw_Index ) ? true : false;
45 m_readout = ((m_status & Readout_Mask) >> Readout_Index ) ? true : false;
46 m_counter = ((m_status & Counter_Mask) >> Counter_Index ) ? true : false;
47 m_cluster = ((m_status & Cluster_Mask) >> Cluster_Index ) ? true : false;
48 m_barrel = ((m_status & Barrel_Mask) >> Barrel_Index ) ? true : false;
49 m_east = ((m_status & East_Mask) >> East_Index ) ? true : false;
50 m_layer = (m_status & Layer_Mask) >> Layer_Index;
51 m_overflow = ((m_status & Overflow_Mask) >> Overflow_Index ) ? true : false;
52 m_multihit = ((m_status & Multihit_Mask) >> Multihit_Index ) ? true : false;
53 m_ncounter = (m_status >> Ncounter_Index ) & N_Mask;
54 m_neast = (m_status >> Neast_Index ) & N_Mask;
55 m_nwest = (m_status >> Nwest_Index ) & N_Mask;
56 m_mrpc = ((m_status & MRPC_Mask) >> MRPC_Index ) ? true : false;
57
58 return *this;
59}

◆ operator=() [2/4]

TofHitStatus & TofHitStatus::operator= ( const DstTofTrack source)

◆ operator=() [3/4]

TofHitStatus & TofHitStatus::operator= ( const TofHitStatus source)

Definition at line 63 of file TofHitStatus.cxx.

63 {
64 m_status = source.m_status;
65 return *this;
66}

◆ operator=() [4/4]

TofHitStatus & TofHitStatus::operator= ( const TofHitStatus source)

◆ part() [1/2]

static unsigned int TofHitStatus::part ( unsigned int  status)
static

◆ part() [2/2]

static unsigned int TofHitStatus::part ( unsigned int  status)
static

◆ setBarrel() [1/2]

void TofHitStatus::setBarrel ( bool  barrel)

Definition at line 180 of file TofHitStatus.cxx.

180 {
181 m_barrel = barrel;
182 if( barrel ) { m_status |= Barrel_Mask; }
183 else { m_status &= (~Barrel_Mask); }
184}

Referenced by setBarrelCluster(), setBarrelCounter(), setBarrelRaw(), setBarrelReadout(), setEndcapCluster(), setEndcapRaw(), setMRPCCluster(), setMRPCReadout(), and setNoHit().

◆ setBarrel() [2/2]

void TofHitStatus::setBarrel ( bool  barrel)

◆ setBarrelCluster() [1/2]

void TofHitStatus::setBarrelCluster ( unsigned int  layer)

Definition at line 246 of file TofHitStatus.cxx.

246 {
247 TofHitStatus::setRaw( false );
252
253 if( layer == 3 ) {
256 TofHitStatus::setEast( false );
261 }
262 else if( layer == 1 || layer == 2 ) {
265 TofHitStatus::setEast( false );
270 }
271 else if( layer == 11 || layer == 12 || layer == 21 || layer == 22 ) {
275 if( layer%10 == 1 ) {
276 TofHitStatus::setEast( true );
279 }
280 else {
281 TofHitStatus::setEast( false );
284 }
285 if( static_cast<int>(layer/10) == 1 ) {
287 }
288 else {
290 }
291 }
292 else{
293 cout << "TofRec TofHitStatus::setBarrelCounter layer = " << layer << endl;
294 return;
295 }
296 TofHitStatus::setMRPC( false );
297
298 return;
299}
void setMRPC(bool mrpc)
void setNWest(unsigned int nwest)
void setLayer(unsigned int layer)
void setCounter(bool counter)
void setMultihit(bool multihit)
void setBarrel(bool barrel)
void setCluster(bool cluster)
void setEast(bool east)
void setOverflow(bool overflow)
void setNCounter(unsigned int ncounter)
void setNEast(unsigned int neast)
void setReadout(bool readout)
void setRaw(bool raw)

Referenced by TofTrack::convert2RecTofTrackCol().

◆ setBarrelCluster() [2/2]

void TofHitStatus::setBarrelCluster ( unsigned int  layer)

◆ setBarrelCounter() [1/2]

void TofHitStatus::setBarrelCounter ( unsigned int  layer)

Definition at line 302 of file TofHitStatus.cxx.

302 {
303
304 TofHitStatus::setRaw( false );
310
311 if( layer == 1 || layer == 2 ) {
313 TofHitStatus::setEast( false );
318 }
319 if( layer == 11 || layer == 12 || layer == 21 || layer == 22 ) {
322 if( layer%10 == 1 ) {
323 TofHitStatus::setEast( true );
326 }
327 else {
328 TofHitStatus::setEast( false );
331 }
332 if( static_cast<int>(layer/10) == 1 ) {
334 }
335 else {
337 }
338 }
339 TofHitStatus::setMRPC( false );
340
341 return;
342}

Referenced by TofTrack::convert2RecTofTrackCol().

◆ setBarrelCounter() [2/2]

void TofHitStatus::setBarrelCounter ( unsigned int  layer)

◆ setBarrelRaw() [1/2]

void TofHitStatus::setBarrelRaw ( unsigned int  layer,
bool  east 
)

Definition at line 369 of file TofHitStatus.cxx.

369 {
370 TofHitStatus::setRaw( true );
375 TofHitStatus::setEast( east );
380 if( east ){
383 }
384 else{
387 }
388 TofHitStatus::setMRPC( false );
389 return;
390}

◆ setBarrelRaw() [2/2]

void TofHitStatus::setBarrelRaw ( unsigned int  layer,
bool  east 
)

◆ setBarrelReadout() [1/2]

void TofHitStatus::setBarrelReadout ( unsigned int  layer,
bool  east 
)

Definition at line 345 of file TofHitStatus.cxx.

345 {
346 TofHitStatus::setRaw( false );
351 TofHitStatus::setEast( east );
356 if( east ){
359 }
360 else{
363 }
364 TofHitStatus::setMRPC( false );
365 return;
366}

Referenced by TofTrack::convert2RecTofTrackCol().

◆ setBarrelReadout() [2/2]

void TofHitStatus::setBarrelReadout ( unsigned int  layer,
bool  east 
)

◆ setCluster() [1/2]

void TofHitStatus::setCluster ( bool  cluster)

Definition at line 173 of file TofHitStatus.cxx.

173 {
174 m_cluster = cluster;
175 if( cluster ) { m_status |= Cluster_Mask; }
176 else { m_status &= (~Cluster_Mask); }
177}

Referenced by setBarrelCluster(), setBarrelCounter(), setBarrelRaw(), setBarrelReadout(), setEndcapCluster(), setEndcapRaw(), setMRPCCluster(), setMRPCReadout(), and setNoHit().

◆ setCluster() [2/2]

void TofHitStatus::setCluster ( bool  cluster)

◆ setCounter() [1/2]

void TofHitStatus::setCounter ( bool  counter)

Definition at line 166 of file TofHitStatus.cxx.

166 {
167 m_counter = counter;
168 if( counter ) { m_status |= Counter_Mask; }
169 else { m_status &= (~Counter_Mask); }
170}

Referenced by setBarrelCluster(), setBarrelCounter(), setBarrelRaw(), setBarrelReadout(), setEndcapCluster(), setEndcapRaw(), setMRPCCluster(), setMRPCReadout(), and setNoHit().

◆ setCounter() [2/2]

void TofHitStatus::setCounter ( bool  counter)

◆ setEast() [1/2]

void TofHitStatus::setEast ( bool  east)

Definition at line 187 of file TofHitStatus.cxx.

187 {
188 m_east = east;
189 if( east ) { m_status |= East_Mask; }
190 else { m_status &= (~East_Mask); }
191}

Referenced by setBarrelCluster(), setBarrelCounter(), setBarrelRaw(), setBarrelReadout(), setEndcapCluster(), setEndcapRaw(), setMRPCCluster(), setMRPCReadout(), and setNoHit().

◆ setEast() [2/2]

void TofHitStatus::setEast ( bool  east)

◆ setEndcapCluster() [1/2]

void TofHitStatus::setEndcapCluster ( bool  east)

Definition at line 393 of file TofHitStatus.cxx.

393 {
394 TofHitStatus::setRaw( false );
399 TofHitStatus::setEast( east );
406 TofHitStatus::setMRPC( false );
407 return;
408}

Referenced by TofTrack::convert2RecTofTrackCol().

◆ setEndcapCluster() [2/2]

void TofHitStatus::setEndcapCluster ( bool  east)

◆ setEndcapRaw() [1/2]

void TofHitStatus::setEndcapRaw ( bool  east)

Definition at line 411 of file TofHitStatus.cxx.

411 {
412 TofHitStatus::setRaw( true );
417 TofHitStatus::setEast( east );
424 TofHitStatus::setMRPC( false );
425 return;
426}

◆ setEndcapRaw() [2/2]

void TofHitStatus::setEndcapRaw ( bool  east)

◆ setLayer() [1/2]

void TofHitStatus::setLayer ( unsigned int  layer)

Definition at line 194 of file TofHitStatus.cxx.

194 {
195 assert(layer<=3);
196 m_layer = layer;
197 m_status |= (layer << Layer_Index);
198}

Referenced by setBarrelCluster(), setBarrelCounter(), setBarrelRaw(), setBarrelReadout(), setEndcapCluster(), setEndcapRaw(), setMRPCCluster(), setMRPCReadout(), and setNoHit().

◆ setLayer() [2/2]

void TofHitStatus::setLayer ( unsigned int  layer)

◆ setMRPC() [1/2]

void TofHitStatus::setMRPC ( bool  mrpc)

Definition at line 239 of file TofHitStatus.cxx.

239 {
240 m_mrpc = mrpc;
241 if( mrpc ) { m_status |= MRPC_Mask; }
242 else { m_status &= (~MRPC_Mask); }
243}

Referenced by setBarrelCluster(), setBarrelCounter(), setBarrelRaw(), setBarrelReadout(), setEndcapCluster(), setEndcapRaw(), setMRPCCluster(), setMRPCReadout(), and setNoHit().

◆ setMRPC() [2/2]

void TofHitStatus::setMRPC ( bool  mrpc)

◆ setMRPCCluster() [1/2]

void TofHitStatus::setMRPCCluster ( bool  cluster,
bool  east 
)

Definition at line 453 of file TofHitStatus.cxx.

453 {
454 TofHitStatus::setRaw( false );
455 if( cluster ) {
457 }
458 else {
460 }
464 TofHitStatus::setEast( east );
468 if( cluster ) {
472 }
473 else {
475 if( east ) {
478 }
479 else {
482 }
483 }
484 TofHitStatus::setMRPC( true );
485 return;
486}

Referenced by TofTrack::convert2RecTofTrackCol().

◆ setMRPCCluster() [2/2]

void TofHitStatus::setMRPCCluster ( bool  cluster,
bool  east 
)

◆ setMRPCReadout() [1/2]

void TofHitStatus::setMRPCReadout ( bool  east)

Definition at line 429 of file TofHitStatus.cxx.

429 {
430 TofHitStatus::setRaw( false );
435 TofHitStatus::setEast( east );
440 if( east ) {
443 }
444 else {
447 }
448 TofHitStatus::setMRPC( true );
449 return;
450}

Referenced by TofTrack::convert2RecTofTrackCol().

◆ setMRPCReadout() [2/2]

void TofHitStatus::setMRPCReadout ( bool  east)

◆ setMultihit() [1/2]

void TofHitStatus::setMultihit ( bool  multihit)

Definition at line 208 of file TofHitStatus.cxx.

208 {
209 m_multihit = multihit;
210 if( multihit ) { m_status |= Multihit_Mask; }
211 else { m_status &= (~Multihit_Mask); }
212}

Referenced by setBarrelCluster(), setBarrelCounter(), setBarrelRaw(), setBarrelReadout(), setEndcapCluster(), setEndcapRaw(), setMRPCCluster(), setMRPCReadout(), and setNoHit().

◆ setMultihit() [2/2]

void TofHitStatus::setMultihit ( bool  multihit)

◆ setNCounter() [1/2]

void TofHitStatus::setNCounter ( unsigned int  ncounter)

Definition at line 215 of file TofHitStatus.cxx.

215 {
216 if( m_barrel ) assert(ncounter<=176);
217 else assert(ncounter<=96);
218 m_ncounter = ncounter;
219 m_status |= (ncounter << Ncounter_Index);
220}

Referenced by setBarrelCluster(), setBarrelCounter(), setBarrelRaw(), setBarrelReadout(), setEndcapCluster(), setEndcapRaw(), setMRPCCluster(), setMRPCReadout(), and setNoHit().

◆ setNCounter() [2/2]

void TofHitStatus::setNCounter ( unsigned int  ncounter)

◆ setNEast() [1/2]

void TofHitStatus::setNEast ( unsigned int  neast)

Definition at line 223 of file TofHitStatus.cxx.

223 {
224 if( m_barrel ) assert(neast<=176);
225 else assert(neast<=96);
226 m_neast = neast;
227 m_status |= (neast << Neast_Index);
228}

Referenced by setBarrelCluster(), setBarrelCounter(), setBarrelRaw(), setBarrelReadout(), setEndcapCluster(), setEndcapRaw(), setMRPCCluster(), setMRPCReadout(), and setNoHit().

◆ setNEast() [2/2]

void TofHitStatus::setNEast ( unsigned int  neast)

◆ setNoHit() [1/2]

void TofHitStatus::setNoHit ( )

Definition at line 489 of file TofHitStatus.cxx.

489 {
490 TofHitStatus::setRaw( true );
495 TofHitStatus::setEast( false );
502 TofHitStatus::setMRPC( false );
503 return;
504}

Referenced by TofTrack::convert2RecTofTrackCol().

◆ setNoHit() [2/2]

void TofHitStatus::setNoHit ( )

◆ setNWest() [1/2]

void TofHitStatus::setNWest ( unsigned int  nwest)

Definition at line 231 of file TofHitStatus.cxx.

231 {
232 if( m_barrel ) assert(nwest<=176);
233 else assert(nwest<=96);
234 m_nwest = nwest;
235 m_status |= (nwest << Nwest_Index);
236}

Referenced by setBarrelCluster(), setBarrelCounter(), setBarrelRaw(), setBarrelReadout(), setEndcapCluster(), setEndcapRaw(), setMRPCCluster(), setMRPCReadout(), and setNoHit().

◆ setNWest() [2/2]

void TofHitStatus::setNWest ( unsigned int  nwest)

◆ setOverflow() [1/2]

void TofHitStatus::setOverflow ( bool  overflow)

Definition at line 201 of file TofHitStatus.cxx.

201 {
202 m_overflow = overflow;
203 if( overflow ) { m_status |= Overflow_Mask; }
204 else { m_status &= (~Overflow_Mask); }
205}

Referenced by setBarrelCluster(), setBarrelCounter(), setBarrelRaw(), setBarrelReadout(), setEndcapCluster(), setEndcapRaw(), setMRPCCluster(), setMRPCReadout(), and setNoHit().

◆ setOverflow() [2/2]

void TofHitStatus::setOverflow ( bool  overflow)

◆ setRaw() [1/2]

void TofHitStatus::setRaw ( bool  raw)

Definition at line 152 of file TofHitStatus.cxx.

152 {
153 m_raw = raw;
154 if( raw ) { m_status |= Raw_Mask; }
155 else { m_status &= (~Raw_Mask); }
156}

Referenced by setBarrelCluster(), setBarrelCounter(), setBarrelRaw(), setBarrelReadout(), setEndcapCluster(), setEndcapRaw(), setMRPCCluster(), setMRPCReadout(), and setNoHit().

◆ setRaw() [2/2]

void TofHitStatus::setRaw ( bool  raw)

◆ setReadout() [1/2]

void TofHitStatus::setReadout ( bool  readout)

Definition at line 159 of file TofHitStatus.cxx.

159 {
160 m_readout = readout;
161 if( readout ) { m_status |= Readout_Mask; }
162 else { m_status &= (~Readout_Mask); }
163}

Referenced by setBarrelCluster(), setBarrelCounter(), setBarrelRaw(), setBarrelReadout(), setEndcapCluster(), setEndcapRaw(), setMRPCCluster(), setMRPCReadout(), and setNoHit().

◆ setReadout() [2/2]

void TofHitStatus::setReadout ( bool  readout)

◆ setStatus() [1/2]

void TofHitStatus::setStatus ( unsigned int  status)

Definition at line 134 of file TofHitStatus.cxx.

134 {
135 m_status = status;
136 m_raw = ((m_status & Raw_Mask) >> Raw_Index ) ? true : false;
137 m_readout = ((m_status & Readout_Mask) >> Readout_Index ) ? true : false;
138 m_counter = ((m_status & Counter_Mask) >> Counter_Index ) ? true : false;
139 m_cluster = ((m_status & Cluster_Mask) >> Cluster_Index ) ? true : false;
140 m_barrel = ((m_status & Barrel_Mask) >> Barrel_Index ) ? true : false;
141 m_east = ((m_status & East_Mask) >> East_Index ) ? true : false;
142 m_layer = (m_status & Layer_Mask) >> Layer_Index;
143 m_overflow = ((m_status & Overflow_Mask) >> Overflow_Index ) ? true : false;
144 m_multihit = ((m_status & Multihit_Mask) >> Multihit_Index ) ? true : false;
145 m_ncounter = (m_status >> Ncounter_Index ) & N_Mask;
146 m_neast = (m_status >> Neast_Index ) & N_Mask;
147 m_nwest = (m_status >> Nwest_Index ) & N_Mask;
148 m_mrpc = ((m_status & MRPC_Mask) >> MRPC_Index ) ? true : false;
149}

Referenced by DTagTool::cosmicandleptonVeto(), MucCalibMgr::DimuSelect(), Gam4pikp::execute(), PipiJpsi::execute(), Rhopi::execute(), DQA_TOF::execute(), DQADtag::execute(), DQAJpsi2PPbarAlg::execute(), DQAKsKpi::execute(), DQAKsKpiDEDX::execute(), DQAPi2p2::execute(), DQARhopi::execute(), DQASelBhabha::execute(), DQASelDimu::execute(), DQASelHadron::execute(), CalibEventSelect::execute(), DimuPreSelect::execute(), FarmMonitorAlg::execute(), ValidRecTofTrackAlg::execute(), TofCheckData::Fill(), DimuPreSelect::IsDimu(), Tof1PID::particleIDCalculation(), Tof2PID::particleIDCalculation(), TofCorrPID::particleIDCalculation(), TofCPID::particleIDCalculation(), and TofEPID::particleIDCalculation().

◆ setStatus() [2/2]

void TofHitStatus::setStatus ( unsigned int  status)

◆ value() [1/2]

unsigned int TofHitStatus::value ( ) const
inline

Definition at line 20 of file Event/DstEvent/DstEvent-00-02-51/DstEvent/TofHitStatus.h.

20{ return m_status; }

Referenced by TofTrack::convert2RecTofTrackCol().

◆ value() [2/2]

unsigned int TofHitStatus::value ( ) const
inline

Definition at line 20 of file InstallArea/include/DstEvent/DstEvent/TofHitStatus.h.

20{ return m_status; }

The documentation for this class was generated from the following files: