Definition at line 209 of file OccupancyPlots.cc.
References TrackerGeometry::detUnitIds(), TrackerGeometry::detUnits(), PVValHelper::dx, PVValHelper::dy, PVValHelper::dz, edm::FileInPath::fullPath(), GeomDet::geographicalId(), edm::EventSetup::get(), SiPixelDetInfoFileReader::getAllDetIds(), TrackerGeometry::idToDet(), SiPixelQuality::IsModuleBad(), SiStripQuality::IsStripBad(), 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(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().
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)) {
268 (*m_averadius)->Fill(
sel->first, position.perp());
270 (*m_avez)->Fill(
sel->first, position.z());
272 (*m_avex)->Fill(
sel->first, position.x());
274 (*m_avey)->Fill(
sel->first, position.y());
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()) {
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);
const DetIdContainer & detUnitIds() const override
Returm a vector of all GeomDetUnit DetIds.
const std::vector< uint32_t > & getAllDetIds() const
TH1F ** m_nchannels_ideal
const DetContainer & detUnits() const override
Returm a vector of all GeomDet.
bool IsStripBad(const uint32_t &detid, const short &strip) const
GlobalPoint toGlobal(const Local2DPoint &lp) const
Conversion to the global R.F. from the R.F. of the GeomDet.
std::map< unsigned int, DetIdSelector > m_wantedsubdets
virtual const StripTopology & specificTopology() const
Returns a reference to the strip proxy topology.
bool isThere(GeomDetEnumerators::SubDetector subdet) const
DetId geographicalId() const
The label of this GeomDet.
bool IsModuleBad(const uint32_t &detid) const
virtual int nstrips() const =0
std::vector< DetId > DetIdContainer
static int position[264][3]
const TrackerGeomDet * idToDet(DetId) const override
std::string fullPath() const