CMS 3D CMS Logo

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

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