CMS 3D CMS Logo

Classes | Functions

/data/doxygen/doxygen-1.7.3/gen/CMSSW_4_2_8/src/DataFormats/SiStripDetId/interface/TOBDetId.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  TOBDetId

Functions

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

Function Documentation

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

Definition at line 19 of file TOBDetId.cc.

                                                          {
  unsigned int              theLayer  = id.layer();
  std::vector<unsigned int> theRod    = id.rod();
  unsigned int              theModule = id.module();
  std::string side;
  std::string part;
  side = (theRod[0] == 1 ) ? "-" : "+";
  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 << "TOB" << side
            << " Layer " << theLayer
            << " Rod " << theRod[1]
            << " Module " << theModule << " " << type
            << " (" << id.rawId() << ")";
}