CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Functions
TIDDetId.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  TIDDetId
 

Functions

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

Function Documentation

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

Definition at line 4 of file TIDDetId.cc.

References AlCaHLTBitMon_QueryRunRegistry::string.

4  {
5  unsigned int theDisk = id.wheel();
6  unsigned int theRing = id.ring();
7  std::vector<unsigned int> theModule = id.module();
8  std::string side;
10  side = (id.side() == 1 ) ? "-" : "+";
11  part = (theModule[0] == 1 ) ? "back" : "front";
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 << "TID" << side
17  << " Disk " << theDisk
18  << " Ring " << theRing << " " << part
19  << " Module " << theModule[1] << " " << type
20  << " (" << id.rawId() << ")";
21 }
type
Definition: HCALResponse.h:21
part
Definition: HCALResponse.h:20