CMS 3D CMS Logo

Classes | Functions
TIBDetId.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  TIBDetId
 

Functions

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

Function Documentation

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

Definition at line 4 of file TIBDetId.cc.

References AlCaHLTBitMon_QueryRunRegistry::string.

4  {
5  unsigned int theLayer = id.layer();
6  std::vector<unsigned int> theString = id.string();
7  unsigned int theModule = id.module();
8  std::string side;
10  side = (theString[0] == 1 ) ? "-" : "+";
11  part = (theString[1] == 1 ) ? "int" : "ext";
13  type = (id.stereo() == 0) ? "r-phi" : "stereo";
14  type = (id.glued() == 0) ? type : type+" glued";
15  type = (id.isDoubleSide()) ? "double side" : type;
16  return os << "TIB" << side
17  << " Layer " << theLayer << " " << part
18  << " String " << theString[2]
19  << " Module " << theModule << " " << type
20  << " (" << id.rawId() << ")";
21 }
type
Definition: HCALResponse.h:21
part
Definition: HCALResponse.h:20