#include <interface/PixelChannel.h>
Public Member Functions | |
std::string | channelname () const |
const PixelModuleName & | module () const |
std::string | modulename () const |
const bool | operator< (const PixelChannel &aChannel) const |
const bool | operator== (const PixelChannel &aChannel) const |
PixelChannel (std::string name) | |
PixelChannel (PixelModuleName module, PixelTBMChannel TBMChannel) | |
PixelChannel (PixelModuleName module, std::string TBMChannel) | |
PixelChannel () | |
const PixelTBMChannel & | TBMChannel () const |
std::string | TBMChannelString () const |
Private Attributes | |
PixelModuleName | module_ |
PixelTBMChannel | TBMChannel_ |
Friends | |
std::ostream & | operator<< (std::ostream &s, const PixelChannel &channel) |
Definition at line 21 of file PixelChannel.h.
pos::PixelChannel::PixelChannel | ( | ) | [inline] |
PixelChannel::PixelChannel | ( | PixelModuleName | module, | |
std::string | TBMChannel | |||
) |
Definition at line 5 of file PixelChannel.cc.
00005 : 00006 module_(module), TBMChannel_(TBMChannel) 00007 {}
PixelChannel::PixelChannel | ( | PixelModuleName | module, | |
PixelTBMChannel | TBMChannel | |||
) |
Definition at line 9 of file PixelChannel.cc.
00009 : 00010 module_(module), TBMChannel_(TBMChannel) 00011 {}
PixelChannel::PixelChannel | ( | std::string | name | ) |
Definition at line 13 of file PixelChannel.cc.
References module_, TBMChannel_, and TBMChannelString().
00014 { 00015 module_ = PixelModuleName(name); 00016 char TBMChannelString[2] = {0,0}; 00017 TBMChannelString[0] = name[name.size()-1]; // take the last character of name 00018 TBMChannel_ = PixelTBMChannel(TBMChannelString); 00019 }
std::string PixelChannel::channelname | ( | ) | const |
Definition at line 27 of file PixelChannel.cc.
References modulename(), and TBMChannelString().
Referenced by pos::operator<<().
00028 { 00029 return modulename() + "_ch" + TBMChannelString(); 00030 }
const PixelModuleName& pos::PixelChannel::module | ( | ) | const [inline] |
std::string pos::PixelChannel::modulename | ( | ) | const [inline] |
Definition at line 31 of file PixelChannel.h.
References module_, and pos::PixelModuleName::modulename().
Referenced by channelname().
00031 { return module_.modulename(); }
const bool pos::PixelChannel::operator< | ( | const PixelChannel & | aChannel | ) | const [inline] |
Definition at line 40 of file PixelChannel.h.
References module_, and TBMChannel_.
00040 { 00041 return (module_<aChannel.module_ || (module_==aChannel.module_ && TBMChannel_ < aChannel.TBMChannel_) ); 00042 }
const bool pos::PixelChannel::operator== | ( | const PixelChannel & | aChannel | ) | const [inline] |
Definition at line 44 of file PixelChannel.h.
References module_, and TBMChannel_.
00044 { 00045 return (module_==aChannel.module_ && TBMChannel_==aChannel.TBMChannel_); 00046 }
const PixelTBMChannel& pos::PixelChannel::TBMChannel | ( | ) | const [inline] |
std::string pos::PixelChannel::TBMChannelString | ( | ) | const [inline] |
Definition at line 33 of file PixelChannel.h.
References pos::PixelTBMChannel::string(), and TBMChannel_.
Referenced by channelname(), pos::PixelCalibConfiguration::nextFECState(), PixelChannel(), pos::PixelNameTranslation::writeASCII(), and pos::PixelNameTranslation::writeXML().
00033 { return TBMChannel_.string(); }
std::ostream& operator<< | ( | std::ostream & | s, | |
const PixelChannel & | channel | |||
) | [friend] |
Definition at line 21 of file PixelChannel.cc.
00022 { 00023 s << channel.channelname(); 00024 return s; 00025 }
PixelModuleName pos::PixelChannel::module_ [private] |
Definition at line 49 of file PixelChannel.h.
Referenced by module(), modulename(), operator<(), operator==(), and PixelChannel().
Definition at line 50 of file PixelChannel.h.
Referenced by operator<(), operator==(), PixelChannel(), TBMChannel(), and TBMChannelString().