16#include "MucGeomSvc/MucSoftID.h"
38 {48, 96, 48, 96, 48, 96, 48, 96, 48},
39 {64, 64, 64, 64, 64, 64, 64, 64} };
78 m_Strip = orig.m_Strip;
84 : m_Part(orig.m_Part),
122 s <<
" part " <<
id.GetPart()
123 <<
" seg " <<
id.GetSeg()
124 <<
" gap " <<
id.GetGap()
125 <<
" strip " <<
id.GetStrip();
133 return ( (
id.GetPart()
141 return ( ( (
id.GetPart()
size_t GapHash(const MucSoftID &id)
Return the position of a MucSoftID object in the GapGeo hash table.
size_t StripHash(const MucSoftID &id)
Return the position of a MucSoftID object in the StripGeo hash table.
ostream & operator<<(ostream &s, const MucSoftID &id)
Print MucSoftID information to a stream.
static const int m_kStripTotal
Number of strips total in the Bes MUC.
static const int m_kSegTotal
Number of segments total in the Bes MUC.
static const int m_kStripInGapMax
Number of strips in a gap max.
static const int m_kGapInSegMax
Number of gaps in a segment max.
static const int m_kSegInPart[m_kPart]
Number of segments in a part.
int GetPart() const
Get part number. (0-east cap, 1-barrel, 2-west cap)
int GetStrip() const
Get strip number. (barrel 0-47 for gap0,2,4,6,8, 0-95 for gap1,3,5,7, endcap 0-63)
static const int m_kHitInGapMax
Maximum number of hits in a gap.
int GetGap() const
Get gap number. (barrel 0-8, cap 0-7)
MucSoftID(const int part=-1, const int seg=-1, const int gap=-1, const int strip=-1)
Constructor.
static const int m_kSegInPartMax
Number of segments in a part max.
static const int m_kGapTotal
Number of gaps total in the Bes MUC.
void SetID(const int part=-1, const int seg=-1, const int gap=-1, const int strip=-1)
Set the sub-identifier.
static const int m_kHitTotalMax
Maximum number of hits total in the Bes MUC.
static const int m_kPart
Number of parts in Bes Muc.
MucSoftID & operator=(const MucSoftID &orig)
Assignment constructor.
int GetSeg() const
Get segment number. (barrel 0-3, cap 0-7)
bool operator==(const MucSoftID &id) const
Compare whehter two MucSoftID is equal.
static const int m_kStripInGap[m_kPart][m_kGapInSegMax]
Number of strips in a gap.
static const int m_kGapInPart[m_kPart]
Number of gaps in a segment of part.