CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TIDDetId.cc
Go to the documentation of this file.
2 
4 }
5 TIDDetId::TIDDetId(uint32_t rawid) : SiStripDetId(rawid) {
6 }
7 TIDDetId::TIDDetId(const DetId& id) : SiStripDetId(id.rawId()) {
8 }
9 
10 bool TIDDetId::isDoubleSide() const {
11  // Double Side: only rings 1 and 2
12  if( this->glued() == 0 && ( this->ring() == 1 || this->ring() == 2 ) ) {
13  return true;
14  } else {
15  return false;
16  }
17 }
18 
19 std::ostream& operator<<(std::ostream& os,const TIDDetId& id) {
20  unsigned int theDisk = id.wheel();
21  unsigned int theRing = id.ring();
22  std::vector<unsigned int> theModule = id.module();
23  std::string side;
24  std::string part;
25  side = (id.side() == 1 ) ? "-" : "+";
26  part = (theModule[0] == 1 ) ? "back" : "front";
27  std::string type;
28  type = (id.stereo() == 0) ? "r-phi" : "stereo";
29  type = (id.glued() == 0) ? type : type+" glued";
30  type = (id.isDoubleSide()) ? "double side" : type;
31  return os << "TID" << side
32  << " Disk " << theDisk
33  << " Ring " << theRing << " " << part
34  << " Module " << theModule[1] << " " << type
35  << " (" << id.rawId() << ")";
36 }
37 
type
Definition: HCALResponse.h:22
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:187
TIDDetId()
Definition: TIDDetId.cc:3
unsigned int ring() const
ring id
Definition: TIDDetId.h:55
Detector identifier class for the strip tracker.
Definition: SiStripDetId.h:17
Definition: DetId.h:20
virtual uint32_t glued() const
Definition: SiStripDetId.h:142
part
Definition: HCALResponse.h:21
bool isDoubleSide() const
Definition: TIDDetId.cc:10