-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Run3-Sim101F Avoid compilation warnings in some of the codes of Validation/RecoTau #36608
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
*/ | ||
|
||
// framework & common header files | ||
#include "FWCore/Framework/interface/EDAnalyzer.h" | ||
#include "FWCore/Framework/interface/one/EDAnalyzer.h" | ||
#include "FWCore/Framework/interface/Event.h" | ||
#include "FWCore/Framework/interface/EventSetup.h" | ||
#include "FWCore/Framework/interface/MakerMacros.h" | ||
|
@@ -27,14 +27,15 @@ | |
|
||
using namespace std; | ||
|
||
class DQMHistNormalizer : public edm::EDAnalyzer { | ||
class DQMHistNormalizer : public edm::one::EDAnalyzer<edm::one::WatchRuns> { | ||
public: | ||
typedef dqm::legacy::DQMStore DQMStore; | ||
typedef dqm::legacy::MonitorElement MonitorElement; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This module appears to use DQMStore directly too. |
||
|
||
explicit DQMHistNormalizer(const edm::ParameterSet&); | ||
~DQMHistNormalizer() override; | ||
void analyze(const edm::Event&, const edm::EventSetup&) override; | ||
void beginRun(const edm::Run&, const edm::EventSetup&) override {} | ||
void endRun(const edm::Run& r, const edm::EventSetup& c) override; | ||
|
||
private: | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ | |
*/ | ||
|
||
// framework & common header files | ||
#include "FWCore/Framework/interface/EDAnalyzer.h" | ||
#include "FWCore/Framework/interface/one/EDAnalyzer.h" | ||
#include "FWCore/Framework/interface/Event.h" | ||
#include "FWCore/Framework/interface/EventSetup.h" | ||
#include "FWCore/ParameterSet/interface/ParameterSet.h" | ||
|
@@ -24,7 +24,7 @@ | |
#include <vector> | ||
#include <map> | ||
|
||
class TauDQMHistPlotter : public edm::EDAnalyzer { | ||
class TauDQMHistPlotter : public edm::one::EDAnalyzer<edm::one::WatchRuns> { | ||
typedef dqm::legacy::DQMStore DQMStore; | ||
typedef dqm::legacy::MonitorElement MonitorElement; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same here. |
||
|
||
|
@@ -157,6 +157,7 @@ class TauDQMHistPlotter : public edm::EDAnalyzer { | |
explicit TauDQMHistPlotter(const edm::ParameterSet&); | ||
~TauDQMHistPlotter() override; | ||
void analyze(const edm::Event&, const edm::EventSetup&) override; | ||
void beginRun(edm::Run const&, edm::EventSetup const&) override {} | ||
void endRun(const edm::Run& r, const edm::EventSetup& c) override; | ||
|
||
private: | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ | |
*/ | ||
|
||
// framework & common header files | ||
#include "FWCore/Framework/interface/EDAnalyzer.h" | ||
#include "FWCore/Framework/interface/one/EDAnalyzer.h" | ||
#include "FWCore/Framework/interface/Event.h" | ||
#include "FWCore/Framework/interface/EventSetup.h" | ||
#include "FWCore/ParameterSet/interface/ParameterSet.h" | ||
|
@@ -19,7 +19,7 @@ | |
|
||
#include <string> | ||
|
||
class TauDQMSimpleFileSaver : public edm::EDAnalyzer { | ||
class TauDQMSimpleFileSaver : public edm::one::EDAnalyzer<> { | ||
public: | ||
typedef dqm::legacy::DQMStore DQMStore; | ||
typedef dqm::legacy::MonitorElement MonitorElement; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. And here. |
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the direct use of
DQMStore
safe in non-legacy modules?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe it is not. I leave the author of the code to make use of DQM codes``
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Then, to me, it would make more sense to leave these modules as legacy and migrate them properly (or remove) later rather than enabling unsafe code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done that