CMS 3D CMS Logo

fakeGmtParams_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 import os
4 
5 l1tgmt_basedir = "L1Trigger/L1TMuon/"
6 lut_dir = os.path.join(l1tgmt_basedir, "data/microgmt_luts/")
7 
8 gmtParamsSource = cms.ESSource(
9  "EmptyESSource",
10  recordName = cms.string('L1TMuonGlobalParamsRcd'),
11  iovIsRunNotTime = cms.bool(True),
12  firstValid = cms.vuint32(1)
13 )
14 
15 gmtParams = cms.ESProducer('L1TMuonGlobalParamsESProducer',
16  # id for uGMT settings
17  uGmtProcessorId = cms.string('ugmt_processor'),
18  hwXmlFile = cms.string('L1Trigger/L1TMuon/data/o2o/ugmt/UGMT_HW.xml'),
19  topCfgXmlFile = cms.string('L1Trigger/L1TMuon/data/o2o/ugmt/ugmt_top_config_p5.xml'),
20  xmlCfgKey = cms.string('TestKey1'),
21  # get configuration from DB and ignore values below this one
22  configFromXml = cms.bool(False),
23 
24  #fwVersion = cms.uint32(1),
25  fwVersion = cms.uint32(0x4010000),
26 
27  # uGMT inputs to disable
28  # disabled inputs are not used in the algo but are still in the readout
29  caloInputsDisable = cms.bool(False),
30  bmtfInputsToDisable = cms.vuint32(0,0,0,0,0,0,0,0,0,0,0,0), # BMTF 0-11
31  omtfInputsToDisable = cms.vuint32(0,0,0,0,0,0,0,0,0,0,0,0), # OMTF+0-5, OMTF-0-5
32  emtfInputsToDisable = cms.vuint32(0,0,0,0,0,0,0,0,0,0,0,0), # EMTF+0-5, EMTF-0-5
33 
34  # masked inputs
35  # masked inputs are not used in the algo and are not in the readout
36  caloInputsMasked = cms.bool(False),
37  maskedBmtfInputs = cms.vuint32(0,0,0,0,0,0,0,0,0,0,0,0), # BMTF 0-11
38  maskedOmtfInputs = cms.vuint32(0,0,0,0,0,0,0,0,0,0,0,0), # OMTF+0-5, OMTF-0-5
39  maskedEmtfInputs = cms.vuint32(0,0,0,0,0,0,0,0,0,0,0,0), # EMTF+0-5, EMTF-0-5
40 
41  AbsIsoCheckMemLUTPath = cms.string(os.path.join(lut_dir, 'AbsIsoCheckMem.txt')),
42  RelIsoCheckMemLUTPath = cms.string(os.path.join(lut_dir, 'RelIsoCheckMem.txt')),
43  IdxSelMemPhiLUTPath = cms.string(os.path.join(lut_dir, 'IdxSelMemPhi.txt')),
44  IdxSelMemEtaLUTPath = cms.string(os.path.join(lut_dir, 'IdxSelMemEta.txt')),
45  FwdPosSingleMatchQualLUTPath = cms.string(''),
46  FwdNegSingleMatchQualLUTPath = cms.string(''),
47  OvlPosSingleMatchQualLUTPath = cms.string(''),
48  OvlNegSingleMatchQualLUTPath = cms.string(''),
49  BOPosMatchQualLUTPath = cms.string(''),
50  BONegMatchQualLUTPath = cms.string(''),
51  FOPosMatchQualLUTPath = cms.string(''),
52  FONegMatchQualLUTPath = cms.string(''),
53  BPhiExtrapolationLUTPath = cms.string(os.path.join(lut_dir, 'BPhiExtrapolation_5eta_7pt_4out_2outshift_20170505.txt')),
54  OPhiExtrapolationLUTPath = cms.string(os.path.join(lut_dir, 'OPhiExtrapolation_5eta_7pt_4out_2outshift_20170505.txt')),
55  FPhiExtrapolationLUTPath = cms.string(os.path.join(lut_dir, 'EPhiExtrapolation_5eta_7pt_4out_2outshift_20170505.txt')),
56  BEtaExtrapolationLUTPath = cms.string(os.path.join(lut_dir, 'BEtaExtrapolation_5eta_7pt_4out_0outshift_20170505.txt')),
57  OEtaExtrapolationLUTPath = cms.string(os.path.join(lut_dir, 'OEtaExtrapolation_5eta_7pt_4out_0outshift_20170505.txt')),
58  FEtaExtrapolationLUTPath = cms.string(os.path.join(lut_dir, 'EEtaExtrapolation_5eta_7pt_4out_0outshift_20170505.txt')),
59  SortRankLUTPath = cms.string(os.path.join(lut_dir, 'SortRank.txt')),
60 
61  FwdPosSingleMatchQualLUTMaxDR = cms.double(0.05),
62  FwdPosSingleMatchQualLUTfEta = cms.double(1),
63  FwdPosSingleMatchQualLUTfPhi = cms.double(1),
64 
65  FwdNegSingleMatchQualLUTMaxDR = cms.double(0.05),
66  FwdNegSingleMatchQualLUTfEta = cms.double(1),
67  FwdNegSingleMatchQualLUTfPhi = cms.double(1),
68 
69  OvlPosSingleMatchQualLUTMaxDR = cms.double(0.05),
70  OvlPosSingleMatchQualLUTfEta = cms.double(1),
71  OvlPosSingleMatchQualLUTfEtaCoarse = cms.double(1),
72  OvlPosSingleMatchQualLUTfPhi = cms.double(2),
73 
74  OvlNegSingleMatchQualLUTMaxDR = cms.double(0.05),
75  OvlNegSingleMatchQualLUTfEta = cms.double(1),
76  OvlNegSingleMatchQualLUTfEtaCoarse = cms.double(1),
77  OvlNegSingleMatchQualLUTfPhi = cms.double(2),
78 
79  BOPosMatchQualLUTMaxDR = cms.double(0.15),
80  BOPosMatchQualLUTfEta = cms.double(1),
81  BOPosMatchQualLUTfEtaCoarse = cms.double(1),
82  BOPosMatchQualLUTfPhi = cms.double(6),
83 
84  BONegMatchQualLUTMaxDR = cms.double(0.15),
85  BONegMatchQualLUTfEta = cms.double(1),
86  BONegMatchQualLUTfEtaCoarse = cms.double(1),
87  BONegMatchQualLUTfPhi = cms.double(6),
88 
89  FOPosMatchQualLUTMaxDR = cms.double(0.075),
90  FOPosMatchQualLUTfEta = cms.double(1),
91  FOPosMatchQualLUTfEtaCoarse = cms.double(1),
92  FOPosMatchQualLUTfPhi = cms.double(3),
93 
94  FONegMatchQualLUTMaxDR = cms.double(0.075),
95  FONegMatchQualLUTfEta = cms.double(1),
96  FONegMatchQualLUTfEtaCoarse = cms.double(1),
97  FONegMatchQualLUTfPhi = cms.double(3),
98 
99  SortRankLUTPtFactor = cms.uint32(1), # can be 0 or 1
100  SortRankLUTQualFactor = cms.uint32(4), # can be 0 to 34
101 )
102