130 std::ofstream fStream(m_foldername+oName);
142 dumpLut(m_rankLUT.get(),
std::string(
"/SortRank.txt"));
143 dumpLut(m_absIsoCheckMemLUT.get(),
std::string(
"/AbsIsoCheckMem.txt"));
144 dumpLut(m_relIsoCheckMemLUT.get(),
std::string(
"/RelIsoCheckMem.txt"));
145 dumpLut(m_idxSelMemPhiLUT.get(),
std::string(
"/IdxSelMemPhi.txt"));
146 dumpLut(m_idxSelMemEtaLUT.get(),
std::string(
"/IdxSelMemEta.txt"));
147 dumpLut(m_bPhiExtrapolationLUT.get(),
std::string(
"/BPhiExtrapolation.txt"));
148 dumpLut(m_oPhiExtrapolationLUT.get(),
std::string(
"/OPhiExtrapolation.txt"));
149 dumpLut(m_fPhiExtrapolationLUT.get(),
std::string(
"/EPhiExtrapolation.txt"));
150 dumpLut(m_bEtaExtrapolationLUT.get(),
std::string(
"/BEtaExtrapolation.txt"));
151 dumpLut(m_oEtaExtrapolationLUT.get(),
std::string(
"/OEtaExtrapolation.txt"));
152 dumpLut(m_fEtaExtrapolationLUT.get(),
std::string(
"/EEtaExtrapolation.txt"));
153 dumpLut(m_boPosMatchQualLUT.get(),
std::string(
"/BOPosMatchQual.txt"));
154 dumpLut(m_boNegMatchQualLUT.get(),
std::string(
"/BONegMatchQual.txt"));
155 dumpLut(m_foPosMatchQualLUT.get(),
std::string(
"/EOPosMatchQual.txt"));
156 dumpLut(m_foNegMatchQualLUT.get(),
std::string(
"/EONegMatchQual.txt"));
158 dumpLut(m_ovlPosSingleMatchQualLUT.get(),
std::string(
"/OmtfPosSingleMatchQual.txt"));
159 dumpLut(m_ovlNegSingleMatchQualLUT.get(),
std::string(
"/OmtfNegSingleMatchQual.txt"));
160 dumpLut(m_fwdPosSingleMatchQualLUT.get(),
std::string(
"/EmtfPosSingleMatchQual.txt"));
161 dumpLut(m_fwdNegSingleMatchQualLUT.get(),
std::string(
"/EmtfNegSingleMatchQual.txt"));
171 microGMTParamsRcd.
get(microGMTParamsHandle);
173 microGMTParamsHelper = std::unique_ptr<L1TMuonGlobalParamsHelper>(
new L1TMuonGlobalParamsHelper(*microGMTParamsHandle.product()));
174 if (!microGMTParamsHelper) {
175 edm::LogError(
"L1TMicroGMTLUTDumper") <<
"Could not retrieve parameters from Event Setup" << std::endl;
178 int fwVersion = microGMTParamsHelper->fwVersion();
194 microGMTParamsHelper->bOPosMatchQualLUTMaxDR(),
195 microGMTParamsHelper->bOPosMatchQualLUTfEta(),
196 microGMTParamsHelper->bOPosMatchQualLUTfEtaCoarse(),
197 microGMTParamsHelper->bOPosMatchQualLUTfPhi(),
201 microGMTParamsHelper->bONegMatchQualLUTMaxDR(),
202 microGMTParamsHelper->bONegMatchQualLUTfEta(),
203 microGMTParamsHelper->bONegMatchQualLUTfEtaCoarse(),
204 microGMTParamsHelper->bONegMatchQualLUTfPhi(),
208 microGMTParamsHelper->fOPosMatchQualLUTMaxDR(),
209 microGMTParamsHelper->fOPosMatchQualLUTfEta(),
210 microGMTParamsHelper->fOPosMatchQualLUTfEtaCoarse(),
211 microGMTParamsHelper->fOPosMatchQualLUTfPhi(),
215 microGMTParamsHelper->fONegMatchQualLUTMaxDR(),
216 microGMTParamsHelper->fONegMatchQualLUTfEta(),
217 microGMTParamsHelper->fONegMatchQualLUTfEtaCoarse(),
218 microGMTParamsHelper->fONegMatchQualLUTfPhi(),
222 microGMTParamsHelper->ovlPosSingleMatchQualLUTMaxDR(),
223 microGMTParamsHelper->ovlPosSingleMatchQualLUTfEta(),
224 microGMTParamsHelper->ovlPosSingleMatchQualLUTfEtaCoarse(),
225 microGMTParamsHelper->ovlPosSingleMatchQualLUTfPhi(),
229 microGMTParamsHelper->ovlNegSingleMatchQualLUTMaxDR(),
230 microGMTParamsHelper->ovlNegSingleMatchQualLUTfEta(),
231 microGMTParamsHelper->ovlNegSingleMatchQualLUTfEtaCoarse(),
232 microGMTParamsHelper->ovlNegSingleMatchQualLUTfPhi(),
236 microGMTParamsHelper->fwdPosSingleMatchQualLUTMaxDR(),
237 microGMTParamsHelper->fwdPosSingleMatchQualLUTfEta(),
238 microGMTParamsHelper->fwdPosSingleMatchQualLUTfEta(),
239 microGMTParamsHelper->fwdPosSingleMatchQualLUTfPhi(),
243 microGMTParamsHelper->fwdNegSingleMatchQualLUTMaxDR(),
244 microGMTParamsHelper->fwdNegSingleMatchQualLUTfEta(),
245 microGMTParamsHelper->fwdNegSingleMatchQualLUTfEta(),
246 microGMTParamsHelper->fwdNegSingleMatchQualLUTfPhi(),
T getParameter(std::string const &) const
#define DEFINE_FWK_MODULE(type)
std::shared_ptr< MicroGMTExtrapolationLUT > m_oEtaExtrapolationLUT
std::shared_ptr< MicroGMTMatchQualLUT > m_fwdPosSingleMatchQualLUT
static ReturnType create(const std::string &filename, const int fwVersion)
virtual void beginRun(edm::Run const &, edm::EventSetup const &)
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
virtual void analyze(const edm::Event &, const edm::EventSetup &)
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)