Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:47:23

0001 #ifndef PixelTBMChannel_h
0002 #define PixelTBMChannel_h
0003 /*! \file CalibFormats/SiPixelObjects/interface/PixelTBMChannel.h
0004 *   \brief Simple class to hold either "A" or "B" for the TBM channel
0005 *
0006 *    A longer explanation will be placed here later
0007 */
0008 
0009 #include <string>
0010 #include <iostream>
0011 
0012 namespace pos {
0013   /*! \class PixelTBMChannel PixelTBMChannel.h "interface/PixelTBMChannel.h"
0014 *   \brief Simple class to hold either "A" or "B" for the TBM channel
0015 *
0016 *   A longer explanation will be placed here later
0017 */
0018   class PixelTBMChannel {
0019   public:
0020     PixelTBMChannel() { ; }
0021     PixelTBMChannel(std::string TBMChannel);
0022 
0023     std::string string() const;
0024 
0025     friend std::ostream& operator<<(std::ostream& s, const PixelTBMChannel& TBMChannel);
0026 
0027     const bool operator<(const PixelTBMChannel& aTBMChannel) const {
0028       return (isChannelB_ == false && aTBMChannel.isChannelB_ == true);
0029     }
0030 
0031     const bool operator==(const PixelTBMChannel& aTBMChannel) const { return isChannelB_ == aTBMChannel.isChannelB_; }
0032 
0033   private:
0034     bool isChannelB_;
0035   };
0036   std::ostream& operator<<(std::ostream& s, const PixelTBMChannel& TBMChannel);
0037 }  // namespace pos
0038 #endif