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. | |
L1GctJetCandCollection *const | gctCenJets () const |
GCT output: Central Jets collection. | |
L1GctEtHadCollection *const | gctEtHad () const |
GCT output: Hadronic transverse-energy (Ht) collection. | |
L1GctEtMissCollection *const | gctEtMiss () const |
GCT output: Missing Et collection. | |
L1GctEtTotalCollection *const | gctEtTot () const |
GCT output: Total Et collection. | |
L1GctFibreCollection *const | gctFibres () const |
Raw fibre input to the GCT. | |
L1GctJetCandCollection *const | gctForJets () const |
GCT output: Forward Jets collection. | |
L1GctHFBitCountsCollection *const | gctHfBitCounts () const |
GCT output: Hadronic-Forward bit-counts collection. | |
L1GctHFRingEtSumsCollection *const | gctHfRingEtSums () const |
GCT output: Hadronic-Forward ring-sums collection. | |
L1GctHtMissCollection *const | gctHtMiss () const |
GCT output: Missing Ht collection. | |
L1GctInternEmCandCollection *const | gctInternEm () const |
Internal EM candidate collection. | |
L1GctInternEtSumCollection *const | gctInternEtSums () const |
Internal Et Sum collection. | |
L1GctInternHFDataCollection *const | gctInternHFData () const |
Internal Hadronic-Forward bit-counts/ring-sums data collection. | |
L1GctInternHtMissCollection *const | gctInternHtMiss () const |
Internal missing Ht collection. | |
L1GctInternJetDataCollection *const | gctInternJets () const |
Internal Jet candidate collection. | |
L1GctEmCandCollection *const | gctIsoEm () const |
GCT output: Isolated EM candidate collection. | |
L1GctJetCountsCollection *const | gctJetCounts () const |
DEPRECATED. ONLY GT NEEDS THIS. | |
L1GctEmCandCollection *const | gctNonIsoEm () const |
GCT output: Non-isolated EM candidate collection. | |
L1GctJetCandCollection *const | gctTauJets () const |
GCT output: Tau Jets collection. | |
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). | |
L1CaloRegionCollection *const | rctCalo () const |
Input calo regions from the RCT to the GCT. | |
L1CaloEmCollection *const | rctEm () const |
Input electrons from the RCT to the GCT. | |
~GctUnpackCollections () | |
Destructor - the last action of this object is to put the gct collections into the event provided on construction. | |
Private Member Functions | |
GctUnpackCollections (const GctUnpackCollections &) | |
Copy ctor - deliberately not implemented! | |
GctUnpackCollections & | operator= (const GctUnpackCollections &) |
Assignment op - deliberately not implemented! | |
Private Attributes | |
std::auto_ptr < L1TriggerErrorCollection > | m_errors |
edm::Event & | m_event |
The event the collections will be put into on destruction of the GctUnpackCollections instance. | |
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. | |
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. | |
std::auto_ptr< L1CaloEmCollection > | m_rctEm |
Input electrons. |
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.
Definition at line 24 of file GctUnpackCollections.h.
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.
: m_event(event), m_gctFibres(new L1GctFibreCollection()), // GCT input collections m_rctEm(new L1CaloEmCollection()), m_rctCalo(new L1CaloRegionCollection()), m_gctInternEm(new L1GctInternEmCandCollection()), // GCT internal collections m_gctInternJets(new L1GctInternJetDataCollection()), m_gctInternEtSums(new L1GctInternEtSumCollection()), m_gctInternHFData(new L1GctInternHFDataCollection()), m_gctInternHtMiss(new L1GctInternHtMissCollection()), m_gctIsoEm(new L1GctEmCandCollection()), // GCT output collections m_gctNonIsoEm(new L1GctEmCandCollection()), m_gctCenJets(new L1GctJetCandCollection()), m_gctForJets(new L1GctJetCandCollection()), m_gctTauJets(new L1GctJetCandCollection()), m_gctHfBitCounts(new L1GctHFBitCountsCollection()), m_gctHfRingEtSums(new L1GctHFRingEtSumsCollection()), m_gctEtTot(new L1GctEtTotalCollection()), m_gctEtHad(new L1GctEtHadCollection()), m_gctEtMiss(new L1GctEtMissCollection()), m_gctHtMiss(new L1GctHtMissCollection()), m_gctJetCounts(new L1GctJetCountsCollection()), // Deprecated (empty collection still needed by GT) m_errors(new L1TriggerErrorCollection()) // Misc { m_gctIsoEm->reserve(4); m_gctCenJets->reserve(4); m_gctForJets->reserve(4); m_gctTauJets->reserve(4); // ** DON'T RESERVE SPACE IN VECTORS FOR DEBUG UNPACK ITEMS! ** }
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().
{ // GCT input collections m_event.put(m_gctFibres); m_event.put(m_rctEm); m_event.put(m_rctCalo); // GCT internal collections m_event.put(m_gctInternEm); m_event.put(m_gctInternJets); m_event.put(m_gctInternEtSums); m_event.put(m_gctInternHFData); m_event.put(m_gctInternHtMiss); // GCT output collections m_event.put(m_gctIsoEm, "isoEm"); m_event.put(m_gctNonIsoEm, "nonIsoEm"); m_event.put(m_gctCenJets,"cenJets"); m_event.put(m_gctForJets,"forJets"); m_event.put(m_gctTauJets,"tauJets"); m_event.put(m_gctHfBitCounts); m_event.put(m_gctHfRingEtSums); m_event.put(m_gctEtTot); m_event.put(m_gctEtHad); m_event.put(m_gctEtMiss); m_event.put(m_gctHtMiss); m_event.put(m_gctJetCounts); // Deprecated (empty collection still needed by GT) // Misc m_event.put(m_errors); }
GctUnpackCollections::GctUnpackCollections | ( | const GctUnpackCollections & | ) | [private] |
Copy ctor - deliberately not implemented!
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] |
GCT output: Hadronic transverse-energy (Ht) collection.
Definition at line 54 of file GctUnpackCollections.h.
References m_gctEtHad.
Referenced by GctFormatTranslateV35::blockToGctEmCandsAndEnergySums(), GctFormatTranslateMCLegacy::blockToGctEmCandsAndEnergySums(), GctFormatTranslateV38::blockToGctEmCandsAndEnergySums(), and operator<<().
L1GctEtMissCollection* const GctUnpackCollections::gctEtMiss | ( | ) | const [inline] |
GCT output: Missing Et collection.
Definition at line 55 of file GctUnpackCollections.h.
References m_gctEtMiss.
Referenced by GctFormatTranslateV35::blockToGctEmCandsAndEnergySums(), GctFormatTranslateMCLegacy::blockToGctEmCandsAndEnergySums(), GctFormatTranslateV38::blockToGctEmCandsAndEnergySums(), and operator<<().
L1GctEtTotalCollection* const GctUnpackCollections::gctEtTot | ( | ) | const [inline] |
GCT output: Total Et collection.
Definition at line 53 of file GctUnpackCollections.h.
References m_gctEtTot.
Referenced by GctFormatTranslateV35::blockToGctEmCandsAndEnergySums(), GctFormatTranslateMCLegacy::blockToGctEmCandsAndEnergySums(), GctFormatTranslateV38::blockToGctEmCandsAndEnergySums(), and operator<<().
L1GctFibreCollection* const GctUnpackCollections::gctFibres | ( | ) | const [inline] |
Raw fibre input to the GCT.
Definition at line 34 of file GctUnpackCollections.h.
References m_gctFibres.
Referenced by GctFormatTranslateV35::blockToFibres(), GctFormatTranslateV38::blockToFibres(), GctFormatTranslateMCLegacy::blockToFibres(), and operator<<().
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] |
GCT output: Hadronic-Forward bit-counts collection.
Definition at line 51 of file GctUnpackCollections.h.
References m_gctHfBitCounts.
Referenced by GctFormatTranslateV35::blockToGctJetCandsAndCounts(), GctFormatTranslateV38::blockToGctJetCandsAndCounts(), GctFormatTranslateMCLegacy::blockToGctJetCandsAndCounts(), and operator<<().
L1GctHFRingEtSumsCollection* const GctUnpackCollections::gctHfRingEtSums | ( | ) | const [inline] |
GCT output: Hadronic-Forward ring-sums collection.
Definition at line 52 of file GctUnpackCollections.h.
References m_gctHfRingEtSums.
Referenced by GctFormatTranslateV35::blockToGctJetCandsAndCounts(), GctFormatTranslateV38::blockToGctJetCandsAndCounts(), GctFormatTranslateMCLegacy::blockToGctJetCandsAndCounts(), and operator<<().
L1GctHtMissCollection* const GctUnpackCollections::gctHtMiss | ( | ) | const [inline] |
GCT output: Missing Ht collection.
Definition at line 56 of file GctUnpackCollections.h.
References m_gctHtMiss.
Referenced by GctFormatTranslateV38::blockToGctJetCandsAndCounts(), GctFormatTranslateMCLegacy::blockToGctJetCandsAndCounts(), and operator<<().
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] |
Internal Et Sum collection.
Definition at line 41 of file GctUnpackCollections.h.
References m_gctInternEtSums.
Referenced by GctFormatTranslateV35::blockToGctInternEtSums(), GctFormatTranslateV38::blockToGctInternEtSums(), GctFormatTranslateV35::blockToGctInternEtSumsAndJetCluster(), GctFormatTranslateV38::blockToGctInternEtSumsAndJetCluster(), GctFormatTranslateV35::blockToGctWheelInputInternEtAndRingSums(), GctFormatTranslateV38::blockToGctWheelInputInternEtAndRingSums(), GctFormatTranslateV35::blockToGctWheelOutputInternEtAndRingSums(), GctFormatTranslateV38::blockToGctWheelOutputInternEtAndRingSums(), and operator<<().
L1GctInternHFDataCollection* const GctUnpackCollections::gctInternHFData | ( | ) | const [inline] |
Internal Hadronic-Forward bit-counts/ring-sums data collection.
Definition at line 42 of file GctUnpackCollections.h.
References m_gctInternHFData.
Referenced by GctFormatTranslateV35::blockToGctInternRingSums(), GctFormatTranslateV38::blockToGctInternRingSums(), GctFormatTranslateV35::blockToGctWheelInputInternEtAndRingSums(), GctFormatTranslateV38::blockToGctWheelInputInternEtAndRingSums(), GctFormatTranslateV35::blockToGctWheelOutputInternEtAndRingSums(), GctFormatTranslateV38::blockToGctWheelOutputInternEtAndRingSums(), and operator<<().
L1GctInternHtMissCollection* const GctUnpackCollections::gctInternHtMiss | ( | ) | const [inline] |
Internal missing Ht collection.
Definition at line 43 of file GctUnpackCollections.h.
References m_gctInternHtMiss.
Referenced by GctFormatTranslateV38::blockToGctInternHtMissPostWheel(), GctFormatTranslateV38::blockToGctInternHtMissPreWheel(), and operator<<().
L1GctInternJetDataCollection* const GctUnpackCollections::gctInternJets | ( | ) | const [inline] |
Internal Jet candidate collection.
Definition at line 40 of file GctUnpackCollections.h.
References m_gctInternJets.
Referenced by GctFormatTranslateV35::blockToGctInternEtSumsAndJetCluster(), GctFormatTranslateV38::blockToGctInternEtSumsAndJetCluster(), GctFormatTranslateV35::blockToGctJetClusterMinimal(), GctFormatTranslateV38::blockToGctJetClusterMinimal(), GctFormatTranslateV35::blockToGctJetPreCluster(), GctFormatTranslateV38::blockToGctJetPreCluster(), GctFormatTranslateV35::blockToGctTrigObjects(), GctFormatTranslateV38::blockToGctTrigObjects(), and operator<<().
L1GctEmCandCollection* const GctUnpackCollections::gctIsoEm | ( | ) | const [inline] |
GCT output: Isolated EM candidate collection.
Definition at line 46 of file GctUnpackCollections.h.
References m_gctIsoEm.
Referenced by GctFormatTranslateV35::blockToGctEmCandsAndEnergySums(), GctFormatTranslateMCLegacy::blockToGctEmCandsAndEnergySums(), GctFormatTranslateV38::blockToGctEmCandsAndEnergySums(), and operator<<().
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] |
GCT output: Non-isolated EM candidate collection.
Definition at line 47 of file GctUnpackCollections.h.
References m_gctNonIsoEm.
Referenced by GctFormatTranslateV35::blockToGctEmCandsAndEnergySums(), GctFormatTranslateMCLegacy::blockToGctEmCandsAndEnergySums(), GctFormatTranslateV38::blockToGctEmCandsAndEnergySums(), and operator<<().
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] |
Input calo regions from the RCT to the GCT.
Definition at line 36 of file GctUnpackCollections.h.
References m_rctCalo.
Referenced by GctFormatTranslateMCLegacy::blockToAllRctCaloRegions(), GctFormatTranslateV35::blockToRctCaloRegions(), GctFormatTranslateV38::blockToRctCaloRegions(), and operator<<().
L1CaloEmCollection* const GctUnpackCollections::rctEm | ( | ) | const [inline] |
Input electrons from the RCT to the GCT.
Definition at line 35 of file GctUnpackCollections.h.
References m_rctEm.
Referenced by GctFormatTranslateV35::blockToRctEmCand(), GctFormatTranslateV38::blockToRctEmCand(), GctFormatTranslateMCLegacy::blockToRctEmCand(), and operator<<().
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().