CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
fakeGmtParams_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 import os
4 
5 # directory paths to code and external LUTs
6 l1tgmt_basedir = "L1Trigger/L1TMuon/"
7 lut_dir = os.path.join(l1tgmt_basedir, "data/microgmt_luts/")
8 
9 gmtParamsSource = cms.ESSource(
10  "EmptyESSource",
11  recordName = cms.string('L1TMuonGlobalParamsRcd'),
12  iovIsRunNotTime = cms.bool(True),
13  firstValid = cms.vuint32(1)
14 )
15 
16 gmtParams = cms.ESProducer('L1TMuonGlobalParamsESProducer',
17  # id for uGMT settings
18  uGmtProcessorId = cms.string('ugmt_processor'),
19  # paths to external xml online config files
20  # for testing purposes or manual generation of conditions from a trigger key
21  hwXmlFile = cms.string('L1Trigger/L1TMuon/data/o2o/ugmt/UGMT_HW.xml'),
22  topCfgXmlFile = cms.string('L1Trigger/L1TMuon/data/o2o/ugmt/ugmt_top_config_p5.xml'),
23  xmlCfgKey = cms.string('TestKey1'),
24 
25  # get configuration from OMDS xml files defined above
26  # if "True" parameters below this one are ignored
27  configFromXml = cms.bool(False),
28 
29  # uGMT FW version to be set
30  # Format: 0xMMmmvvpp for major.minor.very_minor.patch
31  # E.g.: 2.1.0.patch1 translates to 0x02010001
32  fwVersion = cms.uint32(0x4010000),
33 
34  # uGMT inputs to disable
35  # disabled inputs are not used in the algo but are still in the readout
36  caloInputsDisable = cms.bool(False), # disables all 28 calo inputs
37  bmtfInputsToDisable = cms.vuint32(0,0,0,0,0,0,0,0,0,0,0,0), # BMTF 0-11
38  omtfInputsToDisable = cms.vuint32(0,0,0,0,0,0,0,0,0,0,0,0), # OMTF+0-5, OMTF-0-5
39  emtfInputsToDisable = cms.vuint32(0,0,0,0,0,0,0,0,0,0,0,0), # EMTF+0-5, EMTF-0-5
40 
41  # masked inputs
42  # masked inputs are not used in the algo and are not in the readout
43  caloInputsMasked = cms.bool(False), # masks all 28 calo inputs
44  maskedBmtfInputs = cms.vuint32(0,0,0,0,0,0,0,0,0,0,0,0), # BMTF 0-11
45  maskedOmtfInputs = cms.vuint32(0,0,0,0,0,0,0,0,0,0,0,0), # OMTF+0-5, OMTF-0-5
46  maskedEmtfInputs = cms.vuint32(0,0,0,0,0,0,0,0,0,0,0,0), # EMTF+0-5, EMTF-0-5
47 
48  # paths to external lookup tables
49  # The paths can be empty for MatchQual and SortRAnk LUTs, in which case
50  # the LUTs are generated on the fly by the parameters defined below.
51  AbsIsoCheckMemLUTPath = cms.string(os.path.join(lut_dir, 'AbsIsoCheckMem.txt')),
52  RelIsoCheckMemLUTPath = cms.string(os.path.join(lut_dir, 'RelIsoCheckMem.txt')),
53  IdxSelMemPhiLUTPath = cms.string(os.path.join(lut_dir, 'IdxSelMemPhi.txt')),
54  IdxSelMemEtaLUTPath = cms.string(os.path.join(lut_dir, 'IdxSelMemEta.txt')),
55  FwdPosSingleMatchQualLUTPath = cms.string(''),
56  FwdNegSingleMatchQualLUTPath = cms.string(''),
57  OvlPosSingleMatchQualLUTPath = cms.string(''),
58  OvlNegSingleMatchQualLUTPath = cms.string(''),
59  BOPosMatchQualLUTPath = cms.string(''),
60  BONegMatchQualLUTPath = cms.string(''),
61  FOPosMatchQualLUTPath = cms.string(''),
62  FONegMatchQualLUTPath = cms.string(''),
63  BPhiExtrapolationLUTPath = cms.string(os.path.join(lut_dir, 'BPhiExtrapolation_5eta_7pt_4out_2outshift_20170505.txt')),
64  OPhiExtrapolationLUTPath = cms.string(os.path.join(lut_dir, 'OPhiExtrapolation_5eta_7pt_4out_2outshift_20170505.txt')),
65  FPhiExtrapolationLUTPath = cms.string(os.path.join(lut_dir, 'EPhiExtrapolation_5eta_7pt_4out_2outshift_20170505.txt')),
66  BEtaExtrapolationLUTPath = cms.string(os.path.join(lut_dir, 'BEtaExtrapolation_5eta_7pt_4out_0outshift_20170505.txt')),
67  OEtaExtrapolationLUTPath = cms.string(os.path.join(lut_dir, 'OEtaExtrapolation_5eta_7pt_4out_0outshift_20170505.txt')),
68  FEtaExtrapolationLUTPath = cms.string(os.path.join(lut_dir, 'EEtaExtrapolation_5eta_7pt_4out_0outshift_20170505.txt')),
69  SortRankLUTPath = cms.string(os.path.join(lut_dir, 'SortRank.txt')),
70 
71  # parameters for MatchQual LUTs if no external LUT is defined
72  # If a path to an external LUT is defined these parameters have no effect
73  FwdPosSingleMatchQualLUTMaxDR = cms.double(0.05),
74  FwdPosSingleMatchQualLUTfEta = cms.double(1),
75  FwdPosSingleMatchQualLUTfPhi = cms.double(1),
76 
77  FwdNegSingleMatchQualLUTMaxDR = cms.double(0.05),
78  FwdNegSingleMatchQualLUTfEta = cms.double(1),
79  FwdNegSingleMatchQualLUTfPhi = cms.double(1),
80 
81  OvlPosSingleMatchQualLUTMaxDR = cms.double(0.05),
82  OvlPosSingleMatchQualLUTfEta = cms.double(1),
83  OvlPosSingleMatchQualLUTfEtaCoarse = cms.double(1),
84  OvlPosSingleMatchQualLUTfPhi = cms.double(2),
85 
86  OvlNegSingleMatchQualLUTMaxDR = cms.double(0.05),
87  OvlNegSingleMatchQualLUTfEta = cms.double(1),
88  OvlNegSingleMatchQualLUTfEtaCoarse = cms.double(1),
89  OvlNegSingleMatchQualLUTfPhi = cms.double(2),
90 
91  BOPosMatchQualLUTMaxDR = cms.double(0.15),
92  BOPosMatchQualLUTfEta = cms.double(1),
93  BOPosMatchQualLUTfEtaCoarse = cms.double(1),
94  BOPosMatchQualLUTfPhi = cms.double(6),
95 
96  BONegMatchQualLUTMaxDR = cms.double(0.15),
97  BONegMatchQualLUTfEta = cms.double(1),
98  BONegMatchQualLUTfEtaCoarse = cms.double(1),
99  BONegMatchQualLUTfPhi = cms.double(6),
100 
101  FOPosMatchQualLUTMaxDR = cms.double(0.075),
102  FOPosMatchQualLUTfEta = cms.double(1),
103  FOPosMatchQualLUTfEtaCoarse = cms.double(1),
104  FOPosMatchQualLUTfPhi = cms.double(3),
105 
106  FONegMatchQualLUTMaxDR = cms.double(0.075),
107  FONegMatchQualLUTfEta = cms.double(1),
108  FONegMatchQualLUTfEtaCoarse = cms.double(1),
109  FONegMatchQualLUTfPhi = cms.double(3),
110 
111  # parameters for SortRank LUT if no path to an external LUT is defined
112  # If a path to an external LUT is defined these parameters have no effect
113  SortRankLUTPtFactor = cms.uint32(1), # can be 0 or 1
114  SortRankLUTQualFactor = cms.uint32(4), # can be 0 to 34
115 )
116