CMS 3D CMS Logo

GctUnpackCollections.h
Go to the documentation of this file.
1 #ifndef GctUnpackCollections_h
2 #define GctUnpackCollections_h
3 
13 // CMSSW headers
15 
16 // DataFormat headers
20 
22 public:
25 
29 
32 
33  // Collections for storing GCT input data.
34  L1GctFibreCollection* const gctFibres() const { return m_gctFibres.get(); }
35  L1CaloEmCollection* const rctEm() const { return m_rctEm.get(); }
37  return m_rctCalo.get();
38  }
39 
40  // GCT intermediate data
42  return m_gctInternEm.get();
43  }
45  return m_gctInternJets.get();
46  }
48  return m_gctInternEtSums.get();
49  }
51  return m_gctInternHFData.get();
52  }
54  return m_gctInternHtMiss.get();
55  }
56 
57  // GCT output data
59  return m_gctIsoEm.get();
60  }
62  return m_gctNonIsoEm.get();
63  }
65  return m_gctCenJets.get();
66  }
68  return m_gctForJets.get();
69  }
70  L1GctJetCandCollection* const gctTauJets() const { return m_gctTauJets.get(); }
72  return m_gctHfBitCounts.get();
73  }
75  return m_gctHfRingEtSums.get();
76  }
77  L1GctEtTotalCollection* const gctEtTot() const { return m_gctEtTot.get(); }
78  L1GctEtHadCollection* const gctEtHad() const {
79  return m_gctEtHad.get();
80  }
81  L1GctEtMissCollection* const gctEtMiss() const { return m_gctEtMiss.get(); }
82  L1GctHtMissCollection* const gctHtMiss() const { return m_gctHtMiss.get(); }
84  return m_gctJetCounts.get();
85  }
86 
87  // Misc
88  L1TriggerErrorCollection* const errors() const { return m_errors.get(); }
89 
90 private:
91  edm::Event&
93 
94  // Collections for storing GCT input data.
95  std::unique_ptr<L1GctFibreCollection> m_gctFibres;
96  std::unique_ptr<L1CaloEmCollection> m_rctEm;
97  std::unique_ptr<L1CaloRegionCollection> m_rctCalo;
98 
99  // GCT intermediate data
100  std::unique_ptr<L1GctInternEmCandCollection> m_gctInternEm;
101  std::unique_ptr<L1GctInternJetDataCollection> m_gctInternJets;
102  std::unique_ptr<L1GctInternEtSumCollection> m_gctInternEtSums;
103  std::unique_ptr<L1GctInternHFDataCollection> m_gctInternHFData;
104  std::unique_ptr<L1GctInternHtMissCollection> m_gctInternHtMiss;
105 
106  // GCT output data
107  std::unique_ptr<L1GctEmCandCollection> m_gctIsoEm;
108  std::unique_ptr<L1GctEmCandCollection> m_gctNonIsoEm;
109  std::unique_ptr<L1GctJetCandCollection> m_gctCenJets;
110  std::unique_ptr<L1GctJetCandCollection> m_gctForJets;
111  std::unique_ptr<L1GctJetCandCollection> m_gctTauJets;
112  std::unique_ptr<L1GctHFBitCountsCollection> m_gctHfBitCounts;
113  std::unique_ptr<L1GctHFRingEtSumsCollection> m_gctHfRingEtSums;
114  std::unique_ptr<L1GctEtTotalCollection> m_gctEtTot;
115  std::unique_ptr<L1GctEtHadCollection> m_gctEtHad;
116  std::unique_ptr<L1GctEtMissCollection> m_gctEtMiss;
117  std::unique_ptr<L1GctHtMissCollection> m_gctHtMiss;
118  std::unique_ptr<L1GctJetCountsCollection> m_gctJetCounts; // DEPRECATED. ONLY GT NEEDS THIS.
119 
120  // Misc
121  std::unique_ptr<L1TriggerErrorCollection> m_errors;
122 };
123 
124 // Pretty print for the GctUnpackCollections sub-class
125 std::ostream& operator<<(std::ostream& os, const GctUnpackCollections& rhs);
126 
127 #endif /* GctUnpackCollections_h */
std::vector< L1CaloEmCand > L1CaloEmCollection
std::unique_ptr< L1GctInternJetDataCollection > m_gctInternJets
L1GctInternEtSumCollection *const gctInternEtSums() const
Internal Et Sum collection.
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::ostream & operator<<(std::ostream &os, const GctUnpackCollections &rhs)
std::unique_ptr< L1GctFibreCollection > m_gctFibres
Raw fibre input to the GCT.
L1GctHtMissCollection *const gctHtMiss() const
GCT output: Missing Ht collection.
L1GctEmCandCollection *const gctIsoEm() const
GCT output: Isolated EM candidate collection.
std::vector< L1GctInternEmCand > L1GctInternEmCandCollection
L1GctHFRingEtSumsCollection *const gctHfRingEtSums() const
GCT output: Hadronic-Forward ring-sums collection.
L1TriggerErrorCollection *const errors() const
Unpack error code collection.
L1CaloRegionCollection *const rctCalo() const
Input calo regions from the RCT to the GCT.
std::vector< L1GctFibreWord > L1GctFibreCollection
std::vector< L1GctEtTotal > L1GctEtTotalCollection
std::vector< L1GctInternHFData > L1GctInternHFDataCollection
std::vector< L1GctHFBitCounts > L1GctHFBitCountsCollection
std::vector< L1GctJetCand > L1GctJetCandCollection
L1GctEtHadCollection *const gctEtHad() const
GCT output: Hadronic transverse-energy (Ht) collection.
L1GctInternEmCandCollection *const gctInternEm() const
Internal EM candidate collection.
std::unique_ptr< L1GctInternHtMissCollection > m_gctInternHtMiss
L1GctJetCandCollection *const gctTauJets() const
GCT output: Tau Jets collection.
L1GctEmCandCollection *const gctNonIsoEm() const
GCT output: Non-isolated EM candidate collection.
std::unique_ptr< L1TriggerErrorCollection > m_errors
std::unique_ptr< L1GctInternHFDataCollection > m_gctInternHFData
RAII and useful methods for the many dataformat collections required by the GCT unpacker.
std::unique_ptr< L1GctHtMissCollection > m_gctHtMiss
std::vector< L1GctHtMiss > L1GctHtMissCollection
std::unique_ptr< L1GctEtMissCollection > m_gctEtMiss
L1GctHFBitCountsCollection *const gctHfBitCounts() const
GCT output: Hadronic-Forward bit-counts collection.
std::unique_ptr< L1GctEtHadCollection > m_gctEtHad
std::unique_ptr< L1GctJetCandCollection > m_gctTauJets
GctUnpackCollections & operator=(const GctUnpackCollections &)=delete
Assignment op.
std::unique_ptr< L1GctInternEmCandCollection > m_gctInternEm
std::unique_ptr< L1GctJetCandCollection > m_gctForJets
L1GctJetCandCollection *const gctCenJets() const
GCT output: Central Jets collection.
std::vector< L1GctInternJetData > L1GctInternJetDataCollection
L1GctInternHtMissCollection *const gctInternHtMiss() const
Internal missing Ht collection.
std::unique_ptr< L1GctJetCountsCollection > m_gctJetCounts
L1GctJetCountsCollection *const gctJetCounts() const
DEPRECATED. ONLY GT NEEDS THIS.
std::unique_ptr< L1GctHFRingEtSumsCollection > m_gctHfRingEtSums
L1GctInternJetDataCollection *const gctInternJets() const
Internal Jet candidate collection.
std::unique_ptr< L1GctEmCandCollection > m_gctIsoEm
L1GctJetCandCollection *const gctForJets() const
GCT output: Forward Jets collection.
~GctUnpackCollections()
Destructor - the last action of this object is to put the gct collections into the event provided on ...
L1CaloEmCollection *const rctEm() const
Input electrons from the RCT to the GCT.
std::vector< L1GctInternEtSum > L1GctInternEtSumCollection
std::vector< L1CaloRegion > L1CaloRegionCollection
L1GctEtMissCollection *const gctEtMiss() const
GCT output: Missing Et collection.
L1GctFibreCollection *const gctFibres() const
Raw fibre input to the GCT.
L1GctInternHFDataCollection *const gctInternHFData() const
Internal Hadronic-Forward bit-counts/ring-sums data collection.
std::unique_ptr< L1GctJetCandCollection > m_gctCenJets
L1GctEtTotalCollection *const gctEtTot() const
GCT output: Total Et collection.
Definition: event.py:1
std::unique_ptr< L1GctHFBitCountsCollection > m_gctHfBitCounts
std::vector< L1GctEmCand > L1GctEmCandCollection
GctUnpackCollections(edm::Event &event)
Construct with an event. The collections get put into the event when the object instance goes out of ...
std::unique_ptr< L1GctEtTotalCollection > m_gctEtTot