CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
TIBDetId.cc File Reference
#include "DataFormats/SiStripDetId/interface/TIBDetId.h"

Go to the source code of this file.

Functions

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

Function Documentation

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

Definition at line 19 of file TIBDetId.cc.

19  {
20  unsigned int theLayer = id.layer();
21  std::vector<unsigned int> theString = id.string();
22  unsigned int theModule = id.module();
23  std::string side;
24  std::string part;
25  side = (theString[0] == 1 ) ? "-" : "+";
26  part = (theString[1] == 1 ) ? "int" : "ext";
27  std::string type;
28  type = (id.stereo() == 0) ? "r-phi" : "stereo";
29  type = (id.glued() == 0) ? type : type+" glued";
30  type = (id.isDoubleSide()) ? "double side" : type;
31  return os << "TIB" << side
32  << " Layer " << theLayer << " " << part
33  << " String " << theString[2]
34  << " Module " << theModule << " " << type
35  << " (" << id.rawId() << ")";
36 }
type
Definition: HCALResponse.h:22
part
Definition: HCALResponse.h:21