CMS 3D CMS Logo

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

Functions

std::ostream & operator<< (std::ostream &s, const TECDetId &id)
 

Function Documentation

std::ostream& operator<< ( std::ostream &  s,
const TECDetId id 
)

Definition at line 23 of file TECDetId.cc.

23  {
24  unsigned int theWheel = id.wheel();
25  unsigned int theModule = id.module();
26  std::vector<unsigned int> thePetal = id.petal();
27  unsigned int theRing = id.ring();
28  std::string side;
29  std::string petal;
30  side = (id.side() == 1 ) ? "-" : "+";
31  petal = (thePetal[0] == 1 ) ? "back" : "front";
32  std::string type;
33  type = (id.stereo() == 0) ? "r-phi" : "stereo";
34  type = (id.glued() == 0) ? type : type+" glued";
35  type = (id.isDoubleSide()) ? "double side" : type;
36  return os << "TEC" << side
37  << " Wheel " << theWheel
38  << " Petal " << thePetal[1] << " " << petal
39  << " Ring " << theRing
40  << " Module " << theModule << " " << type
41  << " (" << id.rawId() << ")";
42 }
type
Definition: HCALResponse.h:22