26 std::ostringstream oss;
28 oss <<
"DetId: " <<
id.rawId() <<
"\n";
32 switch (
id.subdetId()) {
53 oss << tTopo->
layer(
id);
57 switch (
id.subdetId()) {
60 oss <<
"DT chamber (wheel, station, sector): " << detId.
wheel() <<
", " << detId.
station() <<
", "
65 oss <<
"CSC chamber (endcap, station, ring, chamber, layer): " << detId.
endcap() <<
", " << detId.
station()
70 oss <<
"RPC chamber ";
73 oss <<
"/ barrel / (wheel, station, sector, layer, subsector, roll): " << detId.
ring() <<
", "
75 <<
", " << detId.
roll();
78 oss <<
"/ forward endcap / (wheel, station, sector, layer, subsector, roll): " << detId.
ring() <<
", "
80 <<
", " << detId.
roll();
83 oss <<
"/ backward endcap / (wheel, station, sector, layer, subsector, roll): " << detId.
ring() <<
", "
85 <<
", " << detId.
roll();
91 oss <<
"GEM chamber (endcap, station, ring, chamber, layer): " << detId.
region() <<
", " << detId.
station()
96 oss <<
"ME0 chamber (endcap, station, ring, chamber, layer): " << detId.
region() <<
", " << detId.
station()
104 oss <<
"CaloTower (ieta, iphi): " << detId.
ieta() <<
", " << detId.
iphi();
108 switch (
id.subdetId()) {
111 oss <<
"EcalBarrel (ieta, iphi, tower_ieta, tower_iphi): " << detId.
ieta() <<
", " << detId.
iphi() <<
", "
116 oss <<
"EcalEndcap (ix, iy, SuperCrystal, crystal, quadrant): " << detId.
ix() <<
", " << detId.
iy() <<
", "
117 << detId.
isc() <<
", " << detId.
ic() <<
", " << detId.
iquadrant();
120 oss <<
"EcalPreshower";
123 oss <<
"EcalTriggerTower";
126 oss <<
"EcalLaserPnDiode";
138 oss <<
"HcalBarrel ";
141 oss <<
"HcalEndcap ";
147 oss <<
"HcalForward ";
150 oss <<
"HcalTriggerTower ";
156 oss <<
"(ieta, iphi, depth):" << detId.
ieta() <<
", " << detId.
iphi() <<
", " << detId.
depth();
165 for (std::set<DetId>::const_iterator
id = idSet.begin();
id != idSet.end();
id++) {
166 text +=
info(*
id, tTopo);
174 for (std::vector<DetId>::const_iterator
id = idSet.begin();
id != idSet.end();
id++) {
175 text +=
info(*
id, tTopo);
static constexpr auto TEC
int tower_ieta() const
get the HCAL/trigger ieta of this crystal
int tower_iphi() const
get the HCAL/trigger iphi of this crystal
int iphi() const
get the crystal iphi
constexpr HcalSubdetector subdet() const
get the subdetector
int chamber() const
Chamber id: it identifies a chamber in a ring it goes from 1 to 36.
constexpr int iphi() const
get the cell iphi
constexpr int region() const
int iphi() const
get the tower iphi
constexpr int ieta() const
get the cell ieta
int ieta() const
get the crystal ieta
static constexpr auto TOB
static constexpr auto TIB
static std::string info(const DetId &, const TrackerTopology *tTopo)
constexpr int chamber() const
constexpr int ring() const
constexpr int layer() const
int region() const
Region id: 0 for Barrel Not in use, +/-1 For +/- Endcap.
constexpr int station() const
int sector() const
Sector id: the group of chambers at same phi (and increasing r)
unsigned int layer(const DetId &id) const
int subsector() const
SubSector id : some sectors are divided along the phi direction in subsectors (from 1 to 4 in Barrel...
int layer() const
Layer id: each chamber has six layers of chambers: layer 1 is the inner layer and layer 6 is the oute...
constexpr int depth() const
get the tower depth
int ieta() const
get the tower ieta
int station() const
Return the station number.
int wheel() const
Return the wheel number.
static constexpr auto TID
int region() const
Region id: 0 for Barrel, +/-1 For +/- Endcap.