89 iConfig.
getParameter<
double>(
"FwdPosSingleMatchQualLUTfEta"),
90 iConfig.
getParameter<
double>(
"FwdPosSingleMatchQualLUTfPhi"));
92 iConfig.
getParameter<
double>(
"FwdNegSingleMatchQualLUTfEta"),
93 iConfig.
getParameter<
double>(
"FwdNegSingleMatchQualLUTfPhi"));
95 iConfig.
getParameter<
double>(
"OvlPosSingleMatchQualLUTfEta"),
96 iConfig.
getParameter<
double>(
"OvlPosSingleMatchQualLUTfEtaCoarse"),
97 iConfig.
getParameter<
double>(
"OvlPosSingleMatchQualLUTfPhi"));
99 iConfig.
getParameter<
double>(
"OvlNegSingleMatchQualLUTfEta"),
100 iConfig.
getParameter<
double>(
"OvlNegSingleMatchQualLUTfEtaCoarse"),
101 iConfig.
getParameter<
double>(
"OvlNegSingleMatchQualLUTfPhi"));
104 iConfig.
getParameter<
double>(
"BOPosMatchQualLUTfEtaCoarse"),
108 iConfig.
getParameter<
double>(
"BONegMatchQualLUTfEtaCoarse"),
112 iConfig.
getParameter<
double>(
"FOPosMatchQualLUTfEtaCoarse"),
116 iConfig.
getParameter<
double>(
"FONegMatchQualLUTfEtaCoarse"),
119 unsigned sortRankLUTPtFactor = iConfig.
getParameter<
unsigned>(
"SortRankLUTPtFactor");
120 unsigned sortRankLUTQualFactor = iConfig.
getParameter<
unsigned>(
"SortRankLUTQualFactor");
133 iConfig.
getParameter<
double>(
"FwdPosSingleMatchQualLUTMaxDR"),
134 iConfig.
getParameter<
double>(
"FwdPosSingleMatchQualLUTfEta"),
135 iConfig.
getParameter<
double>(
"FwdPosSingleMatchQualLUTfEta"),
136 iConfig.
getParameter<
double>(
"FwdPosSingleMatchQualLUTfPhi"),
141 iConfig.
getParameter<
double>(
"FwdNegSingleMatchQualLUTMaxDR"),
142 iConfig.
getParameter<
double>(
"FwdNegSingleMatchQualLUTfEta"),
143 iConfig.
getParameter<
double>(
"FwdNegSingleMatchQualLUTfEta"),
144 iConfig.
getParameter<
double>(
"FwdNegSingleMatchQualLUTfPhi"),
147 auto ovlPosSingleMatchQualLUT =
149 iConfig.
getParameter<
double>(
"OvlPosSingleMatchQualLUTMaxDR"),
150 iConfig.
getParameter<
double>(
"OvlPosSingleMatchQualLUTfEta"),
151 iConfig.
getParameter<
double>(
"OvlPosSingleMatchQualLUTfEtaCoarse"),
152 iConfig.
getParameter<
double>(
"OvlPosSingleMatchQualLUTfPhi"),
155 auto ovlNegSingleMatchQualLUT =
157 iConfig.
getParameter<
double>(
"OvlNegSingleMatchQualLUTMaxDR"),
158 iConfig.
getParameter<
double>(
"OvlNegSingleMatchQualLUTfEta"),
159 iConfig.
getParameter<
double>(
"OvlNegSingleMatchQualLUTfEtaCoarse"),
160 iConfig.
getParameter<
double>(
"OvlNegSingleMatchQualLUTfPhi"),
163 auto bOPosMatchQualLUT =
167 iConfig.
getParameter<
double>(
"BOPosMatchQualLUTfEtaCoarse"),
171 auto bONegMatchQualLUT =
175 iConfig.
getParameter<
double>(
"BONegMatchQualLUTfEtaCoarse"),
179 auto fOPosMatchQualLUT =
183 iConfig.
getParameter<
double>(
"FOPosMatchQualLUTfEtaCoarse"),
187 auto fONegMatchQualLUT =
191 iConfig.
getParameter<
double>(
"FONegMatchQualLUTfEtaCoarse"),
207 auto rankPtQualityLUT =
211 sortRankLUTQualFactor);
254 bool disableCaloInputs = iConfig.
getParameter<
bool>(
"caloInputsDisable");
255 std::vector<unsigned> bmtfInputsToDisable = iConfig.
getParameter<std::vector<unsigned> >(
"bmtfInputsToDisable");
256 std::vector<unsigned> omtfInputsToDisable = iConfig.
getParameter<std::vector<unsigned> >(
"omtfInputsToDisable");
257 std::vector<unsigned> emtfInputsToDisable = iConfig.
getParameter<std::vector<unsigned> >(
"emtfInputsToDisable");
259 if (disableCaloInputs) {
265 std::bitset<12> bmtfDisables;
266 for (
size_t i = 0;
i < bmtfInputsToDisable.size(); ++
i) {
267 bmtfDisables.set(
i, bmtfInputsToDisable[
i] > 0);
271 std::bitset<6> omtfpDisables;
272 std::bitset<6> omtfnDisables;
273 for (
size_t i = 0;
i < omtfInputsToDisable.size(); ++
i) {
275 omtfpDisables.set(
i, omtfInputsToDisable[
i] > 0);
277 omtfnDisables.set(
i - 6, omtfInputsToDisable[
i] > 0);
283 std::bitset<6> emtfpDisables;
284 std::bitset<6> emtfnDisables;
285 for (
size_t i = 0;
i < emtfInputsToDisable.size(); ++
i) {
287 emtfpDisables.set(
i, emtfInputsToDisable[
i] > 0);
289 emtfnDisables.set(
i - 6, emtfInputsToDisable[
i] > 0);
296 bool caloInputsMasked = iConfig.
getParameter<
bool>(
"caloInputsMasked");
297 std::vector<unsigned> maskedBmtfInputs = iConfig.
getParameter<std::vector<unsigned> >(
"maskedBmtfInputs");
298 std::vector<unsigned> maskedOmtfInputs = iConfig.
getParameter<std::vector<unsigned> >(
"maskedOmtfInputs");
299 std::vector<unsigned> maskedEmtfInputs = iConfig.
getParameter<std::vector<unsigned> >(
"maskedEmtfInputs");
301 if (caloInputsMasked) {
307 std::bitset<12> bmtfMasked;
308 for (
size_t i = 0;
i < maskedBmtfInputs.size(); ++
i) {
309 bmtfMasked.set(
i, maskedBmtfInputs[
i] > 0);
313 std::bitset<6> omtfpMasked;
314 std::bitset<6> omtfnMasked;
315 for (
size_t i = 0;
i < maskedOmtfInputs.size(); ++
i) {
317 omtfpMasked.set(
i, maskedOmtfInputs[
i] > 0);
319 omtfnMasked.set(
i - 6, maskedOmtfInputs[
i] > 0);
325 std::bitset<6> emtfpMasked;
326 std::bitset<6> emtfnMasked;
327 for (
size_t i = 0;
i < maskedEmtfInputs.size(); ++
i) {
329 emtfpMasked.set(
i, maskedEmtfInputs[
i] > 0);
331 emtfnMasked.set(
i - 6, maskedEmtfInputs[
i] > 0);
350 return std::make_unique<L1TMuonGlobalParams>(
m_params);
void setBONegMatchQualLUTPath(const std::string &path)
const L1TMuonGlobalParams & cast_to_L1TMuonGlobalParams(const L1TMuonGlobalParams_PUBLIC &x)
L1TMuonGlobalParamsESProducer(const edm::ParameterSet &)
void setFOPosMatchQualLUTMaxDR(double maxDR, double fEta, double fEtaCoarse, double fPhi)
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
void setMaskedCaloInputs(const std::bitset< 28 > &masked)
void setIdxSelMemEtaLUT(const l1t::LUT &lut)
void setOPhiExtrapolationLUT(const l1t::LUT &lut)
void setBEtaExtrapolationLUT(const l1t::LUT &lut)
void setFwdPosSingleMatchQualLUT(const l1t::LUT &lut)
void setBmtfInputsToDisable(const std::bitset< 12 > &disables)
void setOPhiExtrapolationLUTPath(const std::string &path)
void setFEtaExtrapolationLUT(const l1t::LUT &lut)
void setFwdNegSingleMatchQualLUTPath(const std::string &path)
void setFPhiExtrapolationLUT(const l1t::LUT &lut)
void setFOPosMatchQualLUTPath(const std::string &path)
void setIdxSelMemEtaLUTPath(const std::string &path)
void setOmtfpInputsToDisable(const std::bitset< 6 > &disables)
void setOEtaExtrapolationLUT(const l1t::LUT &lut)
void setBPhiExtrapolationLUTPath(const std::string &path)
void setSortRankLUTFactors(unsigned ptFactor, unsigned qualFactor)
static ReturnType create(const std::string &filename, const int fwVersion)
std::unique_ptr< L1TMuonGlobalParams > ReturnType
void setIdxSelMemPhiLUT(const l1t::LUT &lut)
void setBPhiExtrapolationLUT(const l1t::LUT &lut)
static ReturnType create(const std::string &filename, const int fwVersion, const unsigned ptFactor, const unsigned qualFactor)
void setFOPosMatchQualLUT(const l1t::LUT &lut)
void setBONegMatchQualLUT(const l1t::LUT &lut)
void setFwdPosSingleMatchQualLUTMaxDR(double maxDR, double fEta, double fPhi)
static ReturnType create(const std::string &filename, const int fwVersion)
void setRelIsoCheckMemLUTPath(const std::string &path)
void setMaskedOmtfpInputs(const std::bitset< 6 > &masked)
void setFONegMatchQualLUT(const l1t::LUT &lut)
void setFwdPosSingleMatchQualLUTPath(const std::string &path)
void setBOPosMatchQualLUTPath(const std::string &path)
void loadFromOnline(l1t::TriggerSystem &trgSys, const std::string &processorId="")
void setRelIsoCheckMemLUT(const l1t::LUT &lut)
void setEmtfnInputsToDisable(const std::bitset< 6 > &disables)
void setOvlPosSingleMatchQualLUTMaxDR(double maxDR, double fEta, double fEtaCoarse, double fPhi)
void setFEtaExtrapolationLUTPath(const std::string &path)
void setAbsIsoCheckMemLUT(const l1t::LUT &lut)
void setOvlPosSingleMatchQualLUT(const l1t::LUT &lut)
void setFwVersion(unsigned fwVersion)
void setIdxSelMemPhiLUTPath(const std::string &path)
~L1TMuonGlobalParamsESProducer() override
void setBOPosMatchQualLUT(const l1t::LUT &lut)
void setMaskedOmtfnInputs(const std::bitset< 6 > &masked)
void configureSystemFromFiles(const char *hwCfgFile, const char *topCfgFile, const char *key)
void setCaloInputsToDisable(const std::bitset< 28 > &disables)
void setBOPosMatchQualLUTMaxDR(double maxDR, double fEta, double fEtaCoarse, double fPhi)
void setMaskedBmtfInputs(const std::bitset< 12 > &masked)
void setFONegMatchQualLUTMaxDR(double maxDR, double fEta, double fEtaCoarse, double fPhi)
T getParameter(std::string const &) const
void setBEtaExtrapolationLUTPath(const std::string &path)
void setOvlPosSingleMatchQualLUTPath(const std::string &path)
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
void setFwdNegSingleMatchQualLUT(const l1t::LUT &lut)
void setOvlNegSingleMatchQualLUTPath(const std::string &path)
void setSortRankLUT(const l1t::LUT &lut)
void setBONegMatchQualLUTMaxDR(double maxDR, double fEta, double fEtaCoarse, double fPhi)
static ReturnType create(const std::string &filename, const double maxDR, const double fEta, const double fEtaCoarse, const double fPhi, cancel_t cancelType, const int fwVersion)
void setOvlNegSingleMatchQualLUTMaxDR(double maxDR, double fEta, double fEtaCoarse, double fPhi)
void setMaskedEmtfpInputs(const std::bitset< 6 > &masked)
void setAbsIsoCheckMemLUTPath(const std::string &path)
std::string fullPath() const
L1TMuonGlobalParams m_params
ReturnType produce(const L1TMuonGlobalParamsRcd &)
void setMaskedEmtfnInputs(const std::bitset< 6 > &masked)
void setEmtfpInputsToDisable(const std::bitset< 6 > &disables)
void setOmtfnInputsToDisable(const std::bitset< 6 > &disables)
void setFPhiExtrapolationLUTPath(const std::string &path)
void setSortRankLUTPath(const std::string &path)
void setOEtaExtrapolationLUTPath(const std::string &path)
void setFwdNegSingleMatchQualLUTMaxDR(double maxDR, double fEta, double fPhi)
void setFONegMatchQualLUTPath(const std::string &path)
void setOvlNegSingleMatchQualLUT(const l1t::LUT &lut)
static ReturnType create(const std::string &filename, const int type, const int fwVersion)