Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:22:38

0001 #ifndef L1TPhysicalEtAdder_h
0002 #define L1TPhysicalEtAdder_h
0003 
0004 // Original Author:  Alex Barbieri
0005 //
0006 // This class adds physical values of eta, phi, and pt to the L1 Dataformats
0007 
0008 // system include files
0009 #include <memory>
0010 
0011 // system include files
0012 
0013 // user include files
0014 
0015 #include "FWCore/Framework/interface/EventSetup.h"
0016 #include "FWCore/Framework/interface/Frameworkfwd.h"
0017 #include "FWCore/Framework/interface/global/EDProducer.h"
0018 #include "FWCore/Framework/interface/ESHandle.h"
0019 #include "FWCore/Framework/interface/Event.h"
0020 #include "FWCore/Framework/interface/MakerMacros.h"
0021 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0022 #include "FWCore/Utilities/interface/EDGetToken.h"
0023 #include "FWCore/Utilities/interface/InputTag.h"
0024 #include "FWCore/MessageLogger/interface/MessageLogger.h"
0025 #include "FWCore/Utilities/interface/ESGetToken.h"
0026 
0027 #include "DataFormats/L1Trigger/interface/EGamma.h"
0028 #include "DataFormats/L1Trigger/interface/Tau.h"
0029 #include "DataFormats/L1Trigger/interface/Jet.h"
0030 #include "DataFormats/L1Trigger/interface/EtSum.h"
0031 #include "DataFormats/L1Trigger/interface/CaloSpare.h"
0032 #include "CondFormats/L1TObjects/interface/L1CaloEtScale.h"
0033 #include "CondFormats/DataRecord/interface/L1JetEtScaleRcd.h"
0034 #include "CondFormats/DataRecord/interface/L1HtMissScaleRcd.h"
0035 #include "CondFormats/DataRecord/interface/L1EmEtScaleRcd.h"
0036 
0037 //
0038 // class declaration
0039 //
0040 
0041 class L1TPhysicalEtAdder : public edm::global::EDProducer<> {
0042 public:
0043   explicit L1TPhysicalEtAdder(const edm::ParameterSet& ps);
0044   ~L1TPhysicalEtAdder() override;
0045 
0046   static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
0047 
0048 private:
0049   void produce(edm::StreamID, edm::Event&, const edm::EventSetup&) const override;
0050 
0051   // ----------member data ---------------------------
0052 
0053   edm::EDGetToken EGammaToken_;
0054   edm::EDGetToken RlxTauToken_;
0055   edm::EDGetToken IsoTauToken_;
0056   edm::EDGetToken JetToken_;
0057   edm::EDGetToken preGtJetToken_;
0058   edm::EDGetToken EtSumToken_;
0059   edm::EDGetToken HfSumsToken_;
0060   edm::EDGetToken HfCountsToken_;
0061   edm::ESGetToken<L1CaloEtScale, L1EmEtScaleRcd> emScaleToken_;
0062   edm::ESGetToken<L1CaloEtScale, L1JetEtScaleRcd> jetScaleToken_;
0063   edm::ESGetToken<L1CaloEtScale, L1HtMissScaleRcd> htMissScaleToken_;
0064 };
0065 
0066 #endif