Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:32:47

0001 import FWCore.ParameterSet.Config as cms
0002 from Validation.MuonHits.muonSimHitMatcherPSet import *
0003 from Validation.MuonGEMDigis.muonGEMDigiPSet import *
0004 from Validation.MuonCSCDigis.muonCSCDigiPSet import *
0005 from Validation.MuonCSCDigis.muonCSCStubPSet import *
0006 
0007 from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer
0008 cscDigiValidation = DQMEDAnalyzer(
0009     'CSCDigiValidation',
0010     muonSimHitMatcherPSet,
0011     muonGEMDigiPSet,
0012     muonCSCDigiPSet,
0013     muonCSCStubPSet,
0014     simHitsTag = cms.InputTag("mix", "g4SimHitsMuonCSCHits"),
0015     doSim = cms.bool(True),
0016     useGEMs = cms.bool(False),
0017     # numbering follows the chamberType in CSCDetId
0018     etaMins = cms.vdouble(2.0, 1.6, 1.2, 0.9, 1.6, 1.0, 1.7, 1.1, 1.8, 1.2),
0019     etaMaxs = cms.vdouble(2.4, 2.2, 1.7, 1.1, 2.4, 1.6, 2.4, 1.7, 2.4, 1.8),
0020     # variables for extra diagnostic plots
0021     # largely copied from DQM/L1TMonitor/python/L1TdeCSCTPG_cfi.py
0022     chambers = cms.vstring("ME11", "ME12", "ME13", "ME21", "ME22",
0023                            "ME31", "ME32", "ME41", "ME42"),
0024     # which chambers are running the Run-3 algorithm already?
0025     # currently ME1/1, ME2/1, ME3/1 and ME4/1
0026     # ME1/3 and MEX/2 not configured with Run-3 algorithm from start of data taking
0027     chambersRun3 = cms.vuint32(0, 3, 5, 7),
0028     alctVars = cms.vstring("quality", "wiregroup", "bx"),
0029     alctNBin = cms.vuint32(6, 116, 16),
0030     alctMinBin = cms.vdouble(0, 0, 0),
0031     alctMaxBin = cms.vdouble(6, 116, 16),
0032     clctVars = cms.vstring(
0033         # For Run-2 eras
0034         "quality", "halfstrip", "pattern", "bend", "bx",
0035         # Added in Run-3 eras
0036         # The quartstripbit and eighthstripbit are left out to prevent
0037         # too many plots being created by the release validation
0038         "quartstrip", "eighthstrip", "run3pattern",
0039         "slope", "compcode"),
0040     clctNBin = cms.vuint32(6, 224, 16, 2, 16, 448, 896, 5, 16, 410),
0041     clctMinBin = cms.vdouble(3, 0, 0, 0, 0, 0, 0, 0, 0, 0),
0042     clctMaxBin = cms.vdouble(9, 224, 16, 2, 16, 448, 896, 5, 16, 410),
0043     preclctVars = cms.vstring(
0044         # for pretriggers we look at a reduced set of variables
0045         "cfeb", "halfstrip", "bx"),
0046     preclctNBin = cms.vuint32(7, 224, 16),
0047     preclctMinBin = cms.vdouble(0, 0, 0),
0048     preclctMaxBin = cms.vdouble(7, 224, 16),
0049     lctVars = cms.vstring(
0050         # For Run-2 eras
0051         "quality", "wiregroup", "halfstrip", "pattern", "bend", "bx", "type",
0052         # Added in Run-3 eras
0053         # The quartstripbit and eighthstripbit are left out to prevent
0054         # too many plots being created by the release validation
0055         "quartstrip", "eighthstrip", "run3pattern", "slope"),
0056     lctNBin = cms.vuint32(16, 116, 224, 16, 2, 16, 8, 448, 896, 5, 16),
0057     lctMinBin = cms.vdouble(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0),
0058     lctMaxBin = cms.vdouble(16, 116, 224, 16, 2, 16, 8, 448, 896, 5, 16),
0059     isRun3 = cms.bool(False),
0060 )
0061 
0062 from Configuration.Eras.Modifier_run3_common_cff import run3_common
0063 run3_common.toModify(cscDigiValidation,
0064                      isRun3 = True
0065 )
0066 
0067 from Configuration.Eras.Modifier_run3_GEM_cff import run3_GEM
0068 run3_GEM.toModify(cscDigiValidation,
0069                   useGEMs = True
0070 )
0071 
0072 # do not run GEMs in fastsim sequences
0073 from Configuration.Eras.Modifier_fastSim_cff import fastSim
0074 fastSim.toModify(cscDigiValidation,
0075                  simHitsTag = "mix:MuonSimHitsMuonCSCHits",
0076                  simTrack = dict(inputTag = "fastSimProducer"),
0077                  simVertex = dict(inputTag = "fastSimProducer"),
0078                  cscSimHit = dict(inputTag = "MuonSimHits:MuonCSCHits")
0079 )