#include <MucRecHitID.h>
Public Member Functions | |
int | Gap () const |
Get gap number. (0-8). | |
int | Gap () const |
Get gap number. (0-8). | |
int | Hit () const |
Get hit number within this gap. (starts at 0). | |
int | Hit () const |
Get hit number within this gap. (starts at 0). | |
MucRecHitID (const MucRecHitID &source) | |
Copy constructor. | |
MucRecHitID (const int part=-1, const int seg=-1, const int gap=-1, const int hit=-1) | |
Constructor. | |
MucRecHitID (const MucRecHitID &source) | |
Copy constructor. | |
MucRecHitID (const int part=-1, const int seg=-1, const int gap=-1, const int hit=-1) | |
Constructor. | |
bool | operator!= (const MucRecHitID &other) const |
bool | operator!= (const MucRecHitID &other) const |
bool | operator< (const MucRecHitID &other) const |
bool | operator< (const MucRecHitID &other) const |
MucRecHitID & | operator= (const MucRecHitID &orig) |
Assignment operator. | |
MucRecHitID & | operator= (const MucRecHitID &orig) |
Assignment operator. | |
bool | operator== (const MucRecHitID &other) const |
Comparison operators. | |
bool | operator== (const MucRecHitID &other) const |
Comparison operators. | |
bool | operator> (const MucRecHitID &other) const |
bool | operator> (const MucRecHitID &other) const |
int | Part () const |
Get part number. (0-east cap, 1-barrel, 2-west cap). | |
int | Part () const |
Get part number. (0-east cap, 1-barrel, 2-west cap). | |
int | Seg () const |
Get seg number. (0-7). | |
int | Seg () const |
Get seg number. (0-7). | |
void | SetID (const int part=-1, const int seg=-1, const int gap=-1, const int hit=-1) |
Set the identifier. | |
void | SetID (const int part=-1, const int seg=-1, const int gap=-1, const int hit=-1) |
Set the identifier. | |
~MucRecHitID () | |
Destructor. | |
~MucRecHitID () | |
Destructor. | |
Private Attributes | |
int | m_Gap |
int | m_Hit |
int | m_Part |
int | m_Seg |
|
Constructor.
|
|
Copy constructor.
00026 : m_Part(source.m_Part), 00027 m_Seg(source.m_Seg), 00028 m_Gap(source.m_Gap), 00029 m_Hit(source.m_Hit) 00030 { }
|
|
Destructor.
00034 { }
|
|
Constructor.
|
|
Copy constructor.
|
|
Destructor.
|
|
Get gap number. (0-8).
00071 { return m_Gap; }
|
|
Get gap number. (0-8).
00071 { return m_Gap; }
|
|
Get hit number within this gap. (starts at 0).
00074 { return m_Hit; }
|
|
Get hit number within this gap. (starts at 0).
00074 { return m_Hit; }
|
|
|
|
00064 { 00065 if ( m_Part == other.m_Part && 00066 m_Seg == other.m_Seg && 00067 m_Gap == other.m_Gap && 00068 m_Hit == other.m_Hit ) 00069 return false; 00070 else 00071 return true; 00072 }
|
|
|
|
00076 { 00077 if (m_Part < other.m_Part || 00078 (m_Part == other.m_Part && m_Seg < other.m_Seg) || 00079 (m_Part == other.m_Part && m_Seg == other.m_Seg && m_Gap < other.m_Gap) || 00080 (m_Part == other.m_Part && m_Seg == other.m_Seg && m_Gap == other.m_Gap && m_Hit < other.m_Hit)) { 00081 return true; 00082 } 00083 else { 00084 return false; 00085 } 00086 }
|
|
Assignment operator.
|
|
Assignment operator.
00039 { 00040 // Assignment operator. 00041 if (this != &orig) { // Watch out for self-assignment! 00042 m_Part = orig.m_Part; 00043 m_Seg = orig.m_Seg; 00044 m_Gap = orig.m_Gap; 00045 m_Hit = orig.m_Hit; 00046 } 00047 return *this; 00048 }
|
|
Comparison operators.
|
|
Comparison operators.
00052 { 00053 if ( m_Part == other.m_Part && 00054 m_Seg == other.m_Seg && 00055 m_Gap == other.m_Gap && 00056 m_Hit == other.m_Hit ) 00057 return true; 00058 else 00059 return false; 00060 }
|
|
|
|
00090 { 00091 if (m_Part > other.m_Part || 00092 (m_Part == other.m_Part && m_Seg > other.m_Seg) || 00093 (m_Part == other.m_Part && m_Seg == other.m_Seg && m_Gap > other.m_Gap) || 00094 (m_Part == other.m_Part && m_Seg == other.m_Seg && m_Gap == other.m_Gap && m_Hit > other.m_Hit)) { 00095 return true; 00096 } 00097 else { 00098 return false; 00099 } 00100 }
|
|
Get part number. (0-east cap, 1-barrel, 2-west cap).
00065 { return m_Part; }
|
|
Get part number. (0-east cap, 1-barrel, 2-west cap).
00065 { return m_Part; }
|
|
Get seg number. (0-7).
00068 { return m_Seg; }
|
|
Get seg number. (0-7).
00068 { return m_Seg; }
|
|
Set the identifier.
|
|
Set the identifier.
|
|
|
|
|
|
|
|
|