Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-08-21 04:46:56

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 from Validation.RecoTrack.HLTmultiTrackValidator_cfi import *
0004 from SimGeneral.TrackingAnalysis.trackingParticleNumberOfLayersProducer_cff import *
0005 
0006 hltTrackValidator = hltMultiTrackValidator.clone(
0007     label = [
0008         "hltPixelTracks",
0009         "hltIter0PFlowTrackSelectionHighPurity",
0010         "hltIter1PFlowTrackSelectionHighPurity",
0011         "hltIter1Merged",
0012         "hltIter2PFlowTrackSelectionHighPurity",
0013         "hltIter2Merged",
0014         "hltMergedTracks"
0015     ]
0016 )
0017 
0018 hltMultiTrackValidationTask = cms.Task(
0019     hltTPClusterProducer
0020     , trackingParticleNumberOfLayersProducer
0021     , hltTrackAssociatorByHits
0022 )
0023 hltMultiTrackValidation = cms.Sequence(
0024     hltTrackValidator,
0025     hltMultiTrackValidationTask
0026 )
0027 
0028 def _modifyForRun3(trackvalidator):
0029     trackvalidator.label = ["hltPixelTracks", "hltMergedTracks", "hltDoubletRecoveryPFlowTrackSelectionHighPurity"] #, "hltIter0PFlowTrackSelectionHighPurity"]
0030 
0031 from Configuration.Eras.Modifier_run3_common_cff import run3_common
0032 run3_common.toModify(hltTrackValidator, _modifyForRun3)
0033 
0034 def _modifyForPhase2(trackvalidator):
0035     trackvalidator.label = ["hltGeneralTracks","hltPhase2PixelTracks"]
0036 
0037 from Configuration.Eras.Modifier_phase2_tracker_cff import phase2_tracker
0038 phase2_tracker.toModify(hltTrackValidator, _modifyForPhase2)