CMS 3D CMS Logo

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

#include <L1TGMTClient.h>

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

 L1TGMTClient (const edm::ParameterSet &)
 Constructor. More...
 
 ~L1TGMTClient () 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 ()
 
 DQMEDHarvester (edm::ParameterSet const &iConfig)
 
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::vector< ModuleDescription const * > &modules, 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 &ibooker, DQMStore::IGetter &igetter) override
 
void dqmEndLuminosityBlock (DQMStore::IBooker &ibooker, DQMStore::IGetter &igetter, const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &evSetup) 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

MonitorElementbookClone1D (DQMStore::IBooker &ibooker, DQMStore::IGetter &igetter, const std::string &name, const std::string &title, const std::string &hrefName)
 
MonitorElementbookClone1DVB (DQMStore::IBooker &ibooker, DQMStore::IGetter &igetter, const std::string &name, const std::string &title, const std::string &hrefName)
 
MonitorElementbookClone2D (DQMStore::IBooker &ibooker, DQMStore::IGetter &igetter, const std::string &name, const std::string &title, const std::string &hrefName)
 
TH1F * get1DHisto (std::string meName, DQMStore::IGetter &igetter)
 
TH2F * get2DHisto (std::string meName, DQMStore::IGetter &igetter)
 
void initialize ()
 
void makeEfficiency1D (DQMStore::IBooker &ibooker, DQMStore::IGetter &igetter, MonitorElement *meeff, std::string heName, std::string hiName)
 
void makeEfficiency2D (DQMStore::IBooker &ibooker, DQMStore::IGetter &igetter, MonitorElement *meeff, std::string heName, std::string hiName)
 
void makeRatio1D (DQMStore::IBooker &ibooker, DQMStore::IGetter &igetter, MonitorElement *mer, std::string h1Name, std::string h2Name)
 
void processHistograms (DQMStore::IBooker &ibooker, DQMStore::IGetter &igetter)
 

Private Attributes

MonitorElementeff_eta_dtcsc
 
MonitorElementeff_eta_rpc
 
MonitorElementeff_etaphi_dtcsc
 
MonitorElementeff_etaphi_rpc
 
MonitorElementeff_phi_dtcsc
 
MonitorElementeff_phi_rpc
 
std::string input_dir_
 
bool m_runInEndJob
 
bool m_runInEndLumi
 
bool m_runInEndRun
 
bool m_runInEventLoop
 
std::string monitorName_
 
std::string output_dir_
 
edm::ParameterSet parameters_
 

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

Definition at line 12 of file L1TGMTClient.h.

Constructor & Destructor Documentation

◆ L1TGMTClient()

L1TGMTClient::L1TGMTClient ( const edm::ParameterSet ps)

Constructor.

Definition at line 10 of file L1TGMTClient.cc.

10  {
11  parameters_ = ps;
12  initialize();
13 }

References initialize(), and parameters_.

◆ ~L1TGMTClient()

L1TGMTClient::~L1TGMTClient ( )
override

Destructor.

Definition at line 15 of file L1TGMTClient.cc.

15 { LogDebug("TriggerDQM") << "[TriggerDQM]: ending... "; }

References LogDebug.

Member Function Documentation

◆ bookClone1D()

L1TGMTClient::MonitorElement * L1TGMTClient::bookClone1D ( DQMStore::IBooker ibooker,
DQMStore::IGetter igetter,
const std::string &  name,
const std::string &  title,
const std::string &  hrefName 
)
private

Definition at line 219 of file L1TGMTClient.cc.

223  {
225 
226  TH1F* href = get1DHisto(input_dir_ + "/" + hrefName, igetter);
227 
228  if (href) {
229  LogDebug("TriggerDQM") << "\nL1TGMTClient::bookClone1D: booking histogram " << hrefName << std::endl;
230  const unsigned nbx = href->GetNbinsX();
231  const double xmin = href->GetXaxis()->GetXmin();
232  const double xmax = href->GetXaxis()->GetXmax();
233  ibooker.setCurrentFolder(output_dir_);
234  me = ibooker.book1D(name, title, nbx, xmin, xmax);
235  } else {
236  LogDebug("TriggerDQM") << "\nL1TGMTClient::bookClone1D: not able to clone histogram " << hrefName << std::endl;
237  me = nullptr;
238  }
239 
240  return me;
241 }

References dqm::implementation::IBooker::book1D(), get1DHisto(), postprocess-scan-build::href, input_dir_, LogDebug, hlt_dqm_clientPB-live_cfg::me, Skims_PA_cff::name, output_dir_, dqm::implementation::NavigatorBase::setCurrentFolder(), runGCPTkAlMap::title, TrackerOfflineValidation_Dqm_cff::xmax, and TrackerOfflineValidation_Dqm_cff::xmin.

Referenced by dqmEndJob().

◆ bookClone1DVB()

L1TGMTClient::MonitorElement * L1TGMTClient::bookClone1DVB ( DQMStore::IBooker ibooker,
DQMStore::IGetter igetter,
const std::string &  name,
const std::string &  title,
const std::string &  hrefName 
)
private

Definition at line 244 of file L1TGMTClient.cc.

248  {
250 
251  TH1F* href = get1DHisto(input_dir_ + "/" + hrefName, igetter);
252 
253  if (href) {
254  LogDebug("TriggerDQM") << "\nL1TGMTClient::bookClone1DVB: booking histogram " << hrefName << std::endl;
255  int nbx = href->GetNbinsX();
256  if (nbx > 99)
257  nbx = 99;
258  float xbins[100];
259  for (int i = 0; i < nbx; i++) {
260  xbins[i] = href->GetBinLowEdge(i + 1);
261  }
262  xbins[nbx] = href->GetXaxis()->GetXmax();
263 
264  ibooker.setCurrentFolder(output_dir_);
265  me = ibooker.book1D(name, title, nbx, xbins);
266 
267  } else {
268  LogDebug("TriggerDQM") << "\nL1TGMTClient::bookClone1DVB: not able to clone histogram " << hrefName << std::endl;
269  me = nullptr;
270  }
271 
272  return me;
273 }

References dqm::implementation::IBooker::book1D(), get1DHisto(), postprocess-scan-build::href, mps_fire::i, input_dir_, LogDebug, hlt_dqm_clientPB-live_cfg::me, Skims_PA_cff::name, output_dir_, dqm::implementation::NavigatorBase::setCurrentFolder(), runGCPTkAlMap::title, and fw3dlego::xbins.

Referenced by dqmEndJob().

◆ bookClone2D()

L1TGMTClient::MonitorElement * L1TGMTClient::bookClone2D ( DQMStore::IBooker ibooker,
DQMStore::IGetter igetter,
const std::string &  name,
const std::string &  title,
const std::string &  hrefName 
)
private

Definition at line 276 of file L1TGMTClient.cc.

280  {
282 
283  TH2F* href = get2DHisto(input_dir_ + "/" + hrefName, igetter);
284 
285  if (href) {
286  LogDebug("TriggerDQM") << "\nL1TGMTClient::bookClone2D: booking histogram " << hrefName << std::endl;
287  const unsigned nbx = href->GetNbinsX();
288  const double xmin = href->GetXaxis()->GetXmin();
289  const double xmax = href->GetXaxis()->GetXmax();
290  const unsigned nby = href->GetNbinsY();
291  const double ymin = href->GetYaxis()->GetXmin();
292  const double ymax = href->GetYaxis()->GetXmax();
293  ibooker.setCurrentFolder(output_dir_);
294  me = ibooker.book2D(name, title, nbx, xmin, xmax, nby, ymin, ymax);
295  } else {
296  LogDebug("TriggerDQM") << "\nL1TGMTClient::bookClone2D: not able to clone histogram " << hrefName << std::endl;
297  me = nullptr;
298  }
299 
300  return me;
301 }

References dqm::implementation::IBooker::book2D(), get2DHisto(), postprocess-scan-build::href, input_dir_, LogDebug, hlt_dqm_clientPB-live_cfg::me, Skims_PA_cff::name, output_dir_, dqm::implementation::NavigatorBase::setCurrentFolder(), runGCPTkAlMap::title, TrackerOfflineValidation_Dqm_cff::xmax, TrackerOfflineValidation_Dqm_cff::xmin, L1TOccupancyClient_cfi::ymax, and L1TOccupancyClient_cfi::ymin.

Referenced by dqmEndJob().

◆ dqmEndJob()

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

Implements DQMEDHarvester.

Definition at line 36 of file L1TGMTClient.cc.

36  {
37  // booking histograms in the output_dir_
38 
40 
41  eff_eta_dtcsc = bookClone1DVB(ibooker, igetter, "eff_eta_dtcsc", "efficiency DTCSC vs eta", "eta_DTCSC_and_RPC");
42 
43  if (eff_eta_dtcsc != nullptr) {
44  eff_eta_dtcsc->setAxisTitle("eta", 1);
45  if (eff_eta_dtcsc->getTH1F()->GetSumw2N() == 0)
47  }
48 
49  eff_eta_rpc = bookClone1DVB(ibooker, igetter, "eff_eta_rpc", "efficiency RPC vs eta", "eta_DTCSC_and_RPC");
50 
51  if (eff_eta_rpc != nullptr) {
52  eff_eta_rpc->setAxisTitle("eta", 1);
53  if (eff_eta_rpc->getTH1F()->GetSumw2N() == 0)
55  }
56 
57  eff_phi_dtcsc = bookClone1D(ibooker, igetter, "eff_phi_dtcsc", "efficiency DTCSC vs phi", "phi_DTCSC_and_RPC");
58 
59  if (eff_phi_dtcsc != nullptr) {
60  eff_phi_dtcsc->setAxisTitle("phi (deg)", 1);
61  if (eff_phi_dtcsc->getTH1F()->GetSumw2N() == 0)
63  }
64 
65  eff_phi_rpc = bookClone1D(ibooker, igetter, "eff_phi_rpc", "efficiency RPC vs phi", "phi_DTCSC_and_RPC");
66 
67  if (eff_phi_rpc != nullptr) {
68  eff_phi_rpc->setAxisTitle("phi (deg)", 1);
69  if (eff_phi_rpc->getTH1F()->GetSumw2N() == 0)
71  }
72 
74  bookClone2D(ibooker, igetter, "eff_etaphi_dtcsc", "efficiency DTCSC vs eta and phi", "etaphi_DTCSC_and_RPC");
75 
76  if (eff_etaphi_dtcsc != nullptr) {
77  eff_etaphi_dtcsc->setAxisTitle("eta", 1);
78  eff_etaphi_dtcsc->setAxisTitle("phi (deg)", 2);
79  if (eff_etaphi_dtcsc->getTH2F()->GetSumw2N() == 0)
81  }
82 
84  bookClone2D(ibooker, igetter, "eff_etaphi_rpc", "efficiency RPC vs eta and phi", "etaphi_DTCSC_and_RPC");
85 
86  if (eff_etaphi_rpc != nullptr) {
87  eff_etaphi_rpc->setAxisTitle("eta", 1);
88  eff_etaphi_rpc->setAxisTitle("phi (deg)", 2);
89  if (eff_etaphi_rpc->getTH2F()->GetSumw2N() == 0)
91  }
92 
93  processHistograms(ibooker, igetter);
94 }

References bookClone1D(), bookClone1DVB(), bookClone2D(), eff_eta_dtcsc, eff_eta_rpc, eff_etaphi_dtcsc, eff_etaphi_rpc, eff_phi_dtcsc, eff_phi_rpc, dqm::impl::MonitorElement::enableSumw2(), dqm::legacy::MonitorElement::getTH1F(), dqm::legacy::MonitorElement::getTH2F(), output_dir_, processHistograms(), dqm::impl::MonitorElement::setAxisTitle(), and dqm::implementation::NavigatorBase::setCurrentFolder().

◆ dqmEndLuminosityBlock()

void L1TGMTClient::dqmEndLuminosityBlock ( DQMStore::IBooker ibooker,
DQMStore::IGetter igetter,
const edm::LuminosityBlock lumiSeg,
const edm::EventSetup evSetup 
)
overrideprotectedvirtual

Reimplemented from DQMEDHarvester.

Definition at line 98 of file L1TGMTClient.cc.

101  {}

◆ get1DHisto()

TH1F * L1TGMTClient::get1DHisto ( std::string  meName,
DQMStore::IGetter igetter 
)
private

Definition at line 196 of file L1TGMTClient.cc.

196  {
197  MonitorElement* me_ = igetter.get(meName);
198 
199  if (!me_) {
200  LogDebug("TriggerDQM") << "\nL1TGMTClient: " << meName << " NOT FOUND.";
201  return nullptr;
202  }
203 
204  return me_->getTH1F();
205 }

References dqm::implementation::IGetter::get(), dqm::legacy::MonitorElement::getTH1F(), and LogDebug.

Referenced by bookClone1D(), bookClone1DVB(), makeEfficiency1D(), and makeRatio1D().

◆ get2DHisto()

TH2F * L1TGMTClient::get2DHisto ( std::string  meName,
DQMStore::IGetter igetter 
)
private

Definition at line 208 of file L1TGMTClient.cc.

208  {
209  MonitorElement* me_ = igetter.get(meName);
210 
211  if (!me_) {
212  LogDebug("TriggerDQM") << "\nL1TGMTClient: " << meName << " NOT FOUND.";
213  return nullptr;
214  }
215  return me_->getTH2F();
216 }

References dqm::implementation::IGetter::get(), dqm::legacy::MonitorElement::getTH2F(), and LogDebug.

Referenced by bookClone2D(), and makeEfficiency2D().

◆ initialize()

void L1TGMTClient::initialize ( )
private

Definition at line 18 of file L1TGMTClient.cc.

18  {
19  // base folder for the contents of this job
21  LogDebug("TriggerDQM") << "Monitor name = " << monitorName_ << std::endl;
22 
24  LogDebug("TriggerDQM") << "DQM output dir = " << output_dir_ << std::endl;
25 
27  LogDebug("TriggerDQM") << "DQM input dir = " << input_dir_ << std::endl;
28 
29  m_runInEventLoop = parameters_.getUntrackedParameter<bool>("runInEventLoop", false);
30  m_runInEndLumi = parameters_.getUntrackedParameter<bool>("runInEndLumi", false);
31  m_runInEndRun = parameters_.getUntrackedParameter<bool>("runInEndRun", false);
32  m_runInEndJob = parameters_.getUntrackedParameter<bool>("runInEndJob", false);
33 }

References edm::ParameterSet::getUntrackedParameter(), input_dir_, LogDebug, m_runInEndJob, m_runInEndLumi, m_runInEndRun, m_runInEventLoop, monitorName_, output_dir_, parameters_, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by L1TGMTClient().

◆ makeEfficiency1D()

void L1TGMTClient::makeEfficiency1D ( DQMStore::IBooker ibooker,
DQMStore::IGetter igetter,
MonitorElement meeff,
std::string  heName,
std::string  hiName 
)
private

Definition at line 142 of file L1TGMTClient.cc.

146  {
147  igetter.setCurrentFolder(output_dir_);
148 
149  TH1F* he = get1DHisto(input_dir_ + "/" + heName, igetter);
150  TH1F* hi = get1DHisto(input_dir_ + "/" + hiName, igetter);
151 
152  if (meeff == nullptr) {
153  LogDebug("TriggerDQM") << "L1TGMTClient::makeEfficiency1D: monitoring element zero, not able to retrieve histogram"
154  << std::endl;
155  return;
156  }
157 
158  TH1F* heff = meeff->getTH1F();
159 
160  if (heff && he && hi) {
161  TH1F* hall = (TH1F*)he->Clone("hall");
162  hall->Add(hi);
163  heff->Divide(he, hall, 1., 1., "B");
164  delete hall;
165  }
166 }

References get1DHisto(), dqm::legacy::MonitorElement::getTH1F(), hcalSimParameters_cfi::he, input_dir_, LogDebug, output_dir_, and dqm::implementation::NavigatorBase::setCurrentFolder().

Referenced by processHistograms().

◆ makeEfficiency2D()

void L1TGMTClient::makeEfficiency2D ( DQMStore::IBooker ibooker,
DQMStore::IGetter igetter,
MonitorElement meeff,
std::string  heName,
std::string  hiName 
)
private

Definition at line 169 of file L1TGMTClient.cc.

173  {
174  igetter.setCurrentFolder(output_dir_);
175 
176  TH2F* he = get2DHisto(input_dir_ + "/" + heName, igetter);
177  TH2F* hi = get2DHisto(input_dir_ + "/" + hiName, igetter);
178 
179  if (meeff == nullptr) {
180  LogDebug("TriggerDQM")
181  << "\nL1TGMTClient::makeEfficiency2D: monitoring element zero, not able to retrieve histogram" << std::endl;
182  return;
183  }
184 
185  TH2F* heff = meeff->getTH2F();
186 
187  if (heff && he && hi) {
188  TH2F* hall = (TH2F*)he->Clone("hall");
189  hall->Add(hi);
190  heff->Divide(he, hall, 1., 1., "B");
191  delete hall;
192  }
193 }

References get2DHisto(), dqm::legacy::MonitorElement::getTH2F(), hcalSimParameters_cfi::he, input_dir_, LogDebug, output_dir_, and dqm::implementation::NavigatorBase::setCurrentFolder().

Referenced by processHistograms().

◆ makeRatio1D()

void L1TGMTClient::makeRatio1D ( DQMStore::IBooker ibooker,
DQMStore::IGetter igetter,
MonitorElement mer,
std::string  h1Name,
std::string  h2Name 
)
private

Definition at line 118 of file L1TGMTClient.cc.

122  {
123  igetter.setCurrentFolder(output_dir_);
124 
125  TH1F* h1 = get1DHisto(input_dir_ + "/" + h1Name, igetter);
126  TH1F* h2 = get1DHisto(input_dir_ + "/" + h2Name, igetter);
127 
128  if (mer == nullptr) {
129  LogDebug("TriggerDQM") << "\nL1TGMTClient::makeRatio1D: monitoring element zero, not able to retrieve histogram"
130  << std::endl;
131  return;
132  }
133 
134  TH1F* hr = mer->getTH1F();
135 
136  if (hr && h1 && h2) {
137  hr->Divide(h1, h2, 1., 1., " ");
138  }
139 }

References get1DHisto(), dqm::legacy::MonitorElement::getTH1F(), input_dir_, LogDebug, output_dir_, and dqm::implementation::NavigatorBase::setCurrentFolder().

◆ processHistograms()

void L1TGMTClient::processHistograms ( DQMStore::IBooker ibooker,
DQMStore::IGetter igetter 
)
private

Definition at line 104 of file L1TGMTClient.cc.

104  {
105  LogDebug("TriggerDQM") << "L1TGMTClient: processing..." << std::endl;
106 
107  makeEfficiency1D(ibooker, igetter, eff_eta_dtcsc, "eta_DTCSC_and_RPC", "eta_RPC_only");
108  makeEfficiency1D(ibooker, igetter, eff_eta_rpc, "eta_DTCSC_and_RPC", "eta_DTCSC_only");
109 
110  makeEfficiency1D(ibooker, igetter, eff_phi_dtcsc, "phi_DTCSC_and_RPC", "phi_RPC_only");
111  makeEfficiency1D(ibooker, igetter, eff_phi_rpc, "phi_DTCSC_and_RPC", "phi_DTCSC_only");
112 
113  makeEfficiency2D(ibooker, igetter, eff_etaphi_dtcsc, "etaphi_DTCSC_and_RPC", "etaphi_RPC_only");
114  makeEfficiency2D(ibooker, igetter, eff_etaphi_rpc, "etaphi_DTCSC_and_RPC", "etaphi_DTCSC_only");
115 }

References eff_eta_dtcsc, eff_eta_rpc, eff_etaphi_dtcsc, eff_etaphi_rpc, eff_phi_dtcsc, eff_phi_rpc, LogDebug, makeEfficiency1D(), and makeEfficiency2D().

Referenced by dqmEndJob().

Member Data Documentation

◆ eff_eta_dtcsc

MonitorElement* L1TGMTClient::eff_eta_dtcsc
private

Definition at line 75 of file L1TGMTClient.h.

Referenced by dqmEndJob(), and processHistograms().

◆ eff_eta_rpc

MonitorElement* L1TGMTClient::eff_eta_rpc
private

Definition at line 76 of file L1TGMTClient.h.

Referenced by dqmEndJob(), and processHistograms().

◆ eff_etaphi_dtcsc

MonitorElement* L1TGMTClient::eff_etaphi_dtcsc
private

Definition at line 79 of file L1TGMTClient.h.

Referenced by dqmEndJob(), and processHistograms().

◆ eff_etaphi_rpc

MonitorElement* L1TGMTClient::eff_etaphi_rpc
private

Definition at line 80 of file L1TGMTClient.h.

Referenced by dqmEndJob(), and processHistograms().

◆ eff_phi_dtcsc

MonitorElement* L1TGMTClient::eff_phi_dtcsc
private

Definition at line 77 of file L1TGMTClient.h.

Referenced by dqmEndJob(), and processHistograms().

◆ eff_phi_rpc

MonitorElement* L1TGMTClient::eff_phi_rpc
private

Definition at line 78 of file L1TGMTClient.h.

Referenced by dqmEndJob(), and processHistograms().

◆ input_dir_

std::string L1TGMTClient::input_dir_
private

◆ m_runInEndJob

bool L1TGMTClient::m_runInEndJob
private

Definition at line 72 of file L1TGMTClient.h.

Referenced by initialize().

◆ m_runInEndLumi

bool L1TGMTClient::m_runInEndLumi
private

Definition at line 70 of file L1TGMTClient.h.

Referenced by initialize().

◆ m_runInEndRun

bool L1TGMTClient::m_runInEndRun
private

Definition at line 71 of file L1TGMTClient.h.

Referenced by initialize().

◆ m_runInEventLoop

bool L1TGMTClient::m_runInEventLoop
private

Definition at line 69 of file L1TGMTClient.h.

Referenced by initialize().

◆ monitorName_

std::string L1TGMTClient::monitorName_
private

Definition at line 65 of file L1TGMTClient.h.

Referenced by initialize().

◆ output_dir_

std::string L1TGMTClient::output_dir_
private

◆ parameters_

edm::ParameterSet L1TGMTClient::parameters_
private
L1TGMTClient::eff_etaphi_rpc
MonitorElement * eff_etaphi_rpc
Definition: L1TGMTClient.h:80
runGCPTkAlMap.title
string title
Definition: runGCPTkAlMap.py:94
fw3dlego::xbins
const double xbins[]
Definition: fw3dlego_xbins.cc:16
mps_fire.i
i
Definition: mps_fire.py:428
L1TGMTClient::eff_eta_dtcsc
MonitorElement * eff_eta_dtcsc
Definition: L1TGMTClient.h:75
L1TGMTClient::bookClone1D
MonitorElement * bookClone1D(DQMStore::IBooker &ibooker, DQMStore::IGetter &igetter, const std::string &name, const std::string &title, const std::string &hrefName)
Definition: L1TGMTClient.cc:219
L1TGMTClient::eff_phi_dtcsc
MonitorElement * eff_phi_dtcsc
Definition: L1TGMTClient.h:77
L1TGMTClient::bookClone1DVB
MonitorElement * bookClone1DVB(DQMStore::IBooker &ibooker, DQMStore::IGetter &igetter, const std::string &name, const std::string &title, const std::string &hrefName)
Definition: L1TGMTClient.cc:244
dqm::implementation::NavigatorBase::setCurrentFolder
virtual void setCurrentFolder(std::string const &fullpath)
Definition: DQMStore.cc:32
dqm::legacy::MonitorElement
Definition: MonitorElement.h:461
L1TGMTClient::input_dir_
std::string input_dir_
Definition: L1TGMTClient.h:66
edm::ParameterSet::getUntrackedParameter
T getUntrackedParameter(std::string const &, T const &) const
L1TGMTClient::eff_eta_rpc
MonitorElement * eff_eta_rpc
Definition: L1TGMTClient.h:76
dqm::legacy::MonitorElement::getTH1F
virtual TH1F * getTH1F() const
Definition: MonitorElement.h:478
L1TGMTClient::m_runInEndLumi
bool m_runInEndLumi
Definition: L1TGMTClient.h:70
L1TGMTClient::bookClone2D
MonitorElement * bookClone2D(DQMStore::IBooker &ibooker, DQMStore::IGetter &igetter, const std::string &name, const std::string &title, const std::string &hrefName)
Definition: L1TGMTClient.cc:276
L1TOccupancyClient_cfi.ymax
ymax
Definition: L1TOccupancyClient_cfi.py:43
L1TGMTClient::m_runInEndJob
bool m_runInEndJob
Definition: L1TGMTClient.h:72
L1TGMTClient::get1DHisto
TH1F * get1DHisto(std::string meName, DQMStore::IGetter &igetter)
Definition: L1TGMTClient.cc:196
L1TGMTClient::makeEfficiency2D
void makeEfficiency2D(DQMStore::IBooker &ibooker, DQMStore::IGetter &igetter, MonitorElement *meeff, std::string heName, std::string hiName)
Definition: L1TGMTClient.cc:169
L1TGMTClient::m_runInEndRun
bool m_runInEndRun
Definition: L1TGMTClient.h:71
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
L1TGMTClient::processHistograms
void processHistograms(DQMStore::IBooker &ibooker, DQMStore::IGetter &igetter)
Definition: L1TGMTClient.cc:104
L1TGMTClient::initialize
void initialize()
Definition: L1TGMTClient.cc:18
LogDebug
#define LogDebug(id)
Definition: MessageLogger.h:223
L1TGMTClient::get2DHisto
TH2F * get2DHisto(std::string meName, DQMStore::IGetter &igetter)
Definition: L1TGMTClient.cc:208
L1TGMTClient::makeEfficiency1D
void makeEfficiency1D(DQMStore::IBooker &ibooker, DQMStore::IGetter &igetter, MonitorElement *meeff, std::string heName, std::string hiName)
Definition: L1TGMTClient.cc:142
L1TGMTClient::monitorName_
std::string monitorName_
Definition: L1TGMTClient.h:65
L1TGMTClient::eff_etaphi_dtcsc
MonitorElement * eff_etaphi_dtcsc
Definition: L1TGMTClient.h:79
L1TGMTClient::output_dir_
std::string output_dir_
Definition: L1TGMTClient.h:67
hi
Definition: EPCuts.h:4
L1TOccupancyClient_cfi.ymin
ymin
Definition: L1TOccupancyClient_cfi.py:43
hcalSimParameters_cfi.he
he
Definition: hcalSimParameters_cfi.py:79
TrackerOfflineValidation_Dqm_cff.xmax
xmax
Definition: TrackerOfflineValidation_Dqm_cff.py:11
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
postprocess-scan-build.href
href
Definition: postprocess-scan-build.py:16
L1TGMTClient::parameters_
edm::ParameterSet parameters_
Definition: L1TGMTClient.h:64
dqm::implementation::IGetter::get
virtual MonitorElement * get(std::string const &fullpath) const
Definition: DQMStore.cc:651
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
L1TGMTClient::eff_phi_rpc
MonitorElement * eff_phi_rpc
Definition: L1TGMTClient.h:78
L1TGMTClient::m_runInEventLoop
bool m_runInEventLoop
Definition: L1TGMTClient.h:69
dqm::impl::MonitorElement::enableSumw2
virtual void enableSumw2()
Definition: MonitorElement.cc:872
TrackerOfflineValidation_Dqm_cff.xmin
xmin
Definition: TrackerOfflineValidation_Dqm_cff.py:10
hlt_dqm_clientPB-live_cfg.me
me
Definition: hlt_dqm_clientPB-live_cfg.py:61
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
dqm::implementation::IBooker::book1D
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
Definition: DQMStore.h:98
dqm::legacy::MonitorElement::getTH2F
virtual TH2F * getTH2F() const
Definition: MonitorElement.h:490