Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:10:57

0001 #include "EventFilter/RctRawToDigi/src/RctUnpackCollections.h"
0002 
0003 RctUnpackCollections::RctUnpackCollections(edm::Event& event)
0004     : m_event(event), m_rctEm(new L1CaloEmCollection()), m_rctCalo(new L1CaloRegionCollection()) {
0005   //m_rctIsoEm->reserve(4);
0006   //m_rctCenJets->reserve(4);
0007   //m_rctForJets->reserve(4);
0008   //m_rctTauJets->reserve(4);
0009   // ** DON'T RESERVE SPACE IN VECTORS FOR DEBUG UNPACK ITEMS! **
0010 }
0011 
0012 RctUnpackCollections::~RctUnpackCollections() {
0013   // RCT input collections
0014   m_event.put(std::move(m_rctEm));
0015   m_event.put(std::move(m_rctCalo));
0016 }
0017 
0018 std::ostream& operator<<(std::ostream& os, const RctUnpackCollections& rhs) {
0019   // RCT input collections
0020   os << "Read " << rhs.rctEm()->size() << " RCT EM candidates\n"
0021      << "Read " << rhs.rctCalo()->size() << " RCT Calo Regions\n";
0022 
0023   return os;
0024 }