Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-10-25 04:55:08

0001 import FWCore.ParameterSet.Config as cms
0002 from EventFilter.CSCRawToDigi.cscDigiFilterDef_cfi import cscDigiFilterDef
0003 
0004 def appendCSCChamberMaskerAtUnpacking(process):
0005 
0006     if hasattr(process,'muonCSCDigis') :
0007 
0008         # clone the original producer
0009         process.preCSCDigis = process.muonCSCDigis.clone()
0010         # now apply the filter
0011         process.muonCSCDigis = cscDigiFilterDef.clone(
0012             stripDigiTag = "preCSCDigis:MuonCSCStripDigi",
0013             wireDigiTag = "preCSCDigis:MuonCSCWireDigi",
0014             comparatorDigiTag = "preCSCDigis:MuonCSCComparatorDigi",
0015             alctDigiTag = "preCSCDigis:MuonCSCALCTDigi",
0016             clctDigiTag = "preCSCDigis:MuonCSCCLCTDigi",
0017             lctDigiTag = "preCSCDigis:MuonCSCCorrelatedLCTDigi",
0018             showerDigiTag = "preCSCDigis:MuonCSCShowerDigi",
0019             gemPadClusterDigiTag = "preCSCDigis:MuonGEMPadDigiCluster",
0020             maskedChambers = [],
0021             selectedChambers = []
0022         )
0023         process.RawToDigiTask.add(process.preCSCDigis)
0024 
0025     return process
0026 
0027 def maskExperimentalME11ChambersRun2(process):
0028     process = appendCSCChamberMaskerAtUnpacking(process)
0029     # these 3 chambers had Phase-2 firmware loaded partially during Run-2
0030     process.muonCSCDigis.maskedChambers = [
0031         "ME+1/1/9", "ME+1/1/10", "ME+1/1/11"]