File indexing completed on 2024-04-06 12:19:52
0001 #ifndef L1GCTPRINTLUTS_H
0002 #define L1GCTPRINTLUTS_H
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019 #include <memory>
0020
0021
0022 #include "FWCore/Framework/interface/Frameworkfwd.h"
0023 #include "FWCore/Framework/interface/one/EDAnalyzer.h"
0024
0025 #include "FWCore/Framework/interface/Event.h"
0026
0027 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0028
0029 #include <string>
0030
0031 #include "L1Trigger/GlobalCaloTrigger/interface/L1GlobalCaloTrigger.h"
0032
0033
0034 #include "CondFormats/L1TObjects/interface/L1CaloEtScale.h"
0035 #include "CondFormats/L1TObjects/interface/L1GctJetFinderParams.h"
0036 #include "CondFormats/DataRecord/interface/L1JetEtScaleRcd.h"
0037 #include "CondFormats/DataRecord/interface/L1HtMissScaleRcd.h"
0038 #include "CondFormats/DataRecord/interface/L1HfRingEtScaleRcd.h"
0039 #include "CondFormats/DataRecord/interface/L1GctJetFinderParamsRcd.h"
0040
0041
0042
0043
0044
0045 class L1GctPrintLuts : public edm::one::EDAnalyzer<> {
0046 public:
0047
0048 typedef L1GlobalCaloTrigger::lutPtr lutPtr;
0049 typedef L1GlobalCaloTrigger::lutPtrVector lutPtrVector;
0050
0051 explicit L1GctPrintLuts(const edm::ParameterSet&);
0052 ~L1GctPrintLuts() override;
0053
0054 private:
0055 void beginJob() override;
0056 void analyze(const edm::Event&, const edm::EventSetup&) override;
0057 void endJob() override;
0058
0059 int configureGct(const edm::EventSetup& c);
0060
0061
0062
0063
0064 std::string m_jetRanksOutFileName;
0065 std::string m_hfSumLutOutFileName;
0066 std::string m_htMissLutOutFileName;
0067
0068
0069 L1GlobalCaloTrigger* m_gct;
0070
0071
0072 lutPtrVector m_jetEtCalibLuts;
0073
0074
0075 edm::ESGetToken<L1GctJetFinderParams, L1GctJetFinderParamsRcd> m_jfParsToken;
0076 edm::ESGetToken<L1CaloEtScale, L1JetEtScaleRcd> m_etScaleToken;
0077 edm::ESGetToken<L1CaloEtScale, L1HtMissScaleRcd> m_htMissScaleToken;
0078 edm::ESGetToken<L1CaloEtScale, L1HfRingEtScaleRcd> m_hfRingEtScaleToken;
0079 };
0080 #endif