Skip to content

Commit

Permalink
Merge pull request #39603 from Dr15Jones/deprecatedEventFilterLTCRawT…
Browse files Browse the repository at this point in the history
…oDigi

Converted LTCRawToDigi to global module
  • Loading branch information
cmsbuild committed Oct 6, 2022
2 parents e120f54 + 337f185 commit 52abcef
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions EventFilter/LTCRawToDigi/src/LTCRawToDigi.cc
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

// user include files
#include "FWCore/Framework/interface/Frameworkfwd.h"
#include "FWCore/Framework/interface/EDProducer.h"
#include "FWCore/Framework/interface/global/EDProducer.h"

#include "FWCore/Framework/interface/Event.h"
#include "FWCore/Framework/interface/MakerMacros.h"
Expand All @@ -38,12 +38,11 @@
// class declaration
//

class LTCRawToDigi : public edm::EDProducer {
class LTCRawToDigi : public edm::global::EDProducer<> {
public:
explicit LTCRawToDigi(const edm::ParameterSet&);
~LTCRawToDigi() override;

void produce(edm::Event&, const edm::EventSetup&) override;
void produce(edm::StreamID, edm::Event&, const edm::EventSetup&) const override;

private:
// ----------member data ---------------------------
Expand All @@ -65,17 +64,12 @@ LTCRawToDigi::LTCRawToDigi(const edm::ParameterSet& iConfig) {
produces<LTCDigiCollection>();
}

LTCRawToDigi::~LTCRawToDigi() {
// do anything here that needs to be done at desctruction time
// (e.g. close files, deallocate resources etc.)
}

//
// member functions
//

// ------------ method called to produce the data ------------
void LTCRawToDigi::produce(edm::Event& iEvent, const edm::EventSetup& iSetup) {
void LTCRawToDigi::produce(edm::StreamID, edm::Event& iEvent, const edm::EventSetup& iSetup) const {
using namespace edm;
const int LTCFedIDLo = 815;
const int LTCFedIDHi = 823;
Expand Down

0 comments on commit 52abcef

Please sign in to comment.