12#include "MucRecEvent/MucRecHitID.h"
18 : m_Part( part ), m_Seg( seg ), m_Gap( gap ), m_Hit( hit ) {}
22 : m_Part( source.m_Part )
23 , m_Seg( source.m_Seg )
24 , m_Gap( source.m_Gap )
25 , m_Hit( source.m_Hit ) {}
44 if ( m_Part == other.m_Part && m_Seg == other.m_Seg && m_Gap == other.m_Gap &&
45 m_Hit == other.m_Hit )
51 if ( m_Part == other.m_Part && m_Seg == other.m_Seg && m_Gap == other.m_Gap &&
52 m_Hit == other.m_Hit )
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 ) )
63 else {
return false; }
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 ) )
72 else {
return false; }
bool operator!=(const MucRecHitID &other) const
bool operator>(const MucRecHitID &other) const
bool operator<(const MucRecHitID &other) const
MucRecHitID(const int part=-1, const int seg=-1, const int gap=-1, const int hit=-1)
Constructor.
~MucRecHitID()
Destructor.
MucRecHitID & operator=(const MucRecHitID &orig)
Assignment operator.
bool operator==(const MucRecHitID &other) const
Comparison operators.
void SetID(const int part=-1, const int seg=-1, const int gap=-1, const int hit=-1)
Set the identifier.