Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:30:47

0001 import copy
0002 
0003 import FWCore.ParameterSet.Config as cms
0004 
0005 from SimTracker.TrackHistory.MuonClassifier_cff import *
0006 from SimTracker.TrackHistory.TrackClassifier_cff import *
0007 from SimTracker.TrackHistory.VertexClassifier_cff import *
0008 
0009 def MuonCategorySelector(src, cut):
0010     trackClassifier.trackProducer = copy.deepcopy(src)
0011     trackClassifier.trackProducer.setIsTracked(False)
0012     return cms.EDFilter('TrackCategorySelector', MuonClassifier, src = src, cut = cut)
0013 
0014 def TrackCategorySelector(src, cut):
0015     trackClassifier.trackProducer = copy.deepcopy(src)
0016     trackClassifier.trackProducer.setIsTracked(False)
0017     return cms.EDFilter('TrackCategorySelector', trackClassifier, src = src, cut = cut)
0018 
0019 def TrackingParticleCategorySelector(src, cut):
0020     trackClassifier.enableRecoToSim = cms.untracked.bool(False);
0021     trackClassifier.enableSimToReco = cms.untracked.bool(False);    
0022     return cms.EDFilter('TrackingParticleCategorySelector', trackClassifier, src = src, cut = cut)
0023 
0024 def VertexCategorySelector(src, cut):
0025     vertexClassifier.vertexProducer = copy.deepcopy(src)
0026     vertexClassifier.vertexProducer.setIsTracked(False)
0027     return cms.EDFilter('VertexCategorySelector', vertexClassifier, src = src, cut = cut)
0028 
0029 def TrackingVertexCategorySelector(src, cut):
0030     vertexClassifier.enableRecoToSim = cms.untracked.bool(False);
0031     vertexClassifier.enableSimToReco = cms.untracked.bool(False);    
0032     return cms.EDFilter('TrackingVertexCategorySelector', vertexClassifier, src = src, cut = cut)
0033 
0034 def SecondaryVertexTagInfoCategorySelector(src, pxy, cut):
0035     vertexClassifier.vertexProducer = copy.deepcopy(pxy)
0036     vertexClassifier.vertexProducer.setIsTracked(False)    
0037     return cms.EDFilter('SecondaryVertexTagInfoCategorySelector', vertexClassifier, src = src, cut = cut)