Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:22:22

0001 // -*- C++ -*-
0002 //
0003 // Package:    L1ScalesProducers
0004 // Class:      L1CaloInputScalesGenerator
0005 //
0006 /**\class L1CaloInputScalesGenerator L1CaloInputScalesGenerator.cc L1TriggerConfig/L1ScalesProducers/src/L1CaloInputScalesGenerator.cc
0007 
0008  Description: <one line class summary>
0009 
0010  Implementation:
0011      <Notes on implementation>
0012 */
0013 //
0014 // Original Author:  pts/140
0015 //         Created:  Wed Jun 25 16:40:01 CEST 2008
0016 //
0017 //
0018 
0019 #include "FWCore/Framework/interface/one/EDAnalyzer.h"
0020 #include "FWCore/Framework/interface/Event.h"
0021 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0022 #include "FWCore/Utilities/interface/ESGetToken.h"
0023 #include "CalibCalorimetry/EcalTPGTools/interface/EcalTPGScale.h"
0024 #include "CalibFormats/CaloTPG/interface/CaloTPGRecord.h"
0025 #include "CalibFormats/CaloTPG/interface/CaloTPGTranscoder.h"
0026 
0027 //
0028 // class declaration
0029 //
0030 
0031 class L1CaloInputScalesGenerator : public edm::one::EDAnalyzer<> {
0032 public:
0033   explicit L1CaloInputScalesGenerator(const edm::ParameterSet&);
0034   ~L1CaloInputScalesGenerator() override;
0035 
0036 private:
0037   void beginJob() override;
0038   void analyze(const edm::Event&, const edm::EventSetup&) override;
0039   void endJob() override;
0040 
0041   // ----------member data ---------------------------
0042   edm::ESGetToken<CaloTPGTranscoder, CaloTPGRecord> transcoderToken_;
0043   EcalTPGScale::Tokens tokens_;
0044 };