CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 &)
 Copy ctor - deliberately not implemented! More...
 
GctUnpackCollectionsoperator= (const GctUnpackCollections &)
 Assignment op - deliberately not implemented! More...
 

Private Attributes

std::auto_ptr
< L1TriggerErrorCollection
m_errors
 
edm::Eventm_event
 The event the collections will be put into on destruction of the GctUnpackCollections instance. More...
 
std::auto_ptr
< L1GctJetCandCollection
m_gctCenJets
 
std::auto_ptr
< L1GctEtHadCollection
m_gctEtHad
 
std::auto_ptr
< L1GctEtMissCollection
m_gctEtMiss
 
std::auto_ptr
< L1GctEtTotalCollection
m_gctEtTot
 
std::auto_ptr
< L1GctFibreCollection
m_gctFibres
 Raw fibre input to the GCT. More...
 
std::auto_ptr
< L1GctJetCandCollection
m_gctForJets
 
std::auto_ptr
< L1GctHFBitCountsCollection
m_gctHfBitCounts
 
std::auto_ptr
< L1GctHFRingEtSumsCollection
m_gctHfRingEtSums
 
std::auto_ptr
< L1GctHtMissCollection
m_gctHtMiss
 
std::auto_ptr
< L1GctInternEmCandCollection
m_gctInternEm
 
std::auto_ptr
< L1GctInternEtSumCollection
m_gctInternEtSums
 
std::auto_ptr
< L1GctInternHFDataCollection
m_gctInternHFData
 
std::auto_ptr
< L1GctInternHtMissCollection
m_gctInternHtMiss
 
std::auto_ptr
< L1GctInternJetDataCollection
m_gctInternJets
 
std::auto_ptr
< L1GctEmCandCollection
m_gctIsoEm
 
std::auto_ptr
< L1GctJetCountsCollection
m_gctJetCounts
 
std::auto_ptr
< L1GctEmCandCollection
m_gctNonIsoEm
 
std::auto_ptr
< L1GctJetCandCollection
m_gctTauJets
 
std::auto_ptr
< L1CaloRegionCollection
m_rctCalo
 Input calo regions. More...
 
std::auto_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
Revision:
1.11
Date:
2009/04/06 18:48:00

Definition at line 24 of file GctUnpackCollections.h.

Constructor & Destructor Documentation

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 4 of file GctUnpackCollections.cc.

References m_gctCenJets, m_gctForJets, m_gctIsoEm, and m_gctTauJets.

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

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

Definition at line 35 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, and edm::Event::put().

36 {
37  // GCT input collections
41 
42  // GCT internal collections
48 
49  // GCT output collections
50  m_event.put(m_gctIsoEm, "isoEm");
51  m_event.put(m_gctNonIsoEm, "nonIsoEm");
52  m_event.put(m_gctCenJets,"cenJets");
53  m_event.put(m_gctForJets,"forJets");
54  m_event.put(m_gctTauJets,"tauJets");
61  m_event.put(m_gctJetCounts); // Deprecated (empty collection still needed by GT)
62 
63  // Misc
65 }
std::auto_ptr< L1GctInternEmCandCollection > m_gctInternEm
std::auto_ptr< L1GctEtTotalCollection > m_gctEtTot
std::auto_ptr< L1GctJetCountsCollection > m_gctJetCounts
std::auto_ptr< L1GctEmCandCollection > m_gctIsoEm
std::auto_ptr< L1GctJetCandCollection > m_gctTauJets
edm::Event & m_event
The event the collections will be put into on destruction of the GctUnpackCollections instance...
std::auto_ptr< L1GctInternJetDataCollection > m_gctInternJets
std::auto_ptr< L1GctEtMissCollection > m_gctEtMiss
std::auto_ptr< L1GctEtHadCollection > m_gctEtHad
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
Definition: Event.h:84
std::auto_ptr< L1GctInternHtMissCollection > m_gctInternHtMiss
std::auto_ptr< L1CaloEmCollection > m_rctEm
Input electrons.
std::auto_ptr< L1GctHFBitCountsCollection > m_gctHfBitCounts
std::auto_ptr< L1GctHFRingEtSumsCollection > m_gctHfRingEtSums
std::auto_ptr< L1GctInternEtSumCollection > m_gctInternEtSums
std::auto_ptr< L1GctJetCandCollection > m_gctForJets
std::auto_ptr< L1TriggerErrorCollection > m_errors
std::auto_ptr< L1GctFibreCollection > m_gctFibres
Raw fibre input to the GCT.
std::auto_ptr< L1GctJetCandCollection > m_gctCenJets
std::auto_ptr< L1CaloRegionCollection > m_rctCalo
Input calo regions.
std::auto_ptr< L1GctInternHFDataCollection > m_gctInternHFData
std::auto_ptr< L1GctHtMissCollection > m_gctHtMiss
std::auto_ptr< L1GctEmCandCollection > m_gctNonIsoEm
GctUnpackCollections::GctUnpackCollections ( const GctUnpackCollections )
private

Copy ctor - deliberately not implemented!

Member Function Documentation

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

Unpack error code collection.

Definition at line 60 of file GctUnpackCollections.h.

References m_errors.

L1GctJetCandCollection* const GctUnpackCollections::gctCenJets ( ) const
inline

GCT output: Central Jets collection.

Definition at line 48 of file GctUnpackCollections.h.

References m_gctCenJets.

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

L1GctEtHadCollection* const GctUnpackCollections::gctEtHad ( ) const
inline
L1GctEtMissCollection* const GctUnpackCollections::gctEtMiss ( ) const
inline
L1GctEtTotalCollection* const GctUnpackCollections::gctEtTot ( ) const
inline
L1GctFibreCollection* const GctUnpackCollections::gctFibres ( ) const
inline
L1GctJetCandCollection* const GctUnpackCollections::gctForJets ( ) const
inline

GCT output: Forward Jets collection.

Definition at line 49 of file GctUnpackCollections.h.

References m_gctForJets.

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

L1GctHFBitCountsCollection* const GctUnpackCollections::gctHfBitCounts ( ) const
inline
L1GctHFRingEtSumsCollection* const GctUnpackCollections::gctHfRingEtSums ( ) const
inline
L1GctHtMissCollection* const GctUnpackCollections::gctHtMiss ( ) const
inline
L1GctInternEmCandCollection* const GctUnpackCollections::gctInternEm ( ) const
inline

Internal EM candidate collection.

Definition at line 39 of file GctUnpackCollections.h.

References m_gctInternEm.

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

L1GctInternEtSumCollection* const GctUnpackCollections::gctInternEtSums ( ) const
inline
L1GctInternHFDataCollection* const GctUnpackCollections::gctInternHFData ( ) const
inline
L1GctInternHtMissCollection* const GctUnpackCollections::gctInternHtMiss ( ) const
inline
L1GctInternJetDataCollection* const GctUnpackCollections::gctInternJets ( ) const
inline
L1GctEmCandCollection* const GctUnpackCollections::gctIsoEm ( ) const
inline
L1GctJetCountsCollection* const GctUnpackCollections::gctJetCounts ( ) const
inline

DEPRECATED. ONLY GT NEEDS THIS.

Definition at line 57 of file GctUnpackCollections.h.

References m_gctJetCounts.

L1GctEmCandCollection* const GctUnpackCollections::gctNonIsoEm ( ) const
inline
L1GctJetCandCollection* const GctUnpackCollections::gctTauJets ( ) const
inline

GCT output: Tau Jets collection.

Definition at line 50 of file GctUnpackCollections.h.

References m_gctTauJets.

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

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

Assignment op - deliberately not implemented!

L1CaloRegionCollection* const GctUnpackCollections::rctCalo ( ) const
inline
L1CaloEmCollection* const GctUnpackCollections::rctEm ( ) const
inline

Member Data Documentation

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

Definition at line 96 of file GctUnpackCollections.h.

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

edm::Event& GctUnpackCollections::m_event
private

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

Definition at line 67 of file GctUnpackCollections.h.

Referenced by ~GctUnpackCollections().

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

Definition at line 84 of file GctUnpackCollections.h.

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

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

Definition at line 90 of file GctUnpackCollections.h.

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

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

Definition at line 91 of file GctUnpackCollections.h.

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

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

Definition at line 89 of file GctUnpackCollections.h.

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

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

Raw fibre input to the GCT.

Definition at line 70 of file GctUnpackCollections.h.

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

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

Definition at line 85 of file GctUnpackCollections.h.

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

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

Definition at line 87 of file GctUnpackCollections.h.

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

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

Definition at line 88 of file GctUnpackCollections.h.

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

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

Definition at line 92 of file GctUnpackCollections.h.

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

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

Definition at line 75 of file GctUnpackCollections.h.

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

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

Definition at line 77 of file GctUnpackCollections.h.

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

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

Definition at line 78 of file GctUnpackCollections.h.

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

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

Definition at line 79 of file GctUnpackCollections.h.

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

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

Definition at line 76 of file GctUnpackCollections.h.

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

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

Definition at line 82 of file GctUnpackCollections.h.

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

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

Definition at line 93 of file GctUnpackCollections.h.

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

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

Definition at line 83 of file GctUnpackCollections.h.

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

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

Definition at line 86 of file GctUnpackCollections.h.

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

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

Input calo regions.

Definition at line 72 of file GctUnpackCollections.h.

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

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

Input electrons.

Definition at line 71 of file GctUnpackCollections.h.

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