CMS 3D CMS Logo

List of all members | Public Member Functions | Private 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...
 
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 Member Functions

 GctUnpackCollections (const GctUnpackCollections &)=delete
 Copy ctor - deliberately not implemented! More...
 
GctUnpackCollectionsoperator= (const GctUnpackCollections &)=delete
 Assignment op - deliberately not implemented! 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.

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 }

References m_gctCenJets, m_gctForJets, m_gctIsoEm, and m_gctTauJets.

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

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 }

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

◆ GctUnpackCollections() [2/2]

GctUnpackCollections::GctUnpackCollections ( const GctUnpackCollections )
privatedelete

Copy ctor - deliberately not implemented!

Member Function Documentation

◆ errors()

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

Unpack error code collection.

Definition at line 84 of file GctUnpackCollections.h.

References m_errors.

◆ gctCenJets()

L1GctJetCandCollection* const GctUnpackCollections::gctCenJets ( ) const
inline

GCT output: Central Jets collection.

Definition at line 60 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 63 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 37 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 79 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 66 of file GctUnpackCollections.h.

References m_gctTauJets.

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

◆ operator=()

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

Assignment op - deliberately not implemented!

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

L1GctInternEtSumCollection
std::vector< L1GctInternEtSum > L1GctInternEtSumCollection
Definition: L1GctCollections.h:25
GctUnpackCollections::m_gctEtTot
std::unique_ptr< L1GctEtTotalCollection > m_gctEtTot
Definition: GctUnpackCollections.h:114
GctUnpackCollections::m_gctJetCounts
std::unique_ptr< L1GctJetCountsCollection > m_gctJetCounts
Definition: GctUnpackCollections.h:118
GctUnpackCollections::m_gctFibres
std::unique_ptr< L1GctFibreCollection > m_gctFibres
Raw fibre input to the GCT.
Definition: GctUnpackCollections.h:95
L1GctJetCandCollection
std::vector< L1GctJetCand > L1GctJetCandCollection
Definition: L1GctCollections.h:31
GctUnpackCollections::m_gctEtMiss
std::unique_ptr< L1GctEtMissCollection > m_gctEtMiss
Definition: GctUnpackCollections.h:116
GctUnpackCollections::m_gctInternJets
std::unique_ptr< L1GctInternJetDataCollection > m_gctInternJets
Definition: GctUnpackCollections.h:101
L1GctJetCountsCollection
std::vector< L1GctJetCounts > L1GctJetCountsCollection
Definition: L1GctCollections.h:37
GctUnpackCollections::m_event
edm::Event & m_event
The event the collections will be put into on destruction of the GctUnpackCollections instance.
Definition: GctUnpackCollections.h:92
L1GctEtMissCollection
std::vector< L1GctEtMiss > L1GctEtMissCollection
Definition: L1GctCollections.h:34
GctUnpackCollections::m_gctHtMiss
std::unique_ptr< L1GctHtMissCollection > m_gctHtMiss
Definition: GctUnpackCollections.h:117
GctUnpackCollections::m_gctInternEm
std::unique_ptr< L1GctInternEmCandCollection > m_gctInternEm
Definition: GctUnpackCollections.h:100
L1CaloEmCollection
std::vector< L1CaloEmCand > L1CaloEmCollection
Definition: L1CaloCollections.h:10
L1TriggerErrorCollection
std::vector< L1TriggerError > L1TriggerErrorCollection
Definition: L1TriggerError.h:45
L1GctInternHtMissCollection
std::vector< L1GctInternHtMiss > L1GctInternHtMissCollection
Definition: L1GctCollections.h:27
L1GctInternEmCandCollection
std::vector< L1GctInternEmCand > L1GctInternEmCandCollection
Definition: L1GctCollections.h:23
GctUnpackCollections::m_rctCalo
std::unique_ptr< L1CaloRegionCollection > m_rctCalo
Input calo regions.
Definition: GctUnpackCollections.h:97
GctUnpackCollections::m_gctCenJets
std::unique_ptr< L1GctJetCandCollection > m_gctCenJets
Definition: GctUnpackCollections.h:109
L1GctEtTotalCollection
std::vector< L1GctEtTotal > L1GctEtTotalCollection
Definition: L1GctCollections.h:35
GctUnpackCollections::m_gctInternEtSums
std::unique_ptr< L1GctInternEtSumCollection > m_gctInternEtSums
Definition: GctUnpackCollections.h:102
edm::Event::put
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
Definition: Event.h:133
L1GctFibreCollection
std::vector< L1GctFibreWord > L1GctFibreCollection
Definition: L1GctCollections.h:28
L1GctInternHFDataCollection
std::vector< L1GctInternHFData > L1GctInternHFDataCollection
Definition: L1GctCollections.h:26
L1GctHFBitCountsCollection
std::vector< L1GctHFBitCounts > L1GctHFBitCountsCollection
Definition: L1GctCollections.h:39
GctUnpackCollections::m_gctHfBitCounts
std::unique_ptr< L1GctHFBitCountsCollection > m_gctHfBitCounts
Definition: GctUnpackCollections.h:112
eostools.move
def move(src, dest)
Definition: eostools.py:511
GctUnpackCollections::m_gctIsoEm
std::unique_ptr< L1GctEmCandCollection > m_gctIsoEm
Definition: GctUnpackCollections.h:107
L1CaloRegionCollection
std::vector< L1CaloRegion > L1CaloRegionCollection
Definition: L1CaloCollections.h:11
L1GctEmCandCollection
std::vector< L1GctEmCand > L1GctEmCandCollection
Definition: L1GctCollections.h:30
GctUnpackCollections::m_gctEtHad
std::unique_ptr< L1GctEtHadCollection > m_gctEtHad
Definition: GctUnpackCollections.h:115
GctUnpackCollections::m_gctTauJets
std::unique_ptr< L1GctJetCandCollection > m_gctTauJets
Definition: GctUnpackCollections.h:111
GctUnpackCollections::m_gctHfRingEtSums
std::unique_ptr< L1GctHFRingEtSumsCollection > m_gctHfRingEtSums
Definition: GctUnpackCollections.h:113
L1GctInternJetDataCollection
std::vector< L1GctInternJetData > L1GctInternJetDataCollection
Definition: L1GctCollections.h:24
GctUnpackCollections::m_gctNonIsoEm
std::unique_ptr< L1GctEmCandCollection > m_gctNonIsoEm
Definition: GctUnpackCollections.h:108
GctUnpackCollections::m_errors
std::unique_ptr< L1TriggerErrorCollection > m_errors
Definition: GctUnpackCollections.h:121
GctUnpackCollections::m_gctForJets
std::unique_ptr< L1GctJetCandCollection > m_gctForJets
Definition: GctUnpackCollections.h:110
L1GctEtHadCollection
std::vector< L1GctEtHad > L1GctEtHadCollection
Definition: L1GctCollections.h:33
GctUnpackCollections::m_gctInternHFData
std::unique_ptr< L1GctInternHFDataCollection > m_gctInternHFData
Definition: GctUnpackCollections.h:103
event
Definition: event.py:1
GctUnpackCollections::m_rctEm
std::unique_ptr< L1CaloEmCollection > m_rctEm
Input electrons.
Definition: GctUnpackCollections.h:96
L1GctHFRingEtSumsCollection
std::vector< L1GctHFRingEtSums > L1GctHFRingEtSumsCollection
Definition: L1GctCollections.h:38
GctUnpackCollections::m_gctInternHtMiss
std::unique_ptr< L1GctInternHtMissCollection > m_gctInternHtMiss
Definition: GctUnpackCollections.h:104
L1GctHtMissCollection
std::vector< L1GctHtMiss > L1GctHtMissCollection
Definition: L1GctCollections.h:36