CMS 3D CMS Logo

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

#include <CaloLayer1Collections.h>

Inheritance diagram for l1t::stage2::CaloLayer1Collections:
l1t::UnpackerCollections

Public Member Functions

 CaloLayer1Collections (edm::Event &e)
 
EcalTrigPrimDigiCollectiongetEcalDigis ()
 
HcalTrigPrimDigiCollectiongetHcalDigis ()
 
L1CaloRegionCollectiongetRegions ()
 
 ~CaloLayer1Collections () override
 
- Public Member Functions inherited from l1t::UnpackerCollections
 UnpackerCollections (edm::Event &e)
 
virtual ~UnpackerCollections ()
 

Private Attributes

std::unique_ptr< L1CaloRegionCollectioncaloRegions_
 
std::unique_ptr< EcalTrigPrimDigiCollectionecalDigis_
 
std::unique_ptr< HcalTrigPrimDigiCollectionhcalDigis_
 

Additional Inherited Members

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

Detailed Description

Definition at line 12 of file CaloLayer1Collections.h.

Constructor & Destructor Documentation

l1t::stage2::CaloLayer1Collections::CaloLayer1Collections ( edm::Event e)

Definition at line 7 of file CaloLayer1Collections.cc.

References caloRegions_, ecalDigis_, and hcalDigis_.

7  :
12  {
13  // Pre-allocate:
14  // 72 iPhi values
15  // 28 iEta values in Ecal, 28 + 12 iEta values in Hcal + HF
16  // 2 hemispheres
17  ecalDigis_->reserve(72*28*2);
18  hcalDigis_->reserve(72*40*2);
19  // 7 regions * 18 cards * 2 hemispheres
20  caloRegions_->reserve(7*18*2);
21  }
std::unique_ptr< L1CaloRegionCollection > caloRegions_
edm::SortedCollection< HcalTriggerPrimitiveDigi > HcalTrigPrimDigiCollection
std::unique_ptr< HcalTrigPrimDigiCollection > hcalDigis_
UnpackerCollections(edm::Event &e)
edm::SortedCollection< EcalTriggerPrimitiveDigi > EcalTrigPrimDigiCollection
std::unique_ptr< EcalTrigPrimDigiCollection > ecalDigis_
std::vector< L1CaloRegion > L1CaloRegionCollection
l1t::stage2::CaloLayer1Collections::~CaloLayer1Collections ( )
override

Definition at line 23 of file CaloLayer1Collections.cc.

References caloRegions_, ecalDigis_, l1t::UnpackerCollections::event_, hcalDigis_, eostools::move(), and edm::Event::put().

24  {
28  }
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
Definition: Event.h:125
std::unique_ptr< L1CaloRegionCollection > caloRegions_
std::unique_ptr< HcalTrigPrimDigiCollection > hcalDigis_
std::unique_ptr< EcalTrigPrimDigiCollection > ecalDigis_
def move(src, dest)
Definition: eostools.py:511

Member Function Documentation

EcalTrigPrimDigiCollection* l1t::stage2::CaloLayer1Collections::getEcalDigis ( )
inline

Definition at line 17 of file CaloLayer1Collections.h.

References ecalDigis_.

17 {return ecalDigis_.get();};
std::unique_ptr< EcalTrigPrimDigiCollection > ecalDigis_
HcalTrigPrimDigiCollection* l1t::stage2::CaloLayer1Collections::getHcalDigis ( )
inline

Definition at line 18 of file CaloLayer1Collections.h.

References hcalDigis_.

18 { return hcalDigis_.get(); };
std::unique_ptr< HcalTrigPrimDigiCollection > hcalDigis_
L1CaloRegionCollection* l1t::stage2::CaloLayer1Collections::getRegions ( )
inline

Definition at line 19 of file CaloLayer1Collections.h.

References caloRegions_, and ecalDigis_.

19 { return caloRegions_.get(); };
std::unique_ptr< L1CaloRegionCollection > caloRegions_

Member Data Documentation

std::unique_ptr<L1CaloRegionCollection> l1t::stage2::CaloLayer1Collections::caloRegions_
private
std::unique_ptr<EcalTrigPrimDigiCollection> l1t::stage2::CaloLayer1Collections::ecalDigis_
private
std::unique_ptr<HcalTrigPrimDigiCollection> l1t::stage2::CaloLayer1Collections::hcalDigis_
private