00001
00002
00003
00004 #include "Kernel/STChannelID.h"
00005 #include <sstream>
00006
00007
00008
00009
00010
00011
00012
00013 std::string LHCb::STChannelID::toString() const{
00014 std::ostringstream o;
00015 fillStream(o);
00016 return o.str();
00017 }
00018
00019 std::ostream& LHCb::STChannelID::fillStream(std::ostream& s) const
00020 {
00021 s << "{ ";
00022 if ( isTT() ) s << "TT ";
00023 if ( isIT() ) s << "IT ";
00024 s << "STChannelID : " << channelID()
00025 << " : type=" << type()
00026 << " strip=" << strip()
00027 << " sector=" << sector()
00028 << " detRegion=" << detRegion()
00029 << " layer=" << layer()
00030 << " station=" << station();
00031 return s << " }";
00032 }