Skip to content

Commit

Permalink
Added missing esConsumes to LowPtGsfElectronSeedProducer
Browse files Browse the repository at this point in the history
  • Loading branch information
Dr15Jones committed Aug 26, 2021
1 parent 7d4a23c commit 18f1955
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ class LowPtGsfElectronSeedProducer final
const edm::ESGetToken<TrajectoryFitter, TrajectoryFitter::Record> trajectoryFitterToken_;
const edm::ESGetToken<TrajectorySmoother, TrajectoryFitter::Record> trajectorySmootherToken_;
const edm::ESGetToken<TransientTrackingRecHitBuilder, TransientRecHitRecord> builderToken_;
const edm::ESGetToken<MagneticField, IdealMagneticFieldRecord> magToken_;
const noZS::EcalClusterLazyTools::ESGetTokens ecalClusterToolsESGetTokens_;

const bool passThrough_;
Expand Down Expand Up @@ -183,6 +184,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>()},
ecalClusterToolsESGetTokens_{consumesCollector()},
passThrough_(conf.getParameter<bool>("PassThrough")),
usePfTracks_(conf.getParameter<bool>("UsePfTracks")),
Expand All @@ -203,7 +205,7 @@ LowPtGsfElectronSeedProducer::LowPtGsfElectronSeedProducer(const edm::ParameterS
//////////////////////////////////////////////////////////////////////////////////////////
//
void LowPtGsfElectronSeedProducer::beginLuminosityBlock(edm::LuminosityBlock const&, edm::EventSetup const& setup) {
setup.get<IdealMagneticFieldRecord>().get(field_);
field_ = setup.getHandle(magToken_);
}

//////////////////////////////////////////////////////////////////////////////////////////
Expand Down

0 comments on commit 18f1955

Please sign in to comment.