CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
RctUnpackCollections Class Reference

#include <RctUnpackCollections.h>

Public Member Functions

RctUnpackCollectionsoperator= (const RctUnpackCollections &)=delete
 Assignment op. More...
 
L1CaloRegionCollection *const rctCalo () const
 Input calo regions from the RCT to the RCT. More...
 
L1CaloEmCollection *const rctEm () const
 Input electrons from the RCT to the RCT. More...
 
 RctUnpackCollections (edm::Event &event)
 Construct with an event. The collections get put into the event when the object instance goes out of scope (i.e. in the destructor). More...
 
 RctUnpackCollections (const RctUnpackCollections &)=delete
 deliberately not implemented! More...
 
 ~RctUnpackCollections ()
 Destructor - the last action of this object is to put the rct collections into the event provided on construction. More...
 

Private Attributes

edm::Eventm_event
 The event the collections will be put into on destruction of the RctUnpackCollections instance. More...
 
std::unique_ptr< L1CaloRegionCollectionm_rctCalo
 Input calo regions. More...
 
std::unique_ptr< L1CaloEmCollectionm_rctEm
 Input electrons. More...
 

Detailed Description

Definition at line 18 of file RctUnpackCollections.h.

Constructor & Destructor Documentation

◆ RctUnpackCollections() [1/2]

RctUnpackCollections::RctUnpackCollections ( edm::Event event)

Construct with an event. The collections get put into the event when the object instance goes out of scope (i.e. in the destructor).

Definition at line 3 of file RctUnpackCollections.cc.

5  //m_rctIsoEm->reserve(4);
6  //m_rctCenJets->reserve(4);
7  //m_rctForJets->reserve(4);
8  //m_rctTauJets->reserve(4);
9  // ** DON'T RESERVE SPACE IN VECTORS FOR DEBUG UNPACK ITEMS! **
10 }
std::vector< L1CaloEmCand > L1CaloEmCollection
std::unique_ptr< L1CaloRegionCollection > m_rctCalo
Input calo regions.
std::vector< L1CaloRegion > L1CaloRegionCollection
std::unique_ptr< L1CaloEmCollection > m_rctEm
Input electrons.
Definition: event.py:1
edm::Event & m_event
The event the collections will be put into on destruction of the RctUnpackCollections instance...

◆ RctUnpackCollections() [2/2]

RctUnpackCollections::RctUnpackCollections ( const RctUnpackCollections )
delete

deliberately not implemented!

Copy ctor

◆ ~RctUnpackCollections()

RctUnpackCollections::~RctUnpackCollections ( )

Destructor - the last action of this object is to put the rct collections into the event provided on construction.

Definition at line 12 of file RctUnpackCollections.cc.

References m_event, m_rctCalo, m_rctEm, eostools::move(), and edm::Event::put().

12  {
13  // RCT input collections
16 }
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
Definition: Event.h:133
std::unique_ptr< L1CaloRegionCollection > m_rctCalo
Input calo regions.
std::unique_ptr< L1CaloEmCollection > m_rctEm
Input electrons.
def move(src, dest)
Definition: eostools.py:511
edm::Event & m_event
The event the collections will be put into on destruction of the RctUnpackCollections instance...

Member Function Documentation

◆ operator=()

RctUnpackCollections& RctUnpackCollections::operator= ( const RctUnpackCollections )
delete

Assignment op.

◆ rctCalo()

L1CaloRegionCollection* const RctUnpackCollections::rctCalo ( ) const
inline

Input calo regions from the RCT to the RCT.

Definition at line 32 of file RctUnpackCollections.h.

References m_rctCalo.

Referenced by operator<<(), and RctRawToDigi::unpackCTP7().

◆ rctEm()

L1CaloEmCollection* const RctUnpackCollections::rctEm ( ) const
inline

Input electrons from the RCT to the RCT.

Definition at line 31 of file RctUnpackCollections.h.

References m_rctEm.

Referenced by operator<<(), and RctRawToDigi::unpackCTP7().

Member Data Documentation

◆ m_event

edm::Event& RctUnpackCollections::m_event
private

The event the collections will be put into on destruction of the RctUnpackCollections instance.

Definition at line 38 of file RctUnpackCollections.h.

Referenced by ~RctUnpackCollections().

◆ m_rctCalo

std::unique_ptr<L1CaloRegionCollection> RctUnpackCollections::m_rctCalo
private

Input calo regions.

Definition at line 42 of file RctUnpackCollections.h.

Referenced by rctCalo(), and ~RctUnpackCollections().

◆ m_rctEm

std::unique_ptr<L1CaloEmCollection> RctUnpackCollections::m_rctEm
private

Input electrons.

Definition at line 41 of file RctUnpackCollections.h.

Referenced by rctEm(), and ~RctUnpackCollections().