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 | Static Public Member Functions | Private Member Functions | Private Attributes
LogMessageMonitor Class Reference

#include <DQM/LogMonitor/src/LogMessageMonitor.cc>

Inheritance diagram for LogMessageMonitor:
DQMOneEDAnalyzer<> edm::one::EDProducer< edm::EndRunProducer, edm::one::WatchRuns, edm::Accumulator, Args...> edm::one::EDProducerBase edm::ProducerBase edm::EDConsumerBase edm::ProductRegistryHelper

Public Member Functions

 LogMessageMonitor (const edm::ParameterSet &)
 
 ~LogMessageMonitor () override
 
- Public Member Functions inherited from DQMOneEDAnalyzer<>
void accumulate (edm::Event const &event, edm::EventSetup const &setup) override
 
void beginRun (edm::Run const &run, edm::EventSetup const &setup) final
 
 DQMOneEDAnalyzer ()
 
void endRun (edm::Run const &, edm::EventSetup const &) final
 
void endRunProduce (edm::Run &run, edm::EventSetup const &setup) final
 
virtual bool getCanSaveByLumi ()
 
- Public Member Functions inherited from edm::one::EDProducer< edm::EndRunProducer, edm::one::WatchRuns, edm::Accumulator, Args...>
 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)
 

Static Public Member Functions

static void fillDescriptions (edm::ConfigurationDescriptions &descriptions)
 
- Static Public Member Functions inherited from edm::one::EDProducerBase
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 

Private Member Functions

void analyze (const edm::Event &, const edm::EventSetup &) override
 
void bookHistograms (DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
 
void endJob () override
 

Private Attributes

std::vector< std::string > categories_vector_
 
MonitorElementCategoriesVsModules
 
edm::ParameterSet conf_
 
bool doPUmonitoring_
 
bool doWarningsPlots_
 
DQMStoredqmStore_
 
edm::EDGetTokenT< std::vector
< edm::ErrorSummaryEntry > > 
errorToken_
 
GenericTriggerEventFlaggenTriggerEventFlag_
 
std::string histname
 
GetLumilumiDetails_
 
std::vector< std::string > modules_vector_
 
std::vector< MonitorElement * > ModulesErrorsVsBXlumi
 
std::map< std::string, int > modulesMap
 
std::vector< MonitorElement * > ModulesWarningsVsBXlumi
 
std::string pluginsMonName_
 

Additional Inherited Members

- Public Types inherited from DQMOneEDAnalyzer<>
typedef dqm::reco::DQMStore DQMStore
 
typedef dqm::reco::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
 
- Protected Member Functions inherited from DQMOneEDAnalyzer<>
virtual void dqmBeginRun (edm::Run const &, edm::EventSetup const &)
 
virtual void dqmEndRun (edm::Run const &, edm::EventSetup const &)
 
- 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)
 
- Protected Attributes inherited from DQMOneEDAnalyzer<>
edm::EDPutTokenT< DQMTokenrunToken_
 

Detailed Description

Description: [one line class summary]

Implementation: [Notes on implementation]

Description: [one line class summary] from https://twiki.cern.ch/twiki/bin/view/CMS/TrackingPOGFilters#Filters Events with (partly) aborted track reconstruction The track reconstruction code is protected against events with too large occupancy which can cause an excessive use of CPU time and memory. Each iteration of the track reconstruction can be aborted if:

ELSeverityLevel

http://cmssdt.cern.ch/SDT/lxr/source/FWCore/MessageLogger/interface/ELseverityLevel.h?v=CMSSW_5_3_4 108 enum ELsev_ { 109 ELsev_noValueAssigned = 0 // default returned by map when not found 110 , ELsev_zeroSeverity // threshold use only 111 , ELsev_incidental // flash this on a screen 112 , ELsev_success // report reaching a milestone 113 , ELsev_info // information 114 , ELsev_warning // warning 115 , ELsev_warning2 // more serious warning 116 , ELsev_error // error detected 117 , ELsev_error2 // more serious error 118 , ELsev_next // advise to skip to next event 119 , ELsev_unspecified // severity was not specified 120 , ELsev_severe // future results are suspect 121 , ELsev_severe2 // more severe 122 , ELsev_abort // suggest aborting 123 , ELsev_fatal // strongly suggest aborting! 124 , ELsev_highestSeverity // threshold use only 125 // --— 126 , nLevels // how many levels? 127 }; // ELsev_

Implementation: [Notes on implementation]

Definition at line 48 of file LogMessageMonitor.h.

Constructor & Destructor Documentation

LogMessageMonitor::LogMessageMonitor ( const edm::ParameterSet iConfig)
explicit

Definition at line 77 of file LogMessageMonitor.cc.

References c, edm::EDConsumerBase::consumesCollector(), errorToken_, genTriggerEventFlag_, edm::ParameterSet::getParameter(), HLT_FULL_cff::InputTag, and lumiDetails_.

79  conf_(iConfig),
80  pluginsMonName_(iConfig.getParameter<std::string>("pluginsMonName")),
81  modules_vector_(iConfig.getParameter<std::vector<std::string> >("modules")),
82  categories_vector_(iConfig.getParameter<std::vector<std::string> >("categories")),
83  doWarningsPlots_(iConfig.getParameter<bool>("doWarningsPlots")),
84  doPUmonitoring_(iConfig.getParameter<bool>("doPUmonitoring")) {
85  errorToken_ = consumes<std::vector<edm::ErrorSummaryEntry> >(edm::InputTag("logErrorHarvester"));
86 
88  //now do what ever initialization is needed
89  lumiDetails_ = new GetLumi(iConfig.getParameter<edm::ParameterSet>("BXlumiSetup"), c);
91  iConfig.getParameter<edm::ParameterSet>("genericTriggerEventPSet"), consumesCollector(), *this);
92 }
const edm::EventSetup & c
std::vector< std::string > categories_vector_
Provides a code based selection for trigger and DCS information in order to have no failing filters i...
edm::ParameterSet conf_
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
edm::EDGetTokenT< std::vector< edm::ErrorSummaryEntry > > errorToken_
GenericTriggerEventFlag * genTriggerEventFlag_
std::vector< std::string > modules_vector_
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
std::string pluginsMonName_
LogMessageMonitor::~LogMessageMonitor ( )
override

Definition at line 94 of file LogMessageMonitor.cc.

References genTriggerEventFlag_.

94  {
95  // do anything here that needs to be done at desctruction time
96  // (e.g. close files, deallocate resources etc.)
97  // if ( lumiDetails_ ) delete lumiDetails_;
99  delete genTriggerEventFlag_;
100 }
GenericTriggerEventFlag * genTriggerEventFlag_

Member Function Documentation

void LogMessageMonitor::analyze ( const edm::Event iEvent,
const edm::EventSetup iSetup 
)
overrideprivatevirtual

Reimplemented from DQMOneEDAnalyzer<>.

Definition at line 107 of file LogMessageMonitor.cc.

References GenericTriggerEventFlag::accept(), categories_vector_, CategoriesVsModules, category, submitPVResolutionJobs::count, doPUmonitoring_, doWarningsPlots_, edm::ELseverityLevel::ELsev_error, errorToken_, genTriggerEventFlag_, edm::Event::getHandle(), dqm::impl::MonitorElement::getTH1(), GetLumi::getValue(), mps_fire::i, edm::HandleBase::isValid(), lumiDetails_, callgraph::module, ModulesErrorsVsBXlumi, modulesMap, ModulesWarningsVsBXlumi, dqmiodumpmetadata::n, GenericTriggerEventFlag::on(), alignCSCRings::s, and AlCaHLTBitMon_QueryRunRegistry::string.

107  {
108  // Filter out events if Trigger Filtering is requested
109  if (genTriggerEventFlag_->on() && !genTriggerEventFlag_->accept(iEvent, iSetup))
110  return;
111 
112  double BXlumi = -1.;
113  if (doPUmonitoring_)
114  lumiDetails_->getValue(iEvent);
115 
116  // Take the ErrorSummaryEntry container
118  // Check that errors is valid
119  if (!errors.isValid())
120  return;
121 
122  // Find the total number of errors in iEvent
123  if (errors->empty()) {
124  if (doPUmonitoring_) {
125  for (size_t i = 0; i < modulesMap.size(); i++) {
126  ModulesErrorsVsBXlumi[i]->Fill(BXlumi, 0.);
127  if (doWarningsPlots_)
128  ModulesWarningsVsBXlumi[i]->Fill(BXlumi, 0.);
129  }
130  }
131  } else {
132  size_t nCategories = categories_vector_.size();
133 
134  for (size_t i = 0, n = errors->size(); i < n; i++) {
135  // std::cout << "LogMessageMonitor::analyze] Severity for error/warning: " << (*errors)[i].severity << " " <<(*errors)[i].module << std::endl;
136  // remove the first part of the module string, what is before ":"
137  std::string s = (*errors)[i].module;
138  size_t pos = s.find(':');
139  std::string s_module = s.substr(pos + 1, s.size());
140  std::map<std::string, int>::const_iterator it = modulesMap.find(s_module);
141  if (it != modulesMap.end()) {
142  // std::cout << "LogMessageMonitor::analyze] it: " << " --> " << s_module << std::endl;
143 
144  // IF THIS IS AN ERROR on the ELseverityLevel SCALE, FILL ERROR HISTS
145  if ((*errors)[i].severity.getLevel() >= edm::ELseverityLevel::ELsev_error) {
146  if (doPUmonitoring_)
147  ModulesErrorsVsBXlumi[it->second]->Fill(BXlumi, (*errors)[i].count);
148 
149  // loop over the different categories of errors
150  // defined by configuration file
151  // if the category is not in the given list
152  // it fills the bin "others"
153  TString module = it->first;
154  TString category = (*errors)[i].category;
155  int ibinX = CategoriesVsModules->getTH1()->GetXaxis()->FindBin(module);
156  int ibinY = CategoriesVsModules->getTH1()->GetYaxis()->FindBin(category);
157  /*
158  std::cout << "LogMessageMonitor::analyze] ibinX: " << ibinX << " it->second: " << it->second << " it->first: " << it->first << std::endl;
159  std::cout << "LogMessageMonitor::analyze] ibinY: " << ibinY << " (*errors)[i].category: " << (*errors)[i].category << std::endl;
160  size_t nbinsX = CategoriesVsModules->getTH1()->GetNbinsX();
161  for (size_t bin = 1; bin<=nbinsX; bin++) {
162  std::cout << "binX" << bin << ": " << CategoriesVsModules->getTH1()->GetXaxis()->GetBinLabel(bin) << std::endl;
163  }
164  size_t nbinsY = CategoriesVsModules->getTH1()->GetNbinsY();
165  for (size_t bin = 1; bin<=nbinsY; bin++) {
166  std::cout << "binY" << bin << ": " << CategoriesVsModules->getTH1()->GetYaxis()->GetBinLabel(bin) << std::endl;
167  }
168  */
169  if (ibinY > 0) {
170  int ncount = CategoriesVsModules->getTH1()->GetBinContent(ibinX, ibinY) + 1;
171  CategoriesVsModules->getTH1()->SetBinContent(ibinX, ibinY, ncount);
172  } else {
173  int ncount = CategoriesVsModules->getTH1()->GetBinContent(ibinX, nCategories) + 1;
174  CategoriesVsModules->getTH1()->SetBinContent(ibinX, nCategories, ncount);
175  }
176  } else {
177  // IF ONLY WARNING, FILL WARNING HISTS
178  if (doWarningsPlots_)
179  if (doPUmonitoring_)
180  ModulesWarningsVsBXlumi[it->second]->Fill(BXlumi, (*errors)[i].count);
181  }
182  }
183  }
184  }
185 }
MonitorElement * CategoriesVsModules
static const char category[]
std::vector< std::string > categories_vector_
std::vector< MonitorElement * > ModulesWarningsVsBXlumi
std::vector< MonitorElement * > ModulesErrorsVsBXlumi
double getValue(const edm::Event &)
Definition: GetLumi.cc:48
Handle< PROD > getHandle(EDGetTokenT< PROD > token) const
Definition: Event.h:563
bool accept(const edm::Event &event, const edm::EventSetup &setup)
To be called from analyze/filter() methods.
std::map< std::string, int > modulesMap
edm::EDGetTokenT< std::vector< edm::ErrorSummaryEntry > > errorToken_
bool isValid() const
Definition: HandleBase.h:70
GenericTriggerEventFlag * genTriggerEventFlag_
tuple module
Definition: callgraph.py:69
void LogMessageMonitor::bookHistograms ( DQMStore::IBooker ibooker,
edm::Run const &  iRun,
edm::EventSetup const &  iSetup 
)
overrideprivatevirtual

Implements DQMOneEDAnalyzer<>.

Definition at line 187 of file LogMessageMonitor.cc.

References dqm::implementation::IBooker::book2D(), dqm::implementation::IBooker::bookProfile(), categories_vector_, CategoriesVsModules, conf_, doPUmonitoring_, doWarningsPlots_, genTriggerEventFlag_, edm::ParameterSet::getParameter(), dqm::impl::MonitorElement::getTH1(), histname, mps_fire::i, GenericTriggerEventFlag::initRun(), modules_vector_, ModulesErrorsVsBXlumi, modulesMap, ModulesWarningsVsBXlumi, GenericTriggerEventFlag::on(), pluginsMonName_, dqm::impl::MonitorElement::setAxisTitle(), dqm::impl::MonitorElement::setBinLabel(), dqm::implementation::NavigatorBase::setCurrentFolder(), and AlCaHLTBitMon_QueryRunRegistry::string.

189  {
190  if (genTriggerEventFlag_->on())
191  genTriggerEventFlag_->initRun(iRun, iSetup);
192 
193  std::string MEFolderName = conf_.getParameter<std::string>("LogFolderName");
194 
195  ibooker.setCurrentFolder(MEFolderName);
196 
197  categories_vector_.push_back("others");
198  size_t nModules = modules_vector_.size();
199  size_t nCategories = categories_vector_.size();
200 
201  histname = pluginsMonName_ + "ErrorsVsModules";
203  ibooker.book2D(histname, histname, nModules, 0., double(nModules), nCategories, 0., double(nCategories));
204  CategoriesVsModules->getTH1()->GetXaxis()->SetNoAlphanumeric();
205  CategoriesVsModules->getTH1()->GetYaxis()->SetNoAlphanumeric();
206  CategoriesVsModules->setAxisTitle("modules", 1);
207  for (size_t imodule = 0; imodule < nModules; imodule++)
208  CategoriesVsModules->setBinLabel(imodule + 1, modules_vector_[imodule], 1);
209  CategoriesVsModules->setAxisTitle("categories", 2);
210  // CategoriesVsModules->getTH1()->GetXaxis()->LabelsOption("v");
211  for (size_t icategories = 0; icategories < nCategories; icategories++)
212  CategoriesVsModules->setBinLabel(icategories + 1, categories_vector_[icategories], 2);
213 
214  // MAKE MODULEMAP USING INPUT FROM CFG FILE
215  for (size_t i = 0; i < modules_vector_.size(); i++) {
216  modulesMap.insert(std::pair<std::string, int>(modules_vector_[i], i));
217  }
218 
219  if (doPUmonitoring_) {
220  // BOOK THE HISTOGRAMS
221  // get binning from the configuration
222  edm::ParameterSet BXlumiParameters = conf_.getParameter<edm::ParameterSet>("BXlumiSetup");
223  int BXlumiBin = BXlumiParameters.getParameter<int>("BXlumiBin");
224  double BXlumiMin = BXlumiParameters.getParameter<double>("BXlumiMin");
225  double BXlumiMax = BXlumiParameters.getParameter<double>("BXlumiMax");
226 
227  size_t i = 0;
228  for (std::map<std::string, int>::const_iterator it = modulesMap.begin(); it != modulesMap.end(); ++it, i++) {
229  ibooker.setCurrentFolder(MEFolderName + "/PUmonitoring/Errors");
230 
231  histname = "errorsVsBXlumi_" + it->first;
232  ModulesErrorsVsBXlumi.push_back(dynamic_cast<MonitorElement*>(
233  ibooker.bookProfile(histname, histname, BXlumiBin, BXlumiMin, BXlumiMax, 0., 100, "")));
234  ModulesErrorsVsBXlumi[i]->setAxisTitle("BXlumi [10^{30} Hz cm^{-2}]", 1);
235  ModulesErrorsVsBXlumi[i]->setAxisTitle("Mean number of errors", 2);
236 
237  if (doWarningsPlots_) {
238  ibooker.setCurrentFolder(MEFolderName + "/PUmonitoring/Warnings");
239 
240  histname = "warningVsBXlumi_" + it->first;
241  ModulesWarningsVsBXlumi.push_back(dynamic_cast<MonitorElement*>(
242  ibooker.bookProfile(histname, histname, BXlumiBin, BXlumiMin, BXlumiMax, 0., 100, "")));
243  ModulesWarningsVsBXlumi[i]->setAxisTitle("BXlumi [10^{30} Hz cm^{-2}]", 1);
244  ModulesWarningsVsBXlumi[i]->setAxisTitle("Mean number of warnings", 2);
245  }
246  }
247  }
248 }
MonitorElement * CategoriesVsModules
virtual void setCurrentFolder(std::string const &fullpath)
Definition: DQMStore.cc:32
std::vector< std::string > categories_vector_
std::vector< MonitorElement * > ModulesWarningsVsBXlumi
std::vector< MonitorElement * > ModulesErrorsVsBXlumi
edm::ParameterSet conf_
MonitorElement * bookProfile(TString const &name, TString const &title, int nchX, double lowX, double highX, int, double lowY, double highY, char const *option="s", FUNC onbooking=NOOP())
Definition: DQMStore.h:399
std::map< std::string, int > modulesMap
virtual void setBinLabel(int bin, const std::string &label, int axis=1)
set bin label for x, y or z axis (axis=1, 2, 3 respectively)
GenericTriggerEventFlag * genTriggerEventFlag_
std::vector< std::string > modules_vector_
MonitorElement * book2D(TString const &name, TString const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, FUNC onbooking=NOOP())
Definition: DQMStore.h:212
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
std::string pluginsMonName_
void initRun(const edm::Run &run, const edm::EventSetup &setup)
To be called from beginRun() methods.
virtual void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)
void LogMessageMonitor::endJob ( void  )
overrideprivatevirtual

Reimplemented from edm::one::EDProducerBase.

Definition at line 259 of file LogMessageMonitor.cc.

References conf_, dqmStore_, edm::ParameterSet::getParameter(), dumpDBToFile_GT_ttrig_cfg::outputFileName, dqm::implementation::DQMStore::save(), and AlCaHLTBitMon_QueryRunRegistry::string.

259  {
260  bool outputMEsInRootFile = conf_.getParameter<bool>("OutputMEsInRootFile");
262  if (outputMEsInRootFile) {
263  dqmStore_->save(outputFileName);
264  }
265 }
edm::ParameterSet conf_
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
DQM_DEPRECATED void save(std::string const &filename, std::string const &path="")
Definition: DQMStore.cc:784
void LogMessageMonitor::fillDescriptions ( edm::ConfigurationDescriptions descriptions)
static

Definition at line 268 of file LogMessageMonitor.cc.

References edm::ConfigurationDescriptions::addDefault(), submitPVResolutionJobs::desc, and edm::ParameterSetDescription::setUnknown().

268  {
269  //The following says we do not know what parameters are allowed so do no validation
270  // Please change this to state exactly what you do use, even if it is no parameters
272  desc.setUnknown();
273  descriptions.addDefault(desc);
274 }
void addDefault(ParameterSetDescription const &psetDescription)

Member Data Documentation

std::vector<std::string> LogMessageMonitor::categories_vector_
private

Definition at line 75 of file LogMessageMonitor.h.

Referenced by analyze(), and bookHistograms().

MonitorElement* LogMessageMonitor::CategoriesVsModules
private

Definition at line 84 of file LogMessageMonitor.h.

Referenced by analyze(), and bookHistograms().

edm::ParameterSet LogMessageMonitor::conf_
private

Definition at line 68 of file LogMessageMonitor.h.

Referenced by bookHistograms(), and endJob().

bool LogMessageMonitor::doPUmonitoring_
private

Definition at line 87 of file LogMessageMonitor.h.

Referenced by analyze(), and bookHistograms().

bool LogMessageMonitor::doWarningsPlots_
private

Definition at line 86 of file LogMessageMonitor.h.

Referenced by analyze(), and bookHistograms().

DQMStore* LogMessageMonitor::dqmStore_
private

Definition at line 67 of file LogMessageMonitor.h.

Referenced by endJob().

edm::EDGetTokenT<std::vector<edm::ErrorSummaryEntry> > LogMessageMonitor::errorToken_
private

Definition at line 63 of file LogMessageMonitor.h.

Referenced by analyze(), and LogMessageMonitor().

GenericTriggerEventFlag* LogMessageMonitor::genTriggerEventFlag_
private

Definition at line 78 of file LogMessageMonitor.h.

Referenced by analyze(), bookHistograms(), LogMessageMonitor(), and ~LogMessageMonitor().

std::string LogMessageMonitor::histname
private

Definition at line 65 of file LogMessageMonitor.h.

Referenced by bookHistograms().

GetLumi* LogMessageMonitor::lumiDetails_
private

Definition at line 77 of file LogMessageMonitor.h.

Referenced by analyze(), and LogMessageMonitor().

std::vector<std::string> LogMessageMonitor::modules_vector_
private

Definition at line 74 of file LogMessageMonitor.h.

Referenced by bookHistograms().

std::vector<MonitorElement*> LogMessageMonitor::ModulesErrorsVsBXlumi
private

Definition at line 81 of file LogMessageMonitor.h.

Referenced by analyze(), and bookHistograms().

std::map<std::string, int> LogMessageMonitor::modulesMap
private

Definition at line 70 of file LogMessageMonitor.h.

Referenced by analyze(), and bookHistograms().

std::vector<MonitorElement*> LogMessageMonitor::ModulesWarningsVsBXlumi
private

Definition at line 82 of file LogMessageMonitor.h.

Referenced by analyze(), and bookHistograms().

std::string LogMessageMonitor::pluginsMonName_
private

Definition at line 73 of file LogMessageMonitor.h.

Referenced by bookHistograms().