CMS 3D CMS Logo

DQMSummaryEventSetupAnalyzer.cc
Go to the documentation of this file.
9 
10 namespace edmtest {
12  public:
14  explicit DQMSummaryEventSetupAnalyzer(int i);
16  void analyze(const edm::Event& event, const edm::EventSetup& setup) override;
17 
18  private:
20  };
21 
23  : dqmSummaryToken_(esConsumes()) {
24  edm::LogPrint("DQMSummaryEventSetupAnalyzer") << "DQMSummaryEventSetupAnalyzer" << std::endl;
25  }
26 
28  edm::LogPrint("DQMSummaryEventSetupAnalyzer") << "DQMSummaryEventSetupAnalyzer" << i << std::endl;
29  }
30 
32  edm::LogPrint("DQMSummaryEventSetupAnalyzer") << "~DQMSummaryEventSetupAnalyzer" << std::endl;
33  }
34 
36  edm::LogPrint("DQMSummaryEventSetupAnalyzer") << "### DQMSummaryEventSetupAnalyzer::analyze" << std::endl;
37  edm::LogPrint("DQMSummaryEventSetupAnalyzer") << "--- RUN NUMBER: " << event.id().run() << std::endl;
38  edm::LogPrint("DQMSummaryEventSetupAnalyzer") << "--- EVENT NUMBER: " << event.id().event() << std::endl;
42  throw cms::Exception("Record not found") << "Record \"DQMSummaryRcd"
43  << "\" does not exist!" << std::endl;
44  }
45 
46  edm::LogPrint("DQMSummaryEventSetupAnalyzer") << "got EShandle" << std::endl;
48  edm::LogPrint("DQMSummaryEventSetupAnalyzer") << "got the Event Setup" << std::endl;
49  const DQMSummary* summary = sum.product();
50  edm::LogPrint("DQMSummaryEventSetupAnalyzer") << "got DQMSummary* " << std::endl;
51  edm::LogPrint("DQMSummaryEventSetupAnalyzer") << "print result" << std::endl;
52  summary->printAllValues();
53  }
54 
56 } // namespace edmtest
edm::ESHandle::product
T const * product() const
Definition: ESHandle.h:86
edm::eventsetup::heterocontainer::HCTypeTag::findType
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
EDAnalyzer.h
DQMSummaryRcd.h
mps_fire.i
i
Definition: mps_fire.py:428
DQMSummary
Definition: DQMSummary.h:19
edmtest
Definition: AlignPCLThresholdsReader.cc:11
edm::LogPrint
Log< level::Warning, true > LogPrint
Definition: MessageLogger.h:130
edm::one::EDAnalyzer
Definition: EDAnalyzer.h:30
edmtest::DQMSummaryEventSetupAnalyzer::dqmSummaryToken_
const edm::ESGetToken< DQMSummary, DQMSummaryRcd > dqmSummaryToken_
Definition: DQMSummaryEventSetupAnalyzer.cc:19
edm::eventsetup::EventSetupRecordKey
Definition: EventSetupRecordKey.h:30
singleTopDQM_cfi.setup
setup
Definition: singleTopDQM_cfi.py:37
DQMSummary.h
MakerMacros.h
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
edm::ESHandle
Definition: DTSurvey.h:22
edm::eventsetup::EventSetupRecordKey::TypeTag
heterocontainer::HCTypeTag TypeTag
Definition: EventSetupRecordKey.h:32
edm::ParameterSet
Definition: ParameterSet.h:47
Event.h
edm::eventsetup::EventSetupRecordKey::type
const TypeTag & type() const
Definition: EventSetupRecordKey.h:40
edmLumisInFiles.summary
summary
Definition: edmLumisInFiles.py:39
edm::EventSetup
Definition: EventSetup.h:58
edm::ESGetToken< DQMSummary, DQMSummaryRcd >
edmtest::DQMSummaryEventSetupAnalyzer::~DQMSummaryEventSetupAnalyzer
~DQMSummaryEventSetupAnalyzer() override
Definition: DQMSummaryEventSetupAnalyzer.cc:31
Exception
Definition: hltDiff.cc:245
EventSetup.h
Exception.h
ParameterSet.h
edmtest::DQMSummaryEventSetupAnalyzer
Definition: DQMSummaryEventSetupAnalyzer.cc:11
event
Definition: event.py:1
DeDxTools::esConsumes
ESGetTokenH3DDVariant esConsumes(std::string const &Reccord, edm::ConsumesCollector &)
Definition: DeDxTools.cc:283
edm::Event
Definition: Event.h:73
edmtest::DQMSummaryEventSetupAnalyzer::DQMSummaryEventSetupAnalyzer
DQMSummaryEventSetupAnalyzer(const edm::ParameterSet &pset)
Definition: DQMSummaryEventSetupAnalyzer.cc:22
edmtest::DQMSummaryEventSetupAnalyzer::analyze
void analyze(const edm::Event &event, const edm::EventSetup &setup) override
Definition: DQMSummaryEventSetupAnalyzer.cc:35
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27