Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:30:45

0001 import FWCore.ParameterSet.Config as cms
0002 import sys
0003 
0004 from SimMuon.GEMDigitizer.gemChamberMasker_cfi import gemChamberMasker as _gemChamberMasker
0005 
0006 
0007 def appendGEMChamberMaskerAtReco(process):
0008 
0009     if hasattr(process,'RawToDigi') :
0010 
0011         sys.stderr.write("[appendGEMChamberMasker] : Found RawToDigi, appending filter\n")
0012 
0013         process.simMuonGEMDigis = _gemChamberMasker.clone()
0014         process.simMuonGEMDigis.digiTag =  cms.InputTag("simMuonGEMDigis", \
0015                                                         processName = cms.InputTag.skipCurrentProcess())
0016 
0017         process.filteredGEMDigiSequence = cms.Sequence( process.simMuonGEMDigis)
0018 
0019         process.RawToDigi += process.filteredGEMDigiSequence
0020 
0021     return process