Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:15:09

0001 #ifndef CaloCollections_h
0002 #define CaloCollections_h
0003 
0004 #include "DataFormats/L1TCalorimeter/interface/CaloEmCand.h"
0005 #include "DataFormats/L1TCalorimeter/interface/CaloRegion.h"
0006 #include "DataFormats/L1TCalorimeter/interface/CaloTower.h"
0007 #include "DataFormats/L1Trigger/interface/EGamma.h"
0008 #include "DataFormats/L1Trigger/interface/EtSum.h"
0009 #include "DataFormats/L1Trigger/interface/Jet.h"
0010 #include "DataFormats/L1Trigger/interface/Tau.h"
0011 #include "DataFormats/L1Trigger/interface/CaloSpare.h"
0012 
0013 #include "DataFormats/L1CaloTrigger/interface/L1CaloEmCand.h"
0014 #include "DataFormats/L1CaloTrigger/interface/L1CaloRegion.h"
0015 #include "DataFormats/L1CaloTrigger/interface/L1CaloRegionDetId.h"
0016 #include "DataFormats/L1CaloTrigger/interface/L1CaloCollections.h"
0017 
0018 #include "EventFilter/L1TRawToDigi/interface/UnpackerCollections.h"
0019 
0020 namespace l1t {
0021   namespace stage1 {
0022     class CaloCollections : public UnpackerCollections {
0023     public:
0024       CaloCollections(edm::Event& e)
0025           : UnpackerCollections(e),
0026             towers_(new CaloTowerBxCollection()),
0027             egammas_(new EGammaBxCollection()),
0028             etsums_(new EtSumBxCollection()),
0029             jets_(new JetBxCollection()),
0030             taus_(new TauBxCollection()),
0031             isotaus_(new TauBxCollection()),
0032             calospareHFBitCounts_(new CaloSpareBxCollection()),
0033             calospareHFRingSums_(new CaloSpareBxCollection()),
0034             caloEmCands_(new L1CaloEmCollection()),
0035             caloRegions_(new L1CaloRegionCollection()){};
0036 
0037       ~CaloCollections() override;
0038 
0039       inline CaloTowerBxCollection* getTowers() { return towers_.get(); };
0040       inline EGammaBxCollection* getEGammas() { return egammas_.get(); };
0041       inline EtSumBxCollection* getEtSums() { return etsums_.get(); };
0042       inline JetBxCollection* getJets() { return jets_.get(); };
0043       inline TauBxCollection* getTaus() { return taus_.get(); };
0044       inline TauBxCollection* getIsoTaus() { return isotaus_.get(); };
0045       inline CaloSpareBxCollection* getCaloSpareHFBitCounts() { return calospareHFBitCounts_.get(); };
0046       inline CaloSpareBxCollection* getCaloSpareHFRingSums() { return calospareHFRingSums_.get(); };
0047       inline L1CaloEmCollection* getCaloEmCands() { return caloEmCands_.get(); };
0048       inline L1CaloRegionCollection* getCaloRegions() { return caloRegions_.get(); };
0049 
0050     private:
0051       std::unique_ptr<CaloTowerBxCollection> towers_;
0052       std::unique_ptr<EGammaBxCollection> egammas_;
0053       std::unique_ptr<EtSumBxCollection> etsums_;
0054       std::unique_ptr<JetBxCollection> jets_;
0055       std::unique_ptr<TauBxCollection> taus_;
0056       std::unique_ptr<TauBxCollection> isotaus_;
0057       std::unique_ptr<CaloSpareBxCollection> calospareHFBitCounts_;
0058       std::unique_ptr<CaloSpareBxCollection> calospareHFRingSums_;
0059       std::unique_ptr<L1CaloEmCollection> caloEmCands_;
0060       std::unique_ptr<L1CaloRegionCollection> caloRegions_;
0061     };
0062   }  // namespace stage1
0063 }  // namespace l1t
0064 
0065 #endif