forked from cms-sw/cmssw
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcscTriggerPrimitiveDigis_cfi.py
96 lines (82 loc) · 3.88 KB
/
cscTriggerPrimitiveDigis_cfi.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
import FWCore.ParameterSet.Config as cms
## Import minBX and maxBX for the MPC
from L1Trigger.CSCTriggerPrimitives.CSCCommonTrigger_cfi import CSCCommonTrigger
## The directory params/ contains common psets, psets for the ALCT and CLCT
## processsors, for the TMBs, MPC and CCLUT, the GEM-CSC integrated local trigger,
## and the hadronic shower trigger.
from L1Trigger.CSCTriggerPrimitives.params.alctParams import alctPSets
from L1Trigger.CSCTriggerPrimitives.params.clctParams import clctPSets
from L1Trigger.CSCTriggerPrimitives.params.tmbParams import tmbPSets
from L1Trigger.CSCTriggerPrimitives.params.auxiliaryParams import auxPSets
from L1Trigger.CSCTriggerPrimitives.params.gemcscParams import gemcscPSets
from L1Trigger.CSCTriggerPrimitives.params.showerParams import showerPSet,showerPSet_2025
cscTriggerPrimitiveDigis = cms.EDProducer(
"CSCTriggerPrimitivesProducer",
CSCCommonTrigger,
## pass all processor parameters sets
## deal with the customization in the CSCBaseboard class...
alctPSets,
clctPSets,
tmbPSets,
gemcscPSets,
# True: use parameters from this config
# False: read parameters from DB using EventSetup mechanism
debugParameters = cms.bool(False),
# Name of digi producer modules
CSCComparatorDigiProducer = cms.InputTag("simMuonCSCDigis","MuonCSCComparatorDigi"),
CSCWireDigiProducer = cms.InputTag("simMuonCSCDigis","MuonCSCWireDigi"),
GEMPadDigiClusterProducer = cms.InputTag(""),
# If True, output collections will only be built for good chambers
checkBadChambers = cms.bool(True),
#selected chamebrs to process
selectedChambers = cms.vstring(),
# Anode-DAQ rate determined by pre-CLCTs
keepCLCTPreTriggers = cms.bool(True),
# Anode-DAQ rate determined by ALCTs
keepALCTPreTriggers = cms.bool(False),
# special triggers for showers in chambers
keepShowers = cms.bool(False),
commonParam = auxPSets.commonParam.clone(),
mpcParam = auxPSets.mpcParamRun1.clone(),
showerParam = showerPSet.clone()
)
## unganging in ME1/a
## no sorting/selecting in MPC
from Configuration.Eras.Modifier_run2_common_cff import run2_common
run2_common.toModify( cscTriggerPrimitiveDigis,
debugParameters = True,
checkBadChambers = False,
commonParam = dict(gangedME1a = False),
mpcParam = auxPSets.mpcParamRun2.clone()
)
## turn on upgrade CSC algorithm without GEMs
## originally intended for Phase-2, but moved up to Run-3
from Configuration.Eras.Modifier_run3_common_cff import run3_common
run3_common.toModify( cscTriggerPrimitiveDigis,
keepShowers = True,
commonParam = dict(run3 = True,
runCCLUT_OTMB = True,
runPhase2 = True,
runME11Up = True,
runME21Up = True,
runME31Up = True,
runME41Up = True)
)
## update shower thresholds for 2025 runs
from Configuration.Eras.Modifier_run3_CSC_2025_cff import run3_CSC_2025
run3_CSC_2025.toModify( cscTriggerPrimitiveDigis,
showerParams = showerPSet_2025.clone()
)
## GEM-CSC integrated local trigger in ME1/1
from Configuration.Eras.Modifier_run3_GEM_cff import run3_GEM
run3_GEM.toModify( cscTriggerPrimitiveDigis,
GEMPadDigiClusterProducer = cms.InputTag("simMuonGEMPadDigiClusters"),
commonParam = dict(runME11ILT = True)
)
## GEM-CSC integrated local trigger in ME2/1
## enable the Phase-2 ALCT processors
from Configuration.Eras.Modifier_phase2_muon_cff import phase2_muon
phase2_muon.toModify( cscTriggerPrimitiveDigis,
commonParam = dict(runME21ILT = True,
enableAlctPhase2 = True)
)