CMS 3D CMS Logo

FastTrackerRecHitMaskProducer_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 fastTrackerRecHitMaskProducer = cms.EDProducer(
4  "FastTrackerRecHitMaskProducer",
5  minNumberOfLayersWithMeasBeforeFiltering_ = cms.int32(0),
6  trackQuality = cms.string("hightPurity"),
7  trajectories = cms.InputTag("generalTracks"),
8  recHits = cms.InputTag("fastTrackerRecHits"),
9  )
10 
11 def maskProducerFromClusterRemover(clusterRemover):
12  maskProducer = fastTrackerRecHitMaskProducer.clone(
13  minNumberOfLayersWithMeasBeforeFiltering = clusterRemover.minNumberOfLayersWithMeasBeforeFiltering,
14  TrackQuality = clusterRemover.TrackQuality,
15  trajectories = clusterRemover.trajectories,
16  )
17  if(hasattr(clusterRemover,"trackClassifier")):
18  maskProducer.trackClassifier = clusterRemover.trackClassifier
19  if(hasattr(clusterRemover,"oldClusterRemovalInfo")):
20  maskProducer.oldHitRemovalInfo = cms.InputTag(clusterRemover.oldClusterRemovalInfo.getModuleLabel().replace("Clusters","Masks"))
21  return maskProducer
22 
def replace(string, replacements)