Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:11:23

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 fastTrackerRecHitMaskProducer = cms.EDProducer(
0004     "FastTrackerRecHitMaskProducer",
0005     minNumberOfLayersWithMeasBeforeFiltering_ = cms.int32(0),
0006     trackQuality = cms.string("hightPurity"),
0007     trajectories = cms.InputTag("generalTracks"),
0008     recHits = cms.InputTag("fastTrackerRecHits"),
0009     )
0010 
0011 def maskProducerFromClusterRemover(clusterRemover):
0012     maskProducer = fastTrackerRecHitMaskProducer.clone(
0013         minNumberOfLayersWithMeasBeforeFiltering = clusterRemover.minNumberOfLayersWithMeasBeforeFiltering,
0014         TrackQuality = clusterRemover.TrackQuality,
0015         trajectories = clusterRemover.trajectories,
0016         )
0017     if(hasattr(clusterRemover,"trackClassifier")):
0018         maskProducer.trackClassifier = clusterRemover.trackClassifier
0019     if(hasattr(clusterRemover,"oldClusterRemovalInfo")):
0020         maskProducer.oldHitRemovalInfo = cms.InputTag(clusterRemover.oldClusterRemovalInfo.getModuleLabel().replace("Clusters","Masks"))
0021     return maskProducer
0022