CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
l1t::stage2::GTCollections Class Reference

#include <GTCollections.h>

Inheritance diagram for l1t::stage2::GTCollections:
l1t::stage2::L1TObjectCollections l1t::UnpackerCollections

Public Member Functions

GlobalAlgBlkBxCollectiongetAlgs ()
 
EGammaBxCollectiongetEGammas (const unsigned int copy) override
 
EtSumBxCollectiongetEtSums (const unsigned int copy) override
 
GlobalExtBlkBxCollectiongetExts ()
 
JetBxCollectiongetJets (const unsigned int copy) override
 
MuonBxCollectiongetMuons (const unsigned int copy) override
 
TauBxCollectiongetTaus (const unsigned int copy) override
 
 GTCollections (edm::Event &e)
 
 ~GTCollections () override
 
- Public Member Functions inherited from l1t::stage2::L1TObjectCollections
 L1TObjectCollections (edm::Event &e)
 
 ~L1TObjectCollections () override
 
- Public Member Functions inherited from l1t::UnpackerCollections
 UnpackerCollections (edm::Event &e)
 
virtual ~UnpackerCollections ()
 

Private Attributes

std::unique_ptr< GlobalAlgBlkBxCollectionalgBlk_
 
std::array< std::unique_ptr< EGammaBxCollection >, 6 > egammas_
 
std::array< std::unique_ptr< EtSumBxCollection >, 6 > etsums_
 
std::unique_ptr< GlobalExtBlkBxCollectionextBlk_
 
std::array< std::unique_ptr< JetBxCollection >, 6 > jets_
 
std::array< std::unique_ptr< MuonBxCollection >, 6 > muons_
 
std::array< std::unique_ptr< TauBxCollection >, 6 > taus_
 

Additional Inherited Members

- Protected Attributes inherited from l1t::UnpackerCollections
edm::Eventevent_
 

Detailed Description

Definition at line 18 of file GTCollections.h.

Constructor & Destructor Documentation

l1t::stage2::GTCollections::GTCollections ( edm::Event e)
inline

Definition at line 20 of file GTCollections.h.

References egammas_, etsums_, models::generate(), jets_, muons_, taus_, and ~GTCollections().

20  :
24  {
25  std::generate(muons_.begin(), muons_.end(), []{ return std::make_unique<MuonBxCollection>(); });
26  std::generate(egammas_.begin(), egammas_.end(), []{ return std::make_unique<EGammaBxCollection>(); });
27  std::generate(etsums_.begin(), etsums_.end(), []{ return std::make_unique<EtSumBxCollection>(); });
28  std::generate(jets_.begin(), jets_.end(), []{ return std::make_unique<JetBxCollection>(); });
29  std::generate(taus_.begin(), taus_.end(), []{ return std::make_unique<TauBxCollection>(); });
30  };
BXVector< GlobalExtBlk > GlobalExtBlkBxCollection
Definition: GlobalExtBlk.h:30
std::array< std::unique_ptr< MuonBxCollection >, 6 > muons_
Definition: GTCollections.h:41
std::unique_ptr< GlobalExtBlkBxCollection > extBlk_
Definition: GTCollections.h:53
BXVector< GlobalAlgBlk > GlobalAlgBlkBxCollection
Definition: GlobalAlgBlk.h:32
def generate(map_blobs=False, class_name=None)
Definition: models.py:189
std::array< std::unique_ptr< JetBxCollection >, 6 > jets_
Definition: GTCollections.h:49
std::array< std::unique_ptr< EGammaBxCollection >, 6 > egammas_
Definition: GTCollections.h:47
std::unique_ptr< GlobalAlgBlkBxCollection > algBlk_
Definition: GTCollections.h:52
std::array< std::unique_ptr< TauBxCollection >, 6 > taus_
Definition: GTCollections.h:50
std::array< std::unique_ptr< EtSumBxCollection >, 6 > etsums_
Definition: GTCollections.h:48
l1t::stage2::GTCollections::~GTCollections ( )
override

Definition at line 7 of file GTCollections.cc.

References algBlk_, egammas_, etsums_, l1t::UnpackerCollections::event_, extBlk_, mps_fire::i, jets_, eostools::move(), muons_, edm::Event::put(), and taus_.

Referenced by GTCollections().

8  {
9 
10  event_.put(std::move(muons_[0]), "Muon");
11  event_.put(std::move(egammas_[0]), "EGamma");
12  event_.put(std::move(etsums_[0]), "EtSum");
13  event_.put(std::move(jets_[0]), "Jet");
14  event_.put(std::move(taus_[0]), "Tau");
15 
16  for (int i=1; i<6; ++i) {
17  event_.put(std::move(muons_[i]), "Muon" + std::to_string(i+1));
18  event_.put(std::move(egammas_[i]), "EGamma" + std::to_string(i+1));
19  event_.put(std::move(etsums_[i]), "EtSum" + std::to_string(i+1));
20  event_.put(std::move(jets_[i]), "Jet" + std::to_string(i+1));
21  event_.put(std::move(taus_[i]), "Tau" + std::to_string(i+1));
22  }
23 
26 
27  }
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
Definition: Event.h:125
std::array< std::unique_ptr< MuonBxCollection >, 6 > muons_
Definition: GTCollections.h:41
std::unique_ptr< GlobalExtBlkBxCollection > extBlk_
Definition: GTCollections.h:53
std::array< std::unique_ptr< JetBxCollection >, 6 > jets_
Definition: GTCollections.h:49
std::array< std::unique_ptr< EGammaBxCollection >, 6 > egammas_
Definition: GTCollections.h:47
std::unique_ptr< GlobalAlgBlkBxCollection > algBlk_
Definition: GTCollections.h:52
std::array< std::unique_ptr< TauBxCollection >, 6 > taus_
Definition: GTCollections.h:50
def move(src, dest)
Definition: eostools.py:511
std::array< std::unique_ptr< EtSumBxCollection >, 6 > etsums_
Definition: GTCollections.h:48

Member Function Documentation

GlobalAlgBlkBxCollection* l1t::stage2::GTCollections::getAlgs ( )
inline

Definition at line 40 of file GTCollections.h.

References algBlk_.

40 { return algBlk_.get(); };
std::unique_ptr< GlobalAlgBlkBxCollection > algBlk_
Definition: GTCollections.h:52
EGammaBxCollection* l1t::stage2::GTCollections::getEGammas ( const unsigned int  copy)
inlineoverridevirtual

Reimplemented from l1t::stage2::L1TObjectCollections.

Definition at line 35 of file GTCollections.h.

References popcon2dropbox::copy(), and egammas_.

35 { return egammas_[copy].get(); };
def copy(args, dbName)
std::array< std::unique_ptr< EGammaBxCollection >, 6 > egammas_
Definition: GTCollections.h:47
EtSumBxCollection* l1t::stage2::GTCollections::getEtSums ( const unsigned int  copy)
inlineoverridevirtual

Reimplemented from l1t::stage2::L1TObjectCollections.

Definition at line 36 of file GTCollections.h.

References popcon2dropbox::copy(), and etsums_.

36 { return etsums_[copy].get(); };
def copy(args, dbName)
std::array< std::unique_ptr< EtSumBxCollection >, 6 > etsums_
Definition: GTCollections.h:48
GlobalExtBlkBxCollection* l1t::stage2::GTCollections::getExts ( )
inline

Definition at line 41 of file GTCollections.h.

41 { return extBlk_.get(); };
std::unique_ptr< GlobalExtBlkBxCollection > extBlk_
Definition: GTCollections.h:53
JetBxCollection* l1t::stage2::GTCollections::getJets ( const unsigned int  copy)
inlineoverridevirtual

Reimplemented from l1t::stage2::L1TObjectCollections.

Definition at line 37 of file GTCollections.h.

References popcon2dropbox::copy(), and jets_.

37 { return jets_[copy].get(); };
def copy(args, dbName)
std::array< std::unique_ptr< JetBxCollection >, 6 > jets_
Definition: GTCollections.h:49
MuonBxCollection* l1t::stage2::GTCollections::getMuons ( const unsigned int  copy)
inlineoverridevirtual

Reimplemented from l1t::stage2::L1TObjectCollections.

Definition at line 34 of file GTCollections.h.

References popcon2dropbox::copy(), and muons_.

34 { return muons_[copy].get(); };
std::array< std::unique_ptr< MuonBxCollection >, 6 > muons_
Definition: GTCollections.h:41
def copy(args, dbName)
TauBxCollection* l1t::stage2::GTCollections::getTaus ( const unsigned int  copy)
inlineoverridevirtual

Reimplemented from l1t::stage2::L1TObjectCollections.

Definition at line 38 of file GTCollections.h.

References popcon2dropbox::copy(), and taus_.

38 { return taus_[copy].get(); };
def copy(args, dbName)
std::array< std::unique_ptr< TauBxCollection >, 6 > taus_
Definition: GTCollections.h:50

Member Data Documentation

std::unique_ptr<GlobalAlgBlkBxCollection> l1t::stage2::GTCollections::algBlk_
private

Definition at line 52 of file GTCollections.h.

Referenced by getAlgs(), and ~GTCollections().

std::array<std::unique_ptr<EGammaBxCollection>, 6 > l1t::stage2::GTCollections::egammas_
private

Definition at line 47 of file GTCollections.h.

Referenced by getEGammas(), GTCollections(), and ~GTCollections().

std::array<std::unique_ptr<EtSumBxCollection>, 6 > l1t::stage2::GTCollections::etsums_
private

Definition at line 48 of file GTCollections.h.

Referenced by getEtSums(), GTCollections(), and ~GTCollections().

std::unique_ptr<GlobalExtBlkBxCollection> l1t::stage2::GTCollections::extBlk_
private

Definition at line 53 of file GTCollections.h.

Referenced by ~GTCollections().

std::array<std::unique_ptr<JetBxCollection>, 6 > l1t::stage2::GTCollections::jets_
private

Definition at line 49 of file GTCollections.h.

Referenced by getJets(), GTCollections(), and ~GTCollections().

std::array<std::unique_ptr<MuonBxCollection>, 6 > l1t::stage2::GTCollections::muons_
private

Definition at line 41 of file GTCollections.h.

Referenced by getMuons(), GTCollections(), and ~GTCollections().

std::array<std::unique_ptr<TauBxCollection>, 6 > l1t::stage2::GTCollections::taus_
private

Definition at line 50 of file GTCollections.h.

Referenced by getTaus(), GTCollections(), and ~GTCollections().