CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Classes | Functions
MTDDetId.h File Reference
#include "DataFormats/DetId/interface/DetId.h"
#include "DataFormats/ForwardDetId/interface/ForwardSubdetector.h"
#include <ostream>

Go to the source code of this file.

Classes

class  MTDDetId
 Detector identifier base class for the MIP Timing Layer. More...
 

Functions

std::ostream & operator<< (std::ostream &, const MTDDetId &)
 

Function Documentation

std::ostream& operator<< ( std::ostream &  ,
const MTDDetId  
)

Definition at line 5 of file MTDDetId.cc.

References TauDecayModes::dec.

5  {
6  return os << "[MTDDetId::print] "
7  << " " << std::bitset<4>((id.rawId() >> 28) & 0xF).to_string() << " "
8  << std::bitset<4>((id.rawId() >> 24) & 0xF).to_string() << " "
9  << std::bitset<4>((id.rawId() >> 20) & 0xF).to_string() << " "
10  << std::bitset<4>((id.rawId() >> 16) & 0xF).to_string() << " "
11  << std::bitset<4>((id.rawId() >> 12) & 0xF).to_string() << " "
12  << std::bitset<4>((id.rawId() >> 8) & 0xF).to_string() << " "
13  << std::bitset<4>((id.rawId() >> 4) & 0xF).to_string() << " "
14  << std::bitset<4>(id.rawId() & 0xF).to_string() << std::endl
15  << " rawId : 0x" << std::hex << std::setfill('0') << std::setw(8) << id.rawId() << std::dec << " / "
16  << id.rawId() << std::endl
17  << " bits[0:24] : " << std::hex << std::setfill('0') << std::setw(8) << (0x01FFFFFF & id.rawId())
18  << std::dec << std::endl
19  << " Detector : " << id.det() << std::endl
20  << " SubDetector : " << id.subdetId() << std::endl
21  << " MTD subdetector : " << id.mtdSubDetector() << std::endl;
22 }