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

Converted LTCRawToDigi to global module #39603

Merged
Merged
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
14 changes: 4 additions & 10 deletions EventFilter/LTCRawToDigi/src/LTCRawToDigi.cc
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