test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
csctfTrackDigis_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 # This function makes all the changes to csctfTrackDigis required for it to work
4 # in Run 2. It is declared here to be obvious when this file is opened, but not
5 # applied until after csctfTrackDigis is declared (and then only if the "run2"
6 # era is active).
8  object.SectorProcessor.PTLUT.PtMethod = 34
9  object.SectorProcessor.gangedME1a = False
10  object.SectorProcessor.firmwareSP = 20140515
11  object.SectorProcessor.initializeFromPSet = False
12 
13 
15 csctfTrackDigis = cms.EDProducer("CSCTFTrackProducer",
16  DTproducer = cms.untracked.InputTag("dtTriggerPrimitiveDigis"),
17  DtDirectProd = cms.untracked.InputTag("csctfunpacker","DT"),
18  SectorReceiverInput = cms.untracked.InputTag("cscTriggerPrimitiveDigis","MPCSORTED"),
19  SectorProcessor = cms.PSet(CSCCommonTrigger,
20  # LUT Setup
21  ###########
22  SRLUT = cms.PSet(
23  Binary = cms.untracked.bool(False),
24  ReadLUTs = cms.untracked.bool(False),
25  LUTPath = cms.untracked.string('./'),
26  UseMiniLUTs = cms.untracked.bool(True)
27  ),
28 
29  PTLUT = cms.PSet(
30  LowQualityFlag = cms.untracked.uint32(4),
31  ReadPtLUT = cms.bool(False),
32  PtMethod = cms.untracked.uint32(32)
33  ),
34 
35  # Operational mode control
36  ##########################
37  AllowALCTonly = cms.bool(False),
38  AllowCLCTonly = cms.bool(False),
39  rescaleSinglesPhi = cms.bool(True),
40  run_core = cms.bool(True),
41  trigger_on_MB1a = cms.bool(False),
42  trigger_on_MB1d = cms.bool(False),
43  trigger_on_ME1a = cms.bool(False),
44  trigger_on_ME1b = cms.bool(False),
45  trigger_on_ME2 = cms.bool(False),
46  trigger_on_ME3 = cms.bool(False),
47  trigger_on_ME4 = cms.bool(False),
48  singlesTrackOutput = cms.uint32(1),
49  gangedME1a = cms.untracked.bool(True),
50  CoreLatency = cms.uint32(7),
51  PreTrigger = cms.uint32(2),
52  BXAdepth = cms.uint32(2),
53  widePhi = cms.uint32(0),
54 
55  # Control Registers to core,
56  # Reordered to match firmware interface
57  #######################################
58  mindetap = cms.uint32(7),
59  mindetap_halo = cms.uint32(8),
60 
61  EtaMin = cms.vuint32(0, 0, 0, 0, 0, 0, 0, 0),
62 
63  mindeta12_accp = cms.uint32(12),
64  mindeta13_accp = cms.uint32(13),
65  mindeta112_accp = cms.uint32(14),
66  mindeta113_accp = cms.uint32(21),
67 
68  EtaMax = cms.vuint32(127, 127, 127, 127, 127, 24, 24, 127),
69 
70  maxdeta12_accp = cms.uint32(17),
71  maxdeta13_accp = cms.uint32(27),
72  maxdeta112_accp = cms.uint32(29),
73  maxdeta113_accp = cms.uint32(38),
74 
75  EtaWindows = cms.vuint32(4, 4, 6, 6, 6, 6, 6),
76 
77  maxdphi12_accp = cms.uint32(64),
78  maxdphi13_accp = cms.uint32(64),
79  maxdphi112_accp = cms.uint32(64),
80  maxdphi113_accp = cms.uint32(64),
81 
82  mindphip = cms.uint32(180),
83  mindphip_halo = cms.uint32(128),
84 
85  straightp = cms.uint32(19),
86  curvedp = cms.uint32(15),
87 
88  mbaPhiOff = cms.uint32(0),
89  mbbPhiOff = cms.uint32(1982),
90 
91  kill_fiber = cms.uint32(0),
92  QualityEnableME1a = cms.uint32(65535),
93  QualityEnableME1b = cms.uint32(65535),
94  QualityEnableME1c = cms.uint32(65535),
95  QualityEnableME1d = cms.uint32(65535),
96  QualityEnableME1e = cms.uint32(65535),
97  QualityEnableME1f = cms.uint32(65535),
98  QualityEnableME2a = cms.uint32(65535),
99  QualityEnableME2b = cms.uint32(65535),
100  QualityEnableME2c = cms.uint32(65535),
101  QualityEnableME3a = cms.uint32(65535),
102  QualityEnableME3b = cms.uint32(65535),
103  QualityEnableME3c = cms.uint32(65535),
104  QualityEnableME4a = cms.uint32(65535),
105  QualityEnableME4b = cms.uint32(65535),
106  QualityEnableME4c = cms.uint32(65535),
107 
108  firmwareSP = cms.uint32(20120319),#core 20120313
109  firmwareFA = cms.uint32(20091026),
110  firmwareDD = cms.uint32(20091026),
111  firmwareVM = cms.uint32(20091026),
112 
113  isCoreVerbose = cms.bool(False),
114 
115  #use firmware version and PTLUTs listed in this files if True
116  #use firmware and PTLUTs from O2O if False
117  #initializeFromPSet = cms.bool(True)
118  initializeFromPSet = cms.bool(False)
119  ),
120 
121  isTMB07 = cms.bool(True),
122  useDT = cms.bool(True),
123  readDtDirect = cms.bool(False),
124 )
125 
126 #
127 # If the run2 era is active, make the required changes
128 #
129 from Configuration.StandardSequences.Eras import eras
130 eras.run2_common.toModify( csctfTrackDigis, _modifyCsctfTrackDigisForRun2 )
131