BOSS 7.0.7
BESIII Offline Software System
Loading...
Searching...
No Matches
MucSoftID.h File Reference

Go to the source code of this file.

Classes

class  MucSoftID
 

Functions

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.
 

Function Documentation

◆ GapHash()

size_t GapHash ( const MucSoftID id)

Return the position of a MucSoftID object in the GapGeo hash table.

Definition at line 130 of file MucSoftID.cxx.

131{
132 // Return the position of a MucSoftID object in the GapGeo hash table.
133 return ( ( id.GetPart()
134 *MucSoftID::m_kSegInPartMax + id.GetSeg() )
135 *MucSoftID::m_kGapInSegMax + id.GetGap() );
136}
static const int m_kGapInSegMax
Number of gaps in a segment max.
Definition: MucSoftID.h:44
static const int m_kSegInPartMax
Number of segments in a part max.
Definition: MucSoftID.h:39

◆ operator<<()

ostream & operator<< ( ostream &  s,
const MucSoftID id 
)

Print MucSoftID information to a stream.

Definition at line 119 of file MucSoftID.cxx.

120{
121 // Print MucSoftID information to a stream.
122 s << " part " << id.GetPart()
123 << " seg " << id.GetSeg()
124 << " gap " << id.GetGap()
125 << " strip " << id.GetStrip();
126
127 return s;
128}
XmlRpcServer s
Definition: HelloServer.cpp:11

◆ StripHash()

size_t StripHash ( const MucSoftID id)

Return the position of a MucSoftID object in the StripGeo hash table.

Definition at line 138 of file MucSoftID.cxx.

139{
140 // Return the position of a MucSoftID object in the StripGeo hash table.
141 return ( ( ( id.GetPart()
142 *MucSoftID::m_kSegInPartMax + id.GetSeg() )
143 *MucSoftID::m_kGapInSegMax + id.GetGap() )
144 *MucSoftID::m_kStripInGapMax + id.GetStrip() );
145}
static const int m_kStripInGapMax
Number of strips in a gap max.
Definition: MucSoftID.h:49