CMS 3D CMS Logo

me0ChamberMasker_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 import sys
3 
4 from SimMuon.GEMDigitizer.me0ChamberMasker_cfi import me0ChamberMasker as _me0ChamberMasker
5 from SimMuon.GEMDigitizer.muonME0ReDigis_cfi import simMuonME0ReDigis
6 
8 
9  if hasattr(process,'RawToDigi') :
10 
11  sys.stderr.write("[appendME0ChamberMasker] : Found RawToDigi, appending filter\n")
12 
13  process.simMuonME0Digis = _me0ChamberMasker.clone()
14  process.simMuonME0ReDigis = simMuonME0ReDigis.clone()
15  process.simMuonME0Digis.digiTag = cms.InputTag("simMuonME0Digis", \
16  processName = cms.InputTag.skipCurrentProcess())
17 
18  process.filteredME0DigiSequence = cms.Sequence( process.simMuonME0Digis
19  + process.simMuonME0ReDigis )
20 
21  process.RawToDigi += process.filteredME0DigiSequence
22 
23  return process
24 
25 
def appendME0ChamberMaskerAtReco(process)