85 def divideByEgLsb(aParam):
86 return int(aParam.value() / aModule.egLsb.value())
88 def divideByTauLsb(aParam):
89 return int(aParam.value() / aModule.tauLsb.value())
91 def divideByJetLsb(aParam):
92 return int(aParam.value() / aModule.jetLsb.value())
96 ((
'mp_common',
'sdfile'),
None,
''),
97 ((
'mp_common',
'algoRev'),
None,
''),
98 ((
'mp_common',
'leptonSeedThreshold'),
'2_ClusterSeedThreshold.mif', divideByEgLsb(aModule.egSeedThreshold)),
99 ((
'mp_common',
'leptonTowerThreshold'),
'3_ClusterThreshold.mif', divideByEgLsb(aModule.egNeighbourThreshold)),
100 ((
'mp_common',
'pileUpTowerThreshold'),
'4_PileUpThreshold.mif', 0x0)
104 ((
'mp_egamma',
'egammaRelaxationThreshold'),
'10_EgRelaxThr.mif', divideByEgLsb(aModule.egMaxPtHOverE)),
105 ((
'mp_egamma',
'egammaMaxEta'),
'egammaMaxEta.mif', aModule.egEtaCut.value()),
106 ((
'mp_egamma',
'egammaBypassCuts'),
'BypassEgVeto.mif',
bool(aModule.egBypassEGVetos.value())),
107 ((
'mp_egamma',
'egammaBypassShape'),
'BypassEgShape.mif',
bool(aModule.egBypassShape.value())),
108 ((
'mp_egamma',
'egammaBypassEcalFG'),
'BypassEcalFG.mif',
bool(aModule.egBypassECALFG.value())),
109 ((
'mp_egamma',
'egammaBypassExtendedHOverE'),
'_BypassExtHE.mif',
bool(aModule.egBypassExtHOverE)),
110 ((
'mp_egamma',
'egammaHOverECut_iEtaLT15'),
'_RatioCutLt15.mif', aModule.egHOverEcutBarrel.value()),
111 ((
'mp_egamma',
'egammaHOverECut_iEtaGTEq15'),
'_RatioCutGe15.mif', aModule.egHOverEcutEndcap.value()),
112 ((
'mp_egamma',
'egammaEnergyCalibLUT'),
'C_EgammaCalibration_12to18.mif',
parseOfflineLUTfile(aModule.egCalibrationLUTFile.value(), 4096)),
113 ((
'mp_egamma',
'egammaIsoLUT1'),
'D_EgammaIsolation1_13to9.mif',
parseOfflineLUTfile(aModule.egIsoLUTFile.value(), 8192)),
114 ((
'mp_egamma',
'egammaIsoLUT2'),
'D_EgammaIsolation2_13to9.mif',
parseOfflineLUTfile(aModule.egIsoLUTFile2.value(), 8192))
118 ((
'mp_tau',
'tauMaxEta'),
'tauMaxEta.mif', aModule.isoTauEtaMax.value()),
119 ((
'mp_tau',
'tauEnergyCalibLUT'),
'I_TauCalibration_11to18.mif',
parseOfflineLUTfile(aModule.tauCalibrationLUTFile.value(), 2048, 0x0)),
120 ((
'mp_tau',
'tauIsoLUT'),
'H_TauIsolation_12to9.mif',
parseOfflineLUTfile(aModule.tauIsoLUTFile.value(), 4096)),
121 ((
'mp_tau',
'tauTrimmingLUT'),
'P_TauTrimming_13to8.mif',
parseOfflineLUTfile(aModule.tauTrimmingShapeVetoLUTFile.value(), 8192))
125 ((
'mp_jet',
'jetSeedThreshold'),
'1_JetSeedThreshold.mif', divideByJetLsb(aModule.jetSeedThreshold)),
126 ((
'mp_jet',
'jetMaxEta'),
'6_JetEtaMax.mif', 0x00028),
127 ((
'mp_jet',
'jetBypassPileUpSub'),
'BypassJetPUS.mif',
bool(aModule.jetBypassPUS.value())),
128 ((
'mp_jet',
'jetPUSUsePhiRing'),
'PhiRingPUS.mif',
bool(aModule.jetPUSUsePhiRing.value())),
129 ((
'mp_jet',
'jetEnergyCalibLUT'),
'L_JetCalibration_11to18.mif',
parseOfflineLUTfile(aModule.jetCalibrationLUTFile.value(), 2048)),
130 ((
'mp_jet',
'HTMHT_maxJetEta'),
'HTMHT_maxJetEta.mif', aModule.etSumEtaMax[1]),
131 ((
'mp_jet',
'HT_jetThreshold'),
'8_HtThreshold.mif',
int(aModule.etSumEtThreshold[1] / aModule.etSumLsb.value())),
132 ((
'mp_jet',
'MHT_jetThreshold'),
'9_MHtThreshold.mif',
int(aModule.etSumEtThreshold[3] / aModule.etSumLsb.value())),
136 ((
'mp_sums',
'towerCountThreshold'),
'HeavyIonThr.mif',
int(aModule.etSumEtThreshold[4] / aModule.etSumLsb.value()) ),
137 ((
'mp_sums',
'towerCountMaxEta'),
'HeavyIonEta.mif', aModule.etSumEtaMax[4]),
138 ((
'mp_sums',
'ETMET_maxTowerEta'),
'ETMET_maxTowerEta.mif', aModule.etSumEtaMax[0]),
139 ((
'mp_sums',
'ecalET_towerThresholdLUT'),
'X_EcalTHR_11to9.mif',
parseOfflineLUTfile(aModule.etSumEcalSumPUSLUTFile.value(), 2048, aTruncate =
True)),
140 ((
'mp_sums',
'ET_towerThresholdLUT'),
'X_ETTHR_11to9.mif',
parseOfflineLUTfile(aModule.etSumEttPUSLUTFile.value(), 2048, aTruncate =
True)),
141 ((
'mp_sums',
'MET_towerThresholdLUT'),
'X_METTHR_11to9.mif',
parseOfflineLUTfile(aModule.etSumMetPUSLUTFile.value(), 2048))
145 ((
'demux',
'sdfile'),
None,
''),
146 ((
'demux',
'algoRev'),
None, 0xcafe),
147 ((
'demux',
'ET_centralityLowerThresholds'),
'CentralityLowerThrs.mif', [
int(round(loBound / aModule.etSumLsb.value()))
for loBound
in aModule.etSumCentralityLower.value()]),
148 ((
'demux',
'ET_centralityUpperThresholds'),
'CentralityUpperThrs.mif', [
int(round(upBound / aModule.etSumLsb.value()))
for upBound
in aModule.etSumCentralityUpper.value()]),
149 ((
'demux',
'MET_energyCalibLUT'),
'M_METnoHFenergyCalibration_12to18.mif',
parseOfflineLUTfile(aModule.metCalibrationLUTFile.value(), 4096, aTruncate =
True)),
150 ((
'demux',
'METHF_energyCalibLUT'),
'M_METwithHFenergyCalibration_12to18.mif',
parseOfflineLUTfile(aModule.metHFCalibrationLUTFile.value(), 4096, aTruncate =
True)),
151 ((
'demux',
'ET_energyCalibLUT'),
'S_ETcalibration_12to18.mif',
parseOfflineLUTfile(aModule.etSumEttCalibrationLUTFile.value(), 4096, aTruncate =
True)),
152 ((
'demux',
'ecalET_energyCalibLUT'),
'R_EcalCalibration_12to18.mif',
parseOfflineLUTfile(aModule.etSumEcalSumCalibrationLUTFile.value(), 4096, aTruncate =
True)),
153 ((
'demux',
'MET_phiCalibLUT'),
'Q_METnoHFphiCalibration_12to18.mif',
parseOfflineLUTfile(aModule.metPhiCalibrationLUTFile.value(), 4096, aTruncate =
True)),
154 ((
'demux',
'METHF_phiCalibLUT'),
'Q_METwithHFphiCalibration_12to18.mif',
parseOfflineLUTfile(aModule.metHFPhiCalibrationLUTFile.value(), 4096, aTruncate =
True)),
157 result = [(a, b,
parseOfflineLUTfile(c.value())
if isinstance(c, cms.FileInPath)
else c)
for a, b, c
in result]