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 &)
 Assignment op - deliberately not implemented! More...
 
 RctUnpackCollections (const RctUnpackCollections &)
 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 4 of file RctUnpackCollections.cc.

Referenced by rctCalo().

4  :
5  m_event(event),
8 {
9  //m_rctIsoEm->reserve(4);
10  //m_rctCenJets->reserve(4);
11  //m_rctForJets->reserve(4);
12  //m_rctTauJets->reserve(4);
13  // ** DON'T RESERVE SPACE IN VECTORS FOR DEBUG UNPACK ITEMS! **
14 }
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 16 of file RctUnpackCollections.cc.

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

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

Copy ctor - deliberately not implemented!

Member Function Documentation

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

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 29 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 28 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 36 of file RctUnpackCollections.h.

Referenced by ~RctUnpackCollections().

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

Input calo regions.

Definition at line 40 of file RctUnpackCollections.h.

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

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

Input electrons.

Definition at line 39 of file RctUnpackCollections.h.

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