CMS 3D CMS Logo

Classes | Functions

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

Functions

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

Function Documentation

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

Definition at line 19 of file TIDDetId.cc.

                                                          {
  unsigned int         theDisk   = id.wheel();
  unsigned int         theRing   = id.ring();
  std::vector<unsigned int> theModule = id.module();
  std::string side;
  std::string part;
  side = (id.side() == 1 ) ? "-" : "+";
  part = (theModule[0] == 1 ) ? "back" : "front";
  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 << "TID" << side
            << " Disk " << theDisk
            << " Ring " << theRing << " " << part
            << " Module " << theModule[1] << " " << type
            << " (" << id.rawId() << ")";
}