CMS 3D CMS Logo

Classes | Functions

/data/refman/pasoursint/CMSSW_5_3_1/src/DataFormats/SiStripDetId/interface/TIBDetId.h File Reference

#include <ostream>
#include <vector>
#include "DataFormats/SiStripDetId/interface/SiStripDetId.h"
#include "DataFormats/SiStripDetId/interface/StripSubdetector.h"

Go to the source code of this file.

Classes

class  TIBDetId

Functions

std::ostream & operator<< (std::ostream &os, const TIBDetId &id)

Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const TIBDetId id 
)

Definition at line 19 of file TIBDetId.cc.

                                                          {
  unsigned int              theLayer  = id.layer();
  std::vector<unsigned int> theString = id.string();
  unsigned int              theModule = id.module();
  std::string side;
  std::string part;
  side = (theString[0] == 1 ) ? "-" : "+";
  part = (theString[1] == 1 ) ? "int" : "ext";
  std::string type;
  type = (id.stereo() == 0) ? "r-phi" : "stereo";
  type = (id.glued() == 0) ? type : type+" glued";
  type = (id.isDoubleSide()) ? "double side" : type;
  return os << "TIB" << side
            << " Layer " << theLayer << " " << part
            << " String " << theString[2]
            << " Module " << theModule << " " << type
            << " (" << id.rawId() << ")";
}