CMS 3D CMS Logo

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

Functions

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

Function Documentation

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

Definition at line 4 of file TOBDetId.cc.

References AlCaHLTBitMon_QueryRunRegistry::string.

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