diff --git a/HLTrigger/Configuration/python/customizeHLTfor2016trackingTemplate.py b/HLTrigger/Configuration/python/customizeHLTfor2016trackingTemplate.py index dac3f8d1f3af5..f8c8b712687a2 100644 --- a/HLTrigger/Configuration/python/customizeHLTfor2016trackingTemplate.py +++ b/HLTrigger/Configuration/python/customizeHLTfor2016trackingTemplate.py @@ -124,412 +124,179 @@ def speedup_filtering(process): def new_selector(process): + for label in process.sequences_().keys(): + if label == "HLTTrackReconstructionForPF": + print label + sequence = getattr(process,label) + print sequence + print '***********************' # new selectors # iter0 - if hasattr(process, 'HLTIterativeTrackingIteration0') or hasattr(process,'HLTIterativeTrackingIter02') or hasattr(process,'HLTTrackReconstructionForPF'): - - setattr(process,'hltIter0PFlowTrackCutClassifier', cms.EDProducer('TrackCutClassifier', - src = cms.InputTag('hltIter0PFlowCtfWithMaterialTracks'), - beamspot = cms.InputTag('hltOnlineBeamSpot'), - vertices = cms.InputTag('hltTrimmedPixelVertices'), - GBRForestLabel = cms.string(''), - GBRForestFileName = cms.string(''), - qualityCuts = cms.vdouble( - -0.7, - 0.1, - 0.7 - ), - mva = cms.PSet( - minNdof = cms.vdouble( - 1E-5, - 1E-5, - 1E-5 - ), - minPixelHits = cms.vint32( - 0, - 0, - 0 - ), - minLayers = cms.vint32( - 3, - 3, - 3 - ), - min3DLayers = cms.vint32( - 0, - 0, - 0 - ), - maxLostLayers = cms.vint32( - 1, - 1, - 1 - ), - maxChi2 = cms.vdouble( - 9999, - 25., - 16. - ), - maxChi2n = cms.vdouble( - 1.2, - 1., - 0.7 - ), - minNVtxTrk = cms.int32(3), - maxDz = cms.vdouble( - 0.5, - 0.2, - # 0.2 - 3.4028234663852886e+38 - ), - maxDzWrtBS = cms.vdouble( - 3.4028234663852886e+38, - 24, - 15 - ), - maxDr = cms.vdouble( - 0.5, - 0.03, - # 0.03 - 3.4028234663852886e+38 - ), - dz_par = cms.PSet( - dz_exp = cms.vint32( - 4, - 4, - 4, - ), - dz_par1 = cms.vdouble( - 0.4, - 0.4, - 0.4 - # 3.4028234663852886e+38 - ), - dz_par2 = cms.vdouble( - 0.35, - 0.35, - 0.35 - # 3.4028234663852886e+38 - ), - ), - dr_par = cms.PSet( - dr_exp = cms.vint32( - 4, - 4, - 4, - ), - dr_par1 = cms.vdouble( - 0.4, - 0.4, - 0.4 - # 3.4028234663852886e+38 - ), - dr_par2 = cms.vdouble( - 0.3, - 0.3, - 0.3 - # 3.4028234663852886e+38 - ), - d0err = cms.vdouble( - 0.003, - 0.003, - 0.003 - ), - d0err_par = cms.vdouble( - 0.001, - 0.001, - 0.001 + if hasattr(process,'HLTTrackReconstructionForPF'): + if hasattr(process, 'HLTIterativeTrackingIteration0') or hasattr(process,'HLTIterativeTrackingIter02'): + + print "FIND EVERYTHING" + + setattr(process,'hltIter0PFlowTrackCutClassifier', cms.EDProducer('TrackCutClassifier', + src = cms.InputTag('hltIter0PFlowCtfWithMaterialTracks'), + beamspot = cms.InputTag('hltOnlineBeamSpot'), + vertices = cms.InputTag('hltTrimmedPixelVertices'), + GBRForestLabel = cms.string(''), + GBRForestFileName = cms.string(''), + qualityCuts = cms.vdouble(-0.7,0.1,0.7), + mva = cms.PSet( + minNdof = cms.vdouble( 1E-5, 1E-5, 1E-5), + minPixelHits = cms.vint32(0, 0, 0), + minLayers = cms.vint32(3, 3, 3), + min3DLayers = cms.vint32(0, 0, 0), + maxLostLayers = cms.vint32(1, 1, 1), + maxChi2 = cms.vdouble(9999, 25., 16. ), + maxChi2n = cms.vdouble( 1.2, 1., 0.7), + minNVtxTrk = cms.int32(3), + maxDz = cms.vdouble(0.5, 0.2, 3.4028234663852886e+38), + maxDzWrtBS = cms.vdouble(3.4028234663852886e+38, 24, 15), + maxDr = cms.vdouble(0.5, 0.03, 3.4028234663852886e+38), + dz_par = cms.PSet( + dz_exp = cms.vint32(4,4,4), + dz_par1 = cms.vdouble(0.40, 0.40, 0.40), + dz_par2 = cms.vdouble(0.35, 0.35, 0.35), + ), + dr_par = cms.PSet( + dr_exp = cms.vint32(4,4,4), + dr_par1 = cms.vdouble(0.40, 0.40, 0.40), + dr_par2 = cms.vdouble(0.30, 0.30, 0.30), + d0err = cms.vdouble(0.003,0.003,0.003), + d0err_par = cms.vdouble(0.001,0.001,0.001) + ) ) + ) + ) + + setattr(process,'hltIter0PFlowTrackSelectionHighPurity', cms.EDProducer( "TrackCollectionFilterCloner", + originalSource = cms.InputTag('hltIter0PFlowCtfWithMaterialTracks'), + originalMVAVals = cms.InputTag('hltIter0PFlowTrackCutClassifier','MVAValues'), + originalQualVals = cms.InputTag('hltIter0PFlowTrackCutClassifier','QualityMasks'), + minQuality = cms.string('highPurity') , + cloner = cms.untracked.PSet( + copyExtras = cms.untracked.bool(False), + copyTrajectories = cms.untracked.bool(False) + ) ) - ) - ) - ) - - setattr(process,'hltIter0PFlowTrackSelectionHighPurity', cms.EDProducer( "TrackCollectionFilterCloner", - originalSource = cms.InputTag('hltIter0PFlowCtfWithMaterialTracks'), - originalMVAVals = cms.InputTag('hltIter0PFlowTrackCutClassifier','MVAValues'), - originalQualVals = cms.InputTag('hltIter0PFlowTrackCutClassifier','QualityMasks'), - minQuality = cms.string('highPurity') , - cloner = cms.untracked.PSet( - copyExtras = cms.untracked.bool(False), - copyTrajectories = cms.untracked.bool(False) - ) - ) - ) - iter0HP = getattr(process,'hltIter0PFlowTrackSelectionHighPurity') - iter0classifier = getattr(process,'hltIter0PFlowTrackCutClassifier') + ) -# sequences = ['HLTIterativeTrackingIteration0'] - sequences = ['HLTIterativeTrackingIteration0','HLTTrackReconstructionForPF'] -# sequences = ['HLTIterativeTrackingIteration0','HLTIterativeTrackingIter02','HLTTrackReconstructionForPF'] - for s in sequences: - if hasattr(process,s): - seq = getattr(process,s) - seq.insert( seq.index( iter0HP ), iter0classifier ) + iter0HP = getattr(process,'hltIter0PFlowTrackSelectionHighPurity') + iter0classifier = getattr(process,'hltIter0PFlowTrackCutClassifier') + sequences = ['HLTIterativeTrackingIteration0','HLTTrackReconstructionForPF'] +# sequences = ['HLTIterativeTrackingIteration0','HLTIterativeTrackingIter02','HLTTrackReconstructionForPF'] + for s in sequences: + if hasattr(process,s): + seq = getattr(process,s) + seq.insert( seq.index( iter0HP ), iter0classifier ) + + print '***********************' + print 'AFTER iter0' + print getattr(process,'HLTTrackReconstructionForPF') + print '***********************' # PFseq = getattr(process,'HLTTrackReconstructionForPF') # ### iter1 - if hasattr(process, 'HLTIterativeTrackingIteration1') or hasattr(process,'HLTIterativeTrackingIter02') or hasattr(process,'HLTTrackReconstructionForPF'): - - setattr(process,'hltIter1PFlowTrackCutClassifierPrompt', cms.EDProducer('TrackCutClassifier', - src = cms.InputTag('hltIter1PFlowCtfWithMaterialTracks'), - beamspot = cms.InputTag('hltOnlineBeamSpot'), - vertices = cms.InputTag('hltTrimmedPixelVertices'), - GBRForestLabel = cms.string(''), - GBRForestFileName = cms.string(''), - qualityCuts = cms.vdouble( - -0.7, - 0.1, - 0.7 - ), - mva = cms.PSet( - minNdof = cms.vdouble( - 1E-5, - 1E-5, - 1E-5 - ), - minPixelHits = cms.vint32( - 0, - 0, - 2 - ), - minLayers = cms.vint32( - 3, - 3, - 3 - ), - min3DLayers = cms.vint32( - 0, - 0, - 0 - ), - maxLostLayers = cms.vint32( - 1, - 1, - 1 - ), - maxChi2 = cms.vdouble( - 9999., - 25., - 16. - ), - maxChi2n = cms.vdouble( - 1.2, - 1., - 0.7 - ), - minNVtxTrk = cms.int32(3), - maxDz = cms.vdouble( - 3.4028234663852886e+38, - 1.0, - # 0.4 - 3.4028234663852886e+38 - ), - maxDzWrtBS = cms.vdouble( - 3.4028234663852886e+38, - 24, - 15 - ), - maxDr = cms.vdouble( - 3.4028234663852886e+38, - 1.0, - # 0.1 - 3.4028234663852886e+38 - ), - dz_par = cms.PSet( - dz_exp = cms.vint32( - 3, - 3, - 3, - ), - dz_par1 = cms.vdouble( - 3.4028234663852886e+38, - 1.0, - 0.9 - # 3.4028234663852886e+38 - ), - dz_par2 = cms.vdouble( - 3.4028234663852886e+38, - 1.0, - 0.8 - # 3.4028234663852886e+38 - ), - ), - dr_par = cms.PSet( - dr_exp = cms.vint32( - 3, - 3, - 3, - ), - dr_par1 = cms.vdouble( - 3.4028234663852886e+38, - 1.0, - 0.9 - # 3.4028234663852886e+38 - ), - dr_par2 = cms.vdouble( - 3.4028234663852886e+38, - 1.0, - 0.85 - # 3.4028234663852886e+38 - ), - d0err = cms.vdouble( - 0.003, - 0.003, - 0.003 - ), - d0err_par = cms.vdouble( - 0.001, - 0.001, - 0.001 + if hasattr(process,'HLTTrackReconstructionForPF'): + if hasattr(process, 'HLTIterativeTrackingIteration1') or hasattr(process,'HLTIterativeTrackingIter02'): + + setattr(process,'hltIter1PFlowTrackCutClassifierPrompt', cms.EDProducer('TrackCutClassifier', + src = cms.InputTag('hltIter1PFlowCtfWithMaterialTracks'), + beamspot = cms.InputTag('hltOnlineBeamSpot'), + vertices = cms.InputTag('hltTrimmedPixelVertices'), + GBRForestLabel = cms.string(''), + GBRForestFileName = cms.string(''), + qualityCuts = cms.vdouble(-0.7,0.1,0.7), + mva = cms.PSet( + minNdof = cms.vdouble( 1E-5, 1E-5, 1E-5), + minPixelHits = cms.vint32(0,0,2), + minLayers = cms.vint32(3, 3, 3), + min3DLayers = cms.vint32(0, 0, 0), + maxLostLayers = cms.vint32(1, 1, 1), + maxChi2 = cms.vdouble(9999, 25., 16. ), + maxChi2n = cms.vdouble( 1.2, 1., 0.7), + minNVtxTrk = cms.int32(3), + maxDz = cms.vdouble(3.4028234663852886e+38, 1.0, 3.4028234663852886e+38), + maxDzWrtBS = cms.vdouble(3.4028234663852886e+38, 24, 15), + maxDr = cms.vdouble(3.4028234663852886e+38, 1.0, 3.4028234663852886e+38), + dz_par = cms.PSet( + dz_exp = cms.vint32(3,3,3), + dz_par1 = cms.vdouble(3.4028234663852886e+38, 1.0, 0.9), + dz_par2 = cms.vdouble(3.4028234663852886e+38, 1.0, 0.8), + ), + dr_par = cms.PSet( + dr_exp = cms.vint32(3,3,3), + dr_par1 = cms.vdouble(3.4028234663852886e+38, 1.0, 0.90), + dr_par2 = cms.vdouble(3.4028234663852886e+38, 1.0, 0.85), + d0err = cms.vdouble(0.003,0.003,0.003), + d0err_par = cms.vdouble(0.001,0.001,0.001) + ) ) + ) + ) + + setattr(process,'hltIter1PFlowTrackCutClassifierDetached', cms.EDProducer('TrackCutClassifier', + src = cms.InputTag('hltIter1PFlowCtfWithMaterialTracks'), + beamspot = cms.InputTag('hltOnlineBeamSpot'), + vertices = cms.InputTag('hltTrimmedPixelVertices'), + GBRForestLabel = cms.string(''), + GBRForestFileName = cms.string(''), + qualityCuts = cms.vdouble(-0.7,0.1,0.7), + mva = cms.PSet( + minNdof = cms.vdouble( 1E-5, 1E-5, 1E-5), + minPixelHits = cms.vint32(0,0,2), + minLayers = cms.vint32(5,5,5), + min3DLayers = cms.vint32(0, 0, 0), + maxLostLayers = cms.vint32(1, 1, 1), + maxChi2 = cms.vdouble(9999, 25., 16. ), + maxChi2n = cms.vdouble(1.0, 0.7, 0.4), + minNVtxTrk = cms.int32(3), + maxDz = cms.vdouble(3.4028234663852886e+38, 1.0, 3.4028234663852886e+38), + maxDzWrtBS = cms.vdouble(3.4028234663852886e+38, 24, 15), + maxDr = cms.vdouble(3.4028234663852886e+38, 1.0, 3.4028234663852886e+38), + dz_par = cms.PSet( + dz_exp = cms.vint32(4,4,4), + dz_par1 = cms.vdouble(1.0, 1.0, 1.0), + dz_par2 = cms.vdouble(1.0, 1.0, 1.0), + ), + dr_par = cms.PSet( + dr_exp = cms.vint32(4,4,4), + dr_par1 = cms.vdouble(1.0,1.0,1.0), + dr_par2 = cms.vdouble(1.0,1.0,1.0), + d0err = cms.vdouble(0.003,0.003,0.003), + d0err_par = cms.vdouble(0.001,0.001,0.001) + + ) + ) + ) + ) + setattr(process,'hltIter1PFlowTrackCutClassifierMerged', cms.EDProducer('ClassifierMerger', + inputClassifiers = cms.vstring('hltIter1PFlowTrackCutClassifierPrompt','hltIter1PFlowTrackCutClassifierDetached') ) - ) - ) - ) - - setattr(process,'hltIter1PFlowTrackCutClassifierDetached', cms.EDProducer('TrackCutClassifier', - src = cms.InputTag('hltIter1PFlowCtfWithMaterialTracks'), - beamspot = cms.InputTag('hltOnlineBeamSpot'), - vertices = cms.InputTag('hltTrimmedPixelVertices'), - GBRForestLabel = cms.string(''), - GBRForestFileName = cms.string(''), - qualityCuts = cms.vdouble( - -0.7, - 0.1, - 0.7 - ), - mva = cms.PSet( - minNdof = cms.vdouble( - 1E-5, - 1E-5, - 1E-5 - ), - minPixelHits = cms.vint32( - 0, - 0, - 2 - ), - minLayers = cms.vint32( - 5, - 5, - 5 - ), - min3DLayers = cms.vint32( - 0, - 0, - 0 - ), - maxLostLayers = cms.vint32( - 1, - 1, - 1 - ), - maxChi2 = cms.vdouble( - 9999., - 25., - 16. - ), - maxChi2n = cms.vdouble( - 1.0, - 0.7, - 0.4 - ), - minNVtxTrk = cms.int32(3), - maxDz = cms.vdouble( - 3.4028234663852886e+38, - 1.0, - # 0.5 - 3.4028234663852886e+38 - ), - maxDzWrtBS = cms.vdouble( - 3.4028234663852886e+38, - 24, - 15 - ), - maxDr = cms.vdouble( - 3.4028234663852886e+38, - 1.0, - # 0.2 - 3.4028234663852886e+38 - ), - dz_par = cms.PSet( - dz_exp = cms.vint32( - 4, - 4, - 4, - ), - dz_par1 = cms.vdouble( - 1.0, - 1.0, - 1.0 - # 3.4028234663852886e+38 - ), - dz_par2 = cms.vdouble( - 1.0, - 1.0, - 1.0 - # 3.4028234663852886e+38 - ), - ), - dr_par = cms.PSet( - dr_exp = cms.vint32( - 4, - 4, - 4, - ), - dr_par1 = cms.vdouble( - 1.0, - 1.0, - 1.0 - # 3.4028234663852886e+38 - ), - dr_par2 = cms.vdouble( - 1.0, - 1.0, - 1.0 - # 3.4028234663852886e+38 - ), - d0err = cms.vdouble( - 0.003, - 0.003, - 0.003 - ), - d0err_par = cms.vdouble( - 0.001, - 0.001, - 0.001 + ) + + setattr(process,'hltIter1PFlowTrackSelectionHighPurity', cms.EDProducer( "TrackCollectionFilterCloner", + originalSource = cms.InputTag('hltIter1PFlowCtfWithMaterialTracks'), + originalMVAVals = cms.InputTag('hltIter1PFlowTrackCutClassifierMerged','MVAValues'), + originalQualVals = cms.InputTag('hltIter1PFlowTrackCutClassifierMerged','QualityMasks'), + minQuality = cms.string('highPurity') , + cloner = cms.untracked.PSet( + copyExtras = cms.untracked.bool(False), + copyTrajectories = cms.untracked.bool(False) ) - + ) ) - ) - ) - ) - setattr(process,'hltIter1PFlowTrackCutClassifierMerged', cms.EDProducer('ClassifierMerger', - inputClassifiers = cms.vstring('hltIter1PFlowTrackCutClassifierPrompt','hltIter1PFlowTrackCutClassifierDetached') - ) - ) - - setattr(process,'hltIter1PFlowTrackSelectionHighPurity', cms.EDProducer( "TrackCollectionFilterCloner", - originalSource = cms.InputTag('hltIter1PFlowCtfWithMaterialTracks'), - originalMVAVals = cms.InputTag('hltIter1PFlowTrackCutClassifierMerged','MVAValues'), - originalQualVals = cms.InputTag('hltIter1PFlowTrackCutClassifierMerged','QualityMasks'), - minQuality = cms.string('highPurity') , - cloner = cms.untracked.PSet( - copyExtras = cms.untracked.bool(False), - copyTrajectories = cms.untracked.bool(False) - ) - ) - ) + + iter1prompt = getattr(process,'hltIter1PFlowTrackCutClassifierPrompt') + iter1detached = getattr(process,'hltIter1PFlowTrackCutClassifierDetached') + iter1merge = getattr(process,'hltIter1PFlowTrackCutClassifierMerged') + iter1HP = getattr(process,'hltIter1PFlowTrackSelectionHighPurity') - iter1prompt = getattr(process,'hltIter1PFlowTrackCutClassifierPrompt') - iter1detached = getattr(process,'hltIter1PFlowTrackCutClassifierDetached') - iter1merge = getattr(process,'hltIter1PFlowTrackCutClassifierMerged') - iter1HP = getattr(process,'hltIter1PFlowTrackSelectionHighPurity') - -# sequences = ['HLTIterativeTrackingIteration1','HLTIterativeTrackingIter02','HLTTrackReconstructionForPF'] sequences = ['HLTIterativeTrackingIteration1','HLTTrackReconstructionForPF'] # sequences = ['HLTIterativeTrackingIteration1','HLTIterativeTrackingIter02','HLTTrackReconstructionForPF'] for s in sequences: @@ -539,144 +306,76 @@ def new_selector(process): seq.replace( process.hltIter1PFlowTrackSelectionHighPurityTight, iter1detached ) seq.insert( seq.index( iter1HP ), iter1merge ) + print '***********************' + print 'AFTER iter1' + print getattr(process,'HLTTrackReconstructionForPF') + print '***********************' + #### iter2 - if hasattr(process, 'HLTIterativeTrackingIteration2') or hasattr(process,'HLTIterativeTrackingIter02') or hasattr(process,'HLTTrackReconstructionForPF'): - - setattr(process,'hltIter2PFlowTrackCutClassifier', cms.EDProducer('TrackCutClassifier', - src = cms.InputTag('hltIter2PFlowCtfWithMaterialTracks'), - beamspot = cms.InputTag('hltOnlineBeamSpot'), - vertices = cms.InputTag('hltTrimmedPixelVertices'), - GBRForestLabel = cms.string(''), - GBRForestFileName = cms.string(''), - qualityCuts = cms.vdouble( - -0.7, - 0.1, - 0.7 - ), - mva = cms.PSet( - minNdof = cms.vdouble( - 1E-5, - 1E-5, - 1E-5 - ), - minPixelHits = cms.vint32( - 0, - 0, - 0 - ), - minLayers = cms.vint32( - 3, - 3, - 3 - ), - min3DLayers = cms.vint32( - 0, - 0, - 0 - ), - maxLostLayers = cms.vint32( - 1, - 1, - 1 - ), - maxChi2 = cms.vdouble( - 9999, - 25., - 16. - ), - maxChi2n = cms.vdouble( - 1.2, - 1., - 0.7 - ), - minNVtxTrk = cms.int32(3), - maxDz = cms.vdouble( - 0.5, - 0.2, - 3.4028234663852886e+38, - # 0.1 # 0.2 - ), - maxDzWrtBS = cms.vdouble( - 3.4028234663852886e+38, - 24, - 15 - ), - maxDr = cms.vdouble( - 0.5, - 0.03, - 3.4028234663852886e+38, - # 0.03 - ), - dz_par = cms.PSet( - dz_exp = cms.vint32( - 4, - 4, - 4, - ), - dz_par1 = cms.vdouble( - 3.4028234663852886e+38, - 0.4, - 0.4 - ), - dz_par2 = cms.vdouble( - 3.4028234663852886e+38, - 0.35, - 0.35 - ), - ), - dr_par = cms.PSet( - dr_exp = cms.vint32( - 4, - 4, - 4, - ), - dr_par1 = cms.vdouble( - 3.4028234663852886e+38, - 0.4, - 0.4 - ), - dr_par2 = cms.vdouble( - 3.4028234663852886e+38, - 0.3, - 0.3 - ), - d0err = cms.vdouble( - 0.003, - 0.003, - 0.003 - ), - d0err_par = cms.vdouble( - 0.001, - 0.001, - 0.001 + if hasattr(process,'HLTTrackReconstructionForPF'): + if hasattr(process, 'HLTIterativeTrackingIteration2') or hasattr(process,'HLTIterativeTrackingIter02'): + + setattr(process,'hltIter2PFlowTrackCutClassifier', cms.EDProducer('TrackCutClassifier', + src = cms.InputTag('hltIter2PFlowCtfWithMaterialTracks'), + beamspot = cms.InputTag('hltOnlineBeamSpot'), + vertices = cms.InputTag('hltTrimmedPixelVertices'), + GBRForestLabel = cms.string(''), + GBRForestFileName = cms.string(''), + qualityCuts = cms.vdouble(-0.7,0.1,0.7), + mva = cms.PSet( + minNdof = cms.vdouble( 1E-5, 1E-5, 1E-5), + minPixelHits = cms.vint32(0, 0, 0), + minLayers = cms.vint32(3, 3, 3), + min3DLayers = cms.vint32(0, 0, 0), + maxLostLayers = cms.vint32(1, 1, 1), + maxChi2 = cms.vdouble(9999, 25., 16. ), + maxChi2n = cms.vdouble( 1.2, 1., 0.7), + minNVtxTrk = cms.int32(3), + maxDz = cms.vdouble(0.5, 0.2, 3.4028234663852886e+38), + maxDzWrtBS = cms.vdouble(3.4028234663852886e+38, 24, 15), + maxDr = cms.vdouble(0.5, 0.03, 3.4028234663852886e+38), + dz_par = cms.PSet( + dz_exp = cms.vint32(4,4,4), + dz_par1 = cms.vdouble(3.4028234663852886e+38, 0.40, 0.40), + dz_par2 = cms.vdouble(3.4028234663852886e+38, 0.35, 0.35), + ), + dr_par = cms.PSet( + dr_exp = cms.vint32(4,4,4), + dr_par1 = cms.vdouble(3.4028234663852886e+38, 0.40, 0.40), + dr_par2 = cms.vdouble(3.4028234663852886e+38, 0.30, 0.30), + d0err = cms.vdouble(0.003,0.003,0.003), + d0err_par = cms.vdouble(0.001,0.001,0.001) + ) + ) + ) + ) + setattr(process,'hltIter2PFlowTrackSelectionHighPurity', cms.EDProducer( "TrackCollectionFilterCloner", + originalSource = cms.InputTag('hltIter2PFlowCtfWithMaterialTracks'), + originalMVAVals = cms.InputTag('hltIter2PFlowTrackCutClassifier','MVAValues'), + originalQualVals = cms.InputTag('hltIter2PFlowTrackCutClassifier','QualityMasks'), + minQuality = cms.string('highPurity') , + cloner = cms.untracked.PSet( + copyExtras = cms.untracked.bool(False), + copyTrajectories = cms.untracked.bool(False) ) + ) ) - ) - ) - ) - setattr(process,'hltIter2PFlowTrackSelectionHighPurity', cms.EDProducer( "TrackCollectionFilterCloner", - originalSource = cms.InputTag('hltIter2PFlowCtfWithMaterialTracks'), - originalMVAVals = cms.InputTag('hltIter2PFlowTrackCutClassifier','MVAValues'), - originalQualVals = cms.InputTag('hltIter2PFlowTrackCutClassifier','QualityMasks'), - minQuality = cms.string('highPurity') , - cloner = cms.untracked.PSet( - copyExtras = cms.untracked.bool(False), - copyTrajectories = cms.untracked.bool(False) - ) - ) - ) - iter2HP = getattr(process,'hltIter2PFlowTrackSelectionHighPurity') - iter2classifier = getattr(process,'hltIter2PFlowTrackCutClassifier') + iter2HP = getattr(process,'hltIter2PFlowTrackSelectionHighPurity') + iter2classifier = getattr(process,'hltIter2PFlowTrackCutClassifier') + + sequences = ['HLTIterativeTrackingIteration2','HLTTrackReconstructionForPF'] + # sequences = ['HLTIterativeTrackingIteration2','HLTIterativeTrackingIter02','HLTTrackReconstructionForPF'] + for s in sequences: + if hasattr(process,s): + seq = getattr(process,s) + seq.insert( seq.index( iter2HP ), iter2classifier ) + + print '***********************' + print 'AFTER iter2' + print getattr(process,'HLTTrackReconstructionForPF') + print '***********************' -# sequences = ['HLTIterativeTrackingIteration2'] - sequences = ['HLTIterativeTrackingIteration2','HLTTrackReconstructionForPF'] -# sequences = ['HLTIterativeTrackingIteration2','HLTIterativeTrackingIter02','HLTTrackReconstructionForPF'] - for s in sequences: - if hasattr(process,s): - seq = getattr(process,s) - seq.insert( seq.index( iter2HP ), iter2classifier ) - return process