Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:54:41

0001 #include "DataFormats/SiPixelDetId/interface/PixelModuleName.h"
0002 
0003 std::ostream& operator<<(std::ostream& out, const PixelModuleName::ModuleType& t) {
0004   switch (t) {
0005     case (PixelModuleName::v1x2): {
0006       out << "v1x2";
0007       break;
0008     }
0009     case (PixelModuleName::v1x5): {
0010       out << "v1x5";
0011       break;
0012     }
0013     case (PixelModuleName::v1x8): {
0014       out << "v1x8";
0015       break;
0016     }
0017     case (PixelModuleName::v2x3): {
0018       out << "v2x3";
0019       break;
0020     }
0021     case (PixelModuleName::v2x4): {
0022       out << "v2x4";
0023       break;
0024     }
0025     case (PixelModuleName::v2x5): {
0026       out << "v2x5";
0027       break;
0028     }
0029     case (PixelModuleName::v2x8): {
0030       out << "v2x8";
0031       break;
0032     }
0033     default:
0034       out << "unknown";
0035   };
0036   return out;
0037 }