Skip to content
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

Migrate deprecated EDModule for CondFormats/DTObjects #37164

Merged
merged 1 commit into from Mar 8, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 0 additions & 2 deletions CondFormats/DTObjects/test/stubs/DTConfigPrint.cc
Expand Up @@ -30,8 +30,6 @@ namespace edmtest {

DTConfigPrint::DTConfigPrint(int i) {}

DTConfigPrint::~DTConfigPrint() {}

void DTConfigPrint::analyze(const edm::Event& e, const edm::EventSetup& context) {
using namespace edm::eventsetup;
// Context is not used.
Expand Down
8 changes: 4 additions & 4 deletions CondFormats/DTObjects/test/stubs/DTConfigPrint.h
Expand Up @@ -5,7 +5,7 @@ Toy EDAnalyzer for testing purposes only.

----------------------------------------------------------------------*/

#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"
Expand All @@ -21,12 +21,12 @@ Toy EDAnalyzer for testing purposes only.
#include <string>

namespace edmtest {
class DTConfigPrint : public edm::EDAnalyzer {
class DTConfigPrint : public edm::one::EDAnalyzer<> {
public:
explicit DTConfigPrint(edm::ParameterSet const& p);
explicit DTConfigPrint(int i);
virtual ~DTConfigPrint();
virtual void analyze(const edm::Event& e, const edm::EventSetup& c);
~DTConfigPrint() override = default;
void analyze(const edm::Event& e, const edm::EventSetup& c) override;

private:
std::string connect;
Expand Down
2 changes: 0 additions & 2 deletions CondFormats/DTObjects/test/stubs/DTConfigWrite.cc
Expand Up @@ -28,8 +28,6 @@ namespace edmtest {

DTConfigWrite::DTConfigWrite(int i) {}

DTConfigWrite::~DTConfigWrite() {}

void DTConfigWrite::analyze(const edm::Event& e, const edm::EventSetup& context) {
std::cout << " I AM IN RUN NUMBER " << e.id().run() << std::endl;
std::cout << " ---EVENT NUMBER " << e.id().event() << std::endl;
Expand Down
10 changes: 5 additions & 5 deletions CondFormats/DTObjects/test/stubs/DTConfigWrite.h
Expand Up @@ -5,20 +5,20 @@ Toy EDAnalyzer for testing purposes only.

----------------------------------------------------------------------*/

#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"

namespace edmtest {
class DTConfigWrite : public edm::EDAnalyzer {
class DTConfigWrite : public edm::one::EDAnalyzer<> {
public:
explicit DTConfigWrite(edm::ParameterSet const& p);
explicit DTConfigWrite(int i);
virtual ~DTConfigWrite();
virtual void analyze(const edm::Event& e, const edm::EventSetup& c);
virtual void endJob();
~DTConfigWrite() override = default;
void analyze(const edm::Event& e, const edm::EventSetup& c) override;
void endJob() override;

private:
};
Expand Down
2 changes: 0 additions & 2 deletions CondFormats/DTObjects/test/stubs/DTDeadPrint.cc
Expand Up @@ -20,8 +20,6 @@ namespace edmtest {

DTDeadPrint::DTDeadPrint(int i) {}

DTDeadPrint::~DTDeadPrint() {}

void DTDeadPrint::analyze(const edm::Event& e, const edm::EventSetup& context) {
using namespace edm::eventsetup;
// Context is not used.
Expand Down
8 changes: 4 additions & 4 deletions CondFormats/DTObjects/test/stubs/DTDeadPrint.h
Expand Up @@ -5,7 +5,7 @@ Toy EDAnalyzer for testing purposes only.

----------------------------------------------------------------------*/

#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"
Expand All @@ -15,12 +15,12 @@ Toy EDAnalyzer for testing purposes only.
#include "CondFormats/DataRecord/interface/DTDeadFlagRcd.h"

namespace edmtest {
class DTDeadPrint : public edm::EDAnalyzer {
class DTDeadPrint : public edm::one::EDAnalyzer<> {
public:
explicit DTDeadPrint(edm::ParameterSet const& p);
explicit DTDeadPrint(int i);
virtual ~DTDeadPrint();
virtual void analyze(const edm::Event& e, const edm::EventSetup& c);
~DTDeadPrint() override = default;
void analyze(const edm::Event& e, const edm::EventSetup& c) override;

private:
edm::ESGetToken<DTDeadFlag, DTDeadFlagRcd> es_token;
Expand Down
10 changes: 5 additions & 5 deletions CondFormats/DTObjects/test/stubs/DTDeadUpdate.h
Expand Up @@ -5,7 +5,7 @@ Toy EDAnalyzer for testing purposes only.

----------------------------------------------------------------------*/

#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"
Expand All @@ -15,13 +15,13 @@ Toy EDAnalyzer for testing purposes only.
#include "CondFormats/DataRecord/interface/DTDeadFlagRcd.h"

namespace edmtest {
class DTDeadUpdate : public edm::EDAnalyzer {
class DTDeadUpdate : public edm::one::EDAnalyzer<> {
public:
explicit DTDeadUpdate(edm::ParameterSet const& p);
explicit DTDeadUpdate(int i);
virtual ~DTDeadUpdate();
virtual void analyze(const edm::Event& e, const edm::EventSetup& c);
virtual void endJob();
~DTDeadUpdate() override;
void analyze(const edm::Event& e, const edm::EventSetup& c) override;
void endJob() override;

private:
void fill_dead_HV(const char* file, DTDeadFlag* deadList);
Expand Down
2 changes: 0 additions & 2 deletions CondFormats/DTObjects/test/stubs/DTDeadWrite.cc
Expand Up @@ -24,8 +24,6 @@ namespace edmtest {

DTDeadWrite::DTDeadWrite(int i) {}

DTDeadWrite::~DTDeadWrite() {}

void DTDeadWrite::analyze(const edm::Event& e, const edm::EventSetup& context) {
std::cout << " I AM IN RUN NUMBER " << e.id().run() << std::endl;
std::cout << " ---EVENT NUMBER " << e.id().event() << std::endl;
Expand Down
10 changes: 5 additions & 5 deletions CondFormats/DTObjects/test/stubs/DTDeadWrite.h
Expand Up @@ -5,7 +5,7 @@ Toy EDAnalyzer for testing purposes only.

----------------------------------------------------------------------*/

#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"
Expand All @@ -14,13 +14,13 @@ Toy EDAnalyzer for testing purposes only.
class DTDeadFlag;

namespace edmtest {
class DTDeadWrite : public edm::EDAnalyzer {
class DTDeadWrite : public edm::one::EDAnalyzer<> {
public:
explicit DTDeadWrite(edm::ParameterSet const& p);
explicit DTDeadWrite(int i);
virtual ~DTDeadWrite();
virtual void analyze(const edm::Event& e, const edm::EventSetup& c);
virtual void endJob();
~DTDeadWrite() override = default;
void analyze(const edm::Event& e, const edm::EventSetup& c) override;
void endJob() override;

private:
void fill_dead_HV(const char* file, DTDeadFlag* deadList);
Expand Down
2 changes: 0 additions & 2 deletions CondFormats/DTObjects/test/stubs/DTFullMapPrint.cc
Expand Up @@ -21,8 +21,6 @@ namespace edmtest {

DTFullMapPrint::DTFullMapPrint(int i) {}

DTFullMapPrint::~DTFullMapPrint() {}

void DTFullMapPrint::analyze(const edm::Event& e, const edm::EventSetup& context) {
using namespace edm::eventsetup;
// Context is not used.
Expand Down
8 changes: 4 additions & 4 deletions CondFormats/DTObjects/test/stubs/DTFullMapPrint.h
Expand Up @@ -5,7 +5,7 @@ Toy EDAnalyzer for testing purposes only.

----------------------------------------------------------------------*/

#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"
Expand All @@ -15,12 +15,12 @@ Toy EDAnalyzer for testing purposes only.
#include "CondFormats/DataRecord/interface/DTReadOutMappingRcd.h"

namespace edmtest {
class DTFullMapPrint : public edm::EDAnalyzer {
class DTFullMapPrint : public edm::one::EDAnalyzer<> {
public:
explicit DTFullMapPrint(edm::ParameterSet const& p);
explicit DTFullMapPrint(int i);
virtual ~DTFullMapPrint();
virtual void analyze(const edm::Event& e, const edm::EventSetup& c);
~DTFullMapPrint() override = default;
void analyze(const edm::Event& e, const edm::EventSetup& c) override;

private:
edm::ESGetToken<DTReadOutMapping, DTReadOutMappingRcd> es_token;
Expand Down
2 changes: 0 additions & 2 deletions CondFormats/DTObjects/test/stubs/DTMapPrint.cc
Expand Up @@ -20,8 +20,6 @@ namespace edmtest {

DTMapPrint::DTMapPrint(int i) {}

DTMapPrint::~DTMapPrint() {}

void DTMapPrint::analyze(const edm::Event& e, const edm::EventSetup& context) {
using namespace edm::eventsetup;
// Context is not used.
Expand Down
8 changes: 4 additions & 4 deletions CondFormats/DTObjects/test/stubs/DTMapPrint.h
Expand Up @@ -5,7 +5,7 @@ Toy EDAnalyzer for testing purposes only.

----------------------------------------------------------------------*/

#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"
Expand All @@ -15,12 +15,12 @@ Toy EDAnalyzer for testing purposes only.
#include "CondFormats/DataRecord/interface/DTReadOutMappingRcd.h"

namespace edmtest {
class DTMapPrint : public edm::EDAnalyzer {
class DTMapPrint : public edm::one::EDAnalyzer<> {
public:
explicit DTMapPrint(edm::ParameterSet const& p);
explicit DTMapPrint(int i);
virtual ~DTMapPrint();
virtual void analyze(const edm::Event& e, const edm::EventSetup& c);
~DTMapPrint() override = default;
void analyze(const edm::Event& e, const edm::EventSetup& c) override;

private:
edm::ESGetToken<DTReadOutMapping, DTReadOutMappingRcd> es_token;
Expand Down
2 changes: 0 additions & 2 deletions CondFormats/DTObjects/test/stubs/DTMapWrite.cc
Expand Up @@ -28,8 +28,6 @@ namespace edmtest {

DTMapWrite::DTMapWrite(int i) {}

DTMapWrite::~DTMapWrite() {}

void DTMapWrite::analyze(const edm::Event& e, const edm::EventSetup& context) {
std::cout << " I AM IN RUN NUMBER " << e.id().run() << std::endl;
std::cout << " ---EVENT NUMBER " << e.id().event() << std::endl;
Expand Down
10 changes: 5 additions & 5 deletions CondFormats/DTObjects/test/stubs/DTMapWrite.h
Expand Up @@ -5,20 +5,20 @@ Toy EDAnalyzer for testing purposes only.

----------------------------------------------------------------------*/

#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"

namespace edmtest {
class DTMapWrite : public edm::EDAnalyzer {
class DTMapWrite : public edm::one::EDAnalyzer<> {
public:
explicit DTMapWrite(edm::ParameterSet const& p);
explicit DTMapWrite(int i);
virtual ~DTMapWrite();
virtual void analyze(const edm::Event& e, const edm::EventSetup& c);
virtual void endJob();
~DTMapWrite() override = default;
void analyze(const edm::Event& e, const edm::EventSetup& c) override;
void endJob() override;

private:
};
Expand Down
2 changes: 0 additions & 2 deletions CondFormats/DTObjects/test/stubs/DTRangeT0Print.cc
Expand Up @@ -20,8 +20,6 @@ namespace edmtest {

DTRangeT0Print::DTRangeT0Print(int i) {}

DTRangeT0Print::~DTRangeT0Print() {}

void DTRangeT0Print::analyze(const edm::Event& e, const edm::EventSetup& context) {
using namespace edm::eventsetup;
// Context is not used.
Expand Down
8 changes: 4 additions & 4 deletions CondFormats/DTObjects/test/stubs/DTRangeT0Print.h
Expand Up @@ -5,7 +5,7 @@ Toy EDAnalyzer for testing purposes only.

----------------------------------------------------------------------*/

#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"
Expand All @@ -15,12 +15,12 @@ Toy EDAnalyzer for testing purposes only.
#include "CondFormats/DataRecord/interface/DTRangeT0Rcd.h"

namespace edmtest {
class DTRangeT0Print : public edm::EDAnalyzer {
class DTRangeT0Print : public edm::one::EDAnalyzer<> {
public:
explicit DTRangeT0Print(edm::ParameterSet const& p);
explicit DTRangeT0Print(int i);
virtual ~DTRangeT0Print();
virtual void analyze(const edm::Event& e, const edm::EventSetup& c);
~DTRangeT0Print() override = default;
void analyze(const edm::Event& e, const edm::EventSetup& c) override;

private:
edm::ESGetToken<DTRangeT0, DTRangeT0Rcd> es_token;
Expand Down
2 changes: 0 additions & 2 deletions CondFormats/DTObjects/test/stubs/DTRangeT0Write.cc
Expand Up @@ -28,8 +28,6 @@ namespace edmtest {

DTRangeT0Write::DTRangeT0Write(int i) {}

DTRangeT0Write::~DTRangeT0Write() {}

void DTRangeT0Write::analyze(const edm::Event& e, const edm::EventSetup& context) {
std::cout << " I AM IN RUN NUMBER " << e.id().run() << std::endl;
std::cout << " ---EVENT NUMBER " << e.id().event() << std::endl;
Expand Down
10 changes: 5 additions & 5 deletions CondFormats/DTObjects/test/stubs/DTRangeT0Write.h
Expand Up @@ -5,20 +5,20 @@ Toy EDAnalyzer for testing purposes only.

----------------------------------------------------------------------*/

#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"

namespace edmtest {
class DTRangeT0Write : public edm::EDAnalyzer {
class DTRangeT0Write : public edm::one::EDAnalyzer<> {
public:
explicit DTRangeT0Write(edm::ParameterSet const& p);
explicit DTRangeT0Write(int i);
virtual ~DTRangeT0Write();
virtual void analyze(const edm::Event& e, const edm::EventSetup& c);
virtual void endJob();
~DTRangeT0Write() override = default;
void analyze(const edm::Event& e, const edm::EventSetup& c) override;
void endJob() override;

private:
};
Expand Down
2 changes: 0 additions & 2 deletions CondFormats/DTObjects/test/stubs/DTT0Print.cc
Expand Up @@ -20,8 +20,6 @@ namespace edmtest {

DTT0Print::DTT0Print(int i) {}

DTT0Print::~DTT0Print() {}

void DTT0Print::analyze(const edm::Event& e, const edm::EventSetup& context) {
using namespace edm::eventsetup;
// Context is not used.
Expand Down
8 changes: 4 additions & 4 deletions CondFormats/DTObjects/test/stubs/DTT0Print.h
Expand Up @@ -5,7 +5,7 @@ Toy EDAnalyzer for testing purposes only.

----------------------------------------------------------------------*/

#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"
Expand All @@ -15,12 +15,12 @@ Toy EDAnalyzer for testing purposes only.
#include "CondFormats/DataRecord/interface/DTT0Rcd.h"

namespace edmtest {
class DTT0Print : public edm::EDAnalyzer {
class DTT0Print : public edm::one::EDAnalyzer<> {
public:
explicit DTT0Print(edm::ParameterSet const& p);
explicit DTT0Print(int i);
virtual ~DTT0Print();
virtual void analyze(const edm::Event& e, const edm::EventSetup& c);
~DTT0Print() override = default;
void analyze(const edm::Event& e, const edm::EventSetup& c) override;

private:
edm::ESGetToken<DTT0, DTT0Rcd> es_token;
Expand Down
2 changes: 0 additions & 2 deletions CondFormats/DTObjects/test/stubs/DTT0Write.cc
Expand Up @@ -28,8 +28,6 @@ namespace edmtest {

DTT0Write::DTT0Write(int i) {}

DTT0Write::~DTT0Write() {}

void DTT0Write::analyze(const edm::Event& e, const edm::EventSetup& context) {
std::cout << " I AM IN RUN NUMBER " << e.id().run() << std::endl;
std::cout << " ---EVENT NUMBER " << e.id().event() << std::endl;
Expand Down