CMS 3D CMS Logo

Functions
MTDDetId.cc File Reference
#include "DataFormats/ForwardDetId/interface/MTDDetId.h"
#include <iomanip>
#include <bitset>

Go to the source code of this file.

Functions

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

Function Documentation

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

Definition at line 5 of file MTDDetId.cc.

References TauDecayModes::dec.

Referenced by MTDDetId::mtdRR().

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"
16  << std::hex << std::setfill('0') << std::setw(8)
17  << id.rawId()
18  << std::dec << std::endl
19  << " bits[0:24] : "
20  << std::hex << std::setfill('0') << std::setw(8)
21  << (0x01FFFFFF & id.rawId())
22  << std::dec << std::endl
23  << " Detector : " << id.det() << std::endl
24  << " SubDetector : " << id.subdetId() << std::endl
25  << " MTD subdetector : " << id.mtdSubDetector() << std::endl;
26 
27 }