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),
26 lowPtTracksDeDxThreshold = cms.double(3.5),
29 import RecoTracker.DeDx.DeDxEstimatorProducer_cfi
as _mod
31 dedxHarmonic2 = _mod.DeDxEstimatorProducer.clone(
32 estimator =
'generic',
36 Reccord =
"SiStripDeDxMip_3D_Rcd",
37 ProbabilityMode =
"Accumulation",
40 from Configuration.Eras.Modifier_fastSim_cff
import fastSim
43 import FastSimulation.SimplifiedGeometryPropagator.FastTrackDeDxProducer_cfi
46 fastSim.toReplaceWith(dedxHarmonic2,
47 FastSimulation.SimplifiedGeometryPropagator.FastTrackDeDxProducer_cfi.FastTrackDeDxProducer.clone(
49 simHit2RecHitMap =
"fastMatchedTrackerRecHits:simHit2RecHitMap",
50 simHits =
"fastSimProducer:TrackerHits",
54 dedxPixelHarmonic2 = dedxHarmonic2.clone(UseStrip =
False, UsePixel =
True)
56 dedxPixelAndStripHarmonic2T085 = dedxHarmonic2.clone(
57 UseStrip =
True, UsePixel =
True,
58 estimator =
'genericTruncated',
63 dedxTruncated40 = dedxHarmonic2.clone(estimator =
'truncated')
65 dedxMedian = dedxHarmonic2.clone(estimator =
'median')
67 dedxUnbinned = dedxHarmonic2.clone(estimator =
'unbinnedFit')
69 dedxDiscrimProd = dedxHarmonic2.clone(estimator =
'productDiscrim')
71 dedxDiscrimBTag = dedxHarmonic2.clone(estimator =
'btagDiscrim')
73 dedxDiscrimSmi = dedxHarmonic2.clone(estimator =
'smirnovDiscrim')
75 dedxDiscrimASmi = dedxHarmonic2.clone(estimator =
'asmirnovDiscrim')
77 doAlldEdXEstimatorsTask = cms.Task(dedxTruncated40 , dedxHarmonic2 , dedxPixelHarmonic2 , dedxPixelAndStripHarmonic2T085 , dedxHitInfo)
78 doAlldEdXEstimators = cms.Sequence(doAlldEdXEstimatorsTask)
80 fastSim.toReplaceWith(doAlldEdXEstimatorsTask, cms.Task(dedxHarmonic2, dedxPixelHarmonic2))