#include <iostream>
#include "MucGeomSvc/MucSoftID.h"
Go to the source code of this file.
Functions | |
ostream & | operator<< (ostream &s, const MucSoftID &id) |
Print MucSoftID information to a stream. | |
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. |
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 }
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 }