CMS 3D CMS Logo

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

#include <DTChamberEfficiencyClient.h>

Inheritance diagram for DTChamberEfficiencyClient:
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

 DTChamberEfficiencyClient (const edm::ParameterSet &ps)
 Constructor. More...
 
 ~DTChamberEfficiencyClient () override
 Destructor. More...
 
- 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 (edm::ParameterSet const &iConfig)
 
 DQMEDHarvester ()
 
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
 
 EDProducer (const EDProducer &)=delete
 
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
 
const EDProduceroperator= (const EDProducer &)=delete
 
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 const &)=delete
 
 EDConsumerBase (EDConsumerBase &&)=default
 
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
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
bool registeredToConsume (ProductResolverIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void selectInputProcessBlocks (ProductRegistry const &productRegistry, ProcessBlockHelperBase const &processBlockHelperBase)
 
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 beginRun (const edm::Run &, const edm::EventSetup &) override
 
void bookHistos (DQMStore::IBooker &)
 book the report summary More...
 
void dqmEndJob (DQMStore::IBooker &, DQMStore::IGetter &) override
 
void dqmEndLuminosityBlock (DQMStore::IBooker &, DQMStore::IGetter &, edm::LuminosityBlock const &, edm::EventSetup const &) override
 
- Protected Member Functions inherited from edm::ProducerBase
template<Transition Tr = Transition::Event>
auto produces (std::string instanceName) noexcept
 declare what type of product will make and with which optional label More...
 
template<Transition B>
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)
 
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 ()
 
template<typename ProductType , BranchType B>
BranchAliasSetterT< ProductType > produces (std::string instanceName)
 
template<typename ProductType , BranchType B>
BranchAliasSetterT< ProductType > produces ()
 
template<class ProductType >
BranchAliasSetterT< ProductType > produces (std::string instanceName)
 
template<typename ProductType , Transition B>
BranchAliasSetterT< ProductType > produces ()
 
template<Transition Tr = Transition::Event>
auto produces () noexcept
 
ProducesCollector producesCollector ()
 
- Protected Member Functions inherited from edm::EDConsumerBase
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
template<BranchType B = InEvent>
EDConsumerBaseAdaptor< Bconsumes (edm::InputTag tag) noexcept
 
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<Transition Tr = Transition::Event>
constexpr auto esConsumes ()
 
template<Transition Tr = Transition::Event>
auto esConsumes (ESInputTag tag)
 
template<Transition Tr = Transition::Event>
ESGetTokenGeneric esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey)
 Used with EventSetupRecord::doGet. More...
 
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)
 
void resetItemsToGetFrom (BranchType iType)
 

Private Attributes

std::map< int, MonitorElement * > EffDistrPerWh
 
MonitorElementglobalEffDistr
 
MonitorElementglobalEffSummary
 
const DTGeometrymuonGeom
 
edm::ESGetToken< DTGeometry, MuonGeometryRecordmuonGeomToken_
 
unsigned int nLumiSegs
 
int prescaleFactor
 
MonitorElementsummaryHistos [5][2]
 

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
template<typename T >
using BranchAliasSetterT = ProductRegistryHelper::BranchAliasSetterT< T >
 
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

Definition at line 41 of file DTChamberEfficiencyClient.h.

Constructor & Destructor Documentation

◆ DTChamberEfficiencyClient()

DTChamberEfficiencyClient::DTChamberEfficiencyClient ( const edm::ParameterSet ps)

Constructor.

Definition at line 28 of file DTChamberEfficiencyClient.cc.

References edm::ParameterSet::getUntrackedParameter(), and prescaleFactor.

29  : muonGeomToken_(esConsumes<edm::Transition::BeginRun>()) {
30  LogVerbatim("DTDQM|DTMonitorClient|DTChamberEfficiencyClient") << "DTChamberEfficiencyClient: Constructor called";
31 
32  prescaleFactor = pSet.getUntrackedParameter<int>("diagnosticPrescale", 1);
33 }
Log< level::Info, true > LogVerbatim
edm::ESGetToken< DTGeometry, MuonGeometryRecord > muonGeomToken_

◆ ~DTChamberEfficiencyClient()

DTChamberEfficiencyClient::~DTChamberEfficiencyClient ( )
override

Destructor.

Definition at line 35 of file DTChamberEfficiencyClient.cc.

35  {
36  LogVerbatim("DTDQM|DTMonitorClient|DTChamberEfficiencyClient") << "DTChamberEfficiencyClient: Destructor called";
37 }
Log< level::Info, true > LogVerbatim

Member Function Documentation

◆ beginRun()

void DTChamberEfficiencyClient::beginRun ( const edm::Run run,
const edm::EventSetup setup 
)
overrideprotected

Definition at line 39 of file DTChamberEfficiencyClient.cc.

References muonGeom, muonGeomToken_, and singleTopDQM_cfi::setup.

39  {
40  // Get the DT Geometry
41  muonGeom = &setup.getData(muonGeomToken_);
42 }
edm::ESGetToken< DTGeometry, MuonGeometryRecord > muonGeomToken_

◆ bookHistos()

void DTChamberEfficiencyClient::bookHistos ( DQMStore::IBooker ibooker)
protected

book the report summary

Definition at line 184 of file DTChamberEfficiencyClient.cc.

References dqm::implementation::IBooker::book1D(), dqm::implementation::IBooker::book2D(), EffDistrPerWh, globalEffDistr, globalEffSummary, dqm::impl::MonitorElement::setAxisTitle(), dqm::impl::MonitorElement::setBinLabel(), dqm::implementation::NavigatorBase::setCurrentFolder(), summaryHistos, and makeMuonMisalignmentScenario::wheel.

Referenced by dqmEndJob().

184  {
185  ibooker.setCurrentFolder("DT/05-ChamberEff");
186 
187  globalEffSummary = ibooker.book2D("EfficiencyGlbSummary", "Efficiency Summary", 12, 1, 13, 5, -2, 3);
188  globalEffSummary->setAxisTitle("sector", 1);
189  globalEffSummary->setAxisTitle("wheel", 2);
190 
191  globalEffDistr = ibooker.book1D("TotalEfficiency", "Total efficiency", 51, 0., 1.02);
192  globalEffDistr->setAxisTitle("Eff", 1);
193 
194  for (int wh = -2; wh <= 2; wh++) {
195  stringstream wheel;
196  wheel << wh;
197  string histoNameAll = "EfficiencyMap_All_W" + wheel.str();
198  string histoTitleAll = "Efficiency map for all segments for wheel " + wheel.str();
199 
200  string histoNameQual = "EfficiencyMap_Qual_W" + wheel.str();
201  string histoTitleQual = "Efficiency map for quality segments for wheel " + wheel.str();
202 
203  string histoNameEff = "Efficiency_W" + wheel.str();
204  string histoTitleEff = "Segment efficiency, wheel " + wheel.str();
205 
206  ibooker.setCurrentFolder("DT/05-ChamberEff");
207 
208  summaryHistos[wh + 2][0] = ibooker.book2D(histoNameAll.c_str(), histoTitleAll.c_str(), 14, 1., 15., 4, 1., 5.);
209  summaryHistos[wh + 2][0]->setAxisTitle("Sector", 1);
210  summaryHistos[wh + 2][0]->setBinLabel(1, "MB1", 2);
211  summaryHistos[wh + 2][0]->setBinLabel(2, "MB2", 2);
212  summaryHistos[wh + 2][0]->setBinLabel(3, "MB3", 2);
213  summaryHistos[wh + 2][0]->setBinLabel(4, "MB4", 2);
214 
215  EffDistrPerWh[wh + 2] = ibooker.book1D(histoNameEff.c_str(), histoTitleEff.c_str(), 51, 0., 1.02);
216  EffDistrPerWh[wh + 2]->setAxisTitle("Eff", 1);
217 
218  ibooker.setCurrentFolder("DT/05-ChamberEff/HighQual");
219 
220  summaryHistos[wh + 2][1] = ibooker.book2D(histoNameQual.c_str(), histoTitleQual.c_str(), 14, 1., 15., 4, 1., 5.);
221  summaryHistos[wh + 2][1]->setAxisTitle("Sector", 1);
222  summaryHistos[wh + 2][1]->setBinLabel(1, "MB1", 2);
223  summaryHistos[wh + 2][1]->setBinLabel(2, "MB2", 2);
224  summaryHistos[wh + 2][1]->setBinLabel(3, "MB3", 2);
225  summaryHistos[wh + 2][1]->setBinLabel(4, "MB4", 2);
226  }
227 
228  return;
229 }
virtual void setCurrentFolder(std::string const &fullpath)
Definition: DQMStore.cc:36
std::map< int, MonitorElement * > EffDistrPerWh
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)
MonitorElement * summaryHistos[5][2]
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:212
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
Definition: DQMStore.h:98
virtual void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)

◆ dqmEndJob()

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

Implements DQMEDHarvester.

Definition at line 51 of file DTChamberEfficiencyClient.cc.

References bookHistos(), makePileupJSON::denom, EffDistrPerWh, dqm::impl::MonitorElement::Fill(), dqm::implementation::IGetter::get(), dqm::impl::MonitorElement::getBinContent(), dqm::impl::MonitorElement::getBinError(), dqm::impl::MonitorElement::getNbinsX(), dqm::impl::MonitorElement::getNbinsY(), dqm::legacy::MonitorElement::getTH2F(), globalEffDistr, globalEffSummary, dqmiolumiharvest::j, dqmdumpme::k, LogTrace, anotherprimaryvertexanalyzer_cfi::nBinX, anotherprimaryvertexanalyzer_cfi::nBinY, funct::pow(), dqm::impl::MonitorElement::Reset(), hgcalTBTopologyTester_cfi::sector, dqm::impl::MonitorElement::setBinContent(), dqm::impl::MonitorElement::setBinError(), mathSSE::sqrt(), relativeConstraints::station, summaryHistos, and makeMuonMisalignmentScenario::wheel.

51  {
52  LogVerbatim("DTDQM|DTMonitorClient|DTChamberEfficiencyClient") << "DTChamberEfficiencyClient: endRun";
53 
54  bookHistos(ibooker);
55 
56  // reset the global summary
58 
59  //Loop over the wheels
60  for (int wheel = -2; wheel <= 2; wheel++) {
61  stringstream wheel_str;
62  wheel_str << wheel;
63 
64  // Get the ME produced by EfficiencyTask Source
65  // All means no selection on segments, Qual means segments with at least 12 hits
66 
67  MonitorElement* MECountAll = igetter.get("DT/05-ChamberEff/Task/hCountSectVsChamb_All_W" + wheel_str.str());
68  MonitorElement* MECountQual = igetter.get("DT/05-ChamberEff/Task/hCountSectVsChamb_Qual_W" + wheel_str.str());
69  MonitorElement* MEExtrap = igetter.get("DT/05-ChamberEff/Task/hExtrapSectVsChamb_W" + wheel_str.str());
70 
71  //get the TH2F
72  if (!MECountAll || !(MECountAll->getTH2F())) {
73  edm::LogWarning("DTChamberEfficiencyClient") << "ME not available" << std::endl;
74  return;
75  }
76 
77  TH2F* hCountAll = MECountAll->getTH2F();
78  TH2F* hCountQual = MECountQual->getTH2F();
79  TH2F* hExtrap = MEExtrap->getTH2F();
80 
81  const int nBinX = summaryHistos[wheel + 2][0]->getNbinsX();
82  const int nBinY = summaryHistos[wheel + 2][0]->getNbinsY();
83 
84  for (int j = 1; j <= nBinX; j++) {
85  for (int k = 1; k <= nBinY; k++) {
86  summaryHistos[wheel + 2][0]->setBinContent(j, k, 0.);
87  summaryHistos[wheel + 2][1]->setBinContent(j, k, 0.);
88 
89  const float numerAll = hCountAll->GetBinContent(j, k);
90  const float numerQual = hCountQual->GetBinContent(j, k);
91  const float denom = hExtrap->GetBinContent(j, k);
92 
93  if (denom != 0.) {
94  const float effAll = numerAll / denom;
95  const float eff_error_All = sqrt((effAll + effAll * effAll) / denom);
96 
97  const float effQual = numerQual / denom;
98  const float eff_error_Qual = sqrt((effQual + effQual * effQual) / denom);
99 
100  summaryHistos[wheel + 2][0]->setBinContent(j, k, effAll);
101  summaryHistos[wheel + 2][0]->setBinError(j, k, eff_error_All);
102 
103  summaryHistos[wheel + 2][1]->setBinContent(j, k, effQual);
104  summaryHistos[wheel + 2][1]->setBinError(j, k, eff_error_Qual);
105 
106  // Fill 1D eff distributions
107  globalEffDistr->Fill(effAll);
108  EffDistrPerWh[wheel + 2]->Fill(effAll);
109  }
110  }
111  }
112  }
113 
114  // fill the global eff. summary
115  // problems at a granularity smaller than the chamber are ignored
116  for (int wheel = -2; wheel <= 2; wheel++) { // loop over wheels
117  // retrieve the chamber efficiency summary
118  MonitorElement* segmentWheelSummary = summaryHistos[wheel + 2][0];
119  if (segmentWheelSummary != nullptr) {
120  for (int sector = 1; sector <= 12; sector++) { // loop over sectors
121  float nFailingChambers = 0.;
122 
123  double meaneff = 0.;
124  double errorsum = 0.;
125 
126  for (int station = 1; station != 5; ++station) { // loop over stations
127 
128  const double tmpefficiency = segmentWheelSummary->getBinContent(sector, station);
129  const double tmpvariance = pow(segmentWheelSummary->getBinError(sector, station), 2);
130 
131  if (tmpefficiency < 0.2 || tmpvariance == 0) {
132  nFailingChambers++;
133  continue;
134  }
135 
136  meaneff += tmpefficiency / tmpvariance;
137  errorsum += 1. / tmpvariance;
138 
139  LogTrace("DTDQM|DTMonitorClient|DTChamberEfficiencyClient")
140  << "Wheel: " << wheel << " Stat: " << station << " Sect: " << sector << " status: " << meaneff / errorsum
141  << endl;
142  }
143 
144  if (sector == 4 || sector == 10) {
145  int whichSector = (sector == 4) ? 13 : 14;
146 
147  const double tmpefficiency = segmentWheelSummary->getBinContent(whichSector, 4);
148  const double tmpvariance = pow(segmentWheelSummary->getBinError(whichSector, 4), 2);
149 
150  if (tmpefficiency > 0.2 && tmpvariance != 0) {
151  meaneff += tmpefficiency / tmpvariance;
152  errorsum += 1. / tmpvariance;
153  } else
154  nFailingChambers++;
155  }
156 
157  double eff_result = 0;
158  if (errorsum != 0)
159  eff_result = meaneff / errorsum;
160 
161  if (nFailingChambers != 0) {
162  if (sector != 4 && sector != 10)
163  eff_result = eff_result * (4. - nFailingChambers) / 4.;
164  else
165  eff_result = eff_result * (5. - nFailingChambers) / 5.;
166  }
167 
168  if (eff_result > 0.7)
170  else if (eff_result < 0.7 && eff_result > 0.5)
172  else if (eff_result < 0.5 && eff_result > 0.3)
174  else if (eff_result < 0.3 && eff_result > 0.)
176  else
178  }
179  }
180  }
181  return;
182 }
Log< level::Info, true > LogVerbatim
#define LogTrace(id)
std::map< int, MonitorElement * > EffDistrPerWh
void Fill(long long x)
virtual TH2F * getTH2F() const
virtual void Reset()
Remove all data from the ME, keept the empty histogram with all its settings.
T sqrt(T t)
Definition: SSEVec.h:19
virtual int getNbinsY() const
get # of bins in Y-axis
void bookHistos(DQMStore::IBooker &)
book the report summary
virtual void setBinContent(int binx, double content)
set content of bin (1-D)
MonitorElement * summaryHistos[5][2]
virtual MonitorElement * get(std::string const &fullpath) const
Definition: DQMStore.cc:697
virtual int getNbinsX() const
get # of bins in X-axis
virtual double getBinError(int binx) const
get uncertainty on content of bin (1-D) - See TH1::GetBinError for details
virtual void setBinError(int binx, double error)
set uncertainty on content of bin (1-D)
Log< level::Warning, false > LogWarning
Power< A, B >::type pow(const A &a, const B &b)
Definition: Power.h:29
virtual double getBinContent(int binx) const
get content of bin (1-D)

◆ dqmEndLuminosityBlock()

void DTChamberEfficiencyClient::dqmEndLuminosityBlock ( DQMStore::IBooker ibooker,
DQMStore::IGetter igetter,
edm::LuminosityBlock const &  lumiSeg,
edm::EventSetup const &  setup 
)
overrideprotectedvirtual

Reimplemented from DQMEDHarvester.

Definition at line 44 of file DTChamberEfficiencyClient.cc.

47  {
48  LogVerbatim("DTDQM|DTMonitorClient|DTChamberEfficiencyClient") << "DTChamberEfficiencyClient: endluminosityBlock";
49 }
Log< level::Info, true > LogVerbatim

Member Data Documentation

◆ EffDistrPerWh

std::map<int, MonitorElement *> DTChamberEfficiencyClient::EffDistrPerWh
private

Definition at line 73 of file DTChamberEfficiencyClient.h.

Referenced by bookHistos(), and dqmEndJob().

◆ globalEffDistr

MonitorElement* DTChamberEfficiencyClient::globalEffDistr
private

Definition at line 72 of file DTChamberEfficiencyClient.h.

Referenced by bookHistos(), and dqmEndJob().

◆ globalEffSummary

MonitorElement* DTChamberEfficiencyClient::globalEffSummary
private

Definition at line 70 of file DTChamberEfficiencyClient.h.

Referenced by bookHistos(), and dqmEndJob().

◆ muonGeom

const DTGeometry* DTChamberEfficiencyClient::muonGeom
private

Definition at line 66 of file DTChamberEfficiencyClient.h.

Referenced by beginRun().

◆ muonGeomToken_

edm::ESGetToken<DTGeometry, MuonGeometryRecord> DTChamberEfficiencyClient::muonGeomToken_
private

Definition at line 65 of file DTChamberEfficiencyClient.h.

Referenced by beginRun().

◆ nLumiSegs

unsigned int DTChamberEfficiencyClient::nLumiSegs
private

Definition at line 62 of file DTChamberEfficiencyClient.h.

◆ prescaleFactor

int DTChamberEfficiencyClient::prescaleFactor
private

Definition at line 63 of file DTChamberEfficiencyClient.h.

Referenced by DTChamberEfficiencyClient().

◆ summaryHistos

MonitorElement* DTChamberEfficiencyClient::summaryHistos[5][2]
private

Definition at line 69 of file DTChamberEfficiencyClient.h.

Referenced by bookHistos(), and dqmEndJob().