CMS 3D CMS Logo

Functions
PixelEndcapName.cc File Reference
#include "DataFormats/SiPixelDetId/interface/PixelEndcapName.h"
#include <sstream>
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "DataFormats/TrackerCommon/interface/TrackerTopology.h"

Go to the source code of this file.

Functions

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

Function Documentation

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

Definition at line 350 of file PixelEndcapName.cc.

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

351 {
352  switch (t) {
353  case(PixelEndcapName::pI) : {out << "pI"; break;}
354  case(PixelEndcapName::pO) : {out << "pO"; break;}
355  case(PixelEndcapName::mI) : {out << "mI"; break;}
356  case(PixelEndcapName::mO) : {out << "mO"; break;}
357  default: out << "unknown";
358  };
359  return out;
360 }