Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:10:48

0001 #ifndef CaloTokens_h
0002 #define CaloTokens_h
0003 
0004 #include "DataFormats/L1TCalorimeter/interface/CaloTower.h"
0005 #include "DataFormats/L1Trigger/interface/EGamma.h"
0006 #include "DataFormats/L1Trigger/interface/EtSum.h"
0007 #include "DataFormats/L1Trigger/interface/Jet.h"
0008 #include "DataFormats/L1Trigger/interface/Tau.h"
0009 #include "DataFormats/L1Trigger/interface/CaloSpare.h"
0010 
0011 #include "DataFormats/L1CaloTrigger/interface/L1CaloEmCand.h"
0012 #include "DataFormats/L1TCalorimeter/interface/CaloEmCand.h"
0013 #include "DataFormats/L1CaloTrigger/interface/L1CaloRegion.h"
0014 #include "DataFormats/L1TCalorimeter/interface/CaloRegion.h"
0015 #include "DataFormats/L1CaloTrigger/interface/L1CaloRegionDetId.h"
0016 #include "DataFormats/L1CaloTrigger/interface/L1CaloCollections.h"
0017 
0018 #include "FWCore/Utilities/interface/EDGetToken.h"
0019 #include "EventFilter/L1TRawToDigi/interface/PackerTokens.h"
0020 
0021 namespace l1t {
0022   namespace stage1 {
0023     class CaloTokens : public PackerTokens {  //getCaloRegions, getCaloEmCands
0024     public:
0025       CaloTokens(const edm::ParameterSet&, edm::ConsumesCollector&);
0026 
0027       inline const edm::EDGetTokenT<CaloTowerBxCollection>& getCaloTowerToken() const { return towerToken_; };
0028       inline const edm::EDGetTokenT<EGammaBxCollection>& getEGammaToken() const { return egammaToken_; };
0029       inline const edm::EDGetTokenT<EtSumBxCollection>& getEtSumToken() const { return etSumToken_; };
0030       inline const edm::EDGetTokenT<JetBxCollection>& getJetToken() const { return jetToken_; };
0031       inline const edm::EDGetTokenT<TauBxCollection>& getTauToken() const { return tauToken_; };
0032       inline const edm::EDGetTokenT<TauBxCollection>& getIsoTauToken() const { return isotauToken_; };
0033       inline const edm::EDGetTokenT<CaloSpareBxCollection>& getCaloSpareHFBitCountsToken() const {
0034         return calospareHFBitCountsToken_;
0035       };
0036       inline const edm::EDGetTokenT<CaloSpareBxCollection>& getCaloSpareHFRingSumsToken() const {
0037         return calospareHFRingSumsToken_;
0038       };
0039       inline const edm::EDGetTokenT<L1CaloRegionCollection>& getCaloRegionToken() const { return caloregionToken_; };
0040       inline const edm::EDGetTokenT<L1CaloEmCollection>& getCaloEmCandToken() const { return caloemCandToken_; };
0041 
0042     private:
0043       edm::EDGetTokenT<CaloTowerBxCollection> towerToken_;
0044       edm::EDGetTokenT<EGammaBxCollection> egammaToken_;
0045       edm::EDGetTokenT<EtSumBxCollection> etSumToken_;
0046       edm::EDGetTokenT<JetBxCollection> jetToken_;
0047       edm::EDGetTokenT<TauBxCollection> tauToken_;
0048       edm::EDGetTokenT<TauBxCollection> isotauToken_;
0049       edm::EDGetTokenT<CaloSpareBxCollection> calospareHFBitCountsToken_;
0050       edm::EDGetTokenT<CaloSpareBxCollection> calospareHFRingSumsToken_;
0051       edm::EDGetTokenT<L1CaloRegionCollection> caloregionToken_;
0052       edm::EDGetTokenT<L1CaloEmCollection> caloemCandToken_;
0053     };
0054   }  // namespace stage1
0055 }  // namespace l1t
0056 
0057 #endif