115 microGMTParamsHelper = std::make_unique<L1TMuonGlobalParamsHelper>();
131 std::ofstream fStream(m_foldername+oName);
143 dumpLut(m_rankLUT.get(),
std::string(
"/SortRank.txt"));
144 dumpLut(m_absIsoCheckMemLUT.get(),
std::string(
"/AbsIsoCheckMem.txt"));
145 dumpLut(m_relIsoCheckMemLUT.get(),
std::string(
"/RelIsoCheckMem.txt"));
146 dumpLut(m_idxSelMemPhiLUT.get(),
std::string(
"/IdxSelMemPhi.txt"));
147 dumpLut(m_idxSelMemEtaLUT.get(),
std::string(
"/IdxSelMemEta.txt"));
148 dumpLut(m_bPhiExtrapolationLUT.get(),
std::string(
"/BPhiExtrapolation.txt"));
149 dumpLut(m_oPhiExtrapolationLUT.get(),
std::string(
"/OPhiExtrapolation.txt"));
150 dumpLut(m_fPhiExtrapolationLUT.get(),
std::string(
"/EPhiExtrapolation.txt"));
151 dumpLut(m_bEtaExtrapolationLUT.get(),
std::string(
"/BEtaExtrapolation.txt"));
152 dumpLut(m_oEtaExtrapolationLUT.get(),
std::string(
"/OEtaExtrapolation.txt"));
153 dumpLut(m_fEtaExtrapolationLUT.get(),
std::string(
"/EEtaExtrapolation.txt"));
154 dumpLut(m_boPosMatchQualLUT.get(),
std::string(
"/BOPosMatchQual.txt"));
155 dumpLut(m_boNegMatchQualLUT.get(),
std::string(
"/BONegMatchQual.txt"));
156 dumpLut(m_foPosMatchQualLUT.get(),
std::string(
"/EOPosMatchQual.txt"));
157 dumpLut(m_foNegMatchQualLUT.get(),
std::string(
"/EONegMatchQual.txt"));
159 dumpLut(m_ovlPosSingleMatchQualLUT.get(),
std::string(
"/OmtfPosSingleMatchQual.txt"));
160 dumpLut(m_ovlNegSingleMatchQualLUT.get(),
std::string(
"/OmtfNegSingleMatchQual.txt"));
161 dumpLut(m_fwdPosSingleMatchQualLUT.get(),
std::string(
"/EmtfPosSingleMatchQual.txt"));
162 dumpLut(m_fwdNegSingleMatchQualLUT.get(),
std::string(
"/EmtfNegSingleMatchQual.txt"));
172 microGMTParamsRcd.
get(microGMTParamsHandle);
174 microGMTParamsHelper = std::make_unique<L1TMuonGlobalParamsHelper>(*microGMTParamsHandle.product());
175 if (!microGMTParamsHelper) {
176 edm::LogError(
"L1TMicroGMTLUTDumper") <<
"Could not retrieve parameters from Event Setup" << std::endl;
179 int fwVersion = microGMTParamsHelper->fwVersion();
T getParameter(std::string const &) const
void endRun(edm::Run const &, edm::EventSetup const &) override
void analyze(const edm::Event &, const edm::EventSetup &) override
def analyze(function, filename, filter=None)
#define DEFINE_FWK_MODULE(type)
std::shared_ptr< MicroGMTExtrapolationLUT > m_oEtaExtrapolationLUT
void beginRun(edm::Run const &, edm::EventSetup const &) override
std::shared_ptr< MicroGMTMatchQualLUT > m_fwdPosSingleMatchQualLUT
static ReturnType create(const std::string &filename, const int fwVersion)
~L1TMicroGMTLUTDumper() override
std::shared_ptr< MicroGMTMatchQualLUT > m_boNegMatchQualLUT
std::shared_ptr< MicroGMTMatchQualLUT > m_foPosMatchQualLUT
static ReturnType create(const std::string &filename, const int fwVersion, const unsigned ptFactor, const unsigned qualFactor)
static ReturnType create(const std::string &filename, const int fwVersion)
std::shared_ptr< MicroGMTExtrapolationLUT > m_bPhiExtrapolationLUT
std::shared_ptr< MicroGMTCaloIndexSelectionLUT > m_idxSelMemPhiLUT
std::shared_ptr< MicroGMTRankPtQualLUT > m_rankLUT
void get(HolderT &iHolder) const
void dumpLut(MicroGMTLUT *, const std::string &)
L1TMicroGMTLUTDumper(const edm::ParameterSet &)
std::unique_ptr< L1TMuonGlobalParamsHelper > microGMTParamsHelper
std::shared_ptr< MicroGMTMatchQualLUT > m_foNegMatchQualLUT
std::shared_ptr< MicroGMTMatchQualLUT > m_ovlNegSingleMatchQualLUT
std::shared_ptr< MicroGMTAbsoluteIsolationCheckLUT > m_absIsoCheckMemLUT
std::shared_ptr< MicroGMTRelativeIsolationCheckLUT > m_relIsoCheckMemLUT
std::shared_ptr< MicroGMTExtrapolationLUT > m_bEtaExtrapolationLUT
std::shared_ptr< MicroGMTMatchQualLUT > m_ovlPosSingleMatchQualLUT
std::shared_ptr< MicroGMTMatchQualLUT > m_boPosMatchQualLUT
void save(std::ofstream &output)
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)
std::shared_ptr< MicroGMTCaloIndexSelectionLUT > m_idxSelMemEtaLUT
std::shared_ptr< MicroGMTMatchQualLUT > m_fwdNegSingleMatchQualLUT
std::shared_ptr< MicroGMTExtrapolationLUT > m_fPhiExtrapolationLUT
std::shared_ptr< MicroGMTExtrapolationLUT > m_fEtaExtrapolationLUT
std::shared_ptr< MicroGMTExtrapolationLUT > m_oPhiExtrapolationLUT
static ReturnType create(const std::string &filename, const int type, const int fwVersion)