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() [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 }

◆ ~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.

12  {
13  // RCT input collections
16 }

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

◆ RctUnpackCollections() [2/2]

RctUnpackCollections::RctUnpackCollections ( const RctUnpackCollections )
privatedelete

Copy ctor - deliberately not implemented!

Member Function Documentation

◆ operator=()

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

Assignment op - deliberately not implemented!

◆ 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.

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

◆ rctEm()

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

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

RctUnpackCollections::m_event
edm::Event & m_event
The event the collections will be put into on destruction of the RctUnpackCollections instance.
Definition: RctUnpackCollections.h:38
L1CaloEmCollection
std::vector< L1CaloEmCand > L1CaloEmCollection
Definition: L1CaloCollections.h:10
edm::Event::put
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
Definition: Event.h:132
eostools.move
def move(src, dest)
Definition: eostools.py:511
RctUnpackCollections::m_rctCalo
std::unique_ptr< L1CaloRegionCollection > m_rctCalo
Input calo regions.
Definition: RctUnpackCollections.h:42
L1CaloRegionCollection
std::vector< L1CaloRegion > L1CaloRegionCollection
Definition: L1CaloCollections.h:11
RctUnpackCollections::m_rctEm
std::unique_ptr< L1CaloEmCollection > m_rctEm
Input electrons.
Definition: RctUnpackCollections.h:41
event
Definition: event.py:1