BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
MucRecHitID Class Reference

#include <MucRecHitID.h>

Public Member Functions

 MucRecHitID (const int part=-1, const int seg=-1, const int gap=-1, const int hit=-1)
 Constructor.
 MucRecHitID (const MucRecHitID &source)
 Copy constructor.
MucRecHitIDoperator= (const MucRecHitID &orig)
 Assignment operator.
bool operator== (const MucRecHitID &other) const
 Comparison operators.
bool operator!= (const MucRecHitID &other) const
bool operator< (const MucRecHitID &other) const
bool operator> (const MucRecHitID &other) const
 ~MucRecHitID ()
 Destructor.
void SetID (const int part=-1, const int seg=-1, const int gap=-1, const int hit=-1)
 Set the identifier.
int Part () const
 Get part number. (0-east cap, 1-barrel, 2-west cap).
int Seg () const
 Get seg number. (0-7).
int Gap () const
 Get gap number. (0-8).
int Hit () const
 Get hit number within this gap. (starts at 0).
 MucRecHitID (const int part=-1, const int seg=-1, const int gap=-1, const int hit=-1)
 Constructor.
 MucRecHitID (const MucRecHitID &source)
 Copy constructor.
MucRecHitIDoperator= (const MucRecHitID &orig)
 Assignment operator.
bool operator== (const MucRecHitID &other) const
 Comparison operators.
bool operator!= (const MucRecHitID &other) const
bool operator< (const MucRecHitID &other) const
bool operator> (const MucRecHitID &other) const
 ~MucRecHitID ()
 Destructor.
void SetID (const int part=-1, const int seg=-1, const int gap=-1, const int hit=-1)
 Set the identifier.
int Part () const
 Get part number. (0-east cap, 1-barrel, 2-west cap).
int Seg () const
 Get seg number. (0-7).
int Gap () const
 Get gap number. (0-8).
int Hit () const
 Get hit number within this gap. (starts at 0).
 MucRecHitID (const int part=-1, const int seg=-1, const int gap=-1, const int hit=-1)
 Constructor.
 MucRecHitID (const MucRecHitID &source)
 Copy constructor.
MucRecHitIDoperator= (const MucRecHitID &orig)
 Assignment operator.
bool operator== (const MucRecHitID &other) const
 Comparison operators.
bool operator!= (const MucRecHitID &other) const
bool operator< (const MucRecHitID &other) const
bool operator> (const MucRecHitID &other) const
 ~MucRecHitID ()
 Destructor.
void SetID (const int part=-1, const int seg=-1, const int gap=-1, const int hit=-1)
 Set the identifier.
int Part () const
 Get part number. (0-east cap, 1-barrel, 2-west cap).
int Seg () const
 Get seg number. (0-7).
int Gap () const
 Get gap number. (0-8).
int Hit () const
 Get hit number within this gap. (starts at 0).

Detailed Description

Class BesMUCRecRawHit contains the four numbers necessary to identify a hit uniquely: part, seg, gap, strip, and hit within the gap.

Author
Zhengyun You \URL{youzy.nosp@m.@hep.nosp@m..pku..nosp@m.cn}

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

Constructor & Destructor Documentation

◆ MucRecHitID() [1/6]

MucRecHitID::MucRecHitID ( const int part = -1,
const int seg = -1,
const int gap = -1,
const int hit = -1 )

Constructor.

Definition at line 17 of file MucRecHitID.cxx.

18 : m_Part( part ), m_Seg( seg ), m_Gap( gap ), m_Hit( hit ) {}

Referenced by MucRecHitID(), operator!=(), operator<(), operator=(), operator==(), and operator>().

◆ MucRecHitID() [2/6]

MucRecHitID::MucRecHitID ( const MucRecHitID & source)

Copy constructor.

Definition at line 21 of file MucRecHitID.cxx.

22 : m_Part( source.m_Part )
23 , m_Seg( source.m_Seg )
24 , m_Gap( source.m_Gap )
25 , m_Hit( source.m_Hit ) {}

◆ ~MucRecHitID() [1/3]

MucRecHitID::~MucRecHitID ( )

Destructor.

Definition at line 28 of file MucRecHitID.cxx.

28{}

◆ MucRecHitID() [3/6]

MucRecHitID::MucRecHitID ( const int part = -1,
const int seg = -1,
const int gap = -1,
const int hit = -1 )

Constructor.

◆ MucRecHitID() [4/6]

MucRecHitID::MucRecHitID ( const MucRecHitID & source)

Copy constructor.

◆ ~MucRecHitID() [2/3]

MucRecHitID::~MucRecHitID ( )

Destructor.

◆ MucRecHitID() [5/6]

MucRecHitID::MucRecHitID ( const int part = -1,
const int seg = -1,
const int gap = -1,
const int hit = -1 )

Constructor.

◆ MucRecHitID() [6/6]

MucRecHitID::MucRecHitID ( const MucRecHitID & source)

Copy constructor.

◆ ~MucRecHitID() [3/3]

MucRecHitID::~MucRecHitID ( )

Destructor.

Member Function Documentation

◆ Gap() [1/3]

int MucRecHitID::Gap ( ) const
inline

Get gap number. (0-8).

Definition at line 65 of file InstallArea/x86_64-el9-gcc13-dbg/include/MucRecEvent/MucRecHitID.h.

65{ return m_Gap; }

◆ Gap() [2/3]

int MucRecHitID::Gap ( ) const
inline

Get gap number. (0-8).

Definition at line 65 of file InstallArea/x86_64-el9-gcc13-opt/include/MucRecEvent/MucRecHitID.h.

65{ return m_Gap; }

◆ Gap() [3/3]

int MucRecHitID::Gap ( ) const
inline

Get gap number. (0-8).

Definition at line 65 of file Muc/MucRecEvent/include/MucRecEvent/MucRecHitID.h.

65{ return m_Gap; }

◆ Hit() [1/3]

int MucRecHitID::Hit ( ) const
inline

Get hit number within this gap. (starts at 0).

Definition at line 68 of file InstallArea/x86_64-el9-gcc13-dbg/include/MucRecEvent/MucRecHitID.h.

68{ return m_Hit; }

◆ Hit() [2/3]

int MucRecHitID::Hit ( ) const
inline

Get hit number within this gap. (starts at 0).

Definition at line 68 of file InstallArea/x86_64-el9-gcc13-opt/include/MucRecEvent/MucRecHitID.h.

68{ return m_Hit; }

◆ Hit() [3/3]

int MucRecHitID::Hit ( ) const
inline

Get hit number within this gap. (starts at 0).

Definition at line 68 of file Muc/MucRecEvent/include/MucRecEvent/MucRecHitID.h.

68{ return m_Hit; }

◆ operator!=() [1/3]

bool MucRecHitID::operator!= ( const MucRecHitID & other) const

Definition at line 50 of file MucRecHitID.cxx.

50 {
51 if ( m_Part == other.m_Part && m_Seg == other.m_Seg && m_Gap == other.m_Gap &&
52 m_Hit == other.m_Hit )
53 return false;
54 else return true;
55}
Index other(Index i, Index j)

◆ operator!=() [2/3]

bool MucRecHitID::operator!= ( const MucRecHitID & other) const

◆ operator!=() [3/3]

bool MucRecHitID::operator!= ( const MucRecHitID & other) const

◆ operator<() [1/3]

bool MucRecHitID::operator< ( const MucRecHitID & other) const

Definition at line 57 of file MucRecHitID.cxx.

57 {
58 if ( m_Part < other.m_Part || ( m_Part == other.m_Part && m_Seg < other.m_Seg ) ||
59 ( m_Part == other.m_Part && m_Seg == other.m_Seg && m_Gap < other.m_Gap ) ||
60 ( m_Part == other.m_Part && m_Seg == other.m_Seg && m_Gap == other.m_Gap &&
61 m_Hit < other.m_Hit ) )
62 { return true; }
63 else { return false; }
64}

◆ operator<() [2/3]

bool MucRecHitID::operator< ( const MucRecHitID & other) const

◆ operator<() [3/3]

bool MucRecHitID::operator< ( const MucRecHitID & other) const

◆ operator=() [1/3]

MucRecHitID & MucRecHitID::operator= ( const MucRecHitID & orig)

Assignment operator.

Definition at line 31 of file MucRecHitID.cxx.

31 {
32 // Assignment operator.
33 if ( this != &orig )
34 { // Watch out for self-assignment!
35 m_Part = orig.m_Part;
36 m_Seg = orig.m_Seg;
37 m_Gap = orig.m_Gap;
38 m_Hit = orig.m_Hit;
39 }
40 return *this;
41}

◆ operator=() [2/3]

MucRecHitID & MucRecHitID::operator= ( const MucRecHitID & orig)

Assignment operator.

◆ operator=() [3/3]

MucRecHitID & MucRecHitID::operator= ( const MucRecHitID & orig)

Assignment operator.

◆ operator==() [1/3]

bool MucRecHitID::operator== ( const MucRecHitID & other) const

Comparison operators.

Definition at line 43 of file MucRecHitID.cxx.

43 {
44 if ( m_Part == other.m_Part && m_Seg == other.m_Seg && m_Gap == other.m_Gap &&
45 m_Hit == other.m_Hit )
46 return true;
47 else return false;
48}

◆ operator==() [2/3]

bool MucRecHitID::operator== ( const MucRecHitID & other) const

Comparison operators.

◆ operator==() [3/3]

bool MucRecHitID::operator== ( const MucRecHitID & other) const

Comparison operators.

◆ operator>() [1/3]

bool MucRecHitID::operator> ( const MucRecHitID & other) const

Definition at line 66 of file MucRecHitID.cxx.

66 {
67 if ( m_Part > other.m_Part || ( m_Part == other.m_Part && m_Seg > other.m_Seg ) ||
68 ( m_Part == other.m_Part && m_Seg == other.m_Seg && m_Gap > other.m_Gap ) ||
69 ( m_Part == other.m_Part && m_Seg == other.m_Seg && m_Gap == other.m_Gap &&
70 m_Hit > other.m_Hit ) )
71 { return true; }
72 else { return false; }
73}

◆ operator>() [2/3]

bool MucRecHitID::operator> ( const MucRecHitID & other) const

◆ operator>() [3/3]

bool MucRecHitID::operator> ( const MucRecHitID & other) const

◆ Part() [1/3]

int MucRecHitID::Part ( ) const
inline

Get part number. (0-east cap, 1-barrel, 2-west cap).

Definition at line 59 of file InstallArea/x86_64-el9-gcc13-dbg/include/MucRecEvent/MucRecHitID.h.

59{ return m_Part; }

◆ Part() [2/3]

int MucRecHitID::Part ( ) const
inline

Get part number. (0-east cap, 1-barrel, 2-west cap).

Definition at line 59 of file InstallArea/x86_64-el9-gcc13-opt/include/MucRecEvent/MucRecHitID.h.

59{ return m_Part; }

◆ Part() [3/3]

int MucRecHitID::Part ( ) const
inline

Get part number. (0-east cap, 1-barrel, 2-west cap).

Definition at line 59 of file Muc/MucRecEvent/include/MucRecEvent/MucRecHitID.h.

59{ return m_Part; }

◆ Seg() [1/3]

int MucRecHitID::Seg ( ) const
inline

Get seg number. (0-7).

Definition at line 62 of file InstallArea/x86_64-el9-gcc13-dbg/include/MucRecEvent/MucRecHitID.h.

62{ return m_Seg; }

◆ Seg() [2/3]

int MucRecHitID::Seg ( ) const
inline

Get seg number. (0-7).

Definition at line 62 of file InstallArea/x86_64-el9-gcc13-opt/include/MucRecEvent/MucRecHitID.h.

62{ return m_Seg; }

◆ Seg() [3/3]

int MucRecHitID::Seg ( ) const
inline

Get seg number. (0-7).

Definition at line 62 of file Muc/MucRecEvent/include/MucRecEvent/MucRecHitID.h.

62{ return m_Seg; }

◆ SetID() [1/3]

void MucRecHitID::SetID ( const int part = -1,
const int seg = -1,
const int gap = -1,
const int hit = -1 )

Set the identifier.

Definition at line 76 of file MucRecHitID.cxx.

76 {
77 m_Part = part;
78 m_Seg = seg;
79 m_Gap = gap;
80 m_Hit = hit;
81}

◆ SetID() [2/3]

void MucRecHitID::SetID ( const int part = -1,
const int seg = -1,
const int gap = -1,
const int hit = -1 )

Set the identifier.

◆ SetID() [3/3]

void MucRecHitID::SetID ( const int part = -1,
const int seg = -1,
const int gap = -1,
const int hit = -1 )

Set the identifier.


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