Skip to content

Commit

Permalink
Merge pull request cms-sw#37631 from mmusich/getRidDepWarningsInOnlineDB
Browse files Browse the repository at this point in the history
get rid of more deprecation warnings in `OnlineDB`
  • Loading branch information
cmsbuild authored Apr 20, 2022
2 parents a87740f + b1d9a43 commit bdbc38b
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 56 deletions.
5 changes: 0 additions & 5 deletions OnlineDB/SiStripConfigDb/test/plugins/module.cc

This file was deleted.

49 changes: 42 additions & 7 deletions OnlineDB/SiStripConfigDb/test/plugins/testSiStripConfigDb.cc
Original file line number Diff line number Diff line change
@@ -1,15 +1,47 @@

#include "OnlineDB/SiStripConfigDb/test/plugins/testSiStripConfigDb.h"
#include "FWCore/ServiceRegistry/interface/Service.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "DataFormats/SiStripCommon/interface/SiStripConstants.h"
#include "DataFormats/SiStripCommon/interface/SiStripEnumsAndStrings.h"
#include "OnlineDB/SiStripConfigDb/interface/SiStripConfigDb.h"
// system includes
#include <iostream>
#include <iomanip>
#include <sstream>
#include <string>

// user includes
#include "DataFormats/SiStripCommon/interface/SiStripConstants.h"
#include "DataFormats/SiStripCommon/interface/SiStripEnumsAndStrings.h"
#include "FWCore/Framework/interface/one/EDAnalyzer.h"
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/Framework/interface/EventSetup.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "FWCore/ServiceRegistry/interface/Service.h"
#include "OnlineDB/SiStripConfigDb/interface/SiStripConfigDb.h"

class SiStripConfigDb;

/**
@class testSiStripConfigDb
@author R.Bainbridge
@brief Simple class that tests SiStripConfigDb service
*/
class testSiStripConfigDb : public edm::one::EDAnalyzer<> {
public:
testSiStripConfigDb(const edm::ParameterSet&);
~testSiStripConfigDb();

void analyze(const edm::Event&, const edm::EventSetup&) { ; }
void beginJob();

private:
SiStripConfigDb* db_;

const bool download_;
const bool upload_;
const bool conns_;
const bool devices_;
const bool feds_;
const bool dcus_;
const bool anals_;
};

using namespace std;
using namespace sistrip;

Expand Down Expand Up @@ -604,3 +636,6 @@ void testSiStripConfigDb::beginJob() {
}
}
}

#include "FWCore/Framework/interface/MakerMacros.h"
DEFINE_FWK_MODULE(testSiStripConfigDb);
44 changes: 0 additions & 44 deletions OnlineDB/SiStripConfigDb/test/plugins/testSiStripConfigDb.h

This file was deleted.

0 comments on commit bdbc38b

Please sign in to comment.