#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 | TIBDetId |
Functions | |
std::ostream & | operator<< (std::ostream &os, const TIBDetId &id) |
std::ostream& operator<< | ( | std::ostream & | os, | |
const TIBDetId & | id | |||
) |
Definition at line 19 of file TIBDetId.cc.
References theLayer.
00019 { 00020 unsigned int theLayer = id.layer(); 00021 std::vector<unsigned int> theString = id.string(); 00022 unsigned int theModule = id.module(); 00023 std::string side; 00024 std::string part; 00025 side = (theString[0] == 1 ) ? "-" : "+"; 00026 part = (theString[1] == 1 ) ? "int" : "ext"; 00027 std::string type; 00028 type = (id.stereo() == 0) ? "r-phi" : "stereo"; 00029 type = (id.glued() == 0) ? type : type+" glued"; 00030 type = (id.isDoubleSide()) ? "double side" : type; 00031 return os << "TIB" << side 00032 << " Layer " << theLayer << " " << part 00033 << " String " << theString[2] 00034 << " Module " << theModule << " " << type 00035 << " (" << id.rawId() << ")"; 00036 }