/home/bes3soft/bes3soft/Boss/7.0.2/dist/7.0.2/Muc/MucGeomSvc/MucGeomSvc-00-02-25/MucGeomSvc/tmp/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.
ostreamoperator<< (ostream &s, const MucSoftID &id)
 Print MucSoftID information to a stream.


Function Documentation

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.

References MucSoftID::m_kGapInSegMax, and MucSoftID::m_kSegInPartMax.

00131 {
00132   // Return the position of a MucSoftID object in the GapGeo hash table.
00133   return  ( ( id.GetPart()
00134               *MucSoftID::m_kSegInPartMax + id.GetSeg() )
00135             *MucSoftID::m_kGapInSegMax + id.GetGap() );
00136 }

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

Print MucSoftID information to a stream.

Definition at line 119 of file MucSoftID.cxx.

00120 {
00121   // Print MucSoftID information to a stream.
00122   s << " part "   << id.GetPart()
00123     << " seg "    << id.GetSeg()
00124     << " gap "    << id.GetGap() 
00125     << " strip "  << id.GetStrip();
00126 
00127   return s;
00128 }

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.

References MucSoftID::m_kGapInSegMax, MucSoftID::m_kSegInPartMax, and MucSoftID::m_kStripInGapMax.

00139 {
00140   // Return the position of a MucSoftID object in the StripGeo hash table.
00141   return ( ( ( id.GetPart()
00142                *MucSoftID::m_kSegInPartMax + id.GetSeg() )
00143              *MucSoftID::m_kGapInSegMax + id.GetGap() )
00144            *MucSoftID::m_kStripInGapMax + id.GetStrip() ); 
00145 }


Generated on Tue Nov 29 23:16:49 2016 for BOSS_7.0.2 by  doxygen 1.4.7