CMS 3D CMS Logo

dedxEstimators_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 dedxHitInfo = cms.EDProducer("DeDxHitInfoProducer",
4  tracks = cms.InputTag("generalTracks"),
5 
6  minTrackHits = cms.uint32(0),
7  minTrackPt = cms.double(10),
8  maxTrackEta = cms.double(5.0),
9 
10  useStrip = cms.bool(True),
11  usePixel = cms.bool(True),
12  MeVperADCStrip = cms.double(3.61e-06*265),
13  MeVperADCPixel = cms.double(3.61e-06),
14 
15  useCalibration = cms.bool(False),
16  calibrationPath = cms.string("file:Gains.root"),
17  shapeTest = cms.bool(True),
18 )
19 
20 dedxHarmonic2 = cms.EDProducer("DeDxEstimatorProducer",
21  tracks = cms.InputTag("generalTracks"),
22 
23  estimator = cms.string('generic'),
24  fraction = cms.double(0.4), #Used only if estimator='truncated'
25  exponent = cms.double(-2.0), #Used only if estimator='generic'
26 
27  UseStrip = cms.bool(True),
28  UsePixel = cms.bool(False),
29  ShapeTest = cms.bool(True),
30  MeVperADCStrip = cms.double(3.61e-06*265),
31  MeVperADCPixel = cms.double(3.61e-06),
32 
33  Reccord = cms.string("SiStripDeDxMip_3D_Rcd"), #used only for discriminators : estimators='productDiscrim' or 'btagDiscrim' or 'smirnovDiscrim' or 'asmirnovDiscrim'
34  ProbabilityMode = cms.string("Accumulation"), #used only for discriminators : estimators='productDiscrim' or 'btagDiscrim' or 'smirnovDiscrim' or 'asmirnovDiscrim'
35 
36  UseCalibration = cms.bool(False),
37  calibrationPath = cms.string(""),
38 )
39 
40 dedxPixelHarmonic2 = dedxHarmonic2.clone(UseStrip = False, UsePixel = True)
41 
42 dedxTruncated40 = dedxHarmonic2.clone()
43 dedxTruncated40.estimator = cms.string('truncated')
44 
45 dedxMedian = dedxHarmonic2.clone()
46 dedxMedian.estimator = cms.string('median')
47 
48 dedxUnbinned = dedxHarmonic2.clone()
49 dedxUnbinned.estimator = cms.string('unbinnedFit')
50 
51 dedxDiscrimProd = dedxHarmonic2.clone()
52 dedxDiscrimProd.estimator = cms.string('productDiscrim')
53 
54 dedxDiscrimBTag = dedxHarmonic2.clone()
55 dedxDiscrimBTag.estimator = cms.string('btagDiscrim')
56 
57 dedxDiscrimSmi = dedxHarmonic2.clone()
58 dedxDiscrimSmi.estimator = cms.string('smirnovDiscrim')
59 
60 dedxDiscrimASmi = dedxHarmonic2.clone()
61 dedxDiscrimASmi.estimator = cms.string('asmirnovDiscrim')
62 
63 doAlldEdXEstimators = cms.Sequence(dedxTruncated40 + dedxHarmonic2 + dedxPixelHarmonic2 + dedxHitInfo)