CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
cscDigiValidation_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
6 
7 from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer
8 cscDigiValidation = DQMEDAnalyzer(
9  'CSCDigiValidation',
10  muonSimHitMatcherPSet,
11  muonGEMDigiPSet,
12  muonCSCDigiPSet,
13  muonCSCStubPSet,
14  simHitsTag = cms.InputTag("mix", "g4SimHitsMuonCSCHits"),
15  doSim = cms.bool(True),
16  useGEMs = cms.bool(False),
17  # numbering follows the chamberType in CSCDetId
18  etaMins = cms.vdouble(2.0, 1.6, 1.2, 0.9, 1.6, 1.0, 1.7, 1.1, 1.8, 1.2),
19  etaMaxs = cms.vdouble(2.4, 2.2, 1.7, 1.1, 2.4, 1.6, 2.4, 1.7, 2.4, 1.8),
20  # variables for extra diagnostic plots
21  # largely copied from DQM/L1TMonitor/python/L1TdeCSCTPG_cfi.py
22  chambers = cms.vstring("ME11", "ME12", "ME13", "ME21", "ME22",
23  "ME31", "ME32", "ME41", "ME42"),
24  # which chambers are running the Run-3 algorithm already?
25  # currently ME1/1, ME2/1, ME3/1 and ME4/1
26  # ME1/3 and MEX/2 not configured with Run-3 algorithm from start of data taking
27  chambersRun3 = cms.vuint32(0, 3, 5, 7),
28  alctVars = cms.vstring("quality", "wiregroup", "bx"),
29  alctNBin = cms.vuint32(6, 116, 16),
30  alctMinBin = cms.vdouble(0, 0, 0),
31  alctMaxBin = cms.vdouble(6, 116, 16),
32  clctVars = cms.vstring(
33  # For Run-2 eras
34  "quality", "halfstrip", "pattern", "bend", "bx",
35  # Added in Run-3 eras
36  # The quartstripbit and eighthstripbit are left out to prevent
37  # too many plots being created by the release validation
38  "quartstrip", "eighthstrip", "run3pattern",
39  "slope", "compcode"),
40  clctNBin = cms.vuint32(6, 224, 16, 2, 16, 448, 896, 5, 16, 410),
41  clctMinBin = cms.vdouble(3, 0, 0, 0, 0, 0, 0, 0, 0, 0),
42  clctMaxBin = cms.vdouble(9, 224, 16, 2, 16, 448, 896, 5, 16, 410),
43  preclctVars = cms.vstring(
44  # for pretriggers we look at a reduced set of variables
45  "cfeb", "halfstrip", "bx"),
46  preclctNBin = cms.vuint32(7, 224, 16),
47  preclctMinBin = cms.vdouble(0, 0, 0),
48  preclctMaxBin = cms.vdouble(7, 224, 16),
49  lctVars = cms.vstring(
50  # For Run-2 eras
51  "quality", "wiregroup", "halfstrip", "pattern", "bend", "bx", "type",
52  # Added in Run-3 eras
53  # The quartstripbit and eighthstripbit are left out to prevent
54  # too many plots being created by the release validation
55  "quartstrip", "eighthstrip", "run3pattern", "slope"),
56  lctNBin = cms.vuint32(16, 116, 224, 16, 2, 16, 8, 448, 896, 5, 16),
57  lctMinBin = cms.vdouble(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0),
58  lctMaxBin = cms.vdouble(16, 116, 224, 16, 2, 16, 8, 448, 896, 5, 16),
59  isRun3 = cms.bool(False),
60 )
61 
62 from Configuration.Eras.Modifier_run3_common_cff import run3_common
63 run3_common.toModify(cscDigiValidation,
64  isRun3 = True
65 )
66 
67 from Configuration.Eras.Modifier_run3_GEM_cff import run3_GEM
68 run3_GEM.toModify(cscDigiValidation,
69  useGEMs = True
70 )
71 
72 # do not run GEMs in fastsim sequences
73 from Configuration.Eras.Modifier_fastSim_cff import fastSim
74 fastSim.toModify(cscDigiValidation,
75  simHitsTag = "mix:MuonSimHitsMuonCSCHits",
76  simTrack = dict(inputTag = "fastSimProducer"),
77  simVertex = dict(inputTag = "fastSimProducer"),
78  cscSimHit = dict(inputTag = "MuonSimHits:MuonCSCHits")
79 )