CMS 3D CMS Logo

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.

References TIDDetId::side().

00019                                                           {
00020   unsigned int         theDisk   = id.wheel();
00021   unsigned int         theRing   = id.ring();
00022   std::vector<unsigned int> theModule = id.module();
00023   std::string side;
00024   std::string part;
00025   side = (id.side() == 1 ) ? "-" : "+";
00026   part = (theModule[0] == 1 ) ? "back" : "front";
00027   std::string type;
00028   type = (id.stereo() == 0) ? "r-phi" : "stereo";
00029   type = (id.glued() == 0) ? type : type+" glued";
00030   type = (id.isDoubleSide()) ? "double side" : type;
00031   return os << "TID" << side
00032             << " Disk " << theDisk
00033             << " Ring " << theRing << " " << part
00034             << " Module " << theModule[1] << " " << type
00035             << " (" << id.rawId() << ")";
00036 }


Generated on Tue Jun 9 17:52:17 2009 for CMSSW by  doxygen 1.5.4