CMS 3D CMS Logo

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

#include <RPCDqmClient.h>

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

 RPCDqmClient (const edm::ParameterSet &ps)
 Constructor. More...
 
 ~RPCDqmClient () override=default
 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 beginJob () override
 
void dqmEndJob (DQMStore::IBooker &, DQMStore::IGetter &) override
 
void dqmEndLuminosityBlock (DQMStore::IBooker &, DQMStore::IGetter &, edm::LuminosityBlock const &, edm::EventSetup const &) override
 
void getMonitorElements (DQMStore::IGetter &)
 
void getRPCdetId (const edm::EventSetup &)
 
void makeClientMap (const edm::ParameterSet &parameters_)
 
- 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::vector< std::string > clientHisto_
 
std::vector< std::string > clientList_
 
std::vector< std::unique_ptr< RPCClient > > clientModules_
 
std::vector< std::string > clientNames_
 
std::vector< int > clientTag_
 
bool enableDQMClients_
 
std::string globalFolder_
 
int lumiCounter_
 
int minimumEvents_
 
std::vector< RPCDetIdmyDetIds_
 
int numberOfDisks_
 
int numberOfRings_
 
int numLumBlock_
 
bool offlineDQM_
 
std::string prefixDir_
 
int prescaleGlobalFactor_
 
MonitorElementRPCEvents_
 
edm::ESGetToken< RPCGeometry, MuonGeometryRecordrpcGeomToken_
 
bool useRollInfo_
 

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 16 of file RPCDqmClient.h.

Constructor & Destructor Documentation

◆ RPCDqmClient()

RPCDqmClient::RPCDqmClient ( const edm::ParameterSet ps)

Constructor.

Definition at line 21 of file RPCDqmClient.cc.

References clientList_, enableDQMClients_, globalFolder_, lumiCounter_, makeClientMap(), minimumEvents_, numberOfDisks_, numberOfRings_, offlineDQM_, prefixDir_, prescaleGlobalFactor_, muonDTDigis_cfi::pset, rpcGeomToken_, AlCaHLTBitMon_QueryRunRegistry::string, and useRollInfo_.

21  {
22  edm::LogVerbatim("rpcdqmclient") << "[RPCDqmClient]: Constructor";
23 
24  offlineDQM_ = pset.getUntrackedParameter<bool>("OfflineDQM", true);
25  useRollInfo_ = pset.getUntrackedParameter<bool>("UseRollInfo", false);
26  //check enabling
27  enableDQMClients_ = pset.getUntrackedParameter<bool>("EnableRPCDqmClient", true);
28  minimumEvents_ = pset.getUntrackedParameter<int>("MinimumRPCEvents", 10000);
29  numberOfDisks_ = pset.getUntrackedParameter<int>("NumberOfEndcapDisks", 4);
30  numberOfRings_ = pset.getUntrackedParameter<int>("NumberOfEndcapRings", 2);
31 
32  std::string subsystemFolder = pset.getUntrackedParameter<std::string>("RPCFolder", "RPC");
33  std::string recHitTypeFolder = pset.getUntrackedParameter<std::string>("RecHitTypeFolder", "AllHits");
34  std::string summaryFolder = pset.getUntrackedParameter<std::string>("SummaryFolder", "SummaryHistograms");
35 
36  prefixDir_ = subsystemFolder + "/" + recHitTypeFolder;
37  globalFolder_ = subsystemFolder + "/" + recHitTypeFolder + "/" + summaryFolder;
38 
39  //get prescale factor
40  prescaleGlobalFactor_ = pset.getUntrackedParameter<int>("DiagnosticGlobalPrescale", 5);
41 
42  //make default client list
43  clientList_ = {{"RPCMultiplicityTest", "RPCDeadChannelTest", "RPCClusterSizeTest"}};
44  clientList_ = pset.getUntrackedParameter<std::vector<std::string> >("RPCDqmClientList", clientList_);
45 
46  //get all the possible RPC DQM clients
47  this->makeClientMap(pset);
48 
49  //clear counters
50  lumiCounter_ = 0;
51 
52  rpcGeomToken_ = esConsumes<edm::Transition::EndLuminosityBlock>();
53 }
Log< level::Info, true > LogVerbatim
std::string prefixDir_
Definition: RPCDqmClient.h:42
int numberOfRings_
Definition: RPCDqmClient.h:39
std::vector< std::string > clientList_
Definition: RPCDqmClient.h:44
edm::ESGetToken< RPCGeometry, MuonGeometryRecord > rpcGeomToken_
Definition: RPCDqmClient.h:53
void makeClientMap(const edm::ParameterSet &parameters_)
bool useRollInfo_
Definition: RPCDqmClient.h:41
std::string globalFolder_
Definition: RPCDqmClient.h:43
int numberOfDisks_
Definition: RPCDqmClient.h:39
int minimumEvents_
Definition: RPCDqmClient.h:38
bool enableDQMClients_
Definition: RPCDqmClient.h:41
int prescaleGlobalFactor_
Definition: RPCDqmClient.h:38
bool offlineDQM_
Definition: RPCDqmClient.h:37

◆ ~RPCDqmClient()

RPCDqmClient::~RPCDqmClient ( )
overridedefault

Destructor.

Member Function Documentation

◆ beginJob()

void RPCDqmClient::beginJob ( void  )
overrideprotectedvirtual

Reimplemented from edm::one::EDProducerBase.

Definition at line 55 of file RPCDqmClient.cc.

References clientModules_, enableDQMClients_, globalFolder_, and callgraph::module.

55  {
56  if (!enableDQMClients_) {
57  return;
58  };
59  edm::LogVerbatim("rpcdqmclient") << "[RPCDqmClient]: Begin Job";
60 
61  //Do whatever the begin jobs of all client modules do
62  for (auto& module : clientModules_) {
63  module->beginJob(globalFolder_);
64  }
65 }
Log< level::Info, true > LogVerbatim
std::vector< std::unique_ptr< RPCClient > > clientModules_
Definition: RPCDqmClient.h:49
std::string globalFolder_
Definition: RPCDqmClient.h:43
bool enableDQMClients_
Definition: RPCDqmClient.h:41

◆ dqmEndJob()

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

Implements DQMEDHarvester.

Definition at line 116 of file RPCDqmClient.cc.

References clientModules_, enableDQMClients_, dqm::impl::MonitorElement::getBinContent(), getMonitorElements(), minimumEvents_, callgraph::module, offlineDQM_, and RPCEvents_.

116  {
117  if (!enableDQMClients_) {
118  return;
119  }
120 
121  edm::LogVerbatim("rpcdqmclient") << "[RPCDqmClient]: End DQM Job";
122 
123  if (offlineDQM_) { // ...get chamber based histograms and pass them to the client modules
124  this->getMonitorElements(igetter);
125  }
126 
127  float rpcevents = minimumEvents_;
128  if (RPCEvents_) {
129  rpcevents = RPCEvents_->getBinContent(1);
130  }
131  if (rpcevents < minimumEvents_) {
132  return;
133  }
134 
135  edm::LogVerbatim("rpcdqmclient") << "[RPCDqmClient]: Client operations";
136  for (auto& module : clientModules_) {
137  module->clientOperation();
138  }
139 }
Log< level::Info, true > LogVerbatim
MonitorElement * RPCEvents_
Definition: RPCDqmClient.h:46
std::vector< std::unique_ptr< RPCClient > > clientModules_
Definition: RPCDqmClient.h:49
void getMonitorElements(DQMStore::IGetter &)
int minimumEvents_
Definition: RPCDqmClient.h:38
bool enableDQMClients_
Definition: RPCDqmClient.h:41
bool offlineDQM_
Definition: RPCDqmClient.h:37
virtual double getBinContent(int binx) const
get content of bin (1-D)

◆ dqmEndLuminosityBlock()

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

Reimplemented from DQMEDHarvester.

Definition at line 67 of file RPCDqmClient.cc.

References clientModules_, enableDQMClients_, dqm::impl::MonitorElement::getBinContent(), getMonitorElements(), getRPCdetId(), lumiCounter_, minimumEvents_, callgraph::module, myDetIds_, offlineDQM_, prescaleGlobalFactor_, and RPCEvents_.

70  {
71  if (!enableDQMClients_) {
72  return;
73  }
74  edm::LogVerbatim("rpcdqmclient") << "[RPCDqmClient]: End DQM LB";
75 
76  if (myDetIds_.empty()) {
77  //Get RPCdetId...
78 
79  this->getRPCdetId(c);
80 
81  //...book summary histograms
82  for (auto& module : clientModules_) {
83  module->myBooker(ibooker);
84  }
85  }
86 
87  if (!offlineDQM_) { //Do this only for the online
88 
89  if (lumiCounter_ == 0) { //only for the first lumi section do this...
90  // ...get chamber based histograms and pass them to the client modules
91  this->getMonitorElements(igetter);
92  }
93 
94  //Do not perform client oparations every lumi block
95  ++lumiCounter_;
97  return;
98  }
99 
100  //Check if there's enough statistics
101  float rpcevents = minimumEvents_;
102  if (RPCEvents_) {
103  rpcevents = RPCEvents_->getBinContent(1);
104  }
105  if (rpcevents < minimumEvents_) {
106  return;
107  }
108 
109  edm::LogVerbatim("rpcdqmclient") << "[RPCDqmClient]: Client operations";
110  for (auto& module : clientModules_) {
111  module->clientOperation();
112  }
113  } //end of online operations
114 }
Log< level::Info, true > LogVerbatim
MonitorElement * RPCEvents_
Definition: RPCDqmClient.h:46
std::vector< std::unique_ptr< RPCClient > > clientModules_
Definition: RPCDqmClient.h:49
void getMonitorElements(DQMStore::IGetter &)
void getRPCdetId(const edm::EventSetup &)
int minimumEvents_
Definition: RPCDqmClient.h:38
std::vector< RPCDetId > myDetIds_
Definition: RPCDqmClient.h:47
bool enableDQMClients_
Definition: RPCDqmClient.h:41
int prescaleGlobalFactor_
Definition: RPCDqmClient.h:38
bool offlineDQM_
Definition: RPCDqmClient.h:37
virtual double getBinContent(int binx) const
get content of bin (1-D)

◆ getMonitorElements()

void RPCDqmClient::getMonitorElements ( DQMStore::IGetter igetter)
protected

Definition at line 141 of file RPCDqmClient.cc.

References haddnano::cl, clientHisto_, clientModules_, printsummarytable::folder, RPCBookFolderStructure::folderStructure(), dqm-mbProfile::format, dqm::implementation::IGetter::get(), myDetIds_, RPCNameHelper::name(), numberOfDisks_, numberOfRings_, prefixDir_, HLT_2022v11_cff::region, relativeConstraints::ring, RPCEvents_, AlCaHLTBitMon_QueryRunRegistry::string, useRollInfo_, and makeMuonMisalignmentScenario::wheel.

Referenced by dqmEndJob(), and dqmEndLuminosityBlock().

141  {
142  std::vector<MonitorElement*> myMeVect;
143  std::vector<RPCDetId> myDetIds;
144 
145  //loop on all geometry and get all histos
146  for (auto& detId : myDetIds_) {
147  //Get name
148  const std::string rollName = RPCNameHelper::name(detId, useRollInfo_);
150 
151  //loop on clients
152  for (unsigned int cl = 0, nCL = clientModules_.size(); cl < nCL; ++cl) {
153  if (clientHisto_[cl] == "ClusterSize")
154  continue;
155 
156  MonitorElement* myMe = igetter.get(fmt::format("{}/{}/{}_{}", prefixDir_, folder, clientHisto_[cl], rollName));
157  if (!myMe)
158  continue;
159 
160  myMeVect.push_back(myMe);
161  myDetIds.push_back(detId);
162 
163  } //end loop on clients
164  } //end loop on all geometry and get all histos
165 
166  //Clustersize
167  std::vector<MonitorElement*> myMeVectCl;
168  const std::array<std::string, 4> chNames = {{"CH01-CH09", "CH10-CH18", "CH19-CH27", "CH28-CH36"}};
169 
170  //Retrieve barrel clustersize
171  for (int wheel = -2; wheel <= 2; wheel++) {
172  for (int sector = 1; sector <= 12; sector++) {
173  MonitorElement* myMeCl = igetter.get(fmt::format(
174  "{}/Barrel/Wheel_{}/SummaryBySectors/ClusterSize_Wheel_{}_Sector_{}", prefixDir_, wheel, wheel, sector));
175  myMeVectCl.push_back(myMeCl);
176  }
177  }
178  //Retrieve endcaps clustersize
179  for (int region = -1; region <= 1; region++) {
180  if (region == 0)
181  continue;
182 
183  std::string regionName = "Endcap-";
184  if (region == 1)
185  regionName = "Endcap+";
186 
187  for (int disk = 1; disk <= numberOfDisks_; disk++) {
188  for (int ring = numberOfRings_; ring <= 3; ring++) {
189  for (unsigned int ich = 0; ich < chNames.size(); ich++) {
190  MonitorElement* myMeCl =
191  igetter.get(fmt::format("{}/{}/Disk_{}/SummaryByRings/ClusterSize_Disk_{}_Ring_{}_{}",
192  prefixDir_,
193  regionName,
194  (region * disk),
195  (region * disk),
196  ring,
197  chNames[ich]));
198  myMeVectCl.push_back(myMeCl);
199  }
200  }
201  }
202  }
203 
204  RPCEvents_ = igetter.get(prefixDir_ + "/RPCEvents");
205  for (unsigned int cl = 0; cl < clientModules_.size(); ++cl) {
206  if (clientHisto_[cl] == "ClusterSize")
207  clientModules_[cl]->getMonitorElements(myMeVectCl, myDetIds, clientHisto_[cl]);
208  else
209  clientModules_[cl]->getMonitorElements(myMeVect, myDetIds, clientHisto_[cl]);
210  }
211 }
MonitorElement * RPCEvents_
Definition: RPCDqmClient.h:46
std::string prefixDir_
Definition: RPCDqmClient.h:42
std::vector< std::unique_ptr< RPCClient > > clientModules_
Definition: RPCDqmClient.h:49
int numberOfRings_
Definition: RPCDqmClient.h:39
std::vector< std::string > clientHisto_
Definition: RPCDqmClient.h:48
bool useRollInfo_
Definition: RPCDqmClient.h:41
int numberOfDisks_
Definition: RPCDqmClient.h:39
static std::string name(const RPCDetId &detId, const bool useRoll)
Definition: RPCNameHelper.cc:6
static std::string folderStructure(const RPCDetId &detId)
virtual MonitorElement * get(std::string const &fullpath) const
Definition: DQMStore.cc:673
std::vector< RPCDetId > myDetIds_
Definition: RPCDqmClient.h:47

◆ getRPCdetId()

void RPCDqmClient::getRPCdetId ( const edm::EventSetup eventSetup)
protected

Definition at line 213 of file RPCDqmClient.cc.

References options_cfi::eventSetup, myDetIds_, alignCSCRings::r, RPCChamber::rolls(), and rpcGeomToken_.

Referenced by dqmEndLuminosityBlock().

213  {
214  myDetIds_.clear();
215 
216  auto rpcGeo = eventSetup.getHandle(rpcGeomToken_);
217 
218  for (auto& det : rpcGeo->dets()) {
219  const RPCChamber* ch = dynamic_cast<const RPCChamber*>(det);
220  if (!ch)
221  continue;
222 
223  //Loop on rolls in given chamber
224  for (auto& r : ch->rolls()) {
225  myDetIds_.push_back(r->id());
226  }
227  }
228 }
edm::ESGetToken< RPCGeometry, MuonGeometryRecord > rpcGeomToken_
Definition: RPCDqmClient.h:53
std::vector< RPCDetId > myDetIds_
Definition: RPCDqmClient.h:47
const std::vector< const RPCRoll * > & rolls() const
Return the Rolls.
Definition: RPCChamber.cc:40

◆ makeClientMap()

void RPCDqmClient::makeClientMap ( const edm::ParameterSet parameters_)
protected

Definition at line 230 of file RPCDqmClient.cc.

References clientHisto_, clientList_, clientModules_, mps_fire::i, muonDTDigis_cfi::pset, RPC_Client_on_RootFile::RPCClusterSizeTest, RPC_Client_on_RootFile::RPCDeadChannelTest, RPC_Client_on_RootFile::RPCMultiplicityTest, RPC_Client_on_RootFile::RPCNoisyStripTest, and RPC_Client_on_RootFile::RPCOccupancyTest.

Referenced by RPCDqmClient().

230  {
231  for (unsigned int i = 0; i < clientList_.size(); i++) {
232  if (clientList_[i] == "RPCMultiplicityTest") {
233  clientHisto_.push_back("Multiplicity");
234  // clientTag_.push_back(rpcdqm::MULTIPLICITY);
235  clientModules_.emplace_back(new RPCMultiplicityTest(pset));
236  } else if (clientList_[i] == "RPCDeadChannelTest") {
237  clientHisto_.push_back("Occupancy");
238  clientModules_.emplace_back(new RPCDeadChannelTest(pset));
239  // clientTag_.push_back(rpcdqm::OCCUPANCY);
240  } else if (clientList_[i] == "RPCClusterSizeTest") {
241  clientHisto_.push_back("ClusterSize");
242  clientModules_.emplace_back(new RPCClusterSizeTest(pset));
243  // clientTag_.push_back(rpcdqm::CLUSTERSIZE);
244  } else if (clientList_[i] == "RPCOccupancyTest") {
245  clientHisto_.push_back("Occupancy");
246  clientModules_.emplace_back(new RPCOccupancyTest(pset));
247  // clientTag_.push_back(rpcdqm::OCCUPANCY);
248  } else if (clientList_[i] == "RPCNoisyStripTest") {
249  clientHisto_.push_back("Occupancy");
250  clientModules_.emplace_back(new RPCNoisyStripTest(pset));
251  //clientTag_.push_back(rpcdqm::OCCUPANCY);
252  }
253  }
254 
255  return;
256 }
std::vector< std::unique_ptr< RPCClient > > clientModules_
Definition: RPCDqmClient.h:49
std::vector< std::string > clientList_
Definition: RPCDqmClient.h:44
std::vector< std::string > clientHisto_
Definition: RPCDqmClient.h:48
RPCDeadChannelTest
RPC Client Modules #######################.

Member Data Documentation

◆ clientHisto_

std::vector<std::string> RPCDqmClient::clientHisto_
private

Definition at line 48 of file RPCDqmClient.h.

Referenced by getMonitorElements(), and makeClientMap().

◆ clientList_

std::vector<std::string> RPCDqmClient::clientList_
private

Definition at line 44 of file RPCDqmClient.h.

Referenced by makeClientMap(), and RPCDqmClient().

◆ clientModules_

std::vector<std::unique_ptr<RPCClient> > RPCDqmClient::clientModules_
private

◆ clientNames_

std::vector<std::string> RPCDqmClient::clientNames_
private

Definition at line 48 of file RPCDqmClient.h.

◆ clientTag_

std::vector<int> RPCDqmClient::clientTag_
private

Definition at line 51 of file RPCDqmClient.h.

◆ enableDQMClients_

bool RPCDqmClient::enableDQMClients_
private

Definition at line 41 of file RPCDqmClient.h.

Referenced by beginJob(), dqmEndJob(), dqmEndLuminosityBlock(), and RPCDqmClient().

◆ globalFolder_

std::string RPCDqmClient::globalFolder_
private

Definition at line 43 of file RPCDqmClient.h.

Referenced by beginJob(), and RPCDqmClient().

◆ lumiCounter_

int RPCDqmClient::lumiCounter_
private

Definition at line 45 of file RPCDqmClient.h.

Referenced by dqmEndLuminosityBlock(), and RPCDqmClient().

◆ minimumEvents_

int RPCDqmClient::minimumEvents_
private

Definition at line 38 of file RPCDqmClient.h.

Referenced by dqmEndJob(), dqmEndLuminosityBlock(), and RPCDqmClient().

◆ myDetIds_

std::vector<RPCDetId> RPCDqmClient::myDetIds_
private

Definition at line 47 of file RPCDqmClient.h.

Referenced by dqmEndLuminosityBlock(), getMonitorElements(), and getRPCdetId().

◆ numberOfDisks_

int RPCDqmClient::numberOfDisks_
private

Definition at line 39 of file RPCDqmClient.h.

Referenced by getMonitorElements(), and RPCDqmClient().

◆ numberOfRings_

int RPCDqmClient::numberOfRings_
private

Definition at line 39 of file RPCDqmClient.h.

Referenced by getMonitorElements(), and RPCDqmClient().

◆ numLumBlock_

int RPCDqmClient::numLumBlock_
private

Definition at line 38 of file RPCDqmClient.h.

◆ offlineDQM_

bool RPCDqmClient::offlineDQM_
private

Definition at line 37 of file RPCDqmClient.h.

Referenced by dqmEndJob(), dqmEndLuminosityBlock(), and RPCDqmClient().

◆ prefixDir_

std::string RPCDqmClient::prefixDir_
private

Definition at line 42 of file RPCDqmClient.h.

Referenced by getMonitorElements(), and RPCDqmClient().

◆ prescaleGlobalFactor_

int RPCDqmClient::prescaleGlobalFactor_
private

Definition at line 38 of file RPCDqmClient.h.

Referenced by dqmEndLuminosityBlock(), and RPCDqmClient().

◆ RPCEvents_

MonitorElement* RPCDqmClient::RPCEvents_
private

Definition at line 46 of file RPCDqmClient.h.

Referenced by dqmEndJob(), dqmEndLuminosityBlock(), and getMonitorElements().

◆ rpcGeomToken_

edm::ESGetToken<RPCGeometry, MuonGeometryRecord> RPCDqmClient::rpcGeomToken_
private

Definition at line 53 of file RPCDqmClient.h.

Referenced by getRPCdetId(), and RPCDqmClient().

◆ useRollInfo_

bool RPCDqmClient::useRollInfo_
private

Definition at line 41 of file RPCDqmClient.h.

Referenced by getMonitorElements(), and RPCDqmClient().