24 : m_jetRanksOutFileName(iConfig.getUntrackedParameter<
std::
string>(
"jetRanksFilename",
"gctJetRanksContents.txt")),
25 m_hfSumLutOutFileName(iConfig.getUntrackedParameter<
std::
string>(
"hfSumLutFilename",
"gctHfSumLutContents.txt")),
26 m_htMissLutOutFileName(
27 iConfig.getUntrackedParameter<
std::
string>(
"htMissLutFilename",
"gctHtMissLutContents.txt")),
34 nextLut->setEtaBin(
ieta);
38 m_jfParsToken = esConsumes<L1GctJetFinderParams, L1GctJetFinderParamsRcd>();
62 <<
" already exists. It will not be overwritten." << std::endl;
69 file <<
" Gct lookup table printout \n" 70 <<
"===========================\n\n" 71 <<
"Jet Et Calibration lut contents\n" 78 <<
". No lookup tables written." << std::endl;
85 <<
" already exists. It will not be overwritten." << std::endl;
92 file <<
"\n\n Hf ring jet bit count luts:" << std::endl;
93 file <<
"\n Positive eta, ring1" << std::endl;
96 file <<
"\n Positive eta, ring2" << std::endl;
99 file <<
"\n Negative eta, ring1" << std::endl;
102 file <<
"\n Negative eta, ring2" << std::endl;
105 file <<
"\n\n Hf Et sum luts:" << std::endl;
106 file <<
"\n Positive eta, ring1" << std::endl;
109 file <<
"\n Positive eta, ring2" << std::endl;
112 file <<
"\n Negative eta, ring1" << std::endl;
115 file <<
"\n Negative eta, ring2" << std::endl;
120 <<
". No lookup tables written." << std::endl;
127 <<
" already exists. It will not be overwritten." << std::endl;
134 file <<
"\n\n missing Ht lut:" << std::endl;
138 <<
". No lookup tables written." << std::endl;
160 if (jfPars.
product() ==
nullptr) {
163 <<
"Failed to find a L1GctJetFinderParamsRcd:L1GctJetFinderParams in EventSetup!" << std::endl;
166 if (hfRingEtScale.
product() ==
nullptr) {
169 <<
"Failed to find a L1HfRingEtScaleRcd:L1CaloEtScale in EventSetup!" << std::endl;
172 if (htMissScale.
product() ==
nullptr) {
175 <<
"Failed to find a L1HtMissScaleRcd:L1CaloEtScale in EventSetup!" << std::endl;
201 edm::LogError(
"L1GctConfigError") <<
"Configuration failed - GCT emulator will not be run" << std::endl;
L1GctGlobalHfSumAlgos * getHfSumProcessor() const
provide access to hf sum processor
L1GctGlobalEnergyAlgos * getEnergyFinalStage() const
get the energy final stage
lutPtrVector m_jetEtCalibLuts
#define DEFINE_FWK_MODULE(type)
void setJetFinderParams(const L1GctJetFinderParams *const jfpars)
L1GctPrintLuts(const edm::ParameterSet &)
Log< level::Error, false > LogError
const L1GctHfBitCountsLut * getBCLut(const L1GctHfEtSumsLut::hfLutType type) const
Get lut pointers.
Bit-level emulation of the Global Calorimeter Trigger.
edm::ESGetToken< L1CaloEtScale, L1HtMissScaleRcd > m_htMissScaleToken
T const * product() const
void setHtMissScale(const L1CaloEtScale *const scale)
setup scale for missing Ht
L1GlobalCaloTrigger::lutPtr lutPtr
typedefs
void analyze(const edm::Event &, const edm::EventSetup &) override
std::string m_hfSumLutOutFileName
int configureGct(const edm::EventSetup &c)
edm::ESGetToken< L1CaloEtScale, L1JetEtScaleRcd > m_etScaleToken
void setupHfSumLuts(const L1CaloEtScale *const scale)
setup Hf sum LUTs
static const unsigned int COL_OFFSET
The index offset between columns.
void setJetEtCalibrationLuts(const lutPtrVector &jfluts)
setup the Jet Calibration Luts
const L1GctHfEtSumsLut * getESLut(const L1GctHfEtSumsLut::hfLutType type) const
std::string m_jetRanksOutFileName
L1GlobalCaloTrigger * m_gct
std::string m_htMissLutOutFileName
edm::ESGetToken< L1GctJetFinderParams, L1GctJetFinderParamsRcd > m_jfParsToken
const L1GctHtMissLut * getHtMissLut() const
Log< level::Warning, false > LogWarning
edm::ESGetToken< L1CaloEtScale, L1HfRingEtScaleRcd > m_hfRingEtScaleToken
~L1GctPrintLuts() override