12#ifndef MUC_REC_HIT_ID_H
13#define MUC_REC_HIT_ID_H
36 MucRecHitID(
const int part = -1,
const int seg = -1,
const int gap = -1,
55 void SetID(
const int part = -1,
const int seg = -1,
const int gap = -1,
59 int Part()
const {
return m_Part; }
62 int Seg()
const {
return m_Seg; }
65 int Gap()
const {
return m_Gap; }
68 int Hit()
const {
return m_Hit; }
bool operator!=(const MucRecHitID &other) const
int Gap() const
Get gap number. (0-8).
bool operator>(const MucRecHitID &other) const
int Seg() const
Get seg number. (0-7).
MucRecHitID(const MucRecHitID &source)
Copy constructor.
bool operator<(const MucRecHitID &other) const
MucRecHitID(const int part=-1, const int seg=-1, const int gap=-1, const int hit=-1)
Constructor.
int Hit() const
Get hit number within this gap. (starts at 0).
~MucRecHitID()
Destructor.
MucRecHitID & operator=(const MucRecHitID &orig)
Assignment operator.
bool operator==(const MucRecHitID &other) const
Comparison operators.
int Part() const
Get part number. (0-east cap, 1-barrel, 2-west cap).
void SetID(const int part=-1, const int seg=-1, const int gap=-1, const int hit=-1)
Set the identifier.