CMS 3D CMS Logo

DQMSummaryEventSetupAnalyzer.cc
Go to the documentation of this file.
10 #include <iostream>
11 
12 namespace edmtest {
14  public:
16  explicit DQMSummaryEventSetupAnalyzer(int i);
18  void analyze(const edm::Event& event, const edm::EventSetup& setup) override;
19  };
20 
22  std::cout << "DQMSummaryEventSetupAnalyzer" << std::endl;
23  }
24 
26  std::cout << "DQMSummaryEventSetupAnalyzer" << i << std::endl;
27  }
28 
30  std::cout << "~DQMSummaryEventSetupAnalyzer" << std::endl;
31  }
32 
34  std::cout << "### DQMSummaryEventSetupAnalyzer::analyze" << std::endl;
35  std::cout << "--- RUN NUMBER: " << event.id().run() << std::endl;
36  std::cout << "--- EVENT NUMBER: " << event.id().event() << std::endl;
40  throw cms::Exception("Record not found") << "Record \"DQMSummaryRcd"
41  << "\" does not exist!" << std::endl;
42  }
44  std::cout << "got EShandle" << std::endl;
45  setup.get<DQMSummaryRcd>().get(sum);
46  std::cout << "got the Event Setup" << std::endl;
47  const DQMSummary* summary = sum.product();
48  std::cout << "got DQMSummary* " << std::endl;
49  std::cout << "print result" << std::endl;
50  summary->printAllValues();
51  }
52 
54 } // 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
DQMSummaryRcd.h
mps_fire.i
i
Definition: mps_fire.py:428
DQMSummary
Definition: DQMSummary.h:19
ESHandle.h
edmtest
Definition: AlignPCLThresholdsReader.cc:12
gather_cfg.cout
cout
Definition: gather_cfg.py:144
EDAnalyzer.h
edm::eventsetup::EventSetupRecordKey
Definition: EventSetupRecordKey.h:30
singleTopDQM_cfi.setup
setup
Definition: singleTopDQM_cfi.py:37
edm::EDAnalyzer
Definition: EDAnalyzer.h:28
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:57
get
#define get
edmtest::DQMSummaryEventSetupAnalyzer::~DQMSummaryEventSetupAnalyzer
~DQMSummaryEventSetupAnalyzer() override
Definition: DQMSummaryEventSetupAnalyzer.cc:29
Exception
Definition: hltDiff.cc:246
EventSetup.h
Exception.h
ParameterSet.h
edmtest::DQMSummaryEventSetupAnalyzer
Definition: DQMSummaryEventSetupAnalyzer.cc:13
event
Definition: event.py:1
edm::Event
Definition: Event.h:73
edmtest::DQMSummaryEventSetupAnalyzer::DQMSummaryEventSetupAnalyzer
DQMSummaryEventSetupAnalyzer(const edm::ParameterSet &pset)
Definition: DQMSummaryEventSetupAnalyzer.cc:21
edmtest::DQMSummaryEventSetupAnalyzer::analyze
void analyze(const edm::Event &event, const edm::EventSetup &setup) override
Definition: DQMSummaryEventSetupAnalyzer.cc:33
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27
DQMSummaryRcd
Definition: DQMSummaryRcd.h:24