1 import FWCore.ParameterSet.Config
as cms
3 dedxHitInfo = cms.EDProducer(
"DeDxHitInfoProducer",
4 tracks = cms.InputTag(
"generalTracks"),
6 minTrackHits = cms.uint32(0),
7 minTrackPt = cms.double(10),
8 minTrackPtPrescale = cms.double(0.5),
9 maxTrackEta = cms.double(5.0),
11 useStrip = cms.bool(
True),
12 usePixel = cms.bool(
True),
13 MeVperADCStrip = cms.double(3.61e-06*265),
14 MeVperADCPixel = cms.double(3.61e-06),
16 useCalibration = cms.bool(
False),
17 calibrationPath = cms.string(
"file:Gains.root"),
18 shapeTest = cms.bool(
True),
20 lowPtTracksPrescalePass = cms.uint32(100),
21 lowPtTracksPrescaleFail = cms.uint32(2000),
22 lowPtTracksEstimatorParameters = cms.PSet(
23 fraction = cms.double(-0.15),
24 exponent = cms.double(-2.0),
25 truncate = cms.bool(
True),
27 lowPtTracksDeDxThreshold = cms.double(3.5),
28 usePixelForPrescales = cms.bool(
True)
31 import RecoTracker.DeDx.DeDxEstimatorProducer_cfi
as _mod
33 dedxHarmonic2 = _mod.DeDxEstimatorProducer.clone(
34 estimator =
'generic',
38 Record =
"SiStripDeDxMip_3D_Rcd",
39 ProbabilityMode =
"Accumulation",
42 from Configuration.Eras.Modifier_fastSim_cff
import fastSim
45 import FastSimulation.SimplifiedGeometryPropagator.FastTrackDeDxProducer_cfi
48 fastSim.toReplaceWith(dedxHarmonic2,
49 FastSimulation.SimplifiedGeometryPropagator.FastTrackDeDxProducer_cfi.FastTrackDeDxProducer.clone(
51 simHit2RecHitMap =
"fastMatchedTrackerRecHits:simHit2RecHitMap",
52 simHits =
"fastSimProducer:TrackerHits",
56 dedxPixelHarmonic2 = dedxHarmonic2.clone(UseStrip =
False, UsePixel =
True)
58 dedxPixelAndStripHarmonic2T085 = dedxHarmonic2.clone(
59 UseStrip =
True, UsePixel =
True,
60 estimator =
'genericTruncated',
65 dedxTruncated40 = dedxHarmonic2.clone(estimator =
'truncated')
67 dedxMedian = dedxHarmonic2.clone(estimator =
'median')
69 dedxUnbinned = dedxHarmonic2.clone(estimator =
'unbinnedFit')
71 dedxDiscrimProd = dedxHarmonic2.clone(estimator =
'productDiscrim')
73 dedxDiscrimBTag = dedxHarmonic2.clone(estimator =
'btagDiscrim')
75 dedxDiscrimSmi = dedxHarmonic2.clone(estimator =
'smirnovDiscrim')
77 dedxDiscrimASmi = dedxHarmonic2.clone(estimator =
'asmirnovDiscrim')
79 doAlldEdXEstimatorsTask = cms.Task(dedxTruncated40 , dedxHarmonic2 , dedxPixelHarmonic2 , dedxPixelAndStripHarmonic2T085 , dedxHitInfo)
80 doAlldEdXEstimators = cms.Sequence(doAlldEdXEstimatorsTask)
82 fastSim.toReplaceWith(doAlldEdXEstimatorsTask, cms.Task(dedxHarmonic2, dedxPixelHarmonic2))
85 from Configuration.Eras.Modifier_run3_common_cff
import run3_common
86 run3_common.toModify(dedxHitInfo,
87 lowPtTracksEstimatorParameters = dict(fraction = 0., exponent = -2.0,truncate =
False),
88 usePixelForPrescales =
False