CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_1/src/CalibFormats/SiPixelObjects/interface/PixelTBMChannel.h

Go to the documentation of this file.
00001 #ifndef PixelTBMChannel_h
00002 #define PixelTBMChannel_h
00003 
00009 #include <string>
00010 #include <iostream>
00011 
00012 namespace pos{
00018   class PixelTBMChannel
00019   {
00020     public:
00021 
00022     PixelTBMChannel(){;}
00023     PixelTBMChannel(std::string TBMChannel);
00024 
00025     std::string string() const;
00026 
00027     friend std::ostream& operator<<(std::ostream& s, const PixelTBMChannel& TBMChannel);
00028 
00029     const bool operator<(const PixelTBMChannel& aTBMChannel) const{
00030       return ( isChannelB_ == false && aTBMChannel.isChannelB_ == true );
00031     }
00032 
00033     const bool operator==(const PixelTBMChannel& aTBMChannel) const{
00034       return isChannelB_==aTBMChannel.isChannelB_;
00035     }
00036 
00037     private:
00038     bool isChannelB_;
00039   };
00040   std::ostream& operator<<(std::ostream& s, const PixelTBMChannel& TBMChannel);
00041 }
00042 #endif