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.me0ChamberMasker_cfi import me0ChamberMasker as _me0ChamberMasker
0005 from SimMuon.GEMDigitizer.muonME0PseudoReDigis_cfi import simMuonME0PseudoReDigis
0006
0007 def appendME0ChamberMaskerAtReco(process):
0008
0009 if hasattr(process,'RawToDigi') :
0010
0011 sys.stderr.write("[appendME0ChamberMasker] : Found RawToDigi, appending filter\n")
0012
0013 process.simMuonME0PseudoDigis = _me0ChamberMasker.clone()
0014 process.simMuonME0PseudoReDigis = simMuonME0PseudoReDigis.clone()
0015 process.simMuonME0PseudoDigis.digiTag = cms.InputTag("simMuonME0PseudoDigis", \
0016 processName = cms.InputTag.skipCurrentProcess())
0017
0018 process.filteredME0DigiSequence = cms.Sequence( process.simMuonME0PseudoDigis
0019 + process.simMuonME0PseudoReDigis )
0020
0021 process.RawToDigi += process.filteredME0DigiSequence
0022
0023 return process