30 std::ostringstream oss;
32 oss <<
"DetId: " <<
id.rawId() <<
"\n";
37 switch (
id.subdetId() ) {
70 oss<< tTopo->
layer(
id);
74 switch (
id.subdetId() ) {
78 oss <<
"DT chamber (wheel, station, sector): "
79 << detId.
wheel() <<
", "
87 oss <<
"CSC chamber (endcap, station, ring, chamber, layer): "
90 << detId.
ring() <<
", "
98 oss <<
"RPC chamber ";
99 switch ( detId.
region() ) {
101 oss <<
"/ barrel / (wheel, station, sector, layer, subsector, roll): "
102 << detId.
ring() <<
", "
105 << detId.
layer() <<
", "
110 oss <<
"/ forward endcap / (wheel, station, sector, layer, subsector, roll): "
111 << detId.
ring() <<
", "
114 << detId.
layer() <<
", "
119 oss <<
"/ backward endcap / (wheel, station, sector, layer, subsector, roll): "
120 << detId.
ring() <<
", "
123 << detId.
layer() <<
", "
136 oss <<
"CaloTower (ieta, iphi): "
137 << detId.
ieta() <<
", "
143 switch (
id.subdetId() ) {
147 oss <<
"EcalBarrel (ieta, iphi, tower_ieta, tower_iphi): "
148 << detId.
ieta() <<
", "
149 << detId.
iphi() <<
", "
157 oss <<
"EcalEndcap (ix, iy, SuperCrystal, crystal, quadrant): "
158 << detId.
ix() <<
", "
159 << detId.
iy() <<
", "
160 << detId.
isc() <<
", "
161 << detId.
ic() <<
", "
166 oss <<
"EcalPreshower";
169 oss <<
"EcalTriggerTower";
172 oss <<
"EcalLaserPnDiode";
180 switch ( detId.
subdet() ) {
185 oss <<
"HcalBarrel ";
188 oss <<
"HcalEndcap ";
194 oss <<
"HcalForward ";
197 oss <<
"HcalTriggerTower ";
203 oss <<
"(ieta, iphi, depth):"
204 << detId.
ieta() <<
", "
205 << detId.
iphi() <<
", "
217 for(std::set<DetId>::const_iterator
id = idSet.begin();
id != idSet.end();
id++)
219 text +=
info(*
id, tTopo);
227 for(std::vector<DetId>::const_iterator
id = idSet.begin();
id != idSet.end();
id++)
229 text +=
info(*
id, tTopo);
HcalSubdetector subdet() const
get the subdetector
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
int depth() const
get the tower depth
int ieta() const
get the cell ieta
int iphi() const
get the tower iphi
int ieta() const
get the crystal ieta
int iphi() const
get the cell iphi
static std::string info(const DetId &, const TrackerTopology *tTopo)
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 ieta() const
get the tower ieta
int station() const
Return the station number.
int wheel() const
Return the wheel number.
int region() const
Region id: 0 for Barrel, +/-1 For +/- Endcap.