CMS 3D CMS Logo

Classes | Functions
PixelEndcapName.h File Reference
#include "DataFormats/SiPixelDetId/interface/PixelModuleName.h"
#include "DataFormats/SiPixelDetId/interface/PXFDetId.h"
#include <string>
#include <iostream>

Go to the source code of this file.

Classes

class  PixelEndcapName
 

Functions

std::ostream & operator<< (std::ostream &out, const PixelEndcapName::HalfCylinder &t)
 

Function Documentation

◆ operator<<()

std::ostream& operator<< ( std::ostream &  out,
const PixelEndcapName::HalfCylinder t 
)

Definition at line 373 of file PixelEndcapName.cc.

References PixelEndcapName::mI, PixelEndcapName::mO, MillePedeFileConverter_cfg::out, PixelEndcapName::pI, PixelEndcapName::pO, and submitPVValidationJobs::t.

373  {
374  switch (t) {
375  case (PixelEndcapName::pI): {
376  out << "pI";
377  break;
378  }
379  case (PixelEndcapName::pO): {
380  out << "pO";
381  break;
382  }
383  case (PixelEndcapName::mI): {
384  out << "mI";
385  break;
386  }
387  case (PixelEndcapName::mO): {
388  out << "mO";
389  break;
390  }
391  default:
392  out << "unknown";
393  };
394  return out;
395 }