CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Member Functions | Private Types | Private Member Functions | Private Attributes
RPCEventSummary Class Reference

#include <RPCEventSummary.h>

Inheritance diagram for RPCEventSummary:
DQMEDHarvester edm::one::EDProducer< T > edm::one::EDProducerBase edm::ProducerBase edm::EDConsumerBase edm::ProductRegistryHelper

Public Member Functions

 RPCEventSummary (const edm::ParameterSet &ps)
 Constructor. More...
 
 ~RPCEventSummary () 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< T >
 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
 
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)
 
 ~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
 
- Protected Member Functions inherited from edm::ProducerBase
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 Types

enum  RPCQualityFlags { DEAD = 6, PARTIALLY_DEAD = 5 }
 

Private Member Functions

void clientOperation (DQMStore::IGetter &igetter)
 

Private Attributes

bool doEndcapCertification_
 
bool enableReportSummary_
 
std::string eventInfoPath_
 
std::pair< int, int > FEDRange_
 
std::string globalFolder_
 
bool init_
 
bool isIn_
 
int lumiCounter_
 
int minimumEvents_
 
int numberDisk_
 
int NumberOfFeds_
 
bool offlineDQM_
 
std::string prefixDir_
 
std::string prefixFolder_
 
int prescaleFactor_
 
edm::ESGetToken< RunInfo,
RunInfoRcd
runInfoToken_
 

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 13 of file RPCEventSummary.h.

Member Enumeration Documentation

Enumerator
DEAD 
PARTIALLY_DEAD 

Definition at line 50 of file RPCEventSummary.h.

Constructor & Destructor Documentation

RPCEventSummary::RPCEventSummary ( const edm::ParameterSet ps)

Constructor.

Definition at line 9 of file RPCEventSummary.cc.

References doEndcapCertification_, enableReportSummary_, eventInfoPath_, FEDRange_, edm::ParameterSet::getUntrackedParameter(), globalFolder_, minimumEvents_, numberDisk_, NumberOfFeds_, offlineDQM_, prefixFolder_, prescaleFactor_, runInfoToken_, and AlCaHLTBitMon_QueryRunRegistry::string.

9  {
10  edm::LogVerbatim("rpceventsummary") << "[RPCEventSummary]: Constructor";
11 
12  enableReportSummary_ = ps.getUntrackedParameter<bool>("EnableSummaryReport", true);
13  prescaleFactor_ = ps.getUntrackedParameter<int>("PrescaleFactor", 1);
14  eventInfoPath_ = ps.getUntrackedParameter<std::string>("EventInfoPath", "RPC/EventInfo");
15 
16  std::string subsystemFolder = ps.getUntrackedParameter<std::string>("RPCFolder", "RPC");
17  std::string recHitTypeFolder = ps.getUntrackedParameter<std::string>("RecHitTypeFolder", "AllHits");
18  std::string summaryFolder = ps.getUntrackedParameter<std::string>("SummaryFolder", "SummaryHistograms");
19 
20  globalFolder_ = subsystemFolder + "/" + recHitTypeFolder + "/" + summaryFolder;
21  prefixFolder_ = subsystemFolder + "/" + recHitTypeFolder;
22 
23  minimumEvents_ = ps.getUntrackedParameter<int>("MinimumRPCEvents", 10000);
24  numberDisk_ = ps.getUntrackedParameter<int>("NumberOfEndcapDisks", 4);
25  doEndcapCertification_ = ps.getUntrackedParameter<bool>("EnableEndcapSummary", false);
26 
27  FEDRange_.first = ps.getUntrackedParameter<unsigned int>("MinimumRPCFEDId", 790);
28  FEDRange_.second = ps.getUntrackedParameter<unsigned int>("MaximumRPCFEDId", 792);
29 
30  NumberOfFeds_ = FEDRange_.second - FEDRange_.first + 1;
31 
32  offlineDQM_ = ps.getUntrackedParameter<bool>("OfflineDQM", true);
33 
34  runInfoToken_ = esConsumes<edm::Transition::EndLuminosityBlock>();
35 }
std::string eventInfoPath_
Log< level::Info, true > LogVerbatim
T getUntrackedParameter(std::string const &, T const &) const
edm::ESGetToken< RunInfo, RunInfoRcd > runInfoToken_
std::string globalFolder_
std::pair< int, int > FEDRange_
std::string prefixFolder_
RPCEventSummary::~RPCEventSummary ( )
override

Destructor.

Definition at line 37 of file RPCEventSummary.cc.

37 { edm::LogVerbatim("rpceventsummary") << "[RPCEventSummary]: Destructor "; }
Log< level::Info, true > LogVerbatim

Member Function Documentation

void RPCEventSummary::beginJob ( void  )
overrideprotectedvirtual

Reimplemented from edm::one::EDProducerBase.

Definition at line 39 of file RPCEventSummary.cc.

References init_.

39  {
40  edm::LogVerbatim("rpceventsummary") << "[RPCEventSummary]: Begin job ";
41  init_ = false;
42 }
Log< level::Info, true > LogVerbatim
void RPCEventSummary::clientOperation ( DQMStore::IGetter igetter)
private

Definition at line 131 of file RPCEventSummary.cc.

References ztail::d, doEndcapCertification_, eventInfoPath_, dqm::impl::MonitorElement::Fill(), diffTreeTool::format(), dqm::implementation::IGetter::get(), dqm::impl::MonitorElement::getBinContent(), dqm::impl::MonitorElement::getNbinsX(), dqm::impl::MonitorElement::getNbinsY(), globalFolder_, mps_fire::i, minimumEvents_, numberDisk_, prefixFolder_, alignCSCRings::r, alignCSCRings::s, dqm::impl::MonitorElement::setBinContent(), AlCaHLTBitMon_QueryRunRegistry::string, w(), and y.

Referenced by dqmEndJob(), and dqmEndLuminosityBlock().

131  {
132  float rpcevents = minimumEvents_;
133  MonitorElement* RPCEvents = igetter.get(prefixFolder_ + "/RPCEvents");
134 
135  if (RPCEvents) {
136  rpcevents = RPCEvents->getBinContent(1);
137  }
138 
139  if (rpcevents < minimumEvents_)
140  return;
141 
142  MonitorElement* reportMe = igetter.get(eventInfoPath_ + "/reportSummaryMap");
143  MonitorElement* reportMe2 = igetter.get(eventInfoPath_ + "/noisySummaryMap");
144 
145  //BARREL
146  float barrelFactor = 0;
147 
148  for (int w = -2; w < 3; w++) {
149  const std::string meName1 = fmt::format("{}/DeadChannelFraction_Roll_vs_Sector_Wheel{}", globalFolder_, w);
150  const std::string meName2 = fmt::format("{}/RPCNoisyStrips_Roll_vs_Sector_Wheel{}", globalFolder_, w);
151  MonitorElement* myMe1 = igetter.get(meName1);
152  MonitorElement* myMe2 = igetter.get(meName2);
153 
154  if (myMe1 && myMe2) {
155  float wheelFactor = 0;
156 
157  for (int s = 1; s <= myMe1->getNbinsX(); s++) {
158  float sectorFactor = 0;
159  float sectorFactor2 = 0;
160  int rollInSector = 0;
161 
162  for (int r = 1; r <= myMe1->getNbinsY(); r++) {
163  if ((s != 4 && r > 17) || ((s == 9 || s == 11) && r > 15))
164  continue;
165  rollInSector++;
166  sectorFactor += 1 - myMe1->getBinContent(s, r);
167  sectorFactor2 += myMe2->getBinContent(s, r);
168  }
169 
170  if (rollInSector != 0) {
171  sectorFactor = sectorFactor / rollInSector;
172  sectorFactor2 = sectorFactor2 / rollInSector;
173  }
174 
175  if (reportMe)
176  reportMe->setBinContent(w + 8, s, sectorFactor);
177  if (reportMe2)
178  reportMe2->setBinContent(w + 8, s, sectorFactor2);
179  wheelFactor += sectorFactor;
180 
181  } //end loop on sectors
182 
183  wheelFactor = wheelFactor / myMe1->getNbinsX();
184 
185  const std::string globalMEName = fmt::format("{}/reportSummaryContents/RPC_Wheel{}", eventInfoPath_, w);
186  MonitorElement* globalMe = igetter.get(globalMEName);
187  if (globalMe)
188  globalMe->Fill(wheelFactor);
189 
190  barrelFactor += wheelFactor;
191  } //
192  } //end loop on wheel
193 
194  barrelFactor = barrelFactor / 5;
195 
196  float endcapFactor = 0;
197 
199  //Endcap
200  for (int d = -numberDisk_; d <= numberDisk_; d++) {
201  if (d == 0)
202  continue;
203 
204  const std::string meName1 = fmt::format("{}/DeadChannelFraction_Ring_vs_Segment_Disk{}", globalFolder_, d);
205  const std::string meName2 = fmt::format("{}/RPCNoisyStrips_Ring_vs_Segment_Disk{}", globalFolder_, d);
206  MonitorElement* myMe1 = igetter.get(meName1);
207  MonitorElement* myMe2 = igetter.get(meName2);
208 
209  if (myMe1 && myMe2) {
210  float diskFactor = 0;
211 
212  float sectorFactor[6] = {0, 0, 0, 0, 0, 0};
213  float sectorFactor2[6] = {0, 0, 0, 0, 0, 0};
214 
215  for (int i = 0; i < 6; i++) {
216  int firstSeg = (i * 6) + 1;
217  int lastSeg = firstSeg + 6;
218  int rollInSector = 0;
219  for (int seg = firstSeg; seg < lastSeg; seg++) {
220  for (int y = 1; y <= myMe1->getNbinsY(); y++) {
221  rollInSector++;
222  sectorFactor[i] += 1 - myMe1->getBinContent(seg, y);
223  sectorFactor2[i] += myMe2->getBinContent(seg, y);
224  }
225  }
226  sectorFactor[i] = sectorFactor[i] / rollInSector;
227  sectorFactor2[i] = sectorFactor2[i] / rollInSector;
228  } //end loop on Sectors
229 
230  for (int sec = 0; sec < 6; sec++) {
231  diskFactor += sectorFactor[sec];
232  if (reportMe) {
233  if (d < 0)
234  reportMe->setBinContent(d + 5, sec + 1, sectorFactor[sec]);
235  else
236  reportMe->setBinContent(d + 11, sec + 1, sectorFactor[sec]);
237  }
238  if (reportMe2) {
239  if (d < 0)
240  reportMe2->setBinContent(d + 5, sec + 1, sectorFactor2[sec]);
241  else
242  reportMe2->setBinContent(d + 11, sec + 1, sectorFactor2[sec]);
243  }
244  }
245 
246  diskFactor = diskFactor / 6;
247 
248  const std::string globalMEName = fmt::format("{}/reportSummaryContents/RPC_Disk{}", eventInfoPath_, d);
249  MonitorElement* globalMe = igetter.get(globalMEName);
250  if (globalMe)
251  globalMe->Fill(diskFactor);
252 
253  endcapFactor += diskFactor;
254  } //end loop on disks
255  }
256 
257  endcapFactor = endcapFactor / (numberDisk_ * 2);
258  }
259 
260  //Fill repor summary
261  float rpcFactor = barrelFactor;
263  rpcFactor = (barrelFactor + endcapFactor) / 2;
264  }
265 
266  MonitorElement* globalMe = igetter.get(eventInfoPath_ + "/reportSummary");
267  if (globalMe)
268  globalMe->Fill(rpcFactor);
269 }
std::string eventInfoPath_
virtual int getNbinsY() const
get # of bins in Y-axis
void Fill(long long x)
tuple d
Definition: ztail.py:151
std::string globalFolder_
virtual int getNbinsX() const
get # of bins in X-axis
virtual MonitorElement * get(std::string const &fullpath) const
Definition: DQMStore.cc:673
virtual double getBinContent(int binx) const
get content of bin (1-D)
virtual void setBinContent(int binx, double content)
set content of bin (1-D)
std::string prefixFolder_
T w() const
void RPCEventSummary::dqmEndJob ( DQMStore::IBooker ibooker,
DQMStore::IGetter igetter 
)
overrideprotectedvirtual

Implements DQMEDHarvester.

Definition at line 125 of file RPCEventSummary.cc.

References clientOperation(), and isIn_.

125  {
126  if (isIn_) {
127  this->clientOperation(igetter);
128  }
129 }
void clientOperation(DQMStore::IGetter &igetter)
void RPCEventSummary::dqmEndLuminosityBlock ( DQMStore::IBooker ibooker,
DQMStore::IGetter igetter,
edm::LuminosityBlock const &  lb,
edm::EventSetup const &  setup 
)
overrideprotectedvirtual

Reimplemented from DQMEDHarvester.

Definition at line 44 of file RPCEventSummary.cc.

References RPCSummaryMapHisto::book(), dqm::implementation::IBooker::bookFloat(), clientOperation(), eventInfoPath_, validate-o2o-wbm::f, FEDRange_, dqm::impl::MonitorElement::Fill(), edm::eventsetup::heterocontainer::HCTypeTag::findType(), diffTreeTool::format(), mps_fire::i, init_, isIn_, lumiCounter_, hlt_dqm_clientPB-live_cfg::me, hlt_dqm_clientPB-live_cfg::me2, numberDisk_, offlineDQM_, prescaleFactor_, runInfoToken_, RPCSummaryMapHisto::setBinsBarrel(), RPCSummaryMapHisto::setBinsEndcap(), dqm::implementation::NavigatorBase::setCurrentFolder(), AlCaHLTBitMon_QueryRunRegistry::string, and edm::EventSetup::tryToGet().

47  {
48  edm::LogVerbatim("rpceventsummary") << "[RPCEventSummary]: Begin run";
49 
50  if (!init_) {
52 
55 
56  int defaultValue = 1;
57  isIn_ = true;
58 
59  if (auto runInfoRec = setup.tryToGet<RunInfoRcd>()) {
60  defaultValue = -1;
61  //get fed summary information
62  auto sumFED = runInfoRec->get(runInfoToken_);
63  const std::vector<int> FedsInIds = sumFED.m_fed_in;
64  unsigned int f = 0;
65  isIn_ = false;
66  while (!isIn_ && f < FedsInIds.size()) {
67  int fedID = FedsInIds[f];
68  //make sure fed id is in allowed range
69  if (fedID >= FEDRange_.first && fedID <= FEDRange_.second) {
70  defaultValue = 1;
71  isIn_ = true;
72  }
73  f++;
74  }
75  }
76 
78 
79  //a global summary float [0,1] providing a global summary of the status
80  //and showing the goodness of the data taken by the the sub-system
81  MonitorElement* meSummary = ibooker.bookFloat("reportSummary");
82  meSummary->Fill(defaultValue);
83 
84  //TH2F ME providing a mapof values[0-1] to show if problems are localized or distributed
85  MonitorElement* me = RPCSummaryMapHisto::book(ibooker, "reportSummaryMap", "RPC Report Summary Map");
86  MonitorElement* me2 = RPCSummaryMapHisto::book(ibooker, "noisySummaryMap", "RPC Noisy Chamber Summary Map");
87  RPCSummaryMapHisto::setBinsBarrel(me, defaultValue);
88  RPCSummaryMapHisto::setBinsEndcap(me, defaultValue);
89  RPCSummaryMapHisto::setBinsBarrel(me2, defaultValue);
90  RPCSummaryMapHisto::setBinsEndcap(me2, defaultValue);
91 
92  //the reportSummaryContents folder containins a collection of ME floats [0-1] (order of 5-10)
93  // which describe the behavior of the respective subsystem sub-components.
94  ibooker.setCurrentFolder(eventInfoPath_ + "/reportSummaryContents");
95 
96  std::vector<std::string> segmentNames;
97  for (int i = -2; i <= 2; i++) {
98  const std::string segName = fmt::format("RPC_Wheel{}", i);
99  segmentNames.push_back(segName);
100  }
101 
102  for (int i = -numberDisk_; i <= numberDisk_; i++) {
103  if (i == 0)
104  continue;
105  const std::string segName = fmt::format("RPC_Disk{}", i);
106  segmentNames.push_back(segName);
107  }
108 
109  for (const auto& segmentName : segmentNames) {
110  MonitorElement* me3 = ibooker.bookFloat(segmentName);
111  me3->Fill(defaultValue);
112  }
113 
115  init_ = true;
116  }
117 
118  if (isIn_ && !offlineDQM_ && lumiCounter_ % prescaleFactor_ == 0) {
119  this->clientOperation(igetter);
120  }
121 
122  ++lumiCounter_;
123 }
std::string eventInfoPath_
Log< level::Info, true > LogVerbatim
MonitorElement * bookFloat(TString const &name, FUNC onbooking=NOOP())
Definition: DQMStore.h:80
virtual void setCurrentFolder(std::string const &fullpath)
Definition: DQMStore.cc:32
static void setBinsEndcap(MonitorElement *me, const double value)
edm::ESGetToken< RunInfo, RunInfoRcd > runInfoToken_
void Fill(long long x)
void clientOperation(DQMStore::IGetter &igetter)
static MonitorElement * book(IBooker &booker, const std::string &name, const std::string &title)
std::pair< int, int > FEDRange_
static void setBinsBarrel(MonitorElement *me, const double value)
static HCTypeTag findType(char const *iTypeName)
find a type based on the types name, if not found will return default HCTypeTag
Definition: HCTypeTag.cc:121

Member Data Documentation

bool RPCEventSummary::doEndcapCertification_
private

Definition at line 46 of file RPCEventSummary.h.

Referenced by clientOperation(), and RPCEventSummary().

bool RPCEventSummary::enableReportSummary_
private

Definition at line 37 of file RPCEventSummary.h.

Referenced by RPCEventSummary().

std::string RPCEventSummary::eventInfoPath_
private

Definition at line 34 of file RPCEventSummary.h.

Referenced by clientOperation(), dqmEndLuminosityBlock(), and RPCEventSummary().

std::pair<int, int> RPCEventSummary::FEDRange_
private

Definition at line 47 of file RPCEventSummary.h.

Referenced by dqmEndLuminosityBlock(), and RPCEventSummary().

std::string RPCEventSummary::globalFolder_
private

Definition at line 43 of file RPCEventSummary.h.

Referenced by clientOperation(), and RPCEventSummary().

bool RPCEventSummary::init_
private

Definition at line 40 of file RPCEventSummary.h.

Referenced by beginJob(), and dqmEndLuminosityBlock().

bool RPCEventSummary::isIn_
private

Definition at line 40 of file RPCEventSummary.h.

Referenced by dqmEndJob(), and dqmEndLuminosityBlock().

int RPCEventSummary::lumiCounter_
private

Definition at line 42 of file RPCEventSummary.h.

Referenced by dqmEndLuminosityBlock().

int RPCEventSummary::minimumEvents_
private

Definition at line 38 of file RPCEventSummary.h.

Referenced by clientOperation(), and RPCEventSummary().

int RPCEventSummary::numberDisk_
private

Definition at line 45 of file RPCEventSummary.h.

Referenced by clientOperation(), dqmEndLuminosityBlock(), and RPCEventSummary().

int RPCEventSummary::NumberOfFeds_
private

Definition at line 48 of file RPCEventSummary.h.

Referenced by RPCEventSummary().

bool RPCEventSummary::offlineDQM_
private

Definition at line 41 of file RPCEventSummary.h.

Referenced by dqmEndLuminosityBlock(), and RPCEventSummary().

std::string RPCEventSummary::prefixDir_
private

Definition at line 34 of file RPCEventSummary.h.

std::string RPCEventSummary::prefixFolder_
private

Definition at line 43 of file RPCEventSummary.h.

Referenced by clientOperation(), and RPCEventSummary().

int RPCEventSummary::prescaleFactor_
private

Definition at line 38 of file RPCEventSummary.h.

Referenced by dqmEndLuminosityBlock(), and RPCEventSummary().

edm::ESGetToken<RunInfo, RunInfoRcd> RPCEventSummary::runInfoToken_
private

Definition at line 32 of file RPCEventSummary.h.

Referenced by dqmEndLuminosityBlock(), and RPCEventSummary().