Skip to content

Commit

Permalink
Get the CC labelled timing conditions for ECAL reconstruction for Run…
Browse files Browse the repository at this point in the history
…3 and use ratio timing for Run1 and Run2.
  • Loading branch information
thomreis committed Oct 4, 2023
1 parent 9a2154e commit c4ec394
Show file tree
Hide file tree
Showing 3 changed files with 27 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 @@ -32,8 +32,10 @@
addPedestalUncertaintyEE = cms.double(0.),

# decide which algorithm to be use to calculate the jitter
timealgo = cms.string("crossCorrelationMethod"),
timealgo = cms.string("RatioMethod"),

timeCalibTag = cms.ESInputTag(),
timeOffsetTag = cms.ESInputTag(),
# for ratio method
EBtimeFitParameters = cms.vdouble(-2.015452e+00, 3.130702e+00, -1.234730e+01, 4.188921e+01, -8.283944e+01, 9.101147e+01, -5.035761e+01, 1.105621e+01),
EEtimeFitParameters = cms.vdouble(-2.390548e+00, 3.553628e+00, -1.762341e+01, 6.767538e+01, -1.332130e+02, 1.407432e+02, -7.541106e+01, 1.620277e+01),
Expand All @@ -50,10 +52,10 @@
# for kOutOfTime flag
EBtimeNconst = cms.double(28.5),
EEtimeNconst = cms.double(31.8),
outOfTimeThresholdGain12pEB = cms.double(2.5), # times estimated precision
outOfTimeThresholdGain12mEB = cms.double(2.5), # times estimated precision
outOfTimeThresholdGain61pEB = cms.double(2.5), # times estimated precision
outOfTimeThresholdGain61mEB = cms.double(2.5), # times estimated precision
outOfTimeThresholdGain12pEB = cms.double(5), # times estimated precision
outOfTimeThresholdGain12mEB = cms.double(5), # times estimated precision
outOfTimeThresholdGain61pEB = cms.double(5), # times estimated precision
outOfTimeThresholdGain61mEB = cms.double(5), # times estimated precision
outOfTimeThresholdGain12pEE = cms.double(1000), # times estimated precision
outOfTimeThresholdGain12mEE = cms.double(1000), # times estimated precision
outOfTimeThresholdGain61pEE = cms.double(1000), # times estimated precision
Expand All @@ -71,3 +73,17 @@
crossCorrelationMinTimeToBeLateMax = cms.double(5)
)
)

# use CC timing method for Run3 and Phase 2 (carried over from Run3 era)
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 = cms.ESInputTag('', 'CC'),
timeOffsetTag = cms.ESInputTag('', 'CC')
)
)

0 comments on commit c4ec394

Please sign in to comment.