CMS 3D CMS Logo

EcalMEFormatter.cc
Go to the documentation of this file.
2 
4 
7 
9 
10 #include <limits>
11 
13  initialize("EcalMEFormatter", _ps);
14  setME(_ps.getUntrackedParameterSet("MEs"));
15  verbosity_ = _ps.getUntrackedParameter<int>("verbosity", 0);
16 }
17 
18 /*static*/
22  desc.addUntracked<int>("verbosity", 0);
23 
24  _descs.addDefault(desc);
25 }
26 
28  DQMStore::IGetter &_igetter,
29  edm::LuminosityBlock const &,
30  edm::EventSetup const &) {
31  format_(_igetter, true);
32 }
33 
35 
36 void EcalMEFormatter::format_(DQMStore::IGetter &_igetter, bool _checkLumi) {
37  std::string failedPath;
38 
39  for (ecaldqm::MESetCollection::iterator mItr(MEs_.begin()); mItr != MEs_.end(); ++mItr) {
40  if (_checkLumi && !mItr->second->getLumiFlag())
41  continue;
42  mItr->second->clear();
43  if (!mItr->second->retrieve(_igetter, &failedPath)) {
44  if (verbosity_ > 0)
45  edm::LogWarning("EcalDQM") << "Could not find ME " << mItr->first << "@" << failedPath;
46  continue;
47  }
48  if (verbosity_ > 1)
49  edm::LogInfo("EcalDQM") << "Retrieved " << mItr->first << " from DQMStore";
50 
51  if (dynamic_cast<ecaldqm::MESetDet2D *>(mItr->second))
52  formatDet2D_(*mItr->second);
53  }
54 }
55 
57 
EcalMEFormatter::dqmEndJob
void dqmEndJob(DQMStore::IBooker &, DQMStore::IGetter &) override
Definition: EcalMEFormatter.cc:34
ecaldqm
Definition: DQWorker.h:24
EcalMEFormatter::dqmEndLuminosityBlock
void dqmEndLuminosityBlock(DQMStore::IBooker &, DQMStore::IGetter &, edm::LuminosityBlock const &, edm::EventSetup const &) override
Definition: EcalMEFormatter.cc:27
edm::ParameterSet::getUntrackedParameterSet
ParameterSet getUntrackedParameterSet(std::string const &name, ParameterSet const &defaultValue) const
Definition: ParameterSet.cc:2129
edm::LuminosityBlock
Definition: LuminosityBlock.h:50
edm::LogInfo
Definition: MessageLogger.h:254
edm::ParameterSetDescription
Definition: ParameterSetDescription.h:52
DQMStore.h
edm::ParameterSet::getUntrackedParameter
T getUntrackedParameter(std::string const &, T const &) const
EcalMEFormatter.h
MakerMacros.h
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
Service.h
EcalMEFormatter
Definition: EcalMEFormatter.h:9
ecaldqm::DQWorker::fillDescriptions
static void fillDescriptions(edm::ParameterSetDescription &_desc)
Definition: DQWorker.cc:19
ecaldqm::DQWorker::MEs_
MESetCollection MEs_
Definition: DQWorker.h:78
edm::ConfigurationDescriptions
Definition: ConfigurationDescriptions.h:28
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
edm::LogWarning
Definition: MessageLogger.h:141
edm::ParameterSetDescription::addUntracked
ParameterDescriptionBase * addUntracked(U const &iLabel, T const &value)
Definition: ParameterSetDescription.h:100
edm::ParameterSet
Definition: ParameterSet.h:36
EcalMEFormatter::format_
void format_(DQMStore::IGetter &, bool)
Definition: EcalMEFormatter.cc:36
ecaldqm::DQWorker::initialize
void initialize(std::string const &_name, edm::ParameterSet const &)
Definition: DQWorker.cc:35
MESetDet2D.h
edm::EventSetup
Definition: EventSetup.h:57
ecaldqm::DQWorker::setME
virtual void setME(edm::ParameterSet const &)
Definition: DQWorker.cc:41
DQMEDHarvester
Definition: DQMEDHarvester.py:1
dqm::implementation::IGetter
Definition: DQMStore.h:484
ecaldqm::DQWorker::verbosity_
int verbosity_
Definition: DQWorker.h:82
dqm::implementation::IBooker
Definition: DQMStore.h:43
EcalMEFormatter::formatDet2D_
void formatDet2D_(ecaldqm::MESet &)
Definition: EcalMEFormatter.cc:56
EcalMEFormatter::EcalMEFormatter
EcalMEFormatter(edm::ParameterSet const &)
Definition: EcalMEFormatter.cc:12
EcalMEFormatter::fillDescriptions
static void fillDescriptions(edm::ConfigurationDescriptions &)
Definition: EcalMEFormatter.cc:19
edm::ConfigurationDescriptions::addDefault
void addDefault(ParameterSetDescription const &psetDescription)
Definition: ConfigurationDescriptions.cc:99
ecaldqm::MESet
Definition: MESet.h:27