Skip to content

Commit

Permalink
Merge pull request #42845 from thomreis/ecal-timing-cond-selection-co…
Browse files Browse the repository at this point in the history
…nfig-132x

Prepare ECAL multifit reconstruction to use different time calibration records - 132x
  • Loading branch information
cmsbuild authored Sep 25, 2023
2 parents 7b59bcf + 6076a12 commit 0bc99c1
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "FWCore/ParameterSet/interface/ParameterSetDescription.h"
#include "FWCore/Utilities/interface/ESGetToken.h"
#include "FWCore/Utilities/interface/ESInputTag.h"
#include "RecoLocalCalo/EcalRecAlgos/interface/EcalUncalibRecHitMultiFitAlgo.h"
#include "RecoLocalCalo/EcalRecAlgos/interface/EcalUncalibRecHitRatioMethodAlgo.h"
#include "RecoLocalCalo/EcalRecAlgos/interface/EcalUncalibRecHitRecChi2Algo.h"
Expand Down Expand Up @@ -216,8 +217,10 @@ EcalUncalibRecHitWorkerMultiFit::EcalUncalibRecHitWorkerMultiFit(const edm::Para
grpsToken_ = c.esConsumes<EcalWeightXtalGroups, EcalWeightXtalGroupsRcd>();
wgtsToken_ = c.esConsumes<EcalTBWeights, EcalTBWeightsRcd>();
timeCorrBiasToken_ = c.esConsumes<EcalTimeBiasCorrections, EcalTimeBiasCorrectionsRcd>();
itimeToken_ = c.esConsumes<EcalTimeCalibConstants, EcalTimeCalibConstantsRcd>();
offtimeToken_ = c.esConsumes<EcalTimeOffsetConstant, EcalTimeOffsetConstantRcd>();
itimeToken_ =
c.esConsumes<EcalTimeCalibConstants, EcalTimeCalibConstantsRcd>(ps.getParameter<edm::ESInputTag>("timeCalibTag"));
offtimeToken_ = c.esConsumes<EcalTimeOffsetConstant, EcalTimeOffsetConstantRcd>(
ps.getParameter<edm::ESInputTag>("timeOffsetTag"));

// algorithm to be used for timing
auto const& timeAlgoName = ps.getParameter<std::string>("timealgo");
Expand Down Expand Up @@ -768,6 +771,8 @@ edm::ParameterSetDescription EcalUncalibRecHitWorkerMultiFit::getAlgoDescription
true) and
edm::ParameterDescription<std::vector<double>>("EBamplitudeFitParameters", {1.138, 1.652}, true) and
edm::ParameterDescription<std::vector<double>>("EEamplitudeFitParameters", {1.890, 1.400}, true) and
edm::ParameterDescription<edm::ESInputTag>("timeCalibTag", edm::ESInputTag(), true) and
edm::ParameterDescription<edm::ESInputTag>("timeOffsetTag", edm::ESInputTag(), true) and
edm::ParameterDescription<double>("EBtimeFitLimits_Lower", 0.2, true) and
edm::ParameterDescription<double>("EBtimeFitLimits_Upper", 1.4, true) and
edm::ParameterDescription<double>("EEtimeFitLimits_Lower", 0.2, true) and
Expand Down

0 comments on commit 0bc99c1

Please sign in to comment.