CMS 3D CMS Logo

TECDetId.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  TECDetId

Functions

std::ostream & operator<< (std::ostream &s, const TECDetId &id)


Function Documentation

std::ostream& operator<< ( std::ostream &  s,
const TECDetId id 
)

Definition at line 23 of file TECDetId.cc.

References TECDetId::petal(), and TECDetId::side().

00023                                                           {
00024   unsigned int              theWheel  = id.wheel();
00025   unsigned int              theModule = id.module();
00026   std::vector<unsigned int> thePetal  = id.petal();
00027   unsigned int              theRing   = id.ring();
00028   std::string side;
00029   std::string petal;
00030   side  = (id.side() == 1 ) ? "-" : "+";
00031   petal = (thePetal[0] == 1 ) ? "back" : "front";
00032   std::string type;
00033   type = (id.stereo() == 0) ? "r-phi" : "stereo";
00034   type = (id.glued() == 0) ? type : type+" glued";
00035   type = (id.isDoubleSide()) ? "double side" : type;
00036   return os << "TEC" << side
00037             << " Wheel " << theWheel
00038             << " Petal " << thePetal[1] << " " << petal
00039             << " Ring " << theRing
00040             << " Module " << theModule << " " << type
00041             << " (" << id.rawId() << ")";
00042 }


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