112 m_microGMTParamsToken = esConsumes<L1TMuonGlobalParams, L1TMuonGlobalParamsRcd, edm::Transition::BeginRun>();
114 microGMTParamsHelper = std::make_unique<L1TMuonGlobalParamsHelper>();
126 std::ofstream fStream(m_foldername + oName);
134 dumpLut(m_rankLUT.get(),
std::string(
"/SortRank.txt"));
135 dumpLut(m_absIsoCheckMemLUT.get(),
std::string(
"/AbsIsoCheckMem.txt"));
136 dumpLut(m_relIsoCheckMemLUT.get(),
std::string(
"/RelIsoCheckMem.txt"));
137 dumpLut(m_idxSelMemPhiLUT.get(),
std::string(
"/IdxSelMemPhi.txt"));
138 dumpLut(m_idxSelMemEtaLUT.get(),
std::string(
"/IdxSelMemEta.txt"));
139 dumpLut(m_bPhiExtrapolationLUT.get(),
std::string(
"/BPhiExtrapolation.txt"));
140 dumpLut(m_oPhiExtrapolationLUT.get(),
std::string(
"/OPhiExtrapolation.txt"));
141 dumpLut(m_fPhiExtrapolationLUT.get(),
std::string(
"/EPhiExtrapolation.txt"));
142 dumpLut(m_bEtaExtrapolationLUT.get(),
std::string(
"/BEtaExtrapolation.txt"));
143 dumpLut(m_oEtaExtrapolationLUT.get(),
std::string(
"/OEtaExtrapolation.txt"));
144 dumpLut(m_fEtaExtrapolationLUT.get(),
std::string(
"/EEtaExtrapolation.txt"));
145 dumpLut(m_boPosMatchQualLUT.get(),
std::string(
"/BOPosMatchQual.txt"));
146 dumpLut(m_boNegMatchQualLUT.get(),
std::string(
"/BONegMatchQual.txt"));
147 dumpLut(m_foPosMatchQualLUT.get(),
std::string(
"/EOPosMatchQual.txt"));
148 dumpLut(m_foNegMatchQualLUT.get(),
std::string(
"/EONegMatchQual.txt"));
150 dumpLut(m_ovlPosSingleMatchQualLUT.get(),
std::string(
"/OmtfPosSingleMatchQual.txt"));
151 dumpLut(m_ovlNegSingleMatchQualLUT.get(),
std::string(
"/OmtfNegSingleMatchQual.txt"));
152 dumpLut(m_fwdPosSingleMatchQualLUT.get(),
std::string(
"/EmtfPosSingleMatchQual.txt"));
153 dumpLut(m_fwdNegSingleMatchQualLUT.get(),
std::string(
"/EmtfNegSingleMatchQual.txt"));
160 microGMTParamsHelper = std::make_unique<L1TMuonGlobalParamsHelper>(*microGMTParamsHandle.
product());
161 if (!microGMTParamsHelper) {
162 edm::LogError(
"L1TMicroGMTLUTDumper") <<
"Could not retrieve parameters from Event Setup" << std::endl;
165 int fwVersion = microGMTParamsHelper->fwVersion();
168 m_absIsoCheckMemLUT =
170 m_relIsoCheckMemLUT =
void endRun(edm::Run const &, edm::EventSetup const &) override
T getParameter(std::string const &) const
void analyze(const edm::Event &, const edm::EventSetup &) override
#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)
Log< level::Error, false > LogError
~L1TMicroGMTLUTDumper() override
example_stream void analyze(const edm::Event &, const edm::EventSetup &) 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)
T const * product() const
static ReturnType create(const std::string &filename, const int fwVersion)
edm::ESGetToken< L1TMuonGlobalParams, L1TMuonGlobalParamsRcd > m_microGMTParamsToken
std::shared_ptr< MicroGMTExtrapolationLUT > m_bPhiExtrapolationLUT
std::shared_ptr< MicroGMTCaloIndexSelectionLUT > m_idxSelMemPhiLUT
std::shared_ptr< MicroGMTRankPtQualLUT > m_rankLUT
void dumpLut(MicroGMTLUT *, const std::string &)
L1TMicroGMTLUTDumper(const edm::ParameterSet &)
std::unique_ptr< L1TMuonGlobalParamsHelper > microGMTParamsHelper
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
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)