CMS 3D CMS Logo

simEmtfDigis_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 # EMTF emulator configuration
4 # Three options for CSCInput
5 # * 'simCscTriggerPrimitiveDigis','MPCSORTED' : simulated trigger primitives (LCTs) from re-emulating CSC digis
6 # * 'csctfDigis' : real trigger primitives as received by CSCTF (legacy trigger)
7 # * 'emtfStage2Digis' : real trigger primitives as received by EMTF, unpacked in EventFilter/L1TRawToDigi/
8 
9 # Check that proper switches are implemented in L1Trigger/Configuration/python/customiseReEmul.py - AWB 02.06.17
10 
11 simEmtfDigisMC = cms.EDProducer("L1TMuonEndCapTrackProducer",
12  # Verbosity level
13  verbosity = cms.untracked.int32(0),
14 
15  # Input collections
16  CSCInput = cms.InputTag('simCscTriggerPrimitiveDigis','MPCSORTED'),
17  RPCInput = cms.InputTag('simMuonRPCDigis'),
18  GEMInput = cms.InputTag('simMuonGEMPadDigis'),
19 
20  # Run with CSC, RPC, GEM
21  CSCEnable = cms.bool(True),
22  RPCEnable = cms.bool(True),
23  GEMEnable = cms.bool(False),
24 
25  # BX
26  MinBX = cms.int32(-3),
27  MaxBX = cms.int32(+3),
28  BXWindow = cms.int32(3),
29 
30  # CSC LCT BX offset correction
31  CSCInputBXShift = cms.int32(-6),
32  RPCInputBXShift = cms.int32(0),
33  GEMInputBXShift = cms.int32(0),
34 
35  # Sector processor primitive-conversion parameters
36  spPCParams16 = cms.PSet(
37  ZoneBoundaries = cms.vint32(0,41,49,87,127), # 5 boundaries for 4 zones
38  # ZoneBoundaries = cms.vint32(0,36,54,96,127), # new proposed zone boundaries
39  ZoneOverlap = cms.int32(2),
40  IncludeNeighbor = cms.bool(True),
41  DuplicateTheta = cms.bool(True),
42  FixZonePhi = cms.bool(True),
43  UseNewZones = cms.bool(False),
44  FixME11Edges = cms.bool(True),
45  ),
46 
47  # Sector processor pattern-recognition parameters
48  spPRParams16 = cms.PSet(
49  PatternDefinitions = cms.vstring(
50  # straightness, hits in ME1, hits in ME2, hits in ME3, hits in ME4
51  # ME1 vaues centered at 15, range from 0 - 30
52  # ME2,3,4 values centered at 7, range from 0 - 14
53  "4,15:15,7:7,7:7,7:7",
54  "3,16:16,7:7,7:6,7:6",
55  "3,14:14,7:7,8:7,8:7",
56  "2,18:17,7:7,7:5,7:5", # should be 7:4 in ME3,4 (FW bug)
57  "2,13:12,7:7,10:7,10:7",
58  "1,22:19,7:7,7:0,7:0",
59  "1,11:8,7:7,14:7,14:7",
60  "0,30:23,7:7,7:0,7:0",
61  "0,7:0,7:7,14:7,14:7",
62  ),
63  SymPatternDefinitions = cms.vstring(
64  # straightness, hits in ME1, hits in ME2, hits in ME3, hits in ME4
65  "4,15:15:15:15,7:7:7:7,7:7:7:7,7:7:7:7",
66  "3,16:16:14:14,7:7:7:7,8:7:7:6,8:7:7:6",
67  "2,18:17:13:12,7:7:7:7,10:7:7:4,10:7:7:4",
68  "1,22:19:11:8,7:7:7:7,14:7:7:0,14:7:7:0",
69  "0,30:23:7:0,7:7:7:7,14:7:7:0,14:7:7:0",
70  ),
71  UseSymmetricalPatterns = cms.bool(True),
72  ),
73 
74  # Sector processor track-building parameters
75  spTBParams16 = cms.PSet(
76  ThetaWindow = cms.int32(8),
77  ThetaWindowRPC = cms.int32(8),
78  UseSingleHits = cms.bool(False),
79  BugSt2PhDiff = cms.bool(False),
80  BugME11Dupes = cms.bool(False),
81  ),
82 
83  # Sector processor ghost-cancellation parameters
84  spGCParams16 = cms.PSet(
85  MaxRoadsPerZone = cms.int32(3),
86  MaxTracks = cms.int32(3),
87  UseSecondEarliest = cms.bool(True),
88  BugSameSectorPt0 = cms.bool(False),
89  ),
90 
91  # Sector processor pt-assignment parameters
92  spPAParams16 = cms.PSet(
93  PtLUTVersion = cms.int32(7), ## v5 for 2016, v6 for early 2017, v7 starting ~June 5 - AWB 02.06.17
94  ReadPtLUTFile = cms.bool(False),
95  FixMode15HighPt = cms.bool(True),
96  Bug9BitDPhi = cms.bool(False),
97  BugMode7CLCT = cms.bool(False),
98  BugNegPt = cms.bool(False),
99  BugGMTPhi = cms.bool(False),
100  PromoteMode7 = cms.bool(True),
101  ),
102 
103 )
104 
105 simEmtfDigisData = simEmtfDigisMC.clone(
106  CSCInput = cms.InputTag('emtfStage2Digis'),
107  RPCInput = cms.InputTag('muonRPCDigis'),
108  GEMInput = cms.InputTag('muonGEMPadDigis'),
109 )
110 
111 simEmtfDigis = simEmtfDigisMC.clone()