CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes
OccupancyPlots Class Reference

#include <myTKAnalyses/DigiInvestigator/src/OccupancyPlots.cc>

Inheritance diagram for OccupancyPlots:
edm::EDAnalyzer edm::EDConsumerBase

Public Member Functions

 OccupancyPlots (const edm::ParameterSet &)
 
 ~OccupancyPlots () override
 
- Public Member Functions inherited from edm::EDAnalyzer
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzer ()
 
SerialTaskQueueglobalLuminosityBlocksQueue ()
 
SerialTaskQueueglobalRunsQueue ()
 
ModuleDescription const & moduleDescription () const
 
std::string workerType () const
 
 ~EDAnalyzer () override
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
void convertCurrentProcessAlias (std::string const &processName)
 Convert "@currentProcess" in InputTag process names to the actual current process name. More...
 
 EDConsumerBase ()
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
 EDConsumerBase (EDConsumerBase &&)=default
 
ESProxyIndex const * esGetTokenIndices (edm::Transition iTrans) const
 
ProductResolverIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
std::vector< ProductResolverIndexAndSkipBit > const & itemsToGetFrom (BranchType iType) const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
bool registeredToConsume (ProductResolverIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
ProductResolverIndexAndSkipBit uncheckedIndexFrom (EDGetToken) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
void updateLookup (eventsetup::ESRecordsToProxyIndices const &)
 
virtual ~EDConsumerBase () noexcept(false)
 

Private Member Functions

void analyze (const edm::Event &, const edm::EventSetup &) override
 
void beginJob () override
 
void beginRun (const edm::Run &, const edm::EventSetup &) override
 
void endJob () override
 
void endRun (const edm::Run &, const edm::EventSetup &) override
 

Private Attributes

TProfile ** m_avemultiplicity
 
TProfile ** m_aveoccupancy
 
TProfile ** m_averadius
 
TProfile ** m_avex
 
TProfile ** m_avey
 
TProfile ** m_avez
 
edm::FileInPath m_fp
 
std::vector< edm::EDGetTokenT< std::map< unsigned int, int > > > m_multiplicityMapTokens
 
TH1F ** m_nchannels_ideal
 
TH1F ** m_nchannels_real
 
std::vector< edm::EDGetTokenT< std::map< unsigned int, int > > > m_occupancyMapTokens
 
RunHistogramManager m_rhm
 
std::map< unsigned int, DetIdSelectorm_wantedsubdets
 
TProfile ** m_xavedr
 
TProfile ** m_xavedrphi
 
TProfile ** m_xavedz
 
TProfile ** m_yavedr
 
TProfile ** m_yavedrphi
 
TProfile ** m_yavedz
 
TProfile ** m_zavedr
 
TProfile ** m_zavedrphi
 
TProfile ** m_zavedz
 

Additional Inherited Members

- Public Types inherited from edm::EDAnalyzer
typedef EDAnalyzer ModuleType
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Static Public Member Functions inherited from edm::EDAnalyzer
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &)
 
static bool wantsGlobalLuminosityBlocks ()
 
static bool wantsGlobalRuns ()
 
static bool wantsStreamLuminosityBlocks ()
 
static bool wantsStreamRuns ()
 
- Protected Member Functions inherited from edm::EDConsumerBase
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken consumes (TypeToGet const &id, edm::InputTag const &tag)
 
ConsumesCollector consumesCollector ()
 Use a ConsumesCollector to gather consumes information from helper functions. More...
 
template<typename ProductType , BranchType B = InEvent>
void consumesMany ()
 
void consumesMany (const TypeToGet &id)
 
template<BranchType B>
void consumesMany (const TypeToGet &id)
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes ()
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes (ESInputTag const &tag)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 

Detailed Description

Description: <one line="" class="" summary>="">

Implementation: <Notes on="" implementation>="">

Definition at line 66 of file OccupancyPlots.cc.

Constructor & Destructor Documentation

OccupancyPlots::OccupancyPlots ( const edm::ParameterSet iConfig)
explicit

Definition at line 119 of file OccupancyPlots.cc.

References edm::EDConsumerBase::consumesCollector(), m_avemultiplicity, m_aveoccupancy, m_averadius, m_avex, m_avey, m_avez, m_fp, m_nchannels_ideal, m_nchannels_real, m_occupancyMapTokens, m_rhm, m_wantedsubdets, m_xavedr, m_xavedrphi, m_xavedz, m_yavedr, m_yavedrphi, m_yavedz, m_zavedr, m_zavedrphi, m_zavedz, RunHistogramManager::makeTH1F(), RunHistogramManager::makeTProfile(), GlobalPosition_Frontier_DevDB_cff::tag, and edm::vector_transform().

121  iConfig.getParameter<std::vector<edm::InputTag> >("multiplicityMaps"),
122  [this](edm::InputTag const& tag) { return consumes<std::map<unsigned int, int> >(tag); })),
124  iConfig.getParameter<std::vector<edm::InputTag> >("occupancyMaps"),
125  [this](edm::InputTag const& tag) { return consumes<std::map<unsigned int, int> >(tag); })),
127  "file", edm::FileInPath("CalibTracker/SiPixelESProducers/data/PixelSkimmedGeometry.txt"))),
129  m_wantedsubdets() {
130  //now do what ever initialization is needed
131 
132  m_avemultiplicity = m_rhm.makeTProfile("avemult", "Average Multiplicty", 6000, 0.5, 6000.5);
133  m_aveoccupancy = m_rhm.makeTProfile("aveoccu", "Average Occupancy", 6000, 0.5, 6000.5);
134 
135  m_nchannels_ideal = m_rhm.makeTH1F("nchannels_ideal", "Number of channels (ideal)", 6000, 0.5, 6000.5);
136  m_nchannels_real = m_rhm.makeTH1F("nchannels_real", "Number of channels (real)", 6000, 0.5, 6000.5);
137 
138  m_averadius = m_rhm.makeTProfile("averadius", "Average Module Radius", 6000, 0.5, 6000.5);
139  m_avez = m_rhm.makeTProfile("avez", "Average Module z coordinate", 6000, 0.5, 6000.5);
140  m_avex = m_rhm.makeTProfile("avex", "Average Module x coordinate", 6000, 0.5, 6000.5);
141  m_avey = m_rhm.makeTProfile("avey", "Average Module y coordinate", 6000, 0.5, 6000.5);
142 
143  m_zavedr = m_rhm.makeTProfile("zavedr", "Average z unit vector dr", 6000, 0.5, 6000.5);
144  m_zavedz = m_rhm.makeTProfile("zavedz", "Average z unit vector dz", 6000, 0.5, 6000.5);
145  m_zavedrphi = m_rhm.makeTProfile("zavedrphi", "Average z unit vector drphi", 6000, 0.5, 6000.5);
146  m_xavedr = m_rhm.makeTProfile("xavedr", "Average x unit vector dr", 6000, 0.5, 6000.5);
147  m_xavedz = m_rhm.makeTProfile("xavedz", "Average x unit vctor dz", 6000, 0.5, 6000.5);
148  m_xavedrphi = m_rhm.makeTProfile("xavedrphi", "Average Module x unit vector drphi", 6000, 0.5, 6000.5);
149  m_yavedr = m_rhm.makeTProfile("yavedr", "Average y unit vector dr", 6000, 0.5, 6000.5);
150  m_yavedz = m_rhm.makeTProfile("yavedz", "Average y unit vector dz", 6000, 0.5, 6000.5);
151  m_yavedrphi = m_rhm.makeTProfile("yavedrphi", "Average y unit vector drphi", 6000, 0.5, 6000.5);
152 
153  std::vector<edm::ParameterSet> wantedsubdets_ps =
154  iConfig.getParameter<std::vector<edm::ParameterSet> >("wantedSubDets");
155 
156  for (std::vector<edm::ParameterSet>::const_iterator wsdps = wantedsubdets_ps.begin(); wsdps != wantedsubdets_ps.end();
157  ++wsdps) {
158  unsigned int detsel = wsdps->getParameter<unsigned int>("detSelection");
159  std::vector<std::string> selstr = wsdps->getUntrackedParameter<std::vector<std::string> >("selection");
160  m_wantedsubdets[detsel] = DetIdSelector(selstr);
161  }
162 }
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
TProfile ** m_zavedrphi
TProfile ** m_xavedz
TH1F ** m_nchannels_ideal
TProfile ** m_zavedr
std::map< unsigned int, DetIdSelector > m_wantedsubdets
RunHistogramManager m_rhm
TH1F ** m_nchannels_real
std::vector< edm::EDGetTokenT< std::map< unsigned int, int > > > m_multiplicityMapTokens
TH1F ** makeTH1F(const char *name, const char *title, const unsigned int nbinx, const double xmin, const double xmax)
TProfile ** m_avex
TProfile ** m_aveoccupancy
TProfile ** m_averadius
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
TProfile ** m_avez
TProfile ** makeTProfile(const char *name, const char *title, const unsigned int nbinx, const double xmin, const double xmax)
TProfile ** m_xavedr
TProfile ** m_avey
TProfile ** m_yavedr
TProfile ** m_yavedz
auto vector_transform(std::vector< InputType > const &input, Function predicate) -> std::vector< typename std::remove_cv< typename std::remove_reference< decltype(predicate(input.front()))>::type >::type >
Definition: transform.h:11
TProfile ** m_avemultiplicity
TProfile ** m_zavedz
std::vector< edm::EDGetTokenT< std::map< unsigned int, int > > > m_occupancyMapTokens
TProfile ** m_yavedrphi
edm::FileInPath m_fp
TProfile ** m_xavedrphi
OccupancyPlots::~OccupancyPlots ( )
override

Definition at line 164 of file OccupancyPlots.cc.

164  {
165  // do anything here that needs to be done at desctruction time
166  // (e.g. close files, deallocate resources etc.)
167 }

Member Function Documentation

void OccupancyPlots::analyze ( const edm::Event iEvent,
const edm::EventSetup iSetup 
)
overrideprivate

Definition at line 174 of file OccupancyPlots.cc.

References edm::Event::getByToken(), m_avemultiplicity, m_aveoccupancy, m_multiplicityMapTokens, m_occupancyMapTokens, and VarParsing::mult.

174  {
175  using namespace edm;
176 
177  for (std::vector<edm::EDGetTokenT<std::map<unsigned int, int> > >::const_iterator mapToken =
178  m_multiplicityMapTokens.begin();
179  mapToken != m_multiplicityMapTokens.end();
180  ++mapToken) {
182  iEvent.getByToken(*mapToken, mults);
183 
184  for (std::map<unsigned int, int>::const_iterator mult = mults->begin(); mult != mults->end(); mult++) {
186  (*m_avemultiplicity)->Fill(mult->first, mult->second);
187  }
188  }
189 
190  for (std::vector<edm::EDGetTokenT<std::map<unsigned int, int> > >::const_iterator mapToken =
191  m_occupancyMapTokens.begin();
192  mapToken != m_occupancyMapTokens.end();
193  ++mapToken) {
195  iEvent.getByToken(*mapToken, occus);
196 
197  for (std::map<unsigned int, int>::const_iterator occu = occus->begin(); occu != occus->end(); occu++) {
199  (*m_aveoccupancy)->Fill(occu->first, occu->second);
200  }
201  }
202 }
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:525
std::vector< edm::EDGetTokenT< std::map< unsigned int, int > > > m_multiplicityMapTokens
TProfile ** m_aveoccupancy
TProfile ** m_avemultiplicity
std::vector< edm::EDGetTokenT< std::map< unsigned int, int > > > m_occupancyMapTokens
HLT enums.
void OccupancyPlots::beginJob ( void  )
overrideprivatevirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 205 of file OccupancyPlots.cc.

205 {}
void OccupancyPlots::beginRun ( const edm::Run iRun,
const edm::EventSetup iSetup 
)
overrideprivate

Definition at line 207 of file OccupancyPlots.cc.

References RunHistogramManager::beginRun(), and m_rhm.

207 { m_rhm.beginRun(iRun); }
RunHistogramManager m_rhm
void beginRun(const edm::Run &iRun)
void OccupancyPlots::endJob ( void  )
overrideprivatevirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 368 of file OccupancyPlots.cc.

References DEFINE_FWK_MODULE.

368 {}
void OccupancyPlots::endRun ( const edm::Run iRun,
const edm::EventSetup iSetup 
)
overrideprivate

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().

209  {
210  // edm::ESHandle<GlobalTrackingGeometry> trkgeo;
211  // iSetup.get<GlobalTrackingGeometryRecord>().get("",trkgeo);
213  iSetup.get<TrackerDigiGeometryRecord>().get("", trkgeo);
214 
215  // Test new TrackerGeometry features
216  LogDebug("IsThereTest") << "Test of TrackerGeometry::isThere";
217  LogTrace("IsThereTest") << " is there PixelBarrel: " << trkgeo->isThere(GeomDetEnumerators::PixelBarrel);
218  LogTrace("IsThereTest") << " is there PixelEndcap: " << trkgeo->isThere(GeomDetEnumerators::PixelEndcap);
219  LogTrace("IsThereTest") << " is there P1PXB: " << trkgeo->isThere(GeomDetEnumerators::P1PXB);
220  LogTrace("IsThereTest") << " is there P1PXEC: " << trkgeo->isThere(GeomDetEnumerators::P1PXEC);
221  LogTrace("IsThereTest") << " is there P2PXB: " << trkgeo->isThere(GeomDetEnumerators::P2PXB);
222  LogTrace("IsThereTest") << " is there P2PXEC: " << trkgeo->isThere(GeomDetEnumerators::P2PXEC);
223  LogTrace("IsThereTest") << " is there TIB: " << trkgeo->isThere(GeomDetEnumerators::TIB);
224  LogTrace("IsThereTest") << " is there TID: " << trkgeo->isThere(GeomDetEnumerators::TID);
225  LogTrace("IsThereTest") << " is there TOB: " << trkgeo->isThere(GeomDetEnumerators::TOB);
226  LogTrace("IsThereTest") << " is there TEC: " << trkgeo->isThere(GeomDetEnumerators::TEC);
227  LogTrace("IsThereTest") << " is there P2OTB: " << trkgeo->isThere(GeomDetEnumerators::P2OTB);
228  LogTrace("IsThereTest") << " is there P2OTEC: " << trkgeo->isThere(GeomDetEnumerators::P2OTEC);
229 
230  const Local2DPoint center(0., 0.);
231  const Local3DPoint locz(0., 0., 1.);
232  const Local3DPoint locx(1., 0., 0.);
233  const Local3DPoint locy(0., 1., 0.);
234  const GlobalPoint origin(0., 0., 0.);
235 
236  TrackingGeometry::DetIdContainer detunits = trkgeo->detUnitIds();
237 
238  for (TrackingGeometry::DetIdContainer::const_iterator det = detunits.begin(); det != detunits.end(); ++det) {
239  if (det->det() != DetId::Tracker)
240  continue;
241 
242  edm::LogInfo("DetIdFromGeometry") << det->rawId();
243 
244  GlobalPoint position = trkgeo->idToDet(*det)->toGlobal(center);
245  GlobalPoint zpos = trkgeo->idToDet(*det)->toGlobal(locz);
246  GlobalPoint xpos = trkgeo->idToDet(*det)->toGlobal(locx);
247  GlobalPoint ypos = trkgeo->idToDet(*det)->toGlobal(locy);
248  GlobalVector posvect = position - origin;
249  GlobalVector dz = zpos - position;
250  GlobalVector dx = xpos - position;
251  GlobalVector dy = ypos - position;
252 
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.;
256 
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.;
260 
261  for (std::map<unsigned int, DetIdSelector>::const_iterator sel = m_wantedsubdets.begin();
262  sel != m_wantedsubdets.end();
263  ++sel) {
264  if (sel->second.isSelected(*det)) {
265  edm::LogInfo("SelectedDetId") << sel->first;
266  // average positions
267  if (m_averadius && *m_averadius)
268  (*m_averadius)->Fill(sel->first, position.perp());
269  if (m_avez && *m_avez)
270  (*m_avez)->Fill(sel->first, position.z());
271  if (m_avex && *m_avex)
272  (*m_avex)->Fill(sel->first, position.x());
273  if (m_avey && *m_avey)
274  (*m_avey)->Fill(sel->first, position.y());
275  if (m_zavedr && *m_zavedr)
276  (*m_zavedr)->Fill(sel->first, dzdr);
277  if (m_zavedz && *m_zavedz)
278  (*m_zavedz)->Fill(sel->first, dz.z());
279  if (m_zavedrphi && *m_zavedrphi)
280  (*m_zavedrphi)->Fill(sel->first, dzdrphi);
281  if (m_xavedr && *m_xavedr)
282  (*m_xavedr)->Fill(sel->first, dxdr);
283  if (m_xavedz && *m_xavedz)
284  (*m_xavedz)->Fill(sel->first, dx.z());
285  if (m_xavedrphi && *m_xavedrphi)
286  (*m_xavedrphi)->Fill(sel->first, dxdrphi);
287  if (m_yavedr && *m_yavedr)
288  (*m_yavedr)->Fill(sel->first, dydr);
289  if (m_yavedz && *m_yavedz)
290  (*m_yavedz)->Fill(sel->first, dy.z());
291  if (m_yavedrphi && *m_yavedrphi)
292  (*m_yavedrphi)->Fill(sel->first, dydrphi);
293  }
294  }
295  }
296 
297  // counting the number of channels per module subset
298 
299  // the histograms have to be reset to avoid double counting if endRun is called more than once
300 
302  (*m_nchannels_ideal)->Reset();
304  (*m_nchannels_real)->Reset();
305 
307  iSetup.get<SiStripQualityRcd>().get("", quality);
308 
309  for (const auto det : trkgeo->detUnits()) {
310  const StripGeomDetUnit* stripDet = dynamic_cast<const StripGeomDetUnit*>(det);
311  if (stripDet != nullptr) {
312  const DetId detid = stripDet->geographicalId();
313 
314  int nchannideal = stripDet->specificTopology().nstrips();
315  // int nchannreal = stripDet->specificTopology().nstrips();
316  int nchannreal = 0;
317  for (int strip = 0; strip < nchannideal; ++strip) {
318  if (!quality->IsStripBad(detid, strip))
319  ++nchannreal;
320  }
321 
322  for (std::map<unsigned int, DetIdSelector>::const_iterator sel = m_wantedsubdets.begin();
323  sel != m_wantedsubdets.end();
324  ++sel) {
325  if (sel->second.isSelected(detid)) {
327  (*m_nchannels_ideal)->Fill(sel->first, nchannideal);
329  (*m_nchannels_real)->Fill(sel->first, nchannreal);
330  }
331  }
332  }
333  }
334 
336  iSetup.get<SiPixelQualityRcd>().get("", pxlquality);
337 
339 
340  const std::vector<uint32_t>& pxldetids = pxlreader.getAllDetIds();
341 
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;
344  int nchannreal = 0;
345  if (!pxlquality->IsModuleBad(*detid)) {
346  nchannreal = pxlreader.getDetUnitDimensions(*detid).first * pxlreader.getDetUnitDimensions(*detid).second;
347  }
348  /*
349  int nchannreal = 0;
350  for(int strip = 0; strip < nchannideal; ++strip) {
351  if(!quality->IsStripBad(*detid,strip)) ++nchannreal;
352  }
353  */
354 
355  for (std::map<unsigned int, DetIdSelector>::const_iterator sel = m_wantedsubdets.begin();
356  sel != m_wantedsubdets.end();
357  ++sel) {
358  if (sel->second.isSelected(*detid)) {
360  (*m_nchannels_ideal)->Fill(sel->first, nchannideal);
362  (*m_nchannels_real)->Fill(sel->first, nchannreal);
363  }
364  }
365  }
366 }
#define LogDebug(id)
const DetIdContainer & detUnitIds() const override
Returm a vector of all GeomDetUnit DetIds.
TProfile ** m_zavedrphi
TProfile ** m_xavedz
T perp() const
Definition: PV3DBase.h:69
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.
Definition: GeomDet.h:49
T y() const
Definition: PV3DBase.h:60
TProfile ** m_zavedr
std::map< unsigned int, DetIdSelector > m_wantedsubdets
virtual const StripTopology & specificTopology() const
Returns a reference to the strip proxy topology.
TH1F ** m_nchannels_real
bool isThere(GeomDetEnumerators::SubDetector subdet) const
TProfile ** m_avex
TProfile ** m_averadius
T z() const
Definition: PV3DBase.h:61
TProfile ** m_avez
DetId geographicalId() const
The label of this GeomDet.
Definition: GeomDet.h:64
TProfile ** m_xavedr
TProfile ** m_avey
bool IsModuleBad(const uint32_t &detid) const
#define LogTrace(id)
TProfile ** m_yavedr
Definition: DetId.h:17
TProfile ** m_yavedz
TProfile ** m_zavedz
virtual int nstrips() const =0
TProfile ** m_yavedrphi
std::vector< DetId > DetIdContainer
edm::FileInPath m_fp
static int position[264][3]
Definition: ReadPGInfo.cc:289
T get() const
Definition: EventSetup.h:73
const TrackerGeomDet * idToDet(DetId) const override
std::string fullPath() const
Definition: FileInPath.cc:163
T x() const
Definition: PV3DBase.h:59
TProfile ** m_xavedrphi

Member Data Documentation

TProfile** OccupancyPlots::m_avemultiplicity
private

Definition at line 87 of file OccupancyPlots.cc.

Referenced by analyze(), and OccupancyPlots().

TProfile** OccupancyPlots::m_aveoccupancy
private

Definition at line 88 of file OccupancyPlots.cc.

Referenced by analyze(), and OccupancyPlots().

TProfile** OccupancyPlots::m_averadius
private

Definition at line 93 of file OccupancyPlots.cc.

Referenced by endRun(), and OccupancyPlots().

TProfile** OccupancyPlots::m_avex
private

Definition at line 95 of file OccupancyPlots.cc.

Referenced by endRun(), and OccupancyPlots().

TProfile** OccupancyPlots::m_avey
private

Definition at line 96 of file OccupancyPlots.cc.

Referenced by endRun(), and OccupancyPlots().

TProfile** OccupancyPlots::m_avez
private

Definition at line 94 of file OccupancyPlots.cc.

Referenced by endRun(), and OccupancyPlots().

edm::FileInPath OccupancyPlots::m_fp
private

Definition at line 82 of file OccupancyPlots.cc.

Referenced by endRun(), and OccupancyPlots().

std::vector<edm::EDGetTokenT<std::map<unsigned int, int> > > OccupancyPlots::m_multiplicityMapTokens
private

Definition at line 80 of file OccupancyPlots.cc.

Referenced by analyze().

TH1F** OccupancyPlots::m_nchannels_ideal
private

Definition at line 90 of file OccupancyPlots.cc.

Referenced by endRun(), and OccupancyPlots().

TH1F** OccupancyPlots::m_nchannels_real
private

Definition at line 91 of file OccupancyPlots.cc.

Referenced by endRun(), and OccupancyPlots().

std::vector<edm::EDGetTokenT<std::map<unsigned int, int> > > OccupancyPlots::m_occupancyMapTokens
private

Definition at line 81 of file OccupancyPlots.cc.

Referenced by analyze(), and OccupancyPlots().

RunHistogramManager OccupancyPlots::m_rhm
private

Definition at line 84 of file OccupancyPlots.cc.

Referenced by beginRun(), and OccupancyPlots().

std::map<unsigned int, DetIdSelector> OccupancyPlots::m_wantedsubdets
private

Definition at line 85 of file OccupancyPlots.cc.

Referenced by endRun(), and OccupancyPlots().

TProfile** OccupancyPlots::m_xavedr
private

Definition at line 103 of file OccupancyPlots.cc.

Referenced by endRun(), and OccupancyPlots().

TProfile** OccupancyPlots::m_xavedrphi
private

Definition at line 105 of file OccupancyPlots.cc.

Referenced by endRun(), and OccupancyPlots().

TProfile** OccupancyPlots::m_xavedz
private

Definition at line 104 of file OccupancyPlots.cc.

Referenced by endRun(), and OccupancyPlots().

TProfile** OccupancyPlots::m_yavedr
private

Definition at line 100 of file OccupancyPlots.cc.

Referenced by endRun(), and OccupancyPlots().

TProfile** OccupancyPlots::m_yavedrphi
private

Definition at line 102 of file OccupancyPlots.cc.

Referenced by endRun(), and OccupancyPlots().

TProfile** OccupancyPlots::m_yavedz
private

Definition at line 101 of file OccupancyPlots.cc.

Referenced by endRun(), and OccupancyPlots().

TProfile** OccupancyPlots::m_zavedr
private

Definition at line 97 of file OccupancyPlots.cc.

Referenced by endRun(), and OccupancyPlots().

TProfile** OccupancyPlots::m_zavedrphi
private

Definition at line 99 of file OccupancyPlots.cc.

Referenced by endRun(), and OccupancyPlots().

TProfile** OccupancyPlots::m_zavedz
private

Definition at line 98 of file OccupancyPlots.cc.

Referenced by endRun(), and OccupancyPlots().