Skip to content

Commit e2670c9

Browse files
authored
Merge pull request cms-sw#33957 from mmusich/fixDQMGlobalEDAnalyzerExample
fix issue with DQMGlobalEDAnalyzer skeleton (mkdqmedanalyzer command)
2 parents 959d325 + 845a7a7 commit e2670c9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

FWCore/Skeletons/mkTemplates/DQMEDAnalyzer/DQMEDAnalyzer.cc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
//
3636

3737
@example_globalstruct Histograms___class__ {
38-
@example_global ConcurrentMonitorElement histo_;
38+
@example_global dqm::reco::MonitorElement* histo_;
3939
@example_global};
4040

4141
@example_streamclass __class__ : public DQMEDAnalyzer {
@@ -48,7 +48,7 @@
4848

4949
private:
5050
@example_stream void bookHistograms(DQMStore::IBooker&, edm::Run const&, edm::EventSetup const&) override;
51-
@example_global void bookHistograms(DQMStore::ConcurrentBooker&,
51+
@example_global void bookHistograms(DQMStore::IBooker&,
5252
@example_global edm::Run const&,
5353
@example_global edm::EventSetup const&,
5454
@example_global Histograms___class__&) const override;
@@ -117,11 +117,11 @@ __class__::~__class__() {
117117
@example_globalvoid __class__::dqmAnalyze(edm::Event const& iEvent,
118118
@example_global edm::EventSetup const& iSetup,
119119
@example_global Histograms___class__ const& histos) const {
120-
@example_global foo();
120+
@example_global histos.histo_->Fill(1.);
121121
@example_global}
122122
@example_global
123123

124-
@example_globalvoid __class__::bookHistograms(DQMStore::ConcurrentBooker& ibook,
124+
@example_globalvoid __class__::bookHistograms(DQMStore::IBooker& ibook,
125125
@example_global edm::Run const& run,
126126
@example_global edm::EventSetup const& iSetup,
127127
@example_global Histograms___class__& histos) const {

0 commit comments

Comments
 (0)