CMS 3D CMS Logo

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

#include <SiStripBadComponentInfo.h>

Inheritance diagram for SiStripBadComponentInfo:
DQMEDHarvester edm::one::EDProducer< edm::EndLuminosityBlockProducer, edm::EndRunProducer, edm::EndProcessBlockProducer, edm::one::WatchLuminosityBlocks, edm::one::WatchRuns, edm::one::SharedResources, edm::Accumulator > edm::one::EDProducerBase edm::ProducerBase edm::EDConsumerBase edm::ProductRegistryHelper

Public Member Functions

 SiStripBadComponentInfo (edm::ParameterSet const &ps)
 Constructor. More...
 
 ~SiStripBadComponentInfo () override
 
- Public Member Functions inherited from DQMEDHarvester
void accumulate (edm::Event const &ev, edm::EventSetup const &es) final
 
void beginJob () override
 
void beginLuminosityBlock (edm::LuminosityBlock const &lumi, edm::EventSetup const &) final
 
void beginRun (edm::Run const &run, edm::EventSetup const &) override
 
virtual void dqmAnalyze (DQMStore::IBooker &, DQMStore::IGetter &, edm::Event const &, edm::EventSetup const &)
 
 DQMEDHarvester ()
 
 DQMEDHarvester (edm::ParameterSet const &iConfig)
 
virtual void dqmEndLuminosityBlock (DQMStore::IBooker &, DQMStore::IGetter &, edm::LuminosityBlock const &, edm::EventSetup const &)
 
virtual void dqmEndRun (DQMStore::IBooker &, DQMStore::IGetter &, edm::Run const &, edm::EventSetup const &)
 
void endLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) final
 
void endLuminosityBlockProduce (edm::LuminosityBlock &lumi, edm::EventSetup const &es) final
 
void endProcessBlockProduce (edm::ProcessBlock &) final
 
void endRun (edm::Run const &, edm::EventSetup const &) override
 
void endRunProduce (edm::Run &run, edm::EventSetup const &es) final
 
 ~DQMEDHarvester () override=default
 
- Public Member Functions inherited from edm::one::EDProducer< edm::EndLuminosityBlockProducer, edm::EndRunProducer, edm::EndProcessBlockProducer, edm::one::WatchLuminosityBlocks, edm::one::WatchRuns, edm::one::SharedResources, edm::Accumulator >
 EDProducer ()=default
 
SerialTaskQueueglobalLuminosityBlocksQueue () final
 
SerialTaskQueueglobalRunsQueue () final
 
bool hasAbilityToProduceInBeginLumis () const final
 
bool hasAbilityToProduceInBeginProcessBlocks () const final
 
bool hasAbilityToProduceInBeginRuns () const final
 
bool hasAbilityToProduceInEndLumis () const final
 
bool hasAbilityToProduceInEndProcessBlocks () const final
 
bool hasAbilityToProduceInEndRuns () const final
 
bool wantsGlobalLuminosityBlocks () const final
 
bool wantsGlobalRuns () const final
 
bool wantsInputProcessBlocks () const final
 
bool wantsProcessBlocks () const final
 
- Public Member Functions inherited from edm::one::EDProducerBase
 EDProducerBase ()
 
ModuleDescription const & moduleDescription () const
 
bool wantsStreamLuminosityBlocks () const
 
bool wantsStreamRuns () const
 
 ~EDProducerBase () override
 
- Public Member Functions inherited from edm::ProducerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
std::vector< edm::ProductResolverIndex > const & indiciesForPutProducts (BranchType iBranchType) const
 
 ProducerBase ()
 
std::vector< edm::ProductResolverIndex > const & putTokenIndexToProductResolverIndex () const
 
std::vector< bool > const & recordProvenanceList () const
 
void registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &)
 
std::function< void(BranchDescription const &)> registrationCallback () const
 used by the fwk to register list of products More...
 
void resolvePutIndicies (BranchType iBranchType, ModuleToResolverIndicies const &iIndicies, std::string const &moduleLabel)
 
TypeLabelList const & typeLabelList () const
 used by the fwk to register the list of products of this module More...
 
 ~ProducerBase () noexcept(false) 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 &&)=default
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
ESProxyIndex const * esGetTokenIndices (edm::Transition iTrans) const
 
std::vector< ESProxyIndex > const & esGetTokenIndicesVector (edm::Transition iTrans) const
 
std::vector< ESRecordIndex > const & esGetTokenRecordIndicesVector (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::array< std::vector< ModuleDescription const * > *, NumBranchTypes > &modulesAll, std::vector< ModuleProcessName > &modulesInPreviousProcesses, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
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)
 

Protected Member Functions

void dqmEndJob (DQMStore::IBooker &, DQMStore::IGetter &) override
 
void endRun (edm::Run const &, edm::EventSetup const &) override
 
- Protected Member Functions inherited from edm::ProducerBase
template<class ProductType >
BranchAliasSetterT< ProductType > produces ()
 declare what type of product will make and with which optional label More...
 
template<typename ProductType , BranchType B>
BranchAliasSetterT< ProductType > produces ()
 
template<typename ProductType , Transition B>
BranchAliasSetterT< ProductType > produces ()
 
BranchAliasSetter produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true)
 
template<BranchType B>
BranchAliasSetter produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true)
 
template<Transition B>
BranchAliasSetter produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true)
 
template<typename ProductType , Transition B>
BranchAliasSetterT< ProductType > produces (std::string instanceName)
 
template<class ProductType >
BranchAliasSetterT< ProductType > produces (std::string instanceName)
 
template<typename ProductType , BranchType B>
BranchAliasSetterT< ProductType > produces (std::string instanceName)
 
ProducesCollector producesCollector ()
 
- Protected Member Functions inherited from edm::EDConsumerBase
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
template<BranchType B = InEvent>
EDConsumerBaseAdaptor< B > consumes (edm::InputTag tag) noexcept
 
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<Transition Tr = Transition::Event>
constexpr auto esConsumes () noexcept
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes (ESInputTag const &tag)
 
template<Transition Tr = Transition::Event>
auto esConsumes (ESInputTag tag) noexcept
 
template<Transition Tr = Transition::Event>
ESGetTokenGeneric esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey)
 Used with EventSetupRecord::doGet. More...
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 

Private Member Functions

void bookBadComponentHistos (DQMStore::IBooker &ibooker, DQMStore::IGetter &igetter)
 
void checkBadComponents (edm::EventSetup const &eSetup)
 
void createSummary (MonitorElement *me, const std::map< std::pair< int, int >, float > &map)
 
void fillBadComponentMaps (const SiStripQuality *siStripQuality)
 
void fillBadComponentMaps (int xbin, int component, SiStripQuality::BadComponent const &BC)
 

Private Attributes

bool addBadCompFromFedErr_
 
MonitorElementbadAPVME_
 
MonitorElementbadFiberME_
 
MonitorElementbadStripME_
 
bool bookedStatus_
 
const SiStripFedCablingfedCabling_
 
edm::ESGetToken< SiStripFedCabling, SiStripFedCablingRcdfedCablingToken_
 
float fedErrCutoff_
 
std::map< std::pair< int, int >, float > mapBadAPV
 
std::map< std::pair< int, int >, float > mapBadFiber
 
std::map< std::pair< int, int >, float > mapBadStrip
 
int nSubSystem_
 
edm::ESGetToken< SiStripQuality, SiStripQualityRcdqualityToken_
 
const SiStripQualitysiStripQuality_
 
const TrackerTopologytTopo_
 
edm::ESGetToken< TrackerTopology, TrackerTopologyRcdtTopoToken_
 

Additional Inherited Members

- Public Types inherited from DQMEDHarvester
typedef dqm::harvesting::DQMStore DQMStore
 
typedef dqm::harvesting::MonitorElement MonitorElement
 
- Public Types inherited from edm::one::EDProducerBase
typedef EDProducerBase ModuleType
 
- Public Types inherited from edm::ProducerBase
using ModuleToResolverIndicies = std::unordered_multimap< std::string, std::tuple< edm::TypeID const *, const char *, edm::ProductResolverIndex > >
 
typedef ProductRegistryHelper::TypeLabelList TypeLabelList
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Static Public Member Functions inherited from edm::one::EDProducerBase
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 
- Protected Attributes inherited from DQMEDHarvester
DQMStoredqmstore_
 
edm::GetterOfProducts< DQMTokenjobmegetter_
 
edm::EDPutTokenT< DQMTokenjobToken_
 
edm::GetterOfProducts< DQMTokenlumimegetter_
 
edm::EDPutTokenT< DQMTokenlumiToken_
 
edm::GetterOfProducts< DQMTokenrunmegetter_
 
edm::EDPutTokenT< DQMTokenrunToken_
 

Detailed Description

DQM/SiStripMonitorCluster/interface/SiStripBadComponentInfo.h

Description: Checks the # of SiStrip FEDs from DAQ Usage: <usage>

Definition at line 41 of file SiStripBadComponentInfo.h.

Constructor & Destructor Documentation

◆ SiStripBadComponentInfo()

SiStripBadComponentInfo::SiStripBadComponentInfo ( edm::ParameterSet const &  ps)

Constructor.

Definition at line 25 of file SiStripBadComponentInfo.cc.

26  : bookedStatus_(false),
27  nSubSystem_(6),
28  qualityToken_(esConsumes<edm::Transition::EndRun>(
29  edm::ESInputTag{"", pSet.getParameter<std::string>("StripQualityLabel")})),
30  tTopoToken_(esConsumes<edm::Transition::EndRun>()),
31  fedCablingToken_(esConsumes<edm::Transition::EndRun>()) {
32  addBadCompFromFedErr_ = pSet.getUntrackedParameter<bool>("AddBadComponentsFromFedErrors", false);
33  fedErrCutoff_ = float(pSet.getUntrackedParameter<double>("FedErrorBadComponentsCutoff", 0.8));
34  // Create MessageSender
35  LogDebug("SiStripBadComponentInfo") << "SiStripBadComponentInfo::Deleting SiStripBadComponentInfo ";
36 }

References edm::ParameterSet::getParameter(), and AlCaHLTBitMon_QueryRunRegistry::string.

◆ ~SiStripBadComponentInfo()

SiStripBadComponentInfo::~SiStripBadComponentInfo ( )
override

Definition at line 38 of file SiStripBadComponentInfo.cc.

38  {
39  LogDebug("SiStripBadComponentInfo") << "SiStripBadComponentInfo::Deleting SiStripBadComponentInfo ";
40 }

References LogDebug.

Member Function Documentation

◆ bookBadComponentHistos()

void SiStripBadComponentInfo::bookBadComponentHistos ( DQMStore::IBooker ibooker,
DQMStore::IGetter igetter 
)
private

Definition at line 173 of file SiStripBadComponentInfo.cc.

173  {
174  if (!bookedStatus_) {
175  std::string strip_dir = "";
176  ibooker.cd();
177  // SiStripUtility::getTopFolderPath(dqmStore_, "SiStrip", strip_dir);
178  if (igetter.dirExists("SiStrip")) {
179  ibooker.cd("SiStrip");
180  strip_dir = ibooker.pwd();
181  }
182  edm::LogInfo("SiStripBadComponentInfo")
183  << "SiStripBadComponentInfo::bookBadComponentHistos ==> " << strip_dir << " " << ibooker.pwd() << std::endl;
184  if (!strip_dir.empty())
185  ibooker.setCurrentFolder(strip_dir + "/EventInfo");
186  else
187  ibooker.setCurrentFolder("SiStrip/EventInfo");
188 
189  ibooker.cd();
190  if (!strip_dir.empty())
191  ibooker.setCurrentFolder(strip_dir + "/EventInfo/BadComponentContents");
192 
193  std::string hname, htitle;
194  hname = "BadAPVMap";
195  htitle = "SiStrip Bad APVs";
196  badAPVME_ = ibooker.book2D(hname, htitle, nSubSystem_, 0.5, nSubSystem_ + 0.5, 10, 0.5, 10.5);
197  badAPVME_->setAxisTitle("Sub Detector Type", 1);
198  badAPVME_->setAxisTitle("Layer/Disc Number", 2);
199 
200  hname = "BadFiberMap";
201  htitle = "SiStrip Bad Fibers";
202  badFiberME_ = ibooker.book2D(hname, htitle, nSubSystem_, 0.5, nSubSystem_ + 0.5, 10, 0.5, 10.5);
203  badFiberME_->setAxisTitle("Sub Detector Type", 1);
204  badFiberME_->setAxisTitle("Layer/Disc Number", 2);
205 
206  hname = "BadStripMap";
207  htitle = "SiStrip Bad Strips";
208  badStripME_ = ibooker.book2D(hname, htitle, nSubSystem_, 0.5, nSubSystem_ + 0.5, 10, 0.5, 10.5);
209  badStripME_->setAxisTitle("Sub Detector Type", 1);
210  badStripME_->setAxisTitle("Layer/Disc Number", 2);
211 
212  std::vector<std::string> names;
213  names.push_back("TECB");
214  names.push_back("TECF");
215  names.push_back("TIB");
216  names.push_back("TIDB");
217  names.push_back("TIDF");
218  names.push_back("TOB");
219 
220  for (unsigned int i = 0; i < names.size(); i++) {
221  badAPVME_->setBinLabel(i + 1, names[i]);
222  badFiberME_->setBinLabel(i + 1, names[i]);
223  badStripME_->setBinLabel(i + 1, names[i]);
224  }
225 
226  bookedStatus_ = true;
227  ibooker.cd();
228  }
229 }

References badAPVME_, badFiberME_, badStripME_, dqm::implementation::IBooker::book2D(), bookedStatus_, dqm::implementation::NavigatorBase::cd(), dqm::implementation::IGetter::dirExists(), mps_fire::i, names, nSubSystem_, dqm::implementation::NavigatorBase::pwd(), dqm::impl::MonitorElement::setAxisTitle(), dqm::impl::MonitorElement::setBinLabel(), dqm::implementation::NavigatorBase::setCurrentFolder(), and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by dqmEndJob().

◆ checkBadComponents()

void SiStripBadComponentInfo::checkBadComponents ( edm::EventSetup const &  eSetup)
private

Definition at line 45 of file SiStripBadComponentInfo.cc.

45  {
46  LogDebug("SiStripBadComponentInfo") << "SiStripBadComponentInfo:: Begining of Run";
47 
48  // Retrieve tracker topology from geometry
49  tTopo_ = &eSetup.getData(tTopoToken_);
50  fedCabling_ = &eSetup.getData(fedCablingToken_);
51  siStripQuality_ = &eSetup.getData(qualityToken_);
52 
53  if (!addBadCompFromFedErr_) {
55  }
56 }

References addBadCompFromFedErr_, fedCabling_, fedCablingToken_, fillBadComponentMaps(), edm::EventSetup::getData(), LogDebug, qualityToken_, siStripQuality_, tTopo_, and tTopoToken_.

Referenced by endRun().

◆ createSummary()

void SiStripBadComponentInfo::createSummary ( MonitorElement me,
const std::map< std::pair< int, int >, float > &  map 
)
private

Definition at line 247 of file SiStripBadComponentInfo.cc.

247  {
248  for (int i = 1; i < nSubSystem_ + 1; i++) {
249  float sum = 0.0;
250  for (int k = 1; k < me->getNbinsY(); k++) {
251  auto index = std::make_pair(i, k);
252  if (map.find(index) != map.end()) {
253  me->setBinContent(i, k, map.at(index)); // fill the layer/wheel bins
254  sum += map.at(index);
255  }
256  }
257  me->setBinContent(i, me->getNbinsY(), sum); // fill the summary bin (last one)
258  }
259 }

References mps_fire::i, dqmdumpme::k, genParticles_cff::map, hlt_dqm_clientPB-live_cfg::me, and nSubSystem_.

Referenced by dqmEndJob().

◆ dqmEndJob()

void SiStripBadComponentInfo::dqmEndJob ( DQMStore::IBooker ibooker,
DQMStore::IGetter igetter 
)
overrideprotectedvirtual

Implements DQMEDHarvester.

Definition at line 155 of file SiStripBadComponentInfo.cc.

155  {
156  LogDebug("SiStripBadComponentInfo") << "SiStripBadComponentInfo::dqmEndRun";
157  if (addBadCompFromFedErr_) {
158  auto mergedQuality = std::make_unique<SiStripQuality>(*siStripQuality_);
159  auto fedErrQuality = sistrip::badStripFromFedErr(igetter, *fedCabling_, fedErrCutoff_);
160  mergedQuality->add(fedErrQuality.get());
161  mergedQuality->cleanUp();
162  mergedQuality->fillBadComponents();
163  fillBadComponentMaps(mergedQuality.get());
164  }
165  bookBadComponentHistos(ibooker, igetter);
169 }

References addBadCompFromFedErr_, badAPVME_, badFiberME_, sistrip::badStripFromFedErr(), badStripME_, bookBadComponentHistos(), createSummary(), fedCabling_, fedErrCutoff_, fillBadComponentMaps(), LogDebug, mapBadAPV, mapBadFiber, mapBadStrip, and siStripQuality_.

◆ endRun()

void SiStripBadComponentInfo::endRun ( edm::Run const &  run,
edm::EventSetup const &  eSetup 
)
overrideprotected

Definition at line 150 of file SiStripBadComponentInfo.cc.

150  {
151  LogDebug("SiStripBadComponentInfo") << "SiStripBadComponentInfo:: End of Run";
152  checkBadComponents(eSetup);
153 }

References checkBadComponents(), and LogDebug.

◆ fillBadComponentMaps() [1/2]

void SiStripBadComponentInfo::fillBadComponentMaps ( const SiStripQuality siStripQuality)
private

Definition at line 58 of file SiStripBadComponentInfo.cc.

58  {
59  auto const& BC = siStripQuality->getBadComponentList();
60 
61  for (size_t i = 0; i < BC.size(); ++i) {
62  int subdet = -999;
63  int component = -999;
64 
65  //&&&&&&&&&&&&&&&&&
66  // Single SubSyste
67  //&&&&&&&&&&&&&&&&&
68  int subDet = DetId(BC[i].detid).subdetId();
69  if (subDet == StripSubdetector::TIB) {
70  //&&&&&&&&&&&&&&&&&
71  // TIB
72  //&&&&&&&&&&&&&&&&&
73  subdet = 3;
74  component = tTopo_->tibLayer(BC[i].detid);
75  } else if (subDet == StripSubdetector::TID) {
76  //&&&&&&&&&&&&&&&&&
77  // TID
78  //&&&&&&&&&&&&&&&&&
79  if (tTopo_->tidSide(BC[i].detid) == 2)
80  subdet = 4;
81  else
82  subdet = 5;
83  component = tTopo_->tidWheel(BC[i].detid);
84  } else if (subDet == StripSubdetector::TOB) {
85  //&&&&&&&&&&&&&&&&&
86  // TOB
87  //&&&&&&&&&&&&&&&&&
88  subdet = 6;
89  component = tTopo_->tobLayer(BC[i].detid);
90  } else if (subDet == StripSubdetector::TEC) {
91  //&&&&&&&&&&&&&&&&&
92  // TEC
93  //&&&&&&&&&&&&&&&&&
94  if (tTopo_->tecSide(BC[i].detid) == 2)
95  subdet = 2;
96  else
97  subdet = 1;
98  component = tTopo_->tecWheel(BC[i].detid);
99  }
100  fillBadComponentMaps(subdet, component, BC[i]);
101  }
102 
103  //&&&&&&&&&&&&&&&&&&
104  // Single Strip Info
105  //&&&&&&&&&&&&&&&&&&
106 
107  SiStripQuality::RegistryIterator rbegin = siStripQuality->getRegistryVectorBegin();
109 
110  for (SiStripBadStrip::RegistryIterator rp = rbegin; rp != rend; ++rp) {
111  uint32_t detid = rp->detid;
112  int subdet = -999;
113  int component = -999;
114  DetId detectorId = DetId(detid);
115  int subDet = detectorId.subdetId();
116  if (subDet == StripSubdetector::TIB) {
117  subdet = 3;
118  component = tTopo_->tibLayer(detid);
119  } else if (subDet == StripSubdetector::TID) {
120  if (tTopo_->tidSide(detid) == 2)
121  subdet = 5;
122  else
123  subdet = 4;
124  component = tTopo_->tidWheel(detid);
125  } else if (subDet == StripSubdetector::TOB) {
126  subdet = 6;
127  component = tTopo_->tobLayer(detid);
128  } else if (subDet == StripSubdetector::TEC) {
129  if (tTopo_->tecSide(detid) == 2)
130  subdet = 2;
131  else
132  subdet = 1;
133  component = tTopo_->tecWheel(detid);
134  }
135 
136  SiStripQuality::Range sqrange = SiStripQuality::Range(siStripQuality->getDataVectorBegin() + rp->ibegin,
137  siStripQuality->getDataVectorBegin() + rp->iend);
138 
139  for (int it = 0; it < sqrange.second - sqrange.first; it++) {
140  unsigned int range = siStripQuality->decode(*(sqrange.first + it)).range;
141  float val = (mapBadStrip.find(std::make_pair(subdet, component)) != mapBadStrip.end())
142  ? mapBadStrip.at(std::make_pair(subdet, component))
143  : 0.;
144  val += range;
145  mapBadStrip[std::make_pair(subdet, component)] = val;
146  }
147  }
148 }

References SiStripBadStrip::decode(), SiStripQuality::getBadComponentList(), SiStripBadStrip::getDataVectorBegin(), SiStripBadStrip::getRegistryVectorBegin(), SiStripBadStrip::getRegistryVectorEnd(), mps_fire::i, mapBadStrip, FastTimerService_cff::range, SiStripBadStrip::data::range, DetId::subdetId(), StripSubdetector::TEC, TrackerTopology::tecSide(), TrackerTopology::tecWheel(), StripSubdetector::TIB, TrackerTopology::tibLayer(), StripSubdetector::TID, TrackerTopology::tidSide(), TrackerTopology::tidWheel(), StripSubdetector::TOB, TrackerTopology::tobLayer(), tTopo_, and heppy_batch::val.

Referenced by checkBadComponents(), and dqmEndJob().

◆ fillBadComponentMaps() [2/2]

void SiStripBadComponentInfo::fillBadComponentMaps ( int  xbin,
int  component,
SiStripQuality::BadComponent const &  BC 
)
private

Definition at line 231 of file SiStripBadComponentInfo.cc.

231  {
232  auto index = std::make_pair(xbin, component);
233 
234  if (BC.BadApvs) {
235  int ntot = std::bitset<16>(BC.BadApvs & 0x3f).count();
236  float val = (mapBadAPV.find(index) != mapBadAPV.end()) ? mapBadAPV.at(index) : 0.;
237  val += ntot;
238  mapBadAPV[index] = val;
239  }
240  if (BC.BadFibers) {
241  int ntot = std::bitset<16>(BC.BadFibers & 0x7).count();
242  float val = (mapBadFiber.find(index) != mapBadFiber.end()) ? mapBadFiber.at(index) : 0.;
243  val += ntot;
244  mapBadFiber[index] = val;
245  }
246 }

References SiStripQuality::BadComponent::BadApvs, SiStripQuality::BadComponent::BadFibers, mapBadAPV, mapBadFiber, gpuPixelDoublets::ntot, and heppy_batch::val.

Member Data Documentation

◆ addBadCompFromFedErr_

bool SiStripBadComponentInfo::addBadCompFromFedErr_
private

Definition at line 76 of file SiStripBadComponentInfo.h.

Referenced by checkBadComponents(), and dqmEndJob().

◆ badAPVME_

MonitorElement* SiStripBadComponentInfo::badAPVME_
private

Definition at line 59 of file SiStripBadComponentInfo.h.

Referenced by bookBadComponentHistos(), and dqmEndJob().

◆ badFiberME_

MonitorElement* SiStripBadComponentInfo::badFiberME_
private

Definition at line 60 of file SiStripBadComponentInfo.h.

Referenced by bookBadComponentHistos(), and dqmEndJob().

◆ badStripME_

MonitorElement* SiStripBadComponentInfo::badStripME_
private

Definition at line 61 of file SiStripBadComponentInfo.h.

Referenced by bookBadComponentHistos(), and dqmEndJob().

◆ bookedStatus_

bool SiStripBadComponentInfo::bookedStatus_
private

Definition at line 67 of file SiStripBadComponentInfo.h.

Referenced by bookBadComponentHistos().

◆ fedCabling_

const SiStripFedCabling* SiStripBadComponentInfo::fedCabling_
private

Definition at line 72 of file SiStripBadComponentInfo.h.

Referenced by checkBadComponents(), and dqmEndJob().

◆ fedCablingToken_

edm::ESGetToken<SiStripFedCabling, SiStripFedCablingRcd> SiStripBadComponentInfo::fedCablingToken_
private

Definition at line 75 of file SiStripBadComponentInfo.h.

Referenced by checkBadComponents().

◆ fedErrCutoff_

float SiStripBadComponentInfo::fedErrCutoff_
private

Definition at line 77 of file SiStripBadComponentInfo.h.

Referenced by dqmEndJob().

◆ mapBadAPV

std::map<std::pair<int, int>, float> SiStripBadComponentInfo::mapBadAPV
private

Definition at line 63 of file SiStripBadComponentInfo.h.

Referenced by dqmEndJob(), and fillBadComponentMaps().

◆ mapBadFiber

std::map<std::pair<int, int>, float> SiStripBadComponentInfo::mapBadFiber
private

Definition at line 64 of file SiStripBadComponentInfo.h.

Referenced by dqmEndJob(), and fillBadComponentMaps().

◆ mapBadStrip

std::map<std::pair<int, int>, float> SiStripBadComponentInfo::mapBadStrip
private

Definition at line 65 of file SiStripBadComponentInfo.h.

Referenced by dqmEndJob(), and fillBadComponentMaps().

◆ nSubSystem_

int SiStripBadComponentInfo::nSubSystem_
private

Definition at line 68 of file SiStripBadComponentInfo.h.

Referenced by bookBadComponentHistos(), and createSummary().

◆ qualityToken_

edm::ESGetToken<SiStripQuality, SiStripQualityRcd> SiStripBadComponentInfo::qualityToken_
private

Definition at line 73 of file SiStripBadComponentInfo.h.

Referenced by checkBadComponents().

◆ siStripQuality_

const SiStripQuality* SiStripBadComponentInfo::siStripQuality_
private

Definition at line 70 of file SiStripBadComponentInfo.h.

Referenced by checkBadComponents(), and dqmEndJob().

◆ tTopo_

const TrackerTopology* SiStripBadComponentInfo::tTopo_
private

Definition at line 71 of file SiStripBadComponentInfo.h.

Referenced by checkBadComponents(), and fillBadComponentMaps().

◆ tTopoToken_

edm::ESGetToken<TrackerTopology, TrackerTopologyRcd> SiStripBadComponentInfo::tTopoToken_
private

Definition at line 74 of file SiStripBadComponentInfo.h.

Referenced by checkBadComponents().

SiStripBadComponentInfo::bookedStatus_
bool bookedStatus_
Definition: SiStripBadComponentInfo.h:67
SiStripBadComponentInfo::tTopoToken_
edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > tTopoToken_
Definition: SiStripBadComponentInfo.h:74
FastTimerService_cff.range
range
Definition: FastTimerService_cff.py:34
mps_fire.i
i
Definition: mps_fire.py:428
edm::ESInputTag
Definition: ESInputTag.h:87
dqmMemoryStats.float
float
Definition: dqmMemoryStats.py:127
SiStripBadComponentInfo::qualityToken_
edm::ESGetToken< SiStripQuality, SiStripQualityRcd > qualityToken_
Definition: SiStripBadComponentInfo.h:73
SiStripBadComponentInfo::siStripQuality_
const SiStripQuality * siStripQuality_
Definition: SiStripBadComponentInfo.h:70
sistrip::badStripFromFedErr
std::unique_ptr< SiStripQuality > badStripFromFedErr(dqm::harvesting::DQMStore::IGetter &dqmStore, const SiStripFedCabling &fedCabling, float cutoff)
Definition: SiStripQualityHelpers.cc:52
SiStripBadComponentInfo::createSummary
void createSummary(MonitorElement *me, const std::map< std::pair< int, int >, float > &map)
Definition: SiStripBadComponentInfo.cc:247
dqm::implementation::NavigatorBase::setCurrentFolder
virtual void setCurrentFolder(std::string const &fullpath)
Definition: DQMStore.cc:32
SiStripBadStrip::decode
data decode(const unsigned int &value) const
Definition: SiStripBadStrip.h:78
gpuPixelDoublets::ntot
__shared__ uint32_t ntot
Definition: gpuPixelDoubletsAlgos.h:67
SiStripBadComponentInfo::badStripME_
MonitorElement * badStripME_
Definition: SiStripBadComponentInfo.h:61
edm::LogInfo
Log< level::Info, false > LogInfo
Definition: MessageLogger.h:125
SiStripBadStrip::getDataVectorBegin
ContainerIterator getDataVectorBegin() const
Definition: SiStripBadStrip.h:73
SiStripBadComponentInfo::mapBadFiber
std::map< std::pair< int, int >, float > mapBadFiber
Definition: SiStripBadComponentInfo.h:64
TrackerTopology::tidWheel
unsigned int tidWheel(const DetId &id) const
Definition: TrackerTopology.h:201
DetId
Definition: DetId.h:17
SiStripBadStrip::Range
std::pair< ContainerIterator, ContainerIterator > Range
Definition: SiStripBadStrip.h:53
SiStripQuality::getBadComponentList
const std::vector< BadComponent > & getBadComponentList() const
Definition: SiStripQuality.h:119
SiStripBadStrip::getRegistryVectorBegin
RegistryIterator getRegistryVectorBegin() const
Definition: SiStripBadStrip.h:75
SiStripBadComponentInfo::fillBadComponentMaps
void fillBadComponentMaps(const SiStripQuality *siStripQuality)
Definition: SiStripBadComponentInfo.cc:58
names
const std::string names[nVars_]
Definition: PhotonIDValueMapProducer.cc:124
dqm::implementation::NavigatorBase::cd
virtual void cd()
Definition: DQMStore.cc:29
StripSubdetector::TIB
static constexpr auto TIB
Definition: StripSubdetector.h:16
SiStripBadComponentInfo::bookBadComponentHistos
void bookBadComponentHistos(DQMStore::IBooker &ibooker, DQMStore::IGetter &igetter)
Definition: SiStripBadComponentInfo.cc:173
dqmdumpme.k
k
Definition: dqmdumpme.py:60
dqm::implementation::NavigatorBase::pwd
virtual std::string pwd()
Definition: DQMStore.cc:16
DetId::subdetId
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum)
Definition: DetId.h:48
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
LogDebug
#define LogDebug(id)
Definition: MessageLogger.h:233
SiStripBadComponentInfo::mapBadAPV
std::map< std::pair< int, int >, float > mapBadAPV
Definition: SiStripBadComponentInfo.h:63
SiStripBadComponentInfo::badFiberME_
MonitorElement * badFiberME_
Definition: SiStripBadComponentInfo.h:60
TrackerTopology::tidSide
unsigned int tidSide(const DetId &id) const
Definition: TrackerTopology.h:190
dqm::impl::MonitorElement::setBinLabel
virtual void setBinLabel(int bin, const std::string &label, int axis=1)
set bin label for x, y or z axis (axis=1, 2, 3 respectively)
Definition: MonitorElement.cc:771
SiStripBadComponentInfo::addBadCompFromFedErr_
bool addBadCompFromFedErr_
Definition: SiStripBadComponentInfo.h:76
SiStripBadComponentInfo::fedErrCutoff_
float fedErrCutoff_
Definition: SiStripBadComponentInfo.h:77
SiStripBadComponentInfo::fedCabling_
const SiStripFedCabling * fedCabling_
Definition: SiStripBadComponentInfo.h:72
SiStripBadComponentInfo::nSubSystem_
int nSubSystem_
Definition: SiStripBadComponentInfo.h:68
TrackerTopology::tobLayer
unsigned int tobLayer(const DetId &id) const
Definition: TrackerTopology.h:147
heppy_batch.val
val
Definition: heppy_batch.py:351
StripSubdetector::TEC
static constexpr auto TEC
Definition: StripSubdetector.h:19
SiStripBadComponentInfo::tTopo_
const TrackerTopology * tTopo_
Definition: SiStripBadComponentInfo.h:71
SiStripBadComponentInfo::fedCablingToken_
edm::ESGetToken< SiStripFedCabling, SiStripFedCablingRcd > fedCablingToken_
Definition: SiStripBadComponentInfo.h:75
dqm::implementation::IBooker::book2D
MonitorElement * book2D(TString const &name, TString const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, FUNC onbooking=NOOP())
Definition: DQMStore.h:177
SiStripBadComponentInfo::checkBadComponents
void checkBadComponents(edm::EventSetup const &eSetup)
Definition: SiStripBadComponentInfo.cc:45
StripSubdetector::TOB
static constexpr auto TOB
Definition: StripSubdetector.h:18
SiStripBadComponentInfo::mapBadStrip
std::map< std::pair< int, int >, float > mapBadStrip
Definition: SiStripBadComponentInfo.h:65
SiStripBadStrip::RegistryIterator
Registry::const_iterator RegistryIterator
Definition: SiStripBadStrip.h:55
AlignmentPI::index
index
Definition: AlignmentPayloadInspectorHelper.h:46
SiStripBadStrip::data::range
unsigned short range
Definition: SiStripBadStrip.h:34
genParticles_cff.map
map
Definition: genParticles_cff.py:11
hlt_dqm_clientPB-live_cfg.me
me
Definition: hlt_dqm_clientPB-live_cfg.py:61
TrackerTopology::tecWheel
unsigned int tecWheel(const DetId &id) const
Definition: TrackerTopology.h:198
dqm::impl::MonitorElement::setAxisTitle
virtual void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)
Definition: MonitorElement.cc:800
SiStripBadComponentInfo::badAPVME_
MonitorElement * badAPVME_
Definition: SiStripBadComponentInfo.h:59
SiStripBadStrip::getRegistryVectorEnd
RegistryIterator getRegistryVectorEnd() const
Definition: SiStripBadStrip.h:76
dqm::implementation::IGetter::dirExists
virtual bool dirExists(std::string const &path) const
Definition: DQMStore.cc:708
StripSubdetector::TID
static constexpr auto TID
Definition: StripSubdetector.h:17
TrackerTopology::tibLayer
unsigned int tibLayer(const DetId &id) const
Definition: TrackerTopology.h:150
TrackerTopology::tecSide
unsigned int tecSide(const DetId &id) const
Definition: TrackerTopology.h:184