CGEM BOSS 6.6.5.g
BESIII Offline Software System
Loading...
Searching...
No Matches
MdcSegUsage Class Reference

#include <MdcSegUsage.h>

Public Member Functions

 MdcSegUsage ()
 
virtual ~MdcSegUsage ()
 
bool usedSeg () const
 
bool usedAmbig (int i) const
 
void setUsedAmbig (int i)
 
void killHit ()
 
bool deadHit () const
 

Detailed Description

Definition at line 19 of file MdcSegUsage.h.

Constructor & Destructor Documentation

◆ MdcSegUsage()

MdcSegUsage::MdcSegUsage ( )

Definition at line 10 of file MdcSegUsage.cxx.

10 {
11//-----------------------------------------------------------------------
12 segUse = 0;
13}

◆ ~MdcSegUsage()

MdcSegUsage::~MdcSegUsage ( )
virtual

Definition at line 16 of file MdcSegUsage.cxx.

16{}

Member Function Documentation

◆ deadHit()

bool MdcSegUsage::deadHit ( ) const
inline

Definition at line 28 of file MdcSegUsage.h.

28{return ((segUse & deadFlag()) != 0);}

◆ killHit()

void MdcSegUsage::killHit ( void  )

Definition at line 21 of file MdcSegUsage.cxx.

21 {
22//-----------------------------------------------------------------------
23 segUse |= deadFlag();
24}

Referenced by MdcSegData::loadevent().

◆ setUsedAmbig()

void MdcSegUsage::setUsedAmbig ( int  i)
inline

Definition at line 49 of file MdcSegUsage.h.

49 {
50 if (i <= 0) { segUse |= usedNegAmb(); }
51 else { segUse |= usedPosAmb(); }
52}

◆ usedAmbig()

bool MdcSegUsage::usedAmbig ( int  i) const
inline

Definition at line 55 of file MdcSegUsage.h.

55 {
56 if (ambig <= 0) {
57 return (usedNegAmb() & segUse) != 0;
58 }
59 else {
60 return (usedPosAmb() & segUse) != 0;
61 }
62}

◆ usedSeg()

bool MdcSegUsage::usedSeg ( void  ) const
inline

Definition at line 45 of file MdcSegUsage.h.

45 {
46 return ( (segUse & (usedNegAmb() | usedPosAmb())) != 0);
47}

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