CMS 3D CMS Logo

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

RAII and useful methods for the many dataformat collections required by the GCT unpacker. More...

#include <GctUnpackCollections.h>

Public Member Functions

L1TriggerErrorCollection *const errors () const
 Unpack error code collection. More...
 
L1GctJetCandCollection *const gctCenJets () const
 GCT output: Central Jets collection. More...
 
L1GctEtHadCollection *const gctEtHad () const
 GCT output: Hadronic transverse-energy (Ht) collection. More...
 
L1GctEtMissCollection *const gctEtMiss () const
 GCT output: Missing Et collection. More...
 
L1GctEtTotalCollection *const gctEtTot () const
 GCT output: Total Et collection. More...
 
L1GctFibreCollection *const gctFibres () const
 Raw fibre input to the GCT. More...
 
L1GctJetCandCollection *const gctForJets () const
 GCT output: Forward Jets collection. More...
 
L1GctHFBitCountsCollection *const gctHfBitCounts () const
 GCT output: Hadronic-Forward bit-counts collection. More...
 
L1GctHFRingEtSumsCollection *const gctHfRingEtSums () const
 GCT output: Hadronic-Forward ring-sums collection. More...
 
L1GctHtMissCollection *const gctHtMiss () const
 GCT output: Missing Ht collection. More...
 
L1GctInternEmCandCollection *const gctInternEm () const
 Internal EM candidate collection. More...
 
L1GctInternEtSumCollection *const gctInternEtSums () const
 Internal Et Sum collection. More...
 
L1GctInternHFDataCollection *const gctInternHFData () const
 Internal Hadronic-Forward bit-counts/ring-sums data collection. More...
 
L1GctInternHtMissCollection *const gctInternHtMiss () const
 Internal missing Ht collection. More...
 
L1GctInternJetDataCollection *const gctInternJets () const
 Internal Jet candidate collection. More...
 
L1GctEmCandCollection *const gctIsoEm () const
 GCT output: Isolated EM candidate collection. More...
 
L1GctJetCountsCollection *const gctJetCounts () const
 DEPRECATED. ONLY GT NEEDS THIS. More...
 
L1GctEmCandCollection *const gctNonIsoEm () const
 GCT output: Non-isolated EM candidate collection. More...
 
L1GctJetCandCollection *const gctTauJets () const
 GCT output: Tau Jets collection. More...
 
 GctUnpackCollections (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...
 
 GctUnpackCollections (const GctUnpackCollections &)=delete
 deliberately not implemented! More...
 
GctUnpackCollectionsoperator= (const GctUnpackCollections &)=delete
 Assignment op. More...
 
L1CaloRegionCollection *const rctCalo () const
 Input calo regions from the RCT to the GCT. More...
 
L1CaloEmCollection *const rctEm () const
 Input electrons from the RCT to the GCT. More...
 
 ~GctUnpackCollections ()
 Destructor - the last action of this object is to put the gct collections into the event provided on construction. More...
 

Private Attributes

std::unique_ptr< L1TriggerErrorCollectionm_errors
 
edm::Eventm_event
 The event the collections will be put into on destruction of the GctUnpackCollections instance. More...
 
std::unique_ptr< L1GctJetCandCollectionm_gctCenJets
 
std::unique_ptr< L1GctEtHadCollectionm_gctEtHad
 
std::unique_ptr< L1GctEtMissCollectionm_gctEtMiss
 
std::unique_ptr< L1GctEtTotalCollectionm_gctEtTot
 
std::unique_ptr< L1GctFibreCollectionm_gctFibres
 Raw fibre input to the GCT. More...
 
std::unique_ptr< L1GctJetCandCollectionm_gctForJets
 
std::unique_ptr< L1GctHFBitCountsCollectionm_gctHfBitCounts
 
std::unique_ptr< L1GctHFRingEtSumsCollectionm_gctHfRingEtSums
 
std::unique_ptr< L1GctHtMissCollectionm_gctHtMiss
 
std::unique_ptr< L1GctInternEmCandCollectionm_gctInternEm
 
std::unique_ptr< L1GctInternEtSumCollectionm_gctInternEtSums
 
std::unique_ptr< L1GctInternHFDataCollectionm_gctInternHFData
 
std::unique_ptr< L1GctInternHtMissCollectionm_gctInternHtMiss
 
std::unique_ptr< L1GctInternJetDataCollectionm_gctInternJets
 
std::unique_ptr< L1GctEmCandCollectionm_gctIsoEm
 
std::unique_ptr< L1GctJetCountsCollectionm_gctJetCounts
 
std::unique_ptr< L1GctEmCandCollectionm_gctNonIsoEm
 
std::unique_ptr< L1GctJetCandCollectionm_gctTauJets
 
std::unique_ptr< L1CaloRegionCollectionm_rctCalo
 Input calo regions. More...
 
std::unique_ptr< L1CaloEmCollectionm_rctEm
 Input electrons. More...
 

Detailed Description

RAII and useful methods for the many dataformat collections required by the GCT unpacker.

Deliberately made non-copyable with const members and private copy ctor, etc.

Author
Robert Frazier

Definition at line 21 of file GctUnpackCollections.h.

Constructor & Destructor Documentation

◆ GctUnpackCollections() [1/2]

GctUnpackCollections::GctUnpackCollections ( 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 GctUnpackCollections.cc.

References m_gctCenJets, m_gctForJets, m_gctIsoEm, and m_gctTauJets.

4  : m_event(event),
5  m_gctFibres(new L1GctFibreCollection()), // GCT input collections
8  m_gctInternEm(new L1GctInternEmCandCollection()), // GCT internal collections
13  m_gctIsoEm(new L1GctEmCandCollection()), // GCT output collections
24  m_gctJetCounts(new L1GctJetCountsCollection()), // Deprecated (empty collection still needed by GT)
25  m_errors(new L1TriggerErrorCollection()) // Misc
26 {
27  m_gctIsoEm->reserve(4);
28  m_gctCenJets->reserve(4);
29  m_gctForJets->reserve(4);
30  m_gctTauJets->reserve(4);
31  // ** DON'T RESERVE SPACE IN VECTORS FOR DEBUG UNPACK ITEMS! **
32 }
std::vector< L1CaloEmCand > L1CaloEmCollection
std::unique_ptr< L1GctInternJetDataCollection > m_gctInternJets
std::unique_ptr< L1GctInternEtSumCollection > m_gctInternEtSums
std::vector< L1TriggerError > L1TriggerErrorCollection
std::vector< L1GctEtMiss > L1GctEtMissCollection
std::unique_ptr< L1GctEmCandCollection > m_gctNonIsoEm
edm::Event & m_event
The event the collections will be put into on destruction of the GctUnpackCollections instance...
std::vector< L1GctHFRingEtSums > L1GctHFRingEtSumsCollection
std::unique_ptr< L1CaloRegionCollection > m_rctCalo
Input calo regions.
std::unique_ptr< L1CaloEmCollection > m_rctEm
Input electrons.
std::vector< L1GctEtHad > L1GctEtHadCollection
std::vector< L1GctJetCounts > L1GctJetCountsCollection
std::vector< L1GctInternHtMiss > L1GctInternHtMissCollection
std::unique_ptr< L1GctFibreCollection > m_gctFibres
Raw fibre input to the GCT.
std::vector< L1GctInternEmCand > L1GctInternEmCandCollection
std::vector< L1GctFibreWord > L1GctFibreCollection
std::vector< L1GctEtTotal > L1GctEtTotalCollection
std::vector< L1GctInternHFData > L1GctInternHFDataCollection
std::vector< L1GctHFBitCounts > L1GctHFBitCountsCollection
std::vector< L1GctJetCand > L1GctJetCandCollection
std::unique_ptr< L1GctInternHtMissCollection > m_gctInternHtMiss
std::unique_ptr< L1TriggerErrorCollection > m_errors
std::unique_ptr< L1GctInternHFDataCollection > m_gctInternHFData
std::unique_ptr< L1GctHtMissCollection > m_gctHtMiss
std::vector< L1GctHtMiss > L1GctHtMissCollection
std::unique_ptr< L1GctEtMissCollection > m_gctEtMiss
std::unique_ptr< L1GctEtHadCollection > m_gctEtHad
std::unique_ptr< L1GctJetCandCollection > m_gctTauJets
std::unique_ptr< L1GctInternEmCandCollection > m_gctInternEm
std::unique_ptr< L1GctJetCandCollection > m_gctForJets
std::vector< L1GctInternJetData > L1GctInternJetDataCollection
std::unique_ptr< L1GctJetCountsCollection > m_gctJetCounts
std::unique_ptr< L1GctHFRingEtSumsCollection > m_gctHfRingEtSums
std::unique_ptr< L1GctEmCandCollection > m_gctIsoEm
std::vector< L1GctInternEtSum > L1GctInternEtSumCollection
std::vector< L1CaloRegion > L1CaloRegionCollection
std::unique_ptr< L1GctJetCandCollection > m_gctCenJets
Definition: event.py:1
std::unique_ptr< L1GctHFBitCountsCollection > m_gctHfBitCounts
std::vector< L1GctEmCand > L1GctEmCandCollection
std::unique_ptr< L1GctEtTotalCollection > m_gctEtTot

◆ GctUnpackCollections() [2/2]

GctUnpackCollections::GctUnpackCollections ( const GctUnpackCollections )
delete

deliberately not implemented!

Copy ctor

◆ ~GctUnpackCollections()

GctUnpackCollections::~GctUnpackCollections ( )

Destructor - the last action of this object is to put the gct collections into the event provided on construction.

Definition at line 34 of file GctUnpackCollections.cc.

References m_errors, m_event, m_gctCenJets, m_gctEtHad, m_gctEtMiss, m_gctEtTot, m_gctFibres, m_gctForJets, m_gctHfBitCounts, m_gctHfRingEtSums, m_gctHtMiss, m_gctInternEm, m_gctInternEtSums, m_gctInternHFData, m_gctInternHtMiss, m_gctInternJets, m_gctIsoEm, m_gctJetCounts, m_gctNonIsoEm, m_gctTauJets, m_rctCalo, m_rctEm, eostools::move(), and edm::Event::put().

34  {
35  // GCT input collections
39 
40  // GCT internal collections
46 
47  // GCT output collections
48  m_event.put(std::move(m_gctIsoEm), "isoEm");
49  m_event.put(std::move(m_gctNonIsoEm), "nonIsoEm");
50  m_event.put(std::move(m_gctCenJets), "cenJets");
51  m_event.put(std::move(m_gctForJets), "forJets");
52  m_event.put(std::move(m_gctTauJets), "tauJets");
59  m_event.put(std::move(m_gctJetCounts)); // Deprecated (empty collection still needed by GT)
60 
61  // Misc
63 }
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
Definition: Event.h:133
std::unique_ptr< L1GctInternJetDataCollection > m_gctInternJets
std::unique_ptr< L1GctInternEtSumCollection > m_gctInternEtSums
std::unique_ptr< L1GctEmCandCollection > m_gctNonIsoEm
edm::Event & m_event
The event the collections will be put into on destruction of the GctUnpackCollections instance...
std::unique_ptr< L1CaloRegionCollection > m_rctCalo
Input calo regions.
std::unique_ptr< L1CaloEmCollection > m_rctEm
Input electrons.
std::unique_ptr< L1GctFibreCollection > m_gctFibres
Raw fibre input to the GCT.
std::unique_ptr< L1GctInternHtMissCollection > m_gctInternHtMiss
std::unique_ptr< L1TriggerErrorCollection > m_errors
std::unique_ptr< L1GctInternHFDataCollection > m_gctInternHFData
std::unique_ptr< L1GctHtMissCollection > m_gctHtMiss
std::unique_ptr< L1GctEtMissCollection > m_gctEtMiss
std::unique_ptr< L1GctEtHadCollection > m_gctEtHad
std::unique_ptr< L1GctJetCandCollection > m_gctTauJets
std::unique_ptr< L1GctInternEmCandCollection > m_gctInternEm
std::unique_ptr< L1GctJetCandCollection > m_gctForJets
std::unique_ptr< L1GctJetCountsCollection > m_gctJetCounts
std::unique_ptr< L1GctHFRingEtSumsCollection > m_gctHfRingEtSums
std::unique_ptr< L1GctEmCandCollection > m_gctIsoEm
std::unique_ptr< L1GctJetCandCollection > m_gctCenJets
def move(src, dest)
Definition: eostools.py:511
std::unique_ptr< L1GctHFBitCountsCollection > m_gctHfBitCounts
std::unique_ptr< L1GctEtTotalCollection > m_gctEtTot

Member Function Documentation

◆ errors()

L1TriggerErrorCollection* const GctUnpackCollections::errors ( void  ) const
inline

Unpack error code collection.

Definition at line 88 of file GctUnpackCollections.h.

References m_errors.

◆ gctCenJets()

L1GctJetCandCollection* const GctUnpackCollections::gctCenJets ( ) const
inline

GCT output: Central Jets collection.

Definition at line 64 of file GctUnpackCollections.h.

References m_gctCenJets.

Referenced by GctFormatTranslateBase::gctJets(), and operator<<().

◆ gctEtHad()

L1GctEtHadCollection* const GctUnpackCollections::gctEtHad ( ) const
inline

◆ gctEtMiss()

L1GctEtMissCollection* const GctUnpackCollections::gctEtMiss ( ) const
inline

◆ gctEtTot()

L1GctEtTotalCollection* const GctUnpackCollections::gctEtTot ( ) const
inline

◆ gctFibres()

L1GctFibreCollection* const GctUnpackCollections::gctFibres ( ) const
inline

◆ gctForJets()

L1GctJetCandCollection* const GctUnpackCollections::gctForJets ( ) const
inline

GCT output: Forward Jets collection.

Definition at line 67 of file GctUnpackCollections.h.

References m_gctForJets.

Referenced by GctFormatTranslateBase::gctJets(), and operator<<().

◆ gctHfBitCounts()

L1GctHFBitCountsCollection* const GctUnpackCollections::gctHfBitCounts ( ) const
inline

◆ gctHfRingEtSums()

L1GctHFRingEtSumsCollection* const GctUnpackCollections::gctHfRingEtSums ( ) const
inline

◆ gctHtMiss()

L1GctHtMissCollection* const GctUnpackCollections::gctHtMiss ( ) const
inline

◆ gctInternEm()

L1GctInternEmCandCollection* const GctUnpackCollections::gctInternEm ( ) const
inline

Internal EM candidate collection.

Definition at line 41 of file GctUnpackCollections.h.

References m_gctInternEm.

Referenced by GctFormatTranslateV35::blockToGctInternEmCand(), GctFormatTranslateV38::blockToGctInternEmCand(), and operator<<().

◆ gctInternEtSums()

L1GctInternEtSumCollection* const GctUnpackCollections::gctInternEtSums ( ) const
inline

◆ gctInternHFData()

L1GctInternHFDataCollection* const GctUnpackCollections::gctInternHFData ( ) const
inline

◆ gctInternHtMiss()

L1GctInternHtMissCollection* const GctUnpackCollections::gctInternHtMiss ( ) const
inline

◆ gctInternJets()

L1GctInternJetDataCollection* const GctUnpackCollections::gctInternJets ( ) const
inline

◆ gctIsoEm()

L1GctEmCandCollection* const GctUnpackCollections::gctIsoEm ( ) const
inline

◆ gctJetCounts()

L1GctJetCountsCollection* const GctUnpackCollections::gctJetCounts ( ) const
inline

DEPRECATED. ONLY GT NEEDS THIS.

Definition at line 83 of file GctUnpackCollections.h.

References m_gctJetCounts.

◆ gctNonIsoEm()

L1GctEmCandCollection* const GctUnpackCollections::gctNonIsoEm ( ) const
inline

◆ gctTauJets()

L1GctJetCandCollection* const GctUnpackCollections::gctTauJets ( ) const
inline

GCT output: Tau Jets collection.

Definition at line 70 of file GctUnpackCollections.h.

References m_gctTauJets.

Referenced by GctFormatTranslateBase::gctJets(), and operator<<().

◆ operator=()

GctUnpackCollections& GctUnpackCollections::operator= ( const GctUnpackCollections )
delete

Assignment op.

◆ rctCalo()

L1CaloRegionCollection* const GctUnpackCollections::rctCalo ( ) const
inline

◆ rctEm()

L1CaloEmCollection* const GctUnpackCollections::rctEm ( ) const
inline

Member Data Documentation

◆ m_errors

std::unique_ptr<L1TriggerErrorCollection> GctUnpackCollections::m_errors
private

Definition at line 121 of file GctUnpackCollections.h.

Referenced by errors(), and ~GctUnpackCollections().

◆ m_event

edm::Event& GctUnpackCollections::m_event
private

The event the collections will be put into on destruction of the GctUnpackCollections instance.

Definition at line 92 of file GctUnpackCollections.h.

Referenced by ~GctUnpackCollections().

◆ m_gctCenJets

std::unique_ptr<L1GctJetCandCollection> GctUnpackCollections::m_gctCenJets
private

Definition at line 109 of file GctUnpackCollections.h.

Referenced by gctCenJets(), GctUnpackCollections(), and ~GctUnpackCollections().

◆ m_gctEtHad

std::unique_ptr<L1GctEtHadCollection> GctUnpackCollections::m_gctEtHad
private

Definition at line 115 of file GctUnpackCollections.h.

Referenced by gctEtHad(), and ~GctUnpackCollections().

◆ m_gctEtMiss

std::unique_ptr<L1GctEtMissCollection> GctUnpackCollections::m_gctEtMiss
private

Definition at line 116 of file GctUnpackCollections.h.

Referenced by gctEtMiss(), and ~GctUnpackCollections().

◆ m_gctEtTot

std::unique_ptr<L1GctEtTotalCollection> GctUnpackCollections::m_gctEtTot
private

Definition at line 114 of file GctUnpackCollections.h.

Referenced by gctEtTot(), and ~GctUnpackCollections().

◆ m_gctFibres

std::unique_ptr<L1GctFibreCollection> GctUnpackCollections::m_gctFibres
private

Raw fibre input to the GCT.

Definition at line 95 of file GctUnpackCollections.h.

Referenced by gctFibres(), and ~GctUnpackCollections().

◆ m_gctForJets

std::unique_ptr<L1GctJetCandCollection> GctUnpackCollections::m_gctForJets
private

Definition at line 110 of file GctUnpackCollections.h.

Referenced by gctForJets(), GctUnpackCollections(), and ~GctUnpackCollections().

◆ m_gctHfBitCounts

std::unique_ptr<L1GctHFBitCountsCollection> GctUnpackCollections::m_gctHfBitCounts
private

Definition at line 112 of file GctUnpackCollections.h.

Referenced by gctHfBitCounts(), and ~GctUnpackCollections().

◆ m_gctHfRingEtSums

std::unique_ptr<L1GctHFRingEtSumsCollection> GctUnpackCollections::m_gctHfRingEtSums
private

Definition at line 113 of file GctUnpackCollections.h.

Referenced by gctHfRingEtSums(), and ~GctUnpackCollections().

◆ m_gctHtMiss

std::unique_ptr<L1GctHtMissCollection> GctUnpackCollections::m_gctHtMiss
private

Definition at line 117 of file GctUnpackCollections.h.

Referenced by gctHtMiss(), and ~GctUnpackCollections().

◆ m_gctInternEm

std::unique_ptr<L1GctInternEmCandCollection> GctUnpackCollections::m_gctInternEm
private

Definition at line 100 of file GctUnpackCollections.h.

Referenced by gctInternEm(), and ~GctUnpackCollections().

◆ m_gctInternEtSums

std::unique_ptr<L1GctInternEtSumCollection> GctUnpackCollections::m_gctInternEtSums
private

Definition at line 102 of file GctUnpackCollections.h.

Referenced by gctInternEtSums(), and ~GctUnpackCollections().

◆ m_gctInternHFData

std::unique_ptr<L1GctInternHFDataCollection> GctUnpackCollections::m_gctInternHFData
private

Definition at line 103 of file GctUnpackCollections.h.

Referenced by gctInternHFData(), and ~GctUnpackCollections().

◆ m_gctInternHtMiss

std::unique_ptr<L1GctInternHtMissCollection> GctUnpackCollections::m_gctInternHtMiss
private

Definition at line 104 of file GctUnpackCollections.h.

Referenced by gctInternHtMiss(), and ~GctUnpackCollections().

◆ m_gctInternJets

std::unique_ptr<L1GctInternJetDataCollection> GctUnpackCollections::m_gctInternJets
private

Definition at line 101 of file GctUnpackCollections.h.

Referenced by gctInternJets(), and ~GctUnpackCollections().

◆ m_gctIsoEm

std::unique_ptr<L1GctEmCandCollection> GctUnpackCollections::m_gctIsoEm
private

Definition at line 107 of file GctUnpackCollections.h.

Referenced by gctIsoEm(), GctUnpackCollections(), and ~GctUnpackCollections().

◆ m_gctJetCounts

std::unique_ptr<L1GctJetCountsCollection> GctUnpackCollections::m_gctJetCounts
private

Definition at line 118 of file GctUnpackCollections.h.

Referenced by gctJetCounts(), and ~GctUnpackCollections().

◆ m_gctNonIsoEm

std::unique_ptr<L1GctEmCandCollection> GctUnpackCollections::m_gctNonIsoEm
private

Definition at line 108 of file GctUnpackCollections.h.

Referenced by gctNonIsoEm(), and ~GctUnpackCollections().

◆ m_gctTauJets

std::unique_ptr<L1GctJetCandCollection> GctUnpackCollections::m_gctTauJets
private

Definition at line 111 of file GctUnpackCollections.h.

Referenced by gctTauJets(), GctUnpackCollections(), and ~GctUnpackCollections().

◆ m_rctCalo

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

Input calo regions.

Definition at line 97 of file GctUnpackCollections.h.

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

◆ m_rctEm

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

Input electrons.

Definition at line 96 of file GctUnpackCollections.h.

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