Skip to content

Commit

Permalink
replace EDProducer with clone from cfipy and drop type spec
Browse files Browse the repository at this point in the history
  • Loading branch information
jeongeun committed Jun 11, 2021
1 parent 2c737cd commit 6c388df
Show file tree
Hide file tree
Showing 3 changed files with 77 additions and 84 deletions.
125 changes: 63 additions & 62 deletions RecoTracker/ConversionSeedGenerators/python/ConversionStep2_cff.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,79 +13,80 @@
TrackQuality = 'highPurity'
)

conv2LayerPairs = cms.EDProducer('SeedingLayersEDProducer',
layerList = cms.vstring('BPix1+BPix2',
import RecoTracker.TkSeedingLayers.seedingLayersEDProducer_cfi as _mod

'BPix2+BPix3',
'BPix2+FPix1_pos',
'BPix2+FPix1_neg',
'BPix2+FPix2_pos',
'BPix2+FPix2_neg',
conv2LayerPairs = _mod.seedingLayersEDProducer.clone(
layerList = ['BPix1+BPix2',
'BPix2+BPix3',
'BPix2+FPix1_pos',
'BPix2+FPix1_neg',
'BPix2+FPix2_pos',
'BPix2+FPix2_neg',

'FPix1_pos+FPix2_pos',
'FPix1_neg+FPix2_neg',
'FPix1_pos+FPix2_pos',
'FPix1_neg+FPix2_neg',

'BPix3+TIB1',
'TIB1+TID1_pos',
'TIB1+TID1_neg',
'TIB1+TID2_pos',
'TIB1+TID2_neg',
'TIB1+TIB2',
'TIB2+TID1_pos',
'TIB2+TID1_neg',
'TIB2+TID2_pos',
'TIB2+TID2_neg',
'TIB2+TIB3',
'TIB3+TIB4',
'TIB3+TID1_pos',
'TIB3+TID1_neg',
'BPix3+TIB1',

'TIB1+TID1_pos',
'TIB1+TID1_neg',
'TIB1+TID2_pos',
'TIB1+TID2_neg',
'TIB1+TIB2',

'TIB2+TID1_pos',
'TIB2+TID1_neg',
'TIB2+TID2_pos',
'TIB2+TID2_neg',
'TIB2+TIB3',

'TIB3+TIB4',
'TIB3+TID1_pos',
'TIB3+TID1_neg',

'TIB4+TOB1',
'TIB4+TOB1',

'TOB1+TOB2',
'TOB1+TEC1_pos',
'TOB1+TEC1_neg',
'TOB1+TOB2',
'TOB1+TEC1_pos',
'TOB1+TEC1_neg',

'TOB2+TOB3',
'TOB2+TEC1_pos',
'TOB2+TEC1_neg',
'TOB3+TOB4',
'TOB3+TEC1_pos',
'TOB3+TEC1_neg',
'TOB4+TOB5',
'TOB2+TOB3',
'TOB2+TEC1_pos',
'TOB2+TEC1_neg',

'TOB3+TOB4',
'TOB3+TEC1_pos',
'TOB3+TEC1_neg',

'TOB4+TOB5',

'TOB5+TOB6',
'TOB5+TOB6',

'TID1_pos+TID2_pos',
'TID2_pos+TID3_pos',
'TID3_pos+TEC1_pos',
'TID1_pos+TID2_pos',
'TID2_pos+TID3_pos',
'TID3_pos+TEC1_pos',

'TID1_neg+TID2_neg',
'TID2_neg+TID3_neg',
'TID3_neg+TEC1_neg',
'TID1_neg+TID2_neg',
'TID2_neg+TID3_neg',
'TID3_neg+TEC1_neg',

'TEC1_pos+TEC2_pos',
'TEC2_pos+TEC3_pos',
'TEC3_pos+TEC4_pos',
'TEC4_pos+TEC5_pos',
'TEC5_pos+TEC6_pos',
'TEC6_pos+TEC7_pos',
'TEC7_pos+TEC8_pos',
'TEC1_pos+TEC2_pos',
'TEC2_pos+TEC3_pos',
'TEC3_pos+TEC4_pos',
'TEC4_pos+TEC5_pos',
'TEC5_pos+TEC6_pos',
'TEC6_pos+TEC7_pos',
'TEC7_pos+TEC8_pos',

'TEC1_neg+TEC2_neg',
'TEC2_neg+TEC3_neg',
'TEC3_neg+TEC4_neg',
'TEC4_neg+TEC5_neg',
'TEC5_neg+TEC6_neg',
'TEC6_neg+TEC7_neg',
'TEC7_neg+TEC8_neg'
#other combinations could be added
),
'TEC1_neg+TEC2_neg',
'TEC2_neg+TEC3_neg',
'TEC3_neg+TEC4_neg',
'TEC4_neg+TEC5_neg',
'TEC5_neg+TEC6_neg',
'TEC6_neg+TEC7_neg',
'TEC7_neg+TEC8_neg'
#other combinations could be added
],

BPix = cms.PSet(
TTRHBuilder = cms.string('WithTrackAngle'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,10 @@
_convLayerPairsLayerList.extend(_convLayerPairsStripOnlyLayers)



convLayerPairs = cms.EDProducer('SeedingLayersEDProducer',
layerList = cms.vstring(_convLayerPairsLayerList),
import RecoTracker.TkSeedingLayers.seedingLayersEDProducer_cfi as _mod

convLayerPairs = _mod.seedingLayersEDProducer.clone(
layerList = _convLayerPairsLayerList,
BPix = cms.PSet(
TTRHBuilder = cms.string('WithTrackAngle'),
HitProducer = cms.string('siPixelRecHits'),
Expand Down
29 changes: 10 additions & 19 deletions RecoTracker/DeDx/python/dedxEstimators_cff.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import FWCore.ParameterSet.Config as cms

dedxHitInfo = cms.EDProducer("DeDxHitInfoProducer",
tracks = cms.InputTag("generalTracks"),
tracks = cms.InputTag("generalTracks"),

minTrackHits = cms.uint32(0),
minTrackPt = cms.double(10),
Expand All @@ -26,24 +26,15 @@
lowPtTracksDeDxThreshold = cms.double(3.5), # threshold on tracks
)

dedxHarmonic2 = cms.EDProducer("DeDxEstimatorProducer",
tracks = cms.InputTag("generalTracks"),

estimator = cms.string('generic'),
fraction = cms.double(0.4), #Used only if estimator='truncated'
exponent = cms.double(-2.0), #Used only if estimator='generic'

UseStrip = cms.bool(True),
UsePixel = cms.bool(False),
ShapeTest = cms.bool(True),
MeVperADCStrip = cms.double(3.61e-06*265),
MeVperADCPixel = cms.double(3.61e-06),

Reccord = cms.string("SiStripDeDxMip_3D_Rcd"), #used only for discriminators : estimators='productDiscrim' or 'btagDiscrim' or 'smirnovDiscrim' or 'asmirnovDiscrim'
ProbabilityMode = cms.string("Accumulation"), #used only for discriminators : estimators='productDiscrim' or 'btagDiscrim' or 'smirnovDiscrim' or 'asmirnovDiscrim'

UseCalibration = cms.bool(False),
calibrationPath = cms.string(""),
import RecoTracker.DeDx.DeDxEstimatorProducer_cfi as _mod

dedxHarmonic2 = _mod.DeDxEstimatorProducer.clone(
estimator = 'generic',
fraction = 0.4, #Used only if estimator='truncated'
exponent = -2.0, #Used only if estimator='generic'

Reccord = "SiStripDeDxMip_3D_Rcd", #used only for discriminators : estimators='productDiscrim' or 'btagDiscrim' or 'smirnovDiscrim' or 'asmirnovDiscrim'
ProbabilityMode = "Accumulation", #used only for discriminators : estimators='productDiscrim' or 'btagDiscrim' or 'smirnovDiscrim' or 'asmirnovDiscrim'
)

from Configuration.Eras.Modifier_fastSim_cff import fastSim
Expand Down

0 comments on commit 6c388df

Please sign in to comment.