CMS 3D CMS Logo

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:
DQMEDAnalyzer edm::one::EDProducer< edm::EndRunProducer, edm::one::WatchRuns, edm::EndLuminosityBlockProducer, edm::one::WatchLuminosityBlocks, edm::Accumulator > edm::one::EDProducerBase edm::ProducerBase edm::EDConsumerBase edm::ProductRegistryHelper

Public Member Functions

 LogMessageMonitor (const edm::ParameterSet &)
 
 ~LogMessageMonitor () override
 
- Public Member Functions inherited from DQMEDAnalyzer
void accumulate (edm::Event const &event, edm::EventSetup const &setup) final
 
virtual void analyze (edm::Event const &, edm::EventSetup const &)
 
void beginLuminosityBlock (edm::LuminosityBlock const &lumi, edm::EventSetup const &setup) final
 
void beginRun (edm::Run const &run, edm::EventSetup const &setup) final
 
virtual void dqmBeginLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &)
 
virtual void dqmBeginRun (edm::Run const &, edm::EventSetup const &)
 
 DQMEDAnalyzer ()
 
virtual void dqmEndLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &)
 
void endLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) final
 
void endLuminosityBlockProduce (edm::LuminosityBlock &lumi, edm::EventSetup const &setup) final
 
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::EndLuminosityBlockProducer, edm::one::WatchLuminosityBlocks, edm::Accumulator >
 EDProducer ()=default
 
SerialTaskQueueglobalLuminosityBlocksQueue () final
 
SerialTaskQueueglobalRunsQueue () final
 
bool hasAbilityToProduceInBeginLumis () const final
 
bool hasAbilityToProduceInBeginRuns () const final
 
bool hasAbilityToProduceInEndLumis () const final
 
bool hasAbilityToProduceInEndRuns () const final
 
bool wantsGlobalLuminosityBlocks () const final
 
bool wantsGlobalRuns () 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
 
ProductResolverIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
std::vector< ProductResolverIndexAndSkipBit > const & itemsToGetFrom (BranchType iType) const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
bool registeredToConsume (ProductResolverIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
ProductResolverIndexAndSkipBit uncheckedIndexFrom (EDGetToken) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
void updateLookup (eventsetup::ESRecordsToProxyIndices const &)
 
virtual ~EDConsumerBase () noexcept(false)
 

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 dqmEndRun (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 DQMEDAnalyzer
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 edm::ProducerBase
ProducesCollector producesCollector ()
 
- Protected Member Functions inherited from edm::EDConsumerBase
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
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<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)
 
- Protected Attributes inherited from DQMEDAnalyzer
edm::EDPutTokenT< DQMTokenlumiToken_
 
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 52 of file LogMessageMonitor.h.

Constructor & Destructor Documentation

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

Definition at line 78 of file LogMessageMonitor.cc.

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

80  conf_(iConfig),
81  pluginsMonName_(iConfig.getParameter<std::string>("pluginsMonName")),
82  modules_vector_(iConfig.getParameter<std::vector<std::string> >("modules")),
83  categories_vector_(iConfig.getParameter<std::vector<std::string> >("categories")),
84  doWarningsPlots_(iConfig.getParameter<bool>("doWarningsPlots")),
85  doPUmonitoring_(iConfig.getParameter<bool>("doPUmonitoring")) {
86  errorToken_ = consumes<std::vector<edm::ErrorSummaryEntry> >(edm::InputTag("logErrorHarvester"));
87 
89  //now do what ever initialization is needed
90  lumiDetails_ = new GetLumi(iConfig.getParameter<edm::ParameterSet>("BXlumiSetup"), c);
92  iConfig.getParameter<edm::ParameterSet>("genericTriggerEventPSet"), consumesCollector(), *this);
93 }
T getParameter(std::string const &) const
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_
std::string pluginsMonName_
LogMessageMonitor::~LogMessageMonitor ( )
override

Definition at line 95 of file LogMessageMonitor.cc.

References genTriggerEventFlag_.

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

Member Function Documentation

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

Definition at line 108 of file LogMessageMonitor.cc.

References GenericTriggerEventFlag::accept(), categories_vector_, CategoriesVsModules, taus_updatedMVAIds_cff::category, KineDebug3::count(), doPUmonitoring_, doWarningsPlots_, edm::ELseverityLevel::ELsev_error, MessageLogger_cfi::errors, errorToken_, genTriggerEventFlag_, edm::Event::getByToken(), dqm::impl::MonitorElement::getTH1(), GetLumi::getValue(), mps_fire::i, edm::HandleBase::isValid(), lumiDetails_, ModulesErrorsVsBXlumi, modulesMap, ModulesWarningsVsBXlumi, dqmiodumpmetadata::n, mvaElectronID_Fall17_iso_V1_cff::nCategories, GenericTriggerEventFlag::on(), alignCSCRings::s, and AlCaHLTBitMon_QueryRunRegistry::string.

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

Implements DQMEDAnalyzer.

Definition at line 191 of file LogMessageMonitor.cc.

References dqm::dqmstoreimpl::DQMStore::IBooker::book2D(), dqm::dqmstoreimpl::DQMStore::IBooker::bookProfile(), BXlumiParameters_cfi::BXlumiBin, BXlumiParameters_cfi::BXlumiMax, BXlumiParameters_cfi::BXlumiMin, 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, mvaElectronID_Fall17_iso_V1_cff::nCategories, GenericTriggerEventFlag::on(), pluginsMonName_, dqm::impl::MonitorElement::setAxisTitle(), dqm::impl::MonitorElement::setBinLabel(), dqm::dqmstoreimpl::DQMStore::IBooker::setCurrentFolder(), and AlCaHLTBitMon_QueryRunRegistry::string.

193  {
194  if (genTriggerEventFlag_->on())
195  genTriggerEventFlag_->initRun(iRun, iSetup);
196 
197  std::string MEFolderName = conf_.getParameter<std::string>("LogFolderName");
198 
199  ibooker.setCurrentFolder(MEFolderName);
200 
201  categories_vector_.push_back("others");
202  size_t nModules = modules_vector_.size();
203  size_t nCategories = categories_vector_.size();
204 
205  histname = pluginsMonName_ + "ErrorsVsModules";
207  ibooker.book2D(histname, histname, nModules, 0., double(nModules), nCategories, 0., double(nCategories));
208  CategoriesVsModules->getTH1()->GetXaxis()->SetNoAlphanumeric();
209  CategoriesVsModules->getTH1()->GetYaxis()->SetNoAlphanumeric();
210  CategoriesVsModules->setAxisTitle("modules", 1);
211  for (size_t imodule = 0; imodule < nModules; imodule++)
212  CategoriesVsModules->setBinLabel(imodule + 1, modules_vector_[imodule], 1);
213  CategoriesVsModules->setAxisTitle("categories", 2);
214  // CategoriesVsModules->getTH1()->GetXaxis()->LabelsOption("v");
215  for (size_t icategories = 0; icategories < nCategories; icategories++)
216  CategoriesVsModules->setBinLabel(icategories + 1, categories_vector_[icategories], 2);
217 
218  // MAKE MODULEMAP USING INPUT FROM CFG FILE
219  for (size_t i = 0; i < modules_vector_.size(); i++) {
220  modulesMap.insert(std::pair<std::string, int>(modules_vector_[i], i));
221  }
222 
223  if (doPUmonitoring_) {
224  // BOOK THE HISTOGRAMS
225  // get binning from the configuration
226  edm::ParameterSet BXlumiParameters = conf_.getParameter<edm::ParameterSet>("BXlumiSetup");
227  int BXlumiBin = BXlumiParameters.getParameter<int>("BXlumiBin");
228  double BXlumiMin = BXlumiParameters.getParameter<double>("BXlumiMin");
229  double BXlumiMax = BXlumiParameters.getParameter<double>("BXlumiMax");
230 
231  size_t i = 0;
232  for (std::map<std::string, int>::const_iterator it = modulesMap.begin(); it != modulesMap.end(); ++it, i++) {
233  ibooker.setCurrentFolder(MEFolderName + "/PUmonitoring/Errors");
234 
235  histname = "errorsVsBXlumi_" + it->first;
236  ModulesErrorsVsBXlumi.push_back(dynamic_cast<MonitorElement*>(
237  ibooker.bookProfile(histname, histname, BXlumiBin, BXlumiMin, BXlumiMax, 0., 100, "")));
238  ModulesErrorsVsBXlumi[i]->setAxisTitle("BXlumi [10^{30} Hz cm^{-2}]", 1);
239  ModulesErrorsVsBXlumi[i]->setAxisTitle("Mean number of errors", 2);
240 
241  if (doWarningsPlots_) {
242  ibooker.setCurrentFolder(MEFolderName + "/PUmonitoring/Warnings");
243 
244  histname = "warningVsBXlumi_" + it->first;
245  ModulesWarningsVsBXlumi.push_back(dynamic_cast<MonitorElement*>(
246  ibooker.bookProfile(histname, histname, BXlumiBin, BXlumiMin, BXlumiMax, 0., 100, "")));
247  ModulesWarningsVsBXlumi[i]->setAxisTitle("BXlumi [10^{30} Hz cm^{-2}]", 1);
248  ModulesWarningsVsBXlumi[i]->setAxisTitle("Mean number of warnings", 2);
249  }
250  }
251  }
252 }
T getParameter(std::string const &) const
MonitorElement * CategoriesVsModules
std::vector< std::string > categories_vector_
std::vector< MonitorElement * > ModulesWarningsVsBXlumi
std::vector< MonitorElement * > ModulesErrorsVsBXlumi
edm::ParameterSet conf_
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_
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::dqmEndRun ( edm::Run const &  ,
edm::EventSetup const &   
)
overrideprivatevirtual

Reimplemented from DQMEDAnalyzer.

Definition at line 281 of file LogMessageMonitor.cc.

281 {}
void LogMessageMonitor::endJob ( void  )
overrideprivatevirtual

Reimplemented from edm::one::EDProducerBase.

Definition at line 263 of file LogMessageMonitor.cc.

References conf_, dqmStore_, edm::ParameterSet::getParameter(), reco_skim_cfg_mod::outputFileName, dqm::dqmstoreimpl::DQMStore::save(), dqm::dqmstoreimpl::DQMStore::showDirStructure(), and AlCaHLTBitMon_QueryRunRegistry::string.

263  {
264  bool outputMEsInRootFile = conf_.getParameter<bool>("OutputMEsInRootFile");
266  if (outputMEsInRootFile) {
268  dqmStore_->save(outputFileName);
269  }
270 }
T getParameter(std::string const &) const
edm::ParameterSet conf_
void showDirStructure() const
Definition: DQMStore.cc:2926
void save(std::string const &filename, std::string const &path="", std::string const &pattern="", std::string const &rewrite="", uint32_t run=0, uint32_t lumi=0, SaveReferenceTag ref=SaveWithReference, int minStatus=dqm::qstatus::STATUS_OK, std::string const &fileupdate="RECREATE")
Definition: DQMStore.cc:2244
void LogMessageMonitor::fillDescriptions ( edm::ConfigurationDescriptions descriptions)
static

Definition at line 284 of file LogMessageMonitor.cc.

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

284  {
285  //The following says we do not know what parameters are allowed so do no validation
286  // Please change this to state exactly what you do use, even if it is no parameters
288  desc.setUnknown();
289  descriptions.addDefault(desc);
290 }
void addDefault(ParameterSetDescription const &psetDescription)

Member Data Documentation

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

Definition at line 82 of file LogMessageMonitor.h.

Referenced by analyze(), and bookHistograms().

MonitorElement* LogMessageMonitor::CategoriesVsModules
private

Definition at line 91 of file LogMessageMonitor.h.

Referenced by analyze(), and bookHistograms().

edm::ParameterSet LogMessageMonitor::conf_
private

Definition at line 75 of file LogMessageMonitor.h.

Referenced by bookHistograms(), and endJob().

bool LogMessageMonitor::doPUmonitoring_
private

Definition at line 94 of file LogMessageMonitor.h.

Referenced by analyze(), and bookHistograms().

bool LogMessageMonitor::doWarningsPlots_
private

Definition at line 93 of file LogMessageMonitor.h.

Referenced by analyze(), and bookHistograms().

DQMStore* LogMessageMonitor::dqmStore_
private

Definition at line 74 of file LogMessageMonitor.h.

Referenced by endJob().

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

Definition at line 70 of file LogMessageMonitor.h.

Referenced by analyze(), and LogMessageMonitor().

GenericTriggerEventFlag* LogMessageMonitor::genTriggerEventFlag_
private

Definition at line 85 of file LogMessageMonitor.h.

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

std::string LogMessageMonitor::histname
private

Definition at line 72 of file LogMessageMonitor.h.

Referenced by bookHistograms().

GetLumi* LogMessageMonitor::lumiDetails_
private

Definition at line 84 of file LogMessageMonitor.h.

Referenced by analyze(), and LogMessageMonitor().

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

Definition at line 81 of file LogMessageMonitor.h.

Referenced by bookHistograms().

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

Definition at line 88 of file LogMessageMonitor.h.

Referenced by analyze(), and bookHistograms().

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

Definition at line 77 of file LogMessageMonitor.h.

Referenced by analyze(), and bookHistograms().

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

Definition at line 89 of file LogMessageMonitor.h.

Referenced by analyze(), and bookHistograms().

std::string LogMessageMonitor::pluginsMonName_
private

Definition at line 80 of file LogMessageMonitor.h.

Referenced by bookHistograms().