Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:19:52

0001 #ifndef L1GCTPRINTLUTS_H
0002 #define L1GCTPRINTLUTS_H
0003 // -*- C++ -*-
0004 //
0005 // Package:    L1GlobalCaloTrigger
0006 // Class:      L1GctPrintLuts
0007 //
0008 /**\class L1GctPrintLuts L1GctPrintLuts.cc L1Trigger/L1GlobalCaloTrigger/plugins/L1GctPrintLuts.cc
0009 
0010  Description: print Gct lookup table contents to a file
0011 
0012 */
0013 //
0014 // Author: Greg Heath
0015 // Date:   July 2008
0016 //
0017 
0018 // system include files
0019 #include <memory>
0020 
0021 // user include files
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 // Trigger configuration includes
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 // class declaration
0043 //
0044 
0045 class L1GctPrintLuts : public edm::one::EDAnalyzer<> {
0046 public:
0047   /// typedefs
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   // ----------member data ---------------------------
0062 
0063   // output file names
0064   std::string m_jetRanksOutFileName;
0065   std::string m_hfSumLutOutFileName;
0066   std::string m_htMissLutOutFileName;
0067 
0068   // pointer to the actual emulator
0069   L1GlobalCaloTrigger* m_gct;
0070 
0071   // pointers to the jet Et LUTs
0072   lutPtrVector m_jetEtCalibLuts;
0073 
0074   //EventSetup Tokens
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