CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
customCSCChamberMasker.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 from EventFilter.CSCRawToDigi.cscDigiFilterDef_cfi import cscDigiFilterDef
3 
5 
6  if hasattr(process,'muonCSCDigis') :
7 
8  # clone the original producer
9  process.preCSCDigis = process.muonCSCDigis.clone()
10  # now apply the filter
11  process.muonCSCDigis = cscDigiFilterDef.clone(
12  stripDigiTag = "preCSCDigis:MuonCSCStripDigi",
13  wireDigiTag = "preCSCDigis:MuonCSCWireDigi",
14  comparatorDigiTag = "preCSCDigis:MuonCSCComparatorDigi",
15  alctDigiTag = "preCSCDigis:MuonCSCALCTDigi",
16  clctDigiTag = "preCSCDigis:MuonCSCCLCTDigi",
17  lctDigiTag = "preCSCDigis:MuonCSCCorrelatedLCTDigi",
18  showerDigiTag = "preCSCDigis:MuonCSCShowerDigi",
19  gemPadClusterDigiTag = "preCSCDigis:MuonGEMPadDigiCluster",
20  maskedChambers = [],
21  selectedChambers = []
22  )
23  process.RawToDigiTask.add(process.preCSCDigis)
24 
25  return process
26 
28  process = appendCSCChamberMaskerAtUnpacking(process)
29  # these 3 chambers had Phase-2 firmware loaded partially during Run-2
30  process.muonCSCDigis.maskedChambers = [
31  "ME+1/1/9", "ME+1/1/10", "ME+1/1/11"]
def maskExperimentalME11ChambersRun2(process)
def appendCSCChamberMaskerAtUnpacking(process)