Reimplemented from edm::EDAnalyzer.
Definition at line 209 of file OccupancyPlots.cc.
216 LogDebug(
"IsThereTest") <<
"Test of TrackerGeometry::isThere";
238 for (TrackingGeometry::DetIdContainer::const_iterator det = detunits.begin(); det != detunits.end(); ++det) {
253 double dzdr = posvect.
perp() > 0 ? (
dz.x() * posvect.
x() +
dz.y() * posvect.
y()) / posvect.
perp() : 0.;
254 double dxdr = posvect.
perp() > 0 ? (
dx.x() * posvect.
x() +
dx.y() * posvect.
y()) / posvect.
perp() : 0.;
255 double dydr = posvect.
perp() > 0 ? (
dy.x() * posvect.
x() +
dy.y() * posvect.
y()) / posvect.
perp() : 0.;
257 double dzdrphi = posvect.
perp() > 0 ? (
dz.y() * posvect.
x() -
dz.x() * posvect.
y()) / posvect.
perp() : 0.;
258 double dxdrphi = posvect.
perp() > 0 ? (
dx.y() * posvect.
x() -
dx.x() * posvect.
y()) / posvect.
perp() : 0.;
259 double dydrphi = posvect.
perp() > 0 ? (
dy.y() * posvect.
x() -
dy.x() * posvect.
y()) / posvect.
perp() : 0.;
261 for (std::map<unsigned int, DetIdSelector>::const_iterator
sel =
m_wantedsubdets.begin();
264 if (
sel->second.isSelected(*det)) {
276 (*m_zavedr)->Fill(
sel->first, dzdr);
278 (*m_zavedz)->Fill(
sel->first,
dz.z());
280 (*m_zavedrphi)->Fill(
sel->first, dzdrphi);
282 (*m_xavedr)->Fill(
sel->first, dxdr);
284 (*m_xavedz)->Fill(
sel->first,
dx.z());
286 (*m_xavedrphi)->Fill(
sel->first, dxdrphi);
288 (*m_yavedr)->Fill(
sel->first, dydr);
290 (*m_yavedz)->Fill(
sel->first,
dy.z());
292 (*m_yavedrphi)->Fill(
sel->first, dydrphi);
302 (*m_nchannels_ideal)->Reset();
304 (*m_nchannels_real)->Reset();
309 for (
const auto det : trkgeo->
detUnits()) {
310 const StripGeomDetUnit* stripDet = dynamic_cast<const StripGeomDetUnit*>(det);
311 if (stripDet !=
nullptr) {
322 for (std::map<unsigned int, DetIdSelector>::const_iterator
sel =
m_wantedsubdets.begin();
325 if (
sel->second.isSelected(detid)) {
327 (*m_nchannels_ideal)->Fill(
sel->first, nchannideal);
329 (*m_nchannels_real)->Fill(
sel->first, nchannreal);
340 const std::vector<uint32_t>& pxldetids = pxlreader.
getAllDetIds();
342 for (std::vector<uint32_t>::const_iterator detid = pxldetids.begin(); detid != pxldetids.end(); ++detid) {
343 int nchannideal = pxlreader.getDetUnitDimensions(*detid).first * pxlreader.getDetUnitDimensions(*detid).second;
346 nchannreal = pxlreader.getDetUnitDimensions(*detid).first * pxlreader.getDetUnitDimensions(*detid).second;
355 for (std::map<unsigned int, DetIdSelector>::const_iterator
sel =
m_wantedsubdets.begin();
358 if (
sel->second.isSelected(*detid)) {
360 (*m_nchannels_ideal)->Fill(
sel->first, nchannideal);
362 (*m_nchannels_real)->Fill(
sel->first, nchannreal);
References TrackerGeometry::detUnitIds(), TrackerGeometry::detUnits(), PVValHelper::dx, PVValHelper::dy, PVValHelper::dz, edm::FileInPath::fullPath(), GeomDet::geographicalId(), edm::EventSetup::get(), get, SiPixelDetInfoFileReader::getAllDetIds(), TrackerGeometry::idToDet(), SiPixelQuality::IsModuleBad(), TrackerGeometry::isThere(), LogDebug, LogTrace, m_averadius, m_avex, m_avey, m_avez, m_fp, m_nchannels_ideal, m_nchannels_real, m_wantedsubdets, m_xavedr, m_xavedrphi, m_xavedz, m_yavedr, m_yavedrphi, m_yavedz, m_zavedr, m_zavedrphi, m_zavedz, StripTopology::nstrips(), GeomDetEnumerators::P1PXB, GeomDetEnumerators::P1PXEC, GeomDetEnumerators::P2OTB, GeomDetEnumerators::P2OTEC, GeomDetEnumerators::P2PXB, GeomDetEnumerators::P2PXEC, PV3DBase< T, PVType, FrameType >::perp(), GeomDetEnumerators::PixelBarrel, GeomDetEnumerators::PixelEndcap, position, qcdUeDQM_cfi::quality, EgammaValidation_Wenu_cff::sel, StripGeomDetUnit::specificTopology(), digitizers_cfi::strip, GeomDetEnumerators::TEC, GeomDetEnumerators::TIB, GeomDetEnumerators::TID, GeomDetEnumerators::TOB, GeomDet::toGlobal(), DetId::Tracker, PV3DBase< T, PVType, FrameType >::x(), and PV3DBase< T, PVType, FrameType >::y().