Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-03-25 10:58:19

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 import os
0004 
0005 # directory paths to code and external LUTs
0006 l1tgmt_basedir = "L1Trigger/L1TMuon/"
0007 lut_dir = os.path.join(l1tgmt_basedir, "data/microgmt_luts/")
0008 
0009 gmtParamsSource = cms.ESSource(
0010     "EmptyESSource",
0011     recordName = cms.string('L1TMuonGlobalParamsRcd'),
0012     iovIsRunNotTime = cms.bool(True),
0013     firstValid = cms.vuint32(1)
0014 )
0015 
0016 gmtParams = cms.ESProducer('L1TMuonGlobalParamsESProducer',
0017     # id for uGMT settings
0018     uGmtProcessorId = cms.string('ugmt_processor'),
0019     # paths to external xml online config files
0020     # for testing purposes or manual generation of conditions from a trigger key
0021     hwXmlFile = cms.string('L1Trigger/L1TMuon/data/o2o/ugmt/UGMT_HW.xml'),
0022     topCfgXmlFile = cms.string('L1Trigger/L1TMuon/data/o2o/ugmt/ugmt_top_config_p5.xml'),
0023     xmlCfgKey = cms.string('TestKey1'),
0024 
0025     # get configuration from OMDS xml files defined above
0026     # if "True" parameters below this one are ignored
0027     configFromXml = cms.bool(False),
0028 
0029     # uGMT FW version to be set
0030     # Format: 0xMMmmvvpp for major.minor.very_minor.patch
0031     # E.g.: 2.1.0.patch1 translates to 0x02010001
0032     fwVersion = cms.uint32(0x4010000),
0033 
0034     # uGMT inputs to disable
0035     # disabled inputs are not used in the algo but are still in the readout
0036     caloInputsDisable = cms.bool(False), # disables all 28 calo inputs
0037     bmtfInputsToDisable = cms.vuint32(0,0,0,0,0,0,0,0,0,0,0,0), # BMTF 0-11
0038     omtfInputsToDisable = cms.vuint32(0,0,0,0,0,0,0,0,0,0,0,0), # OMTF+0-5, OMTF-0-5
0039     emtfInputsToDisable = cms.vuint32(0,0,0,0,0,0,0,0,0,0,0,0), # EMTF+0-5, EMTF-0-5
0040 
0041     # masked inputs
0042     # masked inputs are not used in the algo and are not in the readout
0043     caloInputsMasked = cms.bool(False), # masks all 28 calo inputs
0044     maskedBmtfInputs = cms.vuint32(0,0,0,0,0,0,0,0,0,0,0,0), # BMTF 0-11
0045     maskedOmtfInputs = cms.vuint32(0,0,0,0,0,0,0,0,0,0,0,0), # OMTF+0-5, OMTF-0-5
0046     maskedEmtfInputs = cms.vuint32(0,0,0,0,0,0,0,0,0,0,0,0), # EMTF+0-5, EMTF-0-5
0047 
0048     # paths to external lookup tables
0049     # The paths can be empty for MatchQual and SortRAnk LUTs, in which case
0050     # the LUTs are generated on the fly by the parameters defined below.
0051     AbsIsoCheckMemLUTPath        = cms.string(os.path.join(lut_dir, 'AbsIsoCheckMem.txt')),
0052     RelIsoCheckMemLUTPath        = cms.string(os.path.join(lut_dir, 'RelIsoCheckMem.txt')),
0053     IdxSelMemPhiLUTPath          = cms.string(os.path.join(lut_dir, 'IdxSelMemPhi.txt')),
0054     IdxSelMemEtaLUTPath          = cms.string(os.path.join(lut_dir, 'IdxSelMemEta.txt')),
0055     FwdPosSingleMatchQualLUTPath = cms.string(''),
0056     FwdNegSingleMatchQualLUTPath = cms.string(''),
0057     OvlPosSingleMatchQualLUTPath = cms.string(''),
0058     OvlNegSingleMatchQualLUTPath = cms.string(''),
0059     BOPosMatchQualLUTPath        = cms.string(''),
0060     BONegMatchQualLUTPath        = cms.string(''),
0061     FOPosMatchQualLUTPath        = cms.string(''),
0062     FONegMatchQualLUTPath        = cms.string(''),
0063     BPhiExtrapolationLUTPath     = cms.string(os.path.join(lut_dir, 'BPhiExtrapolation_5eta_7pt_4out_2outshift_20170505.txt')),
0064     OPhiExtrapolationLUTPath     = cms.string(os.path.join(lut_dir, 'OPhiExtrapolation_5eta_7pt_4out_2outshift_20170505.txt')),
0065     FPhiExtrapolationLUTPath     = cms.string(os.path.join(lut_dir, 'EPhiExtrapolation_5eta_7pt_4out_2outshift_20170505.txt')),
0066     BEtaExtrapolationLUTPath     = cms.string(os.path.join(lut_dir, 'BEtaExtrapolation_5eta_7pt_4out_0outshift_20170505.txt')),
0067     OEtaExtrapolationLUTPath     = cms.string(os.path.join(lut_dir, 'OEtaExtrapolation_5eta_7pt_4out_0outshift_20170505.txt')),
0068     FEtaExtrapolationLUTPath     = cms.string(os.path.join(lut_dir, 'EEtaExtrapolation_5eta_7pt_4out_0outshift_20170505.txt')),
0069     SortRankLUTPath              = cms.string(os.path.join(lut_dir, 'SortRank.txt')),
0070 
0071     # parameters for MatchQual LUTs if no external LUT is defined
0072     # If a path to an external LUT is defined these parameters have no effect
0073     FwdPosSingleMatchQualLUTMaxDR = cms.double(0.05),
0074     FwdPosSingleMatchQualLUTfEta  = cms.double(1),
0075     FwdPosSingleMatchQualLUTfPhi  = cms.double(1),
0076 
0077     FwdNegSingleMatchQualLUTMaxDR = cms.double(0.05),
0078     FwdNegSingleMatchQualLUTfEta  = cms.double(1),
0079     FwdNegSingleMatchQualLUTfPhi  = cms.double(1),
0080 
0081     OvlPosSingleMatchQualLUTMaxDR       = cms.double(0.05),
0082     OvlPosSingleMatchQualLUTfEta        = cms.double(1),
0083     OvlPosSingleMatchQualLUTfEtaCoarse  = cms.double(1),
0084     OvlPosSingleMatchQualLUTfPhi        = cms.double(2),
0085 
0086     OvlNegSingleMatchQualLUTMaxDR       = cms.double(0.05),
0087     OvlNegSingleMatchQualLUTfEta        = cms.double(1),
0088     OvlNegSingleMatchQualLUTfEtaCoarse  = cms.double(1),
0089     OvlNegSingleMatchQualLUTfPhi        = cms.double(2),
0090 
0091     BOPosMatchQualLUTMaxDR        = cms.double(0.15),
0092     BOPosMatchQualLUTfEta         = cms.double(1),
0093     BOPosMatchQualLUTfEtaCoarse   = cms.double(1),
0094     BOPosMatchQualLUTfPhi         = cms.double(6),
0095 
0096     BONegMatchQualLUTMaxDR        = cms.double(0.15),
0097     BONegMatchQualLUTfEta         = cms.double(1),
0098     BONegMatchQualLUTfEtaCoarse   = cms.double(1),
0099     BONegMatchQualLUTfPhi         = cms.double(6),
0100 
0101     FOPosMatchQualLUTMaxDR        = cms.double(0.075),
0102     FOPosMatchQualLUTfEta         = cms.double(1),
0103     FOPosMatchQualLUTfEtaCoarse   = cms.double(1),
0104     FOPosMatchQualLUTfPhi         = cms.double(3),
0105 
0106     FONegMatchQualLUTMaxDR        = cms.double(0.075),
0107     FONegMatchQualLUTfEta         = cms.double(1),
0108     FONegMatchQualLUTfEtaCoarse   = cms.double(1),
0109     FONegMatchQualLUTfPhi         = cms.double(3),
0110 
0111     # parameters for SortRank LUT if no path to an external LUT is defined
0112     # If a path to an external LUT is defined these parameters have no effect
0113     SortRankLUTPtFactor   = cms.uint32(1), # can be 0 or 1
0114     SortRankLUTQualFactor = cms.uint32(4), # can be 0 to 34
0115 )
0116