14 if (
pnodes_[nodeIdx].uparams_.size() != 4) {
18 for (
size_t i = 0;
i < 28; ++
i) {
40 if (
pnodes_[nodeIdx].uparams_.size() == 4) {
43 return std::bitset<28>();
50 if (
pnodes_[nodeIdx].uparams_.size() == 4) {
51 return std::bitset<12>(
pnodes_[nodeIdx].uparams_[tfIdx]);
53 return std::bitset<12>();
61 if (
pnodes_[nodeIdx].uparams_.size() == 4) {
62 for (
size_t i = 0;
i < 6; ++
i) {
63 inputFlags[
i] = ((
pnodes_[nodeIdx].uparams_[tfIdx] >> (
i + startIdx)) & 0x1);
79 pnodes_[nodeIdx].uparams_.resize(4);
80 for (
size_t i = 0;
i < 28; ++
i) {
97 pnodes_[nodeIdx].uparams_.resize(4);
98 for (
size_t i = 0;
i < 28; ++
i) {
106 pnodes_[nodeIdx].uparams_.resize(4);
107 for (
size_t i = 0;
i < 12; ++
i) {
108 pnodes_[nodeIdx].uparams_[tfIdx] += (inputFlags.test(
i) <<
i);
115 pnodes_[nodeIdx].uparams_.resize(4);
116 for (
size_t i = 0;
i < 6; ++
i) {
117 pnodes_[nodeIdx].uparams_[tfIdx] += (inputFlags.test(
i) << (
i + startIdx));
197 out <<
"L1 MicroGMT Parameters" << std::endl;
199 out <<
"Firmware version: " << this->
fwVersion() << std::endl;
202 out <<
" EMTF-|OMTF-| BMTF |OMTF+|EMTF+| CALO | res 0" << std::endl;
204 out <<
"Masked Inputs: " << this->
maskedInputs() << std::endl;
205 out <<
" EMTF-|OMTF-| BMTF |OMTF+|EMTF+| CALO | res 0" << std::endl;
207 out <<
"LUT paths (LUTs are generated analytically if path is empty)" << std::endl;
void setFOPosMatchQualLUTMaxDR(double maxDR, double fEta, double fEtaCoarse, double fPhi)
void setInputFlags(const int &nodeIdx, const std::bitset< 72 > &flags)
std::string oEtaExtrapolationLUTPath() const
std::string fEtaExtrapolationLUTPath() const
double fOPosMatchQualLUTMaxDR() const
double fwdPosSingleMatchQualLUTMaxDR() const
std::string fONegMatchQualLUTPath() const
std::string idxSelMemPhiLUTPath() const
double fwdNegSingleMatchQualLUTMaxDR() const
std::string relIsoCheckMemLUTPath() const
double bONegMatchQualLUTfPhi() const
std::bitset< 6 > eomtfInputFlags(const int &nodeIdx, const size_t &startIdx, const int &tfIdx) const
void setTfInputFlags(const int &nodeIdx, const int &tfIdx, const std::bitset< 12 > &flags)
std::vector< Node > pnodes_
std::string fwdPosSingleMatchQualLUTPath() const
double ovlPosSingleMatchQualLUTMaxDR() const
double bONegMatchQualLUTfEtaCoarse() const
L1TMuonGlobalParamsHelper()
double bOPosMatchQualLUTfEtaCoarse() const
void setEOmtfInputFlags(const int &nodeIdx, const size_t &startIdx, const int &tfIdx, const std::bitset< 6 > &flags)
double fONegMatchQualLUTMaxDR() const
std::bitset< 72 > inputsToDisable() const
std::string absIsoCheckMemLUTPath() const
std::string oPhiExtrapolationLUTPath() const
std::string ovlPosSingleMatchQualLUTPath() const
std::string sortRankLUTPath() const
std::string bPhiExtrapolationLUTPath() const
double bOPosMatchQualLUTfEta() const
double bOPosMatchQualLUTMaxDR() const
void setFwdPosSingleMatchQualLUTMaxDR(double maxDR, double fEta, double fPhi)
void setCaloInputFlags(const int &nodeIdx, const std::bitset< 28 > &flags)
std::string bONegMatchQualLUTPath() const
std::string fOPosMatchQualLUTPath() const
void setOvlPosSingleMatchQualLUTMaxDR(double maxDR, double fEta, double fEtaCoarse, double fPhi)
std::string bEtaExtrapolationLUTPath() const
unsigned sortRankLUTPtFactor() const
void setFwVersion(unsigned fwVersion)
std::string fPhiExtrapolationLUTPath() const
std::bitset< 72 > maskedInputs() const
double ovlNegSingleMatchQualLUTMaxDR() const
std::bitset< 12 > tfInputFlags(const int &nodeIdx, const int &tfIdx) const
void setBOPosMatchQualLUTMaxDR(double maxDR, double fEta, double fEtaCoarse, double fPhi)
void setFONegMatchQualLUTMaxDR(double maxDR, double fEta, double fEtaCoarse, double fPhi)
void print(std::ostream &) const
double bONegMatchQualLUTMaxDR() const
unsigned fwVersion() const
double bONegMatchQualLUTfEta() const
void setBONegMatchQualLUTMaxDR(double maxDR, double fEta, double fEtaCoarse, double fPhi)
std::string idxSelMemEtaLUTPath() const
void setOvlNegSingleMatchQualLUTMaxDR(double maxDR, double fEta, double fEtaCoarse, double fPhi)
std::string bOPosMatchQualLUTPath() const
const L1TMuonGlobalParams_PUBLIC & cast_to_L1TMuonGlobalParams_PUBLIC(const L1TMuonGlobalParams &x)
std::bitset< 28 > caloInputFlags(const int &nodeIdx) const
unsigned sortRankLUTQualFactor() const
void setFwdNegSingleMatchQualLUTMaxDR(double maxDR, double fEta, double fPhi)
std::string fwdNegSingleMatchQualLUTPath() const
std::string ovlNegSingleMatchQualLUTPath() const
std::bitset< 72 > inputFlags(const int &nodeIdx) const