CMS 3D CMS Logo

RctUnpackCollections.cc
Go to the documentation of this file.
2 
4  : m_event(event), m_rctEm(new L1CaloEmCollection()), m_rctCalo(new L1CaloRegionCollection()) {
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 }
11 
13  // RCT input collections
16 }
17 
18 std::ostream& operator<<(std::ostream& os, const RctUnpackCollections& rhs) {
19  // RCT input collections
20  os << "Read " << rhs.rctEm()->size() << " RCT EM candidates\n"
21  << "Read " << rhs.rctCalo()->size() << " RCT Calo Regions\n";
22 
23  return os;
24 }
RctUnpackCollections::~RctUnpackCollections
~RctUnpackCollections()
Destructor - the last action of this object is to put the rct collections into the event provided on ...
Definition: RctUnpackCollections.cc:12
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
RctUnpackCollections::rctEm
L1CaloEmCollection *const rctEm() const
Input electrons from the RCT to the RCT.
Definition: RctUnpackCollections.h:27
RctUnpackCollections.h
RctUnpackCollections::rctCalo
L1CaloRegionCollection *const rctCalo() const
Input calo regions from the RCT to the RCT.
Definition: RctUnpackCollections.h:28
L1CaloEmCollection
std::vector< L1CaloEmCand > L1CaloEmCollection
Definition: L1CaloCollections.h:10
RctUnpackCollections::RctUnpackCollections
RctUnpackCollections(edm::Event &event)
Construct with an event. The collections get put into the event when the object instance goes out of ...
Definition: RctUnpackCollections.cc:3
operator<<
std::ostream & operator<<(std::ostream &os, const RctUnpackCollections &rhs)
Definition: RctUnpackCollections.cc:18
edm::Event::put
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
Definition: Event.h:133
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
Definition: RctUnpackCollections.h:18
RctUnpackCollections::m_rctEm
std::unique_ptr< L1CaloEmCollection > m_rctEm
Input electrons.
Definition: RctUnpackCollections.h:41
event
Definition: event.py:1
edm::Event
Definition: Event.h:73