CMS 3D CMS Logo

GTCollections.h
Go to the documentation of this file.
1 #ifndef GTCollections_h
2 #define GTCollections_h
3 
9 
12 
13 //#include "EventFilter/L1TRawToDigi/interface/UnpackerCollections.h"
14 #include "L1TObjectCollections.h"
15 
16 namespace l1t {
17  namespace stage2 {
19  public:
22  std::generate(muons_.begin(), muons_.end(), [] { return std::make_unique<MuonBxCollection>(); });
23  std::generate(egammas_.begin(), egammas_.end(), [] { return std::make_unique<EGammaBxCollection>(); });
24  std::generate(etsums_.begin(), etsums_.end(), [] { return std::make_unique<EtSumBxCollection>(); });
25  std::generate(jets_.begin(), jets_.end(), [] { return std::make_unique<JetBxCollection>(); });
26  std::generate(taus_.begin(), taus_.end(), [] { return std::make_unique<TauBxCollection>(); });
27  };
28 
29  ~GTCollections() override;
30 
31  inline MuonBxCollection* getMuons(const unsigned int copy) override { return muons_[copy].get(); };
32  inline EGammaBxCollection* getEGammas(const unsigned int copy) override { return egammas_[copy].get(); };
33  inline EtSumBxCollection* getEtSums(const unsigned int copy) override { return etsums_[copy].get(); };
34  inline JetBxCollection* getJets(const unsigned int copy) override { return jets_[copy].get(); };
35  inline TauBxCollection* getTaus(const unsigned int copy) override { return taus_[copy].get(); };
36 
37  inline GlobalAlgBlkBxCollection* getAlgs() { return algBlk_.get(); };
38  inline GlobalExtBlkBxCollection* getExts() { return extBlk_.get(); };
39 
40  private:
41  std::array<std::unique_ptr<MuonBxCollection>, 6> muons_;
42  std::array<std::unique_ptr<EGammaBxCollection>, 6> egammas_;
43  std::array<std::unique_ptr<EtSumBxCollection>, 6> etsums_;
44  std::array<std::unique_ptr<JetBxCollection>, 6> jets_;
45  std::array<std::unique_ptr<TauBxCollection>, 6> taus_;
46 
47  std::unique_ptr<GlobalAlgBlkBxCollection> algBlk_;
48  std::unique_ptr<GlobalExtBlkBxCollection> extBlk_;
49  };
50  } // namespace stage2
51 } // namespace l1t
52 
53 #endif
filterCSVwithJSON.copy
copy
Definition: filterCSVwithJSON.py:36
l1t::stage2::GTCollections::getEtSums
EtSumBxCollection * getEtSums(const unsigned int copy) override
Definition: GTCollections.h:33
GlobalExtBlk.h
Muon.h
Jet.h
models.generate
def generate(map_blobs=False, class_name=None)
Definition: models.py:189
l1t::stage2::GTCollections::muons_
std::array< std::unique_ptr< MuonBxCollection >, 6 > muons_
Definition: GTCollections.h:38
l1t::stage2::GTCollections::GTCollections
GTCollections(edm::Event &e)
Definition: GTCollections.h:20
BXVector
Definition: BXVector.h:15
EGamma.h
l1t::stage2::GTCollections
Definition: GTCollections.h:18
l1t::stage2::GTCollections::etsums_
std::array< std::unique_ptr< EtSumBxCollection >, 6 > etsums_
Definition: GTCollections.h:43
l1t::stage2::GTCollections::getAlgs
GlobalAlgBlkBxCollection * getAlgs()
Definition: GTCollections.h:37
l1t::stage2::L1TObjectCollections
Definition: L1TObjectCollections.h:16
l1t::stage2::GTCollections::~GTCollections
~GTCollections() override
Definition: GTCollections.cc:7
l1t
delete x;
Definition: CaloConfig.h:22
l1t::stage2::GTCollections::getExts
GlobalExtBlkBxCollection * getExts()
Definition: GTCollections.h:38
GlobalAlgBlk.h
SiStripSourceConfigTier0_cff.stage2
stage2
Definition: SiStripSourceConfigTier0_cff.py:71
l1t::stage2::GTCollections::getJets
JetBxCollection * getJets(const unsigned int copy) override
Definition: GTCollections.h:34
l1t::stage2::GTCollections::extBlk_
std::unique_ptr< GlobalExtBlkBxCollection > extBlk_
Definition: GTCollections.h:48
l1t::stage2::GTCollections::getTaus
TauBxCollection * getTaus(const unsigned int copy) override
Definition: GTCollections.h:35
l1t::stage2::GTCollections::egammas_
std::array< std::unique_ptr< EGammaBxCollection >, 6 > egammas_
Definition: GTCollections.h:42
l1t::stage2::GTCollections::getEGammas
EGammaBxCollection * getEGammas(const unsigned int copy) override
Definition: GTCollections.h:32
L1TObjectCollections.h
EtSum.h
l1t::stage2::GTCollections::algBlk_
std::unique_ptr< GlobalAlgBlkBxCollection > algBlk_
Definition: GTCollections.h:47
l1t::stage2::GTCollections::jets_
std::array< std::unique_ptr< JetBxCollection >, 6 > jets_
Definition: GTCollections.h:44
l1t::stage2::GTCollections::taus_
std::array< std::unique_ptr< TauBxCollection >, 6 > taus_
Definition: GTCollections.h:45
edm::Event
Definition: Event.h:73
l1t::stage2::GTCollections::getMuons
MuonBxCollection * getMuons(const unsigned int copy) override
Definition: GTCollections.h:31
Tau.h
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37