Skip to content

Commit

Permalink
Removed use of beginLuminosityBlock
Browse files Browse the repository at this point in the history
Call moved to produce
  • Loading branch information
Dr15Jones committed Jan 5, 2024
1 parent 48c4805 commit 4e1e43c
Showing 1 changed file with 2 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,6 @@ class LowPtGsfElectronSeedProducer final

static void globalEndJob(lowptgsfeleseed::HeavyObjectCache const*) {}

void beginLuminosityBlock(edm::LuminosityBlock const&, edm::EventSetup const&) override;

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

static void fillDescriptions(edm::ConfigurationDescriptions&);
Expand Down Expand Up @@ -184,7 +182,7 @@ LowPtGsfElectronSeedProducer::LowPtGsfElectronSeedProducer(const edm::ParameterS
trajectoryFitterToken_{esConsumes(conf.getParameter<edm::ESInputTag>("Fitter"))},
trajectorySmootherToken_{esConsumes(conf.getParameter<edm::ESInputTag>("Smoother"))},
builderToken_{esConsumes(conf.getParameter<edm::ESInputTag>("TTRHBuilder"))},
magToken_{esConsumes<edm::Transition::BeginLuminosityBlock>()},
magToken_{esConsumes()},
ecalClusterToolsESGetTokens_{consumesCollector()},
passThrough_(conf.getParameter<bool>("PassThrough")),
usePfTracks_(conf.getParameter<bool>("UsePfTracks")),
Expand All @@ -202,15 +200,10 @@ LowPtGsfElectronSeedProducer::LowPtGsfElectronSeedProducer(const edm::ParameterS
produces<edm::ValueMap<reco::PreIdRef> >(); // indexed by edm::Ref<ElectronSeed>.index()
}

//////////////////////////////////////////////////////////////////////////////////////////
//
void LowPtGsfElectronSeedProducer::beginLuminosityBlock(edm::LuminosityBlock const&, edm::EventSetup const& setup) {
field_ = setup.getHandle(magToken_);
}

//////////////////////////////////////////////////////////////////////////////////////////
//
void LowPtGsfElectronSeedProducer::produce(edm::Event& event, const edm::EventSetup& setup) {
field_ = setup.getHandle(magToken_);
// Products
auto seeds = std::make_unique<reco::ElectronSeedCollection>();
auto ecalPreIds = std::make_unique<reco::PreIdCollection>();
Expand Down

0 comments on commit 4e1e43c

Please sign in to comment.