CMS 3D CMS Logo

Classes | Functions

/data/refman/pasoursint/CMSSW_6_1_1/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 4 of file TIDDetId.cc.

References AlCaHLTBitMon_QueryRunRegistry::string.

                                                          {
  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() << ")";
}