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, RPCEvents_, 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  RPCEvents_ = nullptr;
52 
53  rpcGeomToken_ = esConsumes<edm::Transition::EndLuminosityBlock>();
54 }
Log< level::Info, true > LogVerbatim
MonitorElement * RPCEvents_
Definition: RPCDqmClient.h:46
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 56 of file RPCDqmClient.cc.

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

56  {
57  if (!enableDQMClients_) {
58  return;
59  };
60  edm::LogVerbatim("rpcdqmclient") << "[RPCDqmClient]: Begin Job";
61 
62  //Do whatever the begin jobs of all client modules do
63  for (auto& module : clientModules_) {
64  module->beginJob(globalFolder_);
65  }
66 }
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 117 of file RPCDqmClient.cc.

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

117  {
118  if (!enableDQMClients_) {
119  return;
120  }
121 
122  edm::LogVerbatim("rpcdqmclient") << "[RPCDqmClient]: End DQM Job";
123 
124  if (offlineDQM_) { // ...get chamber based histograms and pass them to the client modules
125  this->getMonitorElements(igetter);
126  }
127 
128  float rpcevents = minimumEvents_;
129  if (RPCEvents_) {
130  rpcevents = RPCEvents_->getBinContent(1);
131  }
132  if (rpcevents < minimumEvents_) {
133  return;
134  }
135 
136  edm::LogVerbatim("rpcdqmclient") << "[RPCDqmClient]: Client operations";
137  for (auto& module : clientModules_) {
138  module->clientOperation();
139  }
140 }
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 68 of file RPCDqmClient.cc.

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

71  {
72  if (!enableDQMClients_) {
73  return;
74  }
75  edm::LogVerbatim("rpcdqmclient") << "[RPCDqmClient]: End DQM LB";
76 
77  if (myDetIds_.empty()) {
78  //Get RPCdetId...
79 
80  this->getRPCdetId(c);
81 
82  //...book summary histograms
83  for (auto& module : clientModules_) {
84  module->myBooker(ibooker);
85  }
86  }
87 
88  if (!offlineDQM_) { //Do this only for the online
89 
90  if (lumiCounter_ == 0) { //only for the first lumi section do this...
91  // ...get chamber based histograms and pass them to the client modules
92  this->getMonitorElements(igetter);
93  }
94 
95  //Do not perform client oparations every lumi block
96  ++lumiCounter_;
98  return;
99  }
100 
101  //Check if there's enough statistics
102  float rpcevents = minimumEvents_;
103  if (RPCEvents_) {
104  rpcevents = RPCEvents_->getBinContent(1);
105  }
106  if (rpcevents < minimumEvents_) {
107  return;
108  }
109 
110  edm::LogVerbatim("rpcdqmclient") << "[RPCDqmClient]: Client operations";
111  for (auto& module : clientModules_) {
112  module->clientOperation();
113  }
114  } //end of online operations
115 }
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 142 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_2022v14_cff::region, relativeConstraints::ring, RPCEvents_, AlCaHLTBitMon_QueryRunRegistry::string, useRollInfo_, and makeMuonMisalignmentScenario::wheel.

Referenced by dqmEndJob(), and dqmEndLuminosityBlock().

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

◆ getRPCdetId()

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

Definition at line 214 of file RPCDqmClient.cc.

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

Referenced by dqmEndLuminosityBlock().

214  {
215  myDetIds_.clear();
216 
217  auto rpcGeo = eventSetup.getHandle(rpcGeomToken_);
218 
219  for (auto& det : rpcGeo->dets()) {
220  const RPCChamber* ch = dynamic_cast<const RPCChamber*>(det);
221  if (!ch)
222  continue;
223 
224  //Loop on rolls in given chamber
225  for (auto& r : ch->rolls()) {
226  myDetIds_.push_back(r->id());
227  }
228  }
229 }
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 231 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().

231  {
232  for (unsigned int i = 0; i < clientList_.size(); i++) {
233  if (clientList_[i] == "RPCMultiplicityTest") {
234  clientHisto_.push_back("Multiplicity");
235  // clientTag_.push_back(rpcdqm::MULTIPLICITY);
236  clientModules_.emplace_back(new RPCMultiplicityTest(pset));
237  } else if (clientList_[i] == "RPCDeadChannelTest") {
238  clientHisto_.push_back("Occupancy");
239  clientModules_.emplace_back(new RPCDeadChannelTest(pset));
240  // clientTag_.push_back(rpcdqm::OCCUPANCY);
241  } else if (clientList_[i] == "RPCClusterSizeTest") {
242  clientHisto_.push_back("ClusterSize");
243  clientModules_.emplace_back(new RPCClusterSizeTest(pset));
244  // clientTag_.push_back(rpcdqm::CLUSTERSIZE);
245  } else if (clientList_[i] == "RPCOccupancyTest") {
246  clientHisto_.push_back("Occupancy");
247  clientModules_.emplace_back(new RPCOccupancyTest(pset));
248  // clientTag_.push_back(rpcdqm::OCCUPANCY);
249  } else if (clientList_[i] == "RPCNoisyStripTest") {
250  clientHisto_.push_back("Occupancy");
251  clientModules_.emplace_back(new RPCNoisyStripTest(pset));
252  //clientTag_.push_back(rpcdqm::OCCUPANCY);
253  }
254  }
255 
256  return;
257 }
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(), getMonitorElements(), and RPCDqmClient().

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