Skip to content

Commit

Permalink
Merge pull request #42928 from thomreis/ecal-default-timing-cond-records
Browse files Browse the repository at this point in the history
Use ECAL ratio timing algorithm for Run 1 and Run 2, and CC timing algorithm for Run 3 and beyond
  • Loading branch information
cmsbuild authored Oct 10, 2023
2 parents 6b7efc8 + 3814335 commit 5cde0d9
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 6 deletions.
3 changes: 2 additions & 1 deletion Configuration/Eras/python/Era_Run3_cff.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
from Configuration.Eras.Modifier_run2_egamma_2018_cff import run2_egamma_2018
from Configuration.Eras.Modifier_run2_HLTconditions_2018_cff import run2_HLTconditions_2018
from Configuration.Eras.Modifier_run3_RPC_cff import run3_RPC
from Configuration.Eras.Modifier_run3_ecal_cff import run3_ecal

Run3 = cms.ModifierChain(Run2_2018.copyAndExclude([run2_GEM_2017, ctpps_2018, run2_egamma_2018, run2_HLTconditions_2018]),
run3_common, run3_egamma, run3_GEM, run3_HB, run3_HFSL, stage2L1Trigger_2021, ctpps_2022, dd4hep, run3_RPC)
run3_common, run3_egamma, run3_GEM, run3_HB, run3_HFSL, stage2L1Trigger_2021, ctpps_2022, dd4hep, run3_RPC, run3_ecal)

4 changes: 4 additions & 0 deletions Configuration/Eras/python/Modifier_run3_ecal_cff.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import FWCore.ParameterSet.Config as cms

run3_ecal = cms.Modifier()

Original file line number Diff line number Diff line change
Expand Up @@ -740,7 +740,7 @@ edm::ParameterSetDescription EcalUncalibRecHitWorkerMultiFit::getAlgoDescription
edm::ParameterDescription<double>("addPedestalUncertaintyEB", 0., true) and
edm::ParameterDescription<double>("addPedestalUncertaintyEE", 0., true) and
edm::ParameterDescription<bool>("simplifiedNoiseModelForGainSwitch", true, true) and
edm::ParameterDescription<std::string>("timealgo", "crossCorrelationMethod", true) and
edm::ParameterDescription<std::string>("timealgo", "RatioMethod", true) and
edm::ParameterDescription<std::vector<double>>("EBtimeFitParameters",
{-2.015452e+00,
3.130702e+00,
Expand Down Expand Up @@ -773,10 +773,10 @@ edm::ParameterSetDescription EcalUncalibRecHitWorkerMultiFit::getAlgoDescription
edm::ParameterDescription<double>("EEtimeConstantTerm", 1.0, true) and
edm::ParameterDescription<double>("EBtimeNconst", 28.5, true) and
edm::ParameterDescription<double>("EEtimeNconst", 31.8, true) and
edm::ParameterDescription<double>("outOfTimeThresholdGain12pEB", 2.5, true) and
edm::ParameterDescription<double>("outOfTimeThresholdGain12mEB", 2.5, true) and
edm::ParameterDescription<double>("outOfTimeThresholdGain61pEB", 2.5, true) and
edm::ParameterDescription<double>("outOfTimeThresholdGain61mEB", 2.5, true) and
edm::ParameterDescription<double>("outOfTimeThresholdGain12pEB", 5., true) and
edm::ParameterDescription<double>("outOfTimeThresholdGain12mEB", 5., true) and
edm::ParameterDescription<double>("outOfTimeThresholdGain61pEB", 5., true) and
edm::ParameterDescription<double>("outOfTimeThresholdGain61mEB", 5., true) and
edm::ParameterDescription<double>("outOfTimeThresholdGain12pEE", 1000, true) and
edm::ParameterDescription<double>("outOfTimeThresholdGain12mEE", 1000, true) and
edm::ParameterDescription<double>("outOfTimeThresholdGain61pEE", 1000, true) and
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,17 @@
# producer of rechits starting from digis
ecalMultiFitUncalibRecHit = _mod.ecalMultiFitUncalibRecHitProducer.clone()

# use CC timing method for Run3 and Phase 2 (carried over from Run3 era)
import FWCore.ParameterSet.Config as cms
from Configuration.Eras.Modifier_run3_ecal_cff import run3_ecal
run3_ecal.toModify(ecalMultiFitUncalibRecHit,
algoPSet = dict(timealgo = 'crossCorrelationMethod',
outOfTimeThresholdGain12pEB = 2.5,
outOfTimeThresholdGain12mEB = 2.5,
outOfTimeThresholdGain61pEB = 2.5,
outOfTimeThresholdGain61mEB = 2.5,
timeCalibTag = ':CC',
timeOffsetTag = ':CC'
)
)

0 comments on commit 5cde0d9

Please sign in to comment.