23 #include "boost/shared_ptr.hpp"
48 typedef boost::shared_ptr<L1TMuonGlobalParams>
ReturnType;
90 iConfig.
getParameter<
double>(
"FwdPosSingleMatchQualLUTfEta"),
91 iConfig.
getParameter<
double>(
"FwdPosSingleMatchQualLUTfPhi"));
93 iConfig.
getParameter<
double>(
"FwdNegSingleMatchQualLUTfEta"),
94 iConfig.
getParameter<
double>(
"FwdNegSingleMatchQualLUTfPhi"));
96 iConfig.
getParameter<
double>(
"OvlPosSingleMatchQualLUTfEta"),
97 iConfig.
getParameter<
double>(
"OvlPosSingleMatchQualLUTfEtaCoarse"),
98 iConfig.
getParameter<
double>(
"OvlPosSingleMatchQualLUTfPhi"));
100 iConfig.
getParameter<
double>(
"OvlNegSingleMatchQualLUTfEta"),
101 iConfig.
getParameter<
double>(
"OvlNegSingleMatchQualLUTfEtaCoarse"),
102 iConfig.
getParameter<
double>(
"OvlNegSingleMatchQualLUTfPhi"));
105 iConfig.
getParameter<
double>(
"BOPosMatchQualLUTfEtaCoarse"),
109 iConfig.
getParameter<
double>(
"BONegMatchQualLUTfEtaCoarse"),
113 iConfig.
getParameter<
double>(
"FOPosMatchQualLUTfEtaCoarse"),
117 iConfig.
getParameter<
double>(
"FONegMatchQualLUTfEtaCoarse"),
120 unsigned sortRankLUTPtFactor = iConfig.
getParameter<
unsigned>(
"SortRankLUTPtFactor");
121 unsigned sortRankLUTQualFactor = iConfig.
getParameter<
unsigned>(
"SortRankLUTQualFactor");
129 iConfig.
getParameter<
double>(
"FwdPosSingleMatchQualLUTMaxDR"),
130 iConfig.
getParameter<
double>(
"FwdPosSingleMatchQualLUTfEta"),
131 iConfig.
getParameter<
double>(
"FwdPosSingleMatchQualLUTfEta"),
132 iConfig.
getParameter<
double>(
"FwdPosSingleMatchQualLUTfPhi"),
135 iConfig.
getParameter<
double>(
"FwdNegSingleMatchQualLUTMaxDR"),
136 iConfig.
getParameter<
double>(
"FwdNegSingleMatchQualLUTfEta"),
137 iConfig.
getParameter<
double>(
"FwdNegSingleMatchQualLUTfEta"),
138 iConfig.
getParameter<
double>(
"FwdNegSingleMatchQualLUTfPhi"),
141 iConfig.
getParameter<
double>(
"OvlPosSingleMatchQualLUTMaxDR"),
142 iConfig.
getParameter<
double>(
"OvlPosSingleMatchQualLUTfEta"),
143 iConfig.
getParameter<
double>(
"OvlPosSingleMatchQualLUTfEtaCoarse"),
144 iConfig.
getParameter<
double>(
"OvlPosSingleMatchQualLUTfPhi"),
147 iConfig.
getParameter<
double>(
"OvlNegSingleMatchQualLUTMaxDR"),
148 iConfig.
getParameter<
double>(
"OvlNegSingleMatchQualLUTfEta"),
149 iConfig.
getParameter<
double>(
"OvlNegSingleMatchQualLUTfEtaCoarse"),
150 iConfig.
getParameter<
double>(
"OvlNegSingleMatchQualLUTfPhi"),
155 iConfig.
getParameter<
double>(
"BOPosMatchQualLUTfEtaCoarse"),
161 iConfig.
getParameter<
double>(
"BONegMatchQualLUTfEtaCoarse"),
167 iConfig.
getParameter<
double>(
"FOPosMatchQualLUTfEtaCoarse"),
173 iConfig.
getParameter<
double>(
"FONegMatchQualLUTfEtaCoarse"),
225 bool disableCaloInputs = iConfig.
getParameter<
bool>(
"caloInputsDisable");
226 std::vector<unsigned> bmtfInputsToDisable = iConfig.
getParameter<std::vector<unsigned> >(
"bmtfInputsToDisable");
227 std::vector<unsigned> omtfInputsToDisable = iConfig.
getParameter<std::vector<unsigned> >(
"omtfInputsToDisable");
228 std::vector<unsigned> emtfInputsToDisable = iConfig.
getParameter<std::vector<unsigned> >(
"emtfInputsToDisable");
230 if (disableCaloInputs) {
236 std::bitset<12> bmtfDisables;
237 for (
size_t i = 0;
i < bmtfInputsToDisable.size(); ++
i) {
238 bmtfDisables.set(
i, bmtfInputsToDisable[
i] > 0);
242 std::bitset<6> omtfpDisables;
243 std::bitset<6> omtfnDisables;
244 for (
size_t i = 0;
i < omtfInputsToDisable.size(); ++
i) {
246 omtfpDisables.set(
i, omtfInputsToDisable[
i] > 0);
248 omtfnDisables.set(
i-6, omtfInputsToDisable[
i] > 0);
254 std::bitset<6> emtfpDisables;
255 std::bitset<6> emtfnDisables;
256 for (
size_t i = 0;
i < emtfInputsToDisable.size(); ++
i) {
258 emtfpDisables.set(
i, emtfInputsToDisable[
i] > 0);
260 emtfnDisables.set(
i-6, emtfInputsToDisable[
i] > 0);
267 bool caloInputsMasked = iConfig.
getParameter<
bool>(
"caloInputsMasked");
268 std::vector<unsigned> maskedBmtfInputs = iConfig.
getParameter<std::vector<unsigned> >(
"maskedBmtfInputs");
269 std::vector<unsigned> maskedOmtfInputs = iConfig.
getParameter<std::vector<unsigned> >(
"maskedOmtfInputs");
270 std::vector<unsigned> maskedEmtfInputs = iConfig.
getParameter<std::vector<unsigned> >(
"maskedEmtfInputs");
272 if (caloInputsMasked) {
278 std::bitset<12> bmtfMasked;
279 for (
size_t i = 0;
i < maskedBmtfInputs.size(); ++
i) {
280 bmtfMasked.set(
i, maskedBmtfInputs[
i] > 0);
284 std::bitset<6> omtfpMasked;
285 std::bitset<6> omtfnMasked;
286 for (
size_t i = 0;
i < maskedOmtfInputs.size(); ++
i) {
288 omtfpMasked.set(
i, maskedOmtfInputs[
i] > 0);
290 omtfnMasked.set(
i-6, maskedOmtfInputs[
i] > 0);
296 std::bitset<6> emtfpMasked;
297 std::bitset<6> emtfnMasked;
298 for (
size_t i = 0;
i < maskedEmtfInputs.size(); ++
i) {
300 emtfpMasked.set(
i, maskedEmtfInputs[
i] > 0);
302 emtfnMasked.set(
i-6, maskedEmtfInputs[
i] > 0);
327 using namespace edm::es;
328 boost::shared_ptr<L1TMuonGlobalParams> pMicroGMTParams;
331 return pMicroGMTParams;
const L1TMuonGlobalParams & cast_to_L1TMuonGlobalParams(const L1TMuonGlobalParams_PUBLIC &x)
L1TMuonGlobalParamsESProducer(const edm::ParameterSet &)
T getParameter(std::string const &) const
void setFOPosMatchQualLUTMaxDR(double maxDR, double fEta, double fEtaCoarse, double fPhi)
void setMaskedCaloInputs(const std::bitset< 28 > &masked)
void setBOPosMatchQualLUTPath(std::string path)
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 setBONegMatchQualLUTPath(std::string path)
void setFEtaExtrapolationLUT(const l1t::LUT &lut)
void setIdxSelMemEtaLUTPath(std::string path)
boost::shared_ptr< L1TMuonGlobalParams > ReturnType
void setFPhiExtrapolationLUT(const l1t::LUT &lut)
void setFONegMatchQualLUTPath(std::string path)
void setOmtfpInputsToDisable(const std::bitset< 6 > &disables)
void setOEtaExtrapolationLUT(const l1t::LUT &lut)
void setSortRankLUTFactors(unsigned ptFactor, unsigned qualFactor)
static ReturnType create(const std::string &filename, const int fwVersion)
void setAbsIsoCheckMemLUTPath(std::string path)
void setIdxSelMemPhiLUT(const l1t::LUT &lut)
void setWhatProduced(T *iThis, const es::Label &iLabel=es::Label())
void configureSystemFromFiles(const std::string &hwCfgFile, const std::string &topCfgFile, const std::string &key)
void setBPhiExtrapolationLUT(const l1t::LUT &lut)
void setOPhiExtrapolationLUTPath(std::string path)
void setFwdPosSingleMatchQualLUTPath(std::string path)
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 setSortRankLUTPath(std::string path)
void setFOPosMatchQualLUTPath(std::string path)
void setMaskedOmtfpInputs(const std::bitset< 6 > &masked)
void setRelIsoCheckMemLUTPath(std::string path)
~L1TMuonGlobalParamsESProducer()
void setFONegMatchQualLUT(const l1t::LUT &lut)
void setOvlNegSingleMatchQualLUTPath(std::string path)
void setRelIsoCheckMemLUT(const l1t::LUT &lut)
void setFPhiExtrapolationLUTPath(std::string path)
void setEmtfnInputsToDisable(const std::bitset< 6 > &disables)
void setOvlPosSingleMatchQualLUTMaxDR(double maxDR, double fEta, double fEtaCoarse, double fPhi)
void setFEtaExtrapolationLUTPath(std::string path)
void setAbsIsoCheckMemLUT(const l1t::LUT &lut)
void setOvlPosSingleMatchQualLUT(const l1t::LUT &lut)
void setFwVersion(unsigned fwVersion)
void setBEtaExtrapolationLUTPath(std::string path)
void setBOPosMatchQualLUT(const l1t::LUT &lut)
void setFwdNegSingleMatchQualLUTPath(std::string path)
void setMaskedOmtfnInputs(const std::bitset< 6 > &masked)
void setOEtaExtrapolationLUTPath(std::string path)
void setCaloInputsToDisable(const std::bitset< 28 > &disables)
void loadFromOnline(l1t::TrigSystem &trgSys, const std::string &processorId="")
void setBOPosMatchQualLUTMaxDR(double maxDR, double fEta, double fEtaCoarse, double fPhi)
void setIdxSelMemPhiLUTPath(std::string path)
void setMaskedBmtfInputs(const std::bitset< 12 > &masked)
void setFONegMatchQualLUTMaxDR(double maxDR, double fEta, double fEtaCoarse, double fPhi)
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
void setFwdNegSingleMatchQualLUT(const l1t::LUT &lut)
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)
L1TMuonGlobalParams m_params
ReturnType produce(const L1TMuonGlobalParamsRcd &)
void setMaskedEmtfnInputs(const std::bitset< 6 > &masked)
void setEmtfpInputsToDisable(const std::bitset< 6 > &disables)
void setBPhiExtrapolationLUTPath(std::string path)
void setOmtfnInputsToDisable(const std::bitset< 6 > &disables)
std::string fullPath() const
void setFwdNegSingleMatchQualLUTMaxDR(double maxDR, double fEta, double fPhi)
void setOvlPosSingleMatchQualLUTPath(std::string path)
void setOvlNegSingleMatchQualLUT(const l1t::LUT &lut)
static ReturnType create(const std::string &filename, const int type, const int fwVersion)