BOSS 8.0.0
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 ()
 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)
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/3]

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}

Referenced by operator=(), and operator=().

◆ ~TofHitStatus() [1/3]

virtual TofHitStatus::~TofHitStatus ( )
inlinevirtual

Definition at line 10 of file Event/DstEvent/include/DstEvent/TofHitStatus.h.

10{}

◆ TofHitStatus() [2/3]

TofHitStatus::TofHitStatus ( )

◆ ~TofHitStatus() [2/3]

virtual TofHitStatus::~TofHitStatus ( )
inlinevirtual

◆ TofHitStatus() [3/3]

TofHitStatus::TofHitStatus ( )

◆ ~TofHitStatus() [3/3]

virtual TofHitStatus::~TofHitStatus ( )
inlinevirtual

Member Function Documentation

◆ init() [1/3]

void TofHitStatus::init ( )

Definition at line 22 of file TofHitStatus.cxx.

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

Referenced by TofShower::findShower().

◆ init() [2/3]

void TofHitStatus::init ( )

◆ init() [3/3]

void TofHitStatus::init ( )

◆ is_barrel() [1/6]

◆ is_barrel() [2/6]

bool TofHitStatus::is_barrel ( ) const
inline

Definition at line 26 of file InstallArea/x86_64-el9-gcc13-dbg/include/DstEvent/TofHitStatus.h.

26{ return m_barrel; }

◆ is_barrel() [3/6]

bool TofHitStatus::is_barrel ( ) const
inline

Definition at line 26 of file InstallArea/x86_64-el9-gcc13-opt/include/DstEvent/TofHitStatus.h.

26{ return m_barrel; }

◆ is_barrel() [4/6]

bool TofHitStatus::is_barrel ( unsigned int status)
static

Definition at line 79 of file TofHitStatus.cxx.

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

◆ is_barrel() [5/6]

bool TofHitStatus::is_barrel ( unsigned int status)
static

◆ is_barrel() [6/6]

bool TofHitStatus::is_barrel ( unsigned int status)
static

◆ is_cluster() [1/6]

◆ is_cluster() [2/6]

bool TofHitStatus::is_cluster ( ) const
inline

Definition at line 25 of file InstallArea/x86_64-el9-gcc13-dbg/include/DstEvent/TofHitStatus.h.

25{ return m_cluster; }

◆ is_cluster() [3/6]

bool TofHitStatus::is_cluster ( ) const
inline

Definition at line 25 of file InstallArea/x86_64-el9-gcc13-opt/include/DstEvent/TofHitStatus.h.

25{ return m_cluster; }

◆ is_cluster() [4/6]

bool TofHitStatus::is_cluster ( unsigned int status)
static

Definition at line 75 of file TofHitStatus.cxx.

75 {
76 return ( ( status & Cluster_Mask ) >> Cluster_Index ) ? true : false;
77}

◆ is_cluster() [5/6]

bool TofHitStatus::is_cluster ( unsigned int status)
static

◆ is_cluster() [6/6]

bool TofHitStatus::is_cluster ( unsigned int status)
static

◆ is_counter() [1/6]

◆ is_counter() [2/6]

bool TofHitStatus::is_counter ( ) const
inline

Definition at line 24 of file InstallArea/x86_64-el9-gcc13-dbg/include/DstEvent/TofHitStatus.h.

24{ return m_counter; }

◆ is_counter() [3/6]

bool TofHitStatus::is_counter ( ) const
inline

Definition at line 24 of file InstallArea/x86_64-el9-gcc13-opt/include/DstEvent/TofHitStatus.h.

24{ return m_counter; }

◆ is_counter() [4/6]

bool TofHitStatus::is_counter ( unsigned int status)
static

Definition at line 71 of file TofHitStatus.cxx.

71 {
72 return ( ( status & Counter_Mask ) >> Counter_Index ) ? true : false;
73}

◆ is_counter() [5/6]

bool TofHitStatus::is_counter ( unsigned int status)
static

◆ is_counter() [6/6]

bool TofHitStatus::is_counter ( unsigned int status)
static

◆ is_east() [1/6]

◆ is_east() [2/6]

bool TofHitStatus::is_east ( ) const
inline

Definition at line 27 of file InstallArea/x86_64-el9-gcc13-dbg/include/DstEvent/TofHitStatus.h.

27{ return m_east; }

◆ is_east() [3/6]

bool TofHitStatus::is_east ( ) const
inline

Definition at line 27 of file InstallArea/x86_64-el9-gcc13-opt/include/DstEvent/TofHitStatus.h.

27{ return m_east; }

◆ is_east() [4/6]

bool TofHitStatus::is_east ( unsigned int status)
static

Definition at line 83 of file TofHitStatus.cxx.

83 {
84 return ( ( status & East_Mask ) >> East_Index ) ? true : false;
85}

◆ is_east() [5/6]

bool TofHitStatus::is_east ( unsigned int status)
static

◆ is_east() [6/6]

bool TofHitStatus::is_east ( unsigned int status)
static

◆ is_mrpc() [1/6]

◆ is_mrpc() [2/6]

bool TofHitStatus::is_mrpc ( ) const
inline

Definition at line 34 of file InstallArea/x86_64-el9-gcc13-dbg/include/DstEvent/TofHitStatus.h.

34{ return m_mrpc; }

◆ is_mrpc() [3/6]

bool TofHitStatus::is_mrpc ( ) const
inline

Definition at line 34 of file InstallArea/x86_64-el9-gcc13-opt/include/DstEvent/TofHitStatus.h.

34{ return m_mrpc; }

◆ is_mrpc() [4/6]

bool TofHitStatus::is_mrpc ( unsigned int status)
static

Definition at line 111 of file TofHitStatus.cxx.

111 {
112 return ( ( status & MRPC_Mask ) >> MRPC_Index ) ? true : false;
113}

◆ is_mrpc() [5/6]

bool TofHitStatus::is_mrpc ( unsigned int status)
static

◆ is_mrpc() [6/6]

bool TofHitStatus::is_mrpc ( unsigned int status)
static

◆ is_multihit() [1/6]

bool TofHitStatus::is_multihit ( ) const
inline

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

30{ return m_multihit; }

Referenced by TofCheckData::Fill().

◆ is_multihit() [2/6]

bool TofHitStatus::is_multihit ( ) const
inline

Definition at line 30 of file InstallArea/x86_64-el9-gcc13-dbg/include/DstEvent/TofHitStatus.h.

30{ return m_multihit; }

◆ is_multihit() [3/6]

bool TofHitStatus::is_multihit ( ) const
inline

Definition at line 30 of file InstallArea/x86_64-el9-gcc13-opt/include/DstEvent/TofHitStatus.h.

30{ return m_multihit; }

◆ is_multihit() [4/6]

bool TofHitStatus::is_multihit ( unsigned int status)
static

Definition at line 95 of file TofHitStatus.cxx.

95 {
96 return ( ( status & Multihit_Mask ) >> Multihit_Index ) ? true : false;
97}

◆ is_multihit() [5/6]

bool TofHitStatus::is_multihit ( unsigned int status)
static

◆ is_multihit() [6/6]

bool TofHitStatus::is_multihit ( unsigned int status)
static

◆ is_overflow() [1/6]

bool TofHitStatus::is_overflow ( ) const
inline

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

29{ return m_overflow; }

Referenced by TofCheckData::Fill().

◆ is_overflow() [2/6]

bool TofHitStatus::is_overflow ( ) const
inline

Definition at line 29 of file InstallArea/x86_64-el9-gcc13-dbg/include/DstEvent/TofHitStatus.h.

29{ return m_overflow; }

◆ is_overflow() [3/6]

bool TofHitStatus::is_overflow ( ) const
inline

Definition at line 29 of file InstallArea/x86_64-el9-gcc13-opt/include/DstEvent/TofHitStatus.h.

29{ return m_overflow; }

◆ is_overflow() [4/6]

bool TofHitStatus::is_overflow ( unsigned int status)
static

Definition at line 91 of file TofHitStatus.cxx.

91 {
92 return ( ( status & Overflow_Mask ) >> Overflow_Index ) ? true : false;
93}

◆ is_overflow() [5/6]

bool TofHitStatus::is_overflow ( unsigned int status)
static

◆ is_overflow() [6/6]

bool TofHitStatus::is_overflow ( unsigned int status)
static

◆ is_raw() [1/6]

◆ is_raw() [2/6]

bool TofHitStatus::is_raw ( ) const
inline

Definition at line 22 of file InstallArea/x86_64-el9-gcc13-dbg/include/DstEvent/TofHitStatus.h.

22{ return m_raw; }

◆ is_raw() [3/6]

bool TofHitStatus::is_raw ( ) const
inline

Definition at line 22 of file InstallArea/x86_64-el9-gcc13-opt/include/DstEvent/TofHitStatus.h.

22{ return m_raw; }

◆ is_raw() [4/6]

bool TofHitStatus::is_raw ( unsigned int status)
static

Definition at line 63 of file TofHitStatus.cxx.

63 {
64 return ( ( status & Raw_Mask ) >> Raw_Index ) ? true : false;
65}

◆ is_raw() [5/6]

bool TofHitStatus::is_raw ( unsigned int status)
static

◆ is_raw() [6/6]

bool TofHitStatus::is_raw ( unsigned int status)
static

◆ is_readout() [1/6]

◆ is_readout() [2/6]

bool TofHitStatus::is_readout ( ) const
inline

Definition at line 23 of file InstallArea/x86_64-el9-gcc13-dbg/include/DstEvent/TofHitStatus.h.

23{ return m_readout; }

◆ is_readout() [3/6]

bool TofHitStatus::is_readout ( ) const
inline

Definition at line 23 of file InstallArea/x86_64-el9-gcc13-opt/include/DstEvent/TofHitStatus.h.

23{ return m_readout; }

◆ is_readout() [4/6]

bool TofHitStatus::is_readout ( unsigned int status)
static

Definition at line 67 of file TofHitStatus.cxx.

67 {
68 return ( ( status & Readout_Mask ) >> Readout_Index ) ? true : false;
69}

◆ is_readout() [5/6]

bool TofHitStatus::is_readout ( unsigned int status)
static

◆ is_readout() [6/6]

bool TofHitStatus::is_readout ( unsigned int status)
static

◆ layer() [1/6]

◆ layer() [2/6]

unsigned int TofHitStatus::layer ( ) const
inline

Definition at line 28 of file InstallArea/x86_64-el9-gcc13-dbg/include/DstEvent/TofHitStatus.h.

28{ return m_layer; }

◆ layer() [3/6]

unsigned int TofHitStatus::layer ( ) const
inline

Definition at line 28 of file InstallArea/x86_64-el9-gcc13-opt/include/DstEvent/TofHitStatus.h.

28{ return m_layer; }

◆ layer() [4/6]

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

Definition at line 87 of file TofHitStatus.cxx.

87 {
88 return ( status & Layer_Mask ) >> Layer_Index;
89}

◆ layer() [5/6]

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

◆ layer() [6/6]

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

◆ ncounter() [1/6]

unsigned int TofHitStatus::ncounter ( ) const
inline

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

31{ return m_ncounter; }

Referenced by ValidRecTofTrackAlg::execute(), TofCheckData::Fill(), part(), and setNCounter().

◆ ncounter() [2/6]

unsigned int TofHitStatus::ncounter ( ) const
inline

Definition at line 31 of file InstallArea/x86_64-el9-gcc13-dbg/include/DstEvent/TofHitStatus.h.

31{ return m_ncounter; }

◆ ncounter() [3/6]

unsigned int TofHitStatus::ncounter ( ) const
inline

Definition at line 31 of file InstallArea/x86_64-el9-gcc13-opt/include/DstEvent/TofHitStatus.h.

31{ return m_ncounter; }

◆ ncounter() [4/6]

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

Definition at line 99 of file TofHitStatus.cxx.

99 {
100 return ( status >> Ncounter_Index ) & N_Mask;
101}

◆ ncounter() [5/6]

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

◆ ncounter() [6/6]

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

◆ neast() [1/6]

unsigned int TofHitStatus::neast ( ) const
inline

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

32{ return m_neast; }

Referenced by ValidRecTofTrackAlg::execute(), TofCheckData::Fill(), part(), and setNEast().

◆ neast() [2/6]

unsigned int TofHitStatus::neast ( ) const
inline

Definition at line 32 of file InstallArea/x86_64-el9-gcc13-dbg/include/DstEvent/TofHitStatus.h.

32{ return m_neast; }

◆ neast() [3/6]

unsigned int TofHitStatus::neast ( ) const
inline

Definition at line 32 of file InstallArea/x86_64-el9-gcc13-opt/include/DstEvent/TofHitStatus.h.

32{ return m_neast; }

◆ neast() [4/6]

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

Definition at line 103 of file TofHitStatus.cxx.

103 {
104 return ( status >> Neast_Index ) & N_Mask;
105}

◆ neast() [5/6]

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

◆ neast() [6/6]

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

◆ nwest() [1/6]

unsigned int TofHitStatus::nwest ( ) const
inline

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

33{ return m_nwest; }

Referenced by ValidRecTofTrackAlg::execute(), TofCheckData::Fill(), part(), and setNWest().

◆ nwest() [2/6]

unsigned int TofHitStatus::nwest ( ) const
inline

Definition at line 33 of file InstallArea/x86_64-el9-gcc13-dbg/include/DstEvent/TofHitStatus.h.

33{ return m_nwest; }

◆ nwest() [3/6]

unsigned int TofHitStatus::nwest ( ) const
inline

Definition at line 33 of file InstallArea/x86_64-el9-gcc13-opt/include/DstEvent/TofHitStatus.h.

33{ return m_nwest; }

◆ nwest() [4/6]

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

Definition at line 107 of file TofHitStatus.cxx.

107 {
108 return ( status >> Nwest_Index ) & N_Mask;
109}

◆ nwest() [5/6]

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

◆ nwest() [6/6]

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

◆ operator=() [1/6]

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

Definition at line 39 of file TofHitStatus.cxx.

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

◆ operator=() [2/6]

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

◆ operator=() [3/6]

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

◆ operator=() [4/6]

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

Definition at line 58 of file TofHitStatus.cxx.

58 {
59 m_status = source.m_status;
60 return *this;
61}

◆ operator=() [5/6]

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

◆ operator=() [6/6]

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

◆ part() [1/3]

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

◆ part() [2/3]

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

◆ part() [3/3]

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

◆ setBarrel() [1/3]

void TofHitStatus::setBarrel ( bool barrel)

Definition at line 156 of file TofHitStatus.cxx.

156 {
157 m_barrel = barrel;
158 if ( barrel ) { m_status |= Barrel_Mask; }
159 else { m_status &= ( ~Barrel_Mask ); }
160}

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

◆ setBarrel() [2/3]

void TofHitStatus::setBarrel ( bool barrel)

◆ setBarrel() [3/3]

void TofHitStatus::setBarrel ( bool barrel)

◆ setBarrelCluster() [1/3]

void TofHitStatus::setBarrelCluster ( unsigned int layer)

Definition at line 213 of file TofHitStatus.cxx.

213 {
214 TofHitStatus::setRaw( false );
219
220 if ( layer == 3 )
221 {
224 TofHitStatus::setEast( false );
229 }
230 else if ( layer == 1 || layer == 2 )
231 {
234 TofHitStatus::setEast( false );
239 }
240 else if ( layer == 11 || layer == 12 || layer == 21 || layer == 22 )
241 {
245 if ( layer % 10 == 1 )
246 {
247 TofHitStatus::setEast( true );
250 }
251 else
252 {
253 TofHitStatus::setEast( false );
256 }
257 if ( static_cast<int>( layer / 10 ) == 1 ) { TofHitStatus::setLayer( 1 ); }
258 else { TofHitStatus::setLayer( 2 ); }
259 }
260 else
261 {
262 cout << "TofRec TofHitStatus::setBarrelCounter layer = " << layer << endl;
263 return;
264 }
265 TofHitStatus::setMRPC( false );
266
267 return;
268}
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/3]

void TofHitStatus::setBarrelCluster ( unsigned int layer)

◆ setBarrelCluster() [3/3]

void TofHitStatus::setBarrelCluster ( unsigned int layer)

◆ setBarrelCounter() [1/3]

void TofHitStatus::setBarrelCounter ( unsigned int layer)

Definition at line 270 of file TofHitStatus.cxx.

270 {
271
272 TofHitStatus::setRaw( false );
278
279 if ( layer == 1 || layer == 2 )
280 {
282 TofHitStatus::setEast( false );
287 }
288 if ( layer == 11 || layer == 12 || layer == 21 || layer == 22 )
289 {
292 if ( layer % 10 == 1 )
293 {
294 TofHitStatus::setEast( true );
297 }
298 else
299 {
300 TofHitStatus::setEast( false );
303 }
304 if ( static_cast<int>( layer / 10 ) == 1 ) { TofHitStatus::setLayer( 1 ); }
305 else { TofHitStatus::setLayer( 2 ); }
306 }
307 TofHitStatus::setMRPC( false );
308
309 return;
310}

Referenced by TofTrack::convert2RecTofTrackCol().

◆ setBarrelCounter() [2/3]

void TofHitStatus::setBarrelCounter ( unsigned int layer)

◆ setBarrelCounter() [3/3]

void TofHitStatus::setBarrelCounter ( unsigned int layer)

◆ setBarrelRaw() [1/3]

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

Definition at line 337 of file TofHitStatus.cxx.

337 {
338 TofHitStatus::setRaw( true );
343 TofHitStatus::setEast( east );
348 if ( east )
349 {
352 }
353 else
354 {
357 }
358 TofHitStatus::setMRPC( false );
359 return;
360}

◆ setBarrelRaw() [2/3]

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

◆ setBarrelRaw() [3/3]

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

◆ setBarrelReadout() [1/3]

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

Definition at line 312 of file TofHitStatus.cxx.

312 {
313 TofHitStatus::setRaw( false );
318 TofHitStatus::setEast( east );
323 if ( east )
324 {
327 }
328 else
329 {
332 }
333 TofHitStatus::setMRPC( false );
334 return;
335}

Referenced by TofTrack::convert2RecTofTrackCol().

◆ setBarrelReadout() [2/3]

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

◆ setBarrelReadout() [3/3]

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

◆ setCluster() [1/3]

void TofHitStatus::setCluster ( bool cluster)

Definition at line 150 of file TofHitStatus.cxx.

150 {
151 m_cluster = cluster;
152 if ( cluster ) { m_status |= Cluster_Mask; }
153 else { m_status &= ( ~Cluster_Mask ); }
154}

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

◆ setCluster() [2/3]

void TofHitStatus::setCluster ( bool cluster)

◆ setCluster() [3/3]

void TofHitStatus::setCluster ( bool cluster)

◆ setCounter() [1/3]

void TofHitStatus::setCounter ( bool counter)

Definition at line 144 of file TofHitStatus.cxx.

144 {
145 m_counter = counter;
146 if ( counter ) { m_status |= Counter_Mask; }
147 else { m_status &= ( ~Counter_Mask ); }
148}

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

◆ setCounter() [2/3]

void TofHitStatus::setCounter ( bool counter)

◆ setCounter() [3/3]

void TofHitStatus::setCounter ( bool counter)

◆ setEast() [1/3]

void TofHitStatus::setEast ( bool east)

Definition at line 162 of file TofHitStatus.cxx.

162 {
163 m_east = east;
164 if ( east ) { m_status |= East_Mask; }
165 else { m_status &= ( ~East_Mask ); }
166}

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

◆ setEast() [2/3]

void TofHitStatus::setEast ( bool east)

◆ setEast() [3/3]

void TofHitStatus::setEast ( bool east)

◆ setEndcapCluster() [1/3]

void TofHitStatus::setEndcapCluster ( bool east)

Definition at line 362 of file TofHitStatus.cxx.

362 {
363 TofHitStatus::setRaw( false );
368 TofHitStatus::setEast( east );
375 TofHitStatus::setMRPC( false );
376 return;
377}

Referenced by TofTrack::convert2RecTofTrackCol().

◆ setEndcapCluster() [2/3]

void TofHitStatus::setEndcapCluster ( bool east)

◆ setEndcapCluster() [3/3]

void TofHitStatus::setEndcapCluster ( bool east)

◆ setEndcapRaw() [1/3]

void TofHitStatus::setEndcapRaw ( bool east)

Definition at line 379 of file TofHitStatus.cxx.

379 {
380 TofHitStatus::setRaw( true );
385 TofHitStatus::setEast( east );
392 TofHitStatus::setMRPC( false );
393 return;
394}

◆ setEndcapRaw() [2/3]

void TofHitStatus::setEndcapRaw ( bool east)

◆ setEndcapRaw() [3/3]

void TofHitStatus::setEndcapRaw ( bool east)

◆ setLayer() [1/3]

void TofHitStatus::setLayer ( unsigned int layer)

Definition at line 168 of file TofHitStatus.cxx.

168 {
169 assert( layer <= 3 );
170 m_layer = layer;
171 m_status |= ( layer << Layer_Index );
172}

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

◆ setLayer() [2/3]

void TofHitStatus::setLayer ( unsigned int layer)

◆ setLayer() [3/3]

void TofHitStatus::setLayer ( unsigned int layer)

◆ setMRPC() [1/3]

void TofHitStatus::setMRPC ( bool mrpc)

Definition at line 207 of file TofHitStatus.cxx.

207 {
208 m_mrpc = mrpc;
209 if ( mrpc ) { m_status |= MRPC_Mask; }
210 else { m_status &= ( ~MRPC_Mask ); }
211}

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

◆ setMRPC() [2/3]

void TofHitStatus::setMRPC ( bool mrpc)

◆ setMRPC() [3/3]

void TofHitStatus::setMRPC ( bool mrpc)

◆ setMRPCCluster() [1/3]

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

Definition at line 421 of file TofHitStatus.cxx.

421 {
422 TofHitStatus::setRaw( false );
423 if ( cluster ) { TofHitStatus::setReadout( false ); }
424 else { TofHitStatus::setReadout( true ); }
428 TofHitStatus::setEast( east );
432 if ( cluster )
433 {
437 }
438 else
439 {
441 if ( east )
442 {
445 }
446 else
447 {
450 }
451 }
452 TofHitStatus::setMRPC( true );
453 return;
454}

Referenced by TofTrack::convert2RecTofTrackCol().

◆ setMRPCCluster() [2/3]

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

◆ setMRPCCluster() [3/3]

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

◆ setMRPCReadout() [1/3]

void TofHitStatus::setMRPCReadout ( bool east)

Definition at line 396 of file TofHitStatus.cxx.

396 {
397 TofHitStatus::setRaw( false );
402 TofHitStatus::setEast( east );
407 if ( east )
408 {
411 }
412 else
413 {
416 }
417 TofHitStatus::setMRPC( true );
418 return;
419}

Referenced by TofTrack::convert2RecTofTrackCol().

◆ setMRPCReadout() [2/3]

void TofHitStatus::setMRPCReadout ( bool east)

◆ setMRPCReadout() [3/3]

void TofHitStatus::setMRPCReadout ( bool east)

◆ setMultihit() [1/3]

void TofHitStatus::setMultihit ( bool multihit)

Definition at line 180 of file TofHitStatus.cxx.

180 {
181 m_multihit = multihit;
182 if ( multihit ) { m_status |= Multihit_Mask; }
183 else { m_status &= ( ~Multihit_Mask ); }
184}

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

◆ setMultihit() [2/3]

void TofHitStatus::setMultihit ( bool multihit)

◆ setMultihit() [3/3]

void TofHitStatus::setMultihit ( bool multihit)

◆ setNCounter() [1/3]

void TofHitStatus::setNCounter ( unsigned int ncounter)

Definition at line 186 of file TofHitStatus.cxx.

186 {
187 if ( m_barrel ) assert( ncounter <= 176 );
188 else assert( ncounter <= 96 );
189 m_ncounter = ncounter;
190 m_status |= ( ncounter << Ncounter_Index );
191}

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

◆ setNCounter() [2/3]

void TofHitStatus::setNCounter ( unsigned int ncounter)

◆ setNCounter() [3/3]

void TofHitStatus::setNCounter ( unsigned int ncounter)

◆ setNEast() [1/3]

void TofHitStatus::setNEast ( unsigned int neast)

Definition at line 193 of file TofHitStatus.cxx.

193 {
194 if ( m_barrel ) assert( neast <= 176 );
195 else assert( neast <= 96 );
196 m_neast = neast;
197 m_status |= ( neast << Neast_Index );
198}

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

◆ setNEast() [2/3]

void TofHitStatus::setNEast ( unsigned int neast)

◆ setNEast() [3/3]

void TofHitStatus::setNEast ( unsigned int neast)

◆ setNoHit() [1/3]

void TofHitStatus::setNoHit ( )

Definition at line 456 of file TofHitStatus.cxx.

456 {
457 TofHitStatus::setRaw( true );
462 TofHitStatus::setEast( false );
469 TofHitStatus::setMRPC( false );
470 return;
471}

Referenced by TofTrack::convert2RecTofTrackCol().

◆ setNoHit() [2/3]

void TofHitStatus::setNoHit ( )

◆ setNoHit() [3/3]

void TofHitStatus::setNoHit ( )

◆ setNWest() [1/3]

void TofHitStatus::setNWest ( unsigned int nwest)

Definition at line 200 of file TofHitStatus.cxx.

200 {
201 if ( m_barrel ) assert( nwest <= 176 );
202 else assert( nwest <= 96 );
203 m_nwest = nwest;
204 m_status |= ( nwest << Nwest_Index );
205}

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

◆ setNWest() [2/3]

void TofHitStatus::setNWest ( unsigned int nwest)

◆ setNWest() [3/3]

void TofHitStatus::setNWest ( unsigned int nwest)

◆ setOverflow() [1/3]

void TofHitStatus::setOverflow ( bool overflow)

Definition at line 174 of file TofHitStatus.cxx.

174 {
175 m_overflow = overflow;
176 if ( overflow ) { m_status |= Overflow_Mask; }
177 else { m_status &= ( ~Overflow_Mask ); }
178}

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

◆ setOverflow() [2/3]

void TofHitStatus::setOverflow ( bool overflow)

◆ setOverflow() [3/3]

void TofHitStatus::setOverflow ( bool overflow)

◆ setRaw() [1/3]

void TofHitStatus::setRaw ( bool raw)

Definition at line 132 of file TofHitStatus.cxx.

132 {
133 m_raw = raw;
134 if ( raw ) { m_status |= Raw_Mask; }
135 else { m_status &= ( ~Raw_Mask ); }
136}

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

◆ setRaw() [2/3]

void TofHitStatus::setRaw ( bool raw)

◆ setRaw() [3/3]

void TofHitStatus::setRaw ( bool raw)

◆ setReadout() [1/3]

void TofHitStatus::setReadout ( bool readout)

Definition at line 138 of file TofHitStatus.cxx.

138 {
139 m_readout = readout;
140 if ( readout ) { m_status |= Readout_Mask; }
141 else { m_status &= ( ~Readout_Mask ); }
142}

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

◆ setReadout() [2/3]

void TofHitStatus::setReadout ( bool readout)

◆ setReadout() [3/3]

void TofHitStatus::setReadout ( bool readout)

◆ setStatus() [1/3]

void TofHitStatus::setStatus ( unsigned int status)

Definition at line 115 of file TofHitStatus.cxx.

115 {
116 m_status = status;
117 m_raw = ( ( m_status & Raw_Mask ) >> Raw_Index ) ? true : false;
118 m_readout = ( ( m_status & Readout_Mask ) >> Readout_Index ) ? true : false;
119 m_counter = ( ( m_status & Counter_Mask ) >> Counter_Index ) ? true : false;
120 m_cluster = ( ( m_status & Cluster_Mask ) >> Cluster_Index ) ? true : false;
121 m_barrel = ( ( m_status & Barrel_Mask ) >> Barrel_Index ) ? true : false;
122 m_east = ( ( m_status & East_Mask ) >> East_Index ) ? true : false;
123 m_layer = ( m_status & Layer_Mask ) >> Layer_Index;
124 m_overflow = ( ( m_status & Overflow_Mask ) >> Overflow_Index ) ? true : false;
125 m_multihit = ( ( m_status & Multihit_Mask ) >> Multihit_Index ) ? true : false;
126 m_ncounter = ( m_status >> Ncounter_Index ) & N_Mask;
127 m_neast = ( m_status >> Neast_Index ) & N_Mask;
128 m_nwest = ( m_status >> Nwest_Index ) & N_Mask;
129 m_mrpc = ( ( m_status & MRPC_Mask ) >> MRPC_Index ) ? true : false;
130}

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

◆ setStatus() [2/3]

void TofHitStatus::setStatus ( unsigned int status)

◆ setStatus() [3/3]

void TofHitStatus::setStatus ( unsigned int status)

◆ value() [1/3]

unsigned int TofHitStatus::value ( ) const
inline

Definition at line 18 of file Event/DstEvent/include/DstEvent/TofHitStatus.h.

18{ return m_status; }

Referenced by TofTrack::convert2RecTofTrackCol(), and TofShower::findShower().

◆ value() [2/3]

unsigned int TofHitStatus::value ( ) const
inline

Definition at line 18 of file InstallArea/x86_64-el9-gcc13-dbg/include/DstEvent/TofHitStatus.h.

18{ return m_status; }

◆ value() [3/3]

unsigned int TofHitStatus::value ( ) const
inline

Definition at line 18 of file InstallArea/x86_64-el9-gcc13-opt/include/DstEvent/TofHitStatus.h.

18{ return m_status; }

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