CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Functions
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 6 of file TECDetId.cc.

References AlCaHLTBitMon_QueryRunRegistry::string.

6  {
7  unsigned int theWheel = id.wheel();
8  unsigned int theModule = id.module();
9  std::vector<unsigned int> thePetal = id.petal();
10  unsigned int theRing = id.ring();
11  std::string side;
12  std::string petal;
13  side = (id.side() == 1 ) ? "-" : "+";
14  petal = (thePetal[0] == 1 ) ? "back" : "front";
16  type = (id.stereo() == 0) ? "r-phi" : "stereo";
17  type = (id.glued() == 0) ? type : type+" glued";
18  type = (id.isDoubleSide()) ? "double side" : type;
19  return os << "TEC" << side
20  << " Wheel " << theWheel
21  << " Petal " << thePetal[1] << " " << petal
22  << " Ring " << theRing
23  << " Module " << theModule << " " << type
24  << " (" << id.rawId() << ")";
25 }
type
Definition: HCALResponse.h:21