CMS 3D CMS Logo

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

#include <RctUnpackCollections.h>

Public Member Functions

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 ()
 Destructor - the last action of this object is to put the rct collections into the event provided on construction. More...
 

Private Member Functions

RctUnpackCollectionsoperator= (const RctUnpackCollections &)=delete
 Assignment op - deliberately not implemented! More...
 
 RctUnpackCollections (const RctUnpackCollections &)=delete
 Copy ctor - deliberately not implemented! 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::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.

Referenced by rctCalo().

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.
edm::Event & m_event
The event the collections will be put into on destruction of the RctUnpackCollections instance...
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:131
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...
RctUnpackCollections::RctUnpackCollections ( const RctUnpackCollections )
privatedelete

Copy ctor - deliberately not implemented!

Member Function Documentation

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

Assignment op - deliberately not implemented!

Referenced by rctCalo().

L1CaloRegionCollection* const RctUnpackCollections::rctCalo ( ) const
inline

Input calo regions from the RCT to the RCT.

Definition at line 28 of file RctUnpackCollections.h.

References m_rctCalo, operator=(), and RctUnpackCollections().

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

L1CaloEmCollection* const RctUnpackCollections::rctEm ( ) const
inline

Input electrons from the RCT to the RCT.

Definition at line 27 of file RctUnpackCollections.h.

References m_rctEm.

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

Member Data Documentation

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().

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

Input calo regions.

Definition at line 42 of file RctUnpackCollections.h.

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

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

Input electrons.

Definition at line 41 of file RctUnpackCollections.h.

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