CMS 3D CMS Logo

gemChamberMasker_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 import sys
3 
4 from SimMuon.GEMDigitizer.gemChamberMasker_cfi import gemChamberMasker as _gemChamberMasker
5 from SimMuon.GEMDigitizer.muonGEMPadDigis_cfi import simMuonGEMPadDigis
6 from SimMuon.GEMDigitizer.muonGEMPadDigiClusters_cfi import simMuonGEMPadDigiClusters
7 
8 
10 
11  if hasattr(process,'RawToDigi') :
12 
13  sys.stderr.write("[appendGEMChamberMasker] : Found RawToDigi, appending filter\n")
14 
15  process.simMuonGEMPadDigis = simMuonGEMPadDigis.clone()
16  process.simMuonGEMPadDigiClusters = simMuonGEMPadDigiClusters.clone()
17  process.simMuonGEMDigis = _gemChamberMasker.clone()
18  process.simMuonGEMDigis.digiTag = cms.InputTag("simMuonGEMDigis", \
19  processName = cms.InputTag.skipCurrentProcess())
20 
21  process.filteredGEMDigiSequence = cms.Sequence( process.simMuonGEMDigis \
22  + process.simMuonGEMPadDigis \
23  + process.simMuonGEMPadDigiClusters)
24 
25  process.RawToDigi += process.filteredGEMDigiSequence
26 
27  return process
28 
29 
def appendGEMChamberMaskerAtReco(process)