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 
28 
29  // Collections for storing GCT input data.
30  L1GctFibreCollection* const gctFibres() const { return m_gctFibres.get(); }
31  L1CaloEmCollection* const rctEm() const { return m_rctEm.get(); }
33  return m_rctCalo.get();
34  }
35 
36  // GCT intermediate data
38  return m_gctInternEm.get();
39  }
41  return m_gctInternJets.get();
42  }
44  return m_gctInternEtSums.get();
45  }
47  return m_gctInternHFData.get();
48  }
50  return m_gctInternHtMiss.get();
51  }
52 
53  // GCT output data
55  return m_gctIsoEm.get();
56  }
58  return m_gctNonIsoEm.get();
59  }
61  return m_gctCenJets.get();
62  }
64  return m_gctForJets.get();
65  }
66  L1GctJetCandCollection* const gctTauJets() const { return m_gctTauJets.get(); }
68  return m_gctHfBitCounts.get();
69  }
71  return m_gctHfRingEtSums.get();
72  }
73  L1GctEtTotalCollection* const gctEtTot() const { return m_gctEtTot.get(); }
74  L1GctEtHadCollection* const gctEtHad() const {
75  return m_gctEtHad.get();
76  }
77  L1GctEtMissCollection* const gctEtMiss() const { return m_gctEtMiss.get(); }
78  L1GctHtMissCollection* const gctHtMiss() const { return m_gctHtMiss.get(); }
80  return m_gctJetCounts.get();
81  }
82 
83  // Misc
84  L1TriggerErrorCollection* const errors() const { return m_errors.get(); }
85 
86 private:
89  delete;
90 
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 */
GctUnpackCollections::operator=
GctUnpackCollections & operator=(const GctUnpackCollections &)=delete
Assignment op - deliberately not implemented!
L1GctInternEtSumCollection
std::vector< L1GctInternEtSum > L1GctInternEtSumCollection
Definition: L1GctCollections.h:25
GctUnpackCollections::m_gctEtTot
std::unique_ptr< L1GctEtTotalCollection > m_gctEtTot
Definition: GctUnpackCollections.h:114
GctUnpackCollections::gctInternHtMiss
L1GctInternHtMissCollection *const gctInternHtMiss() const
Internal missing Ht collection.
Definition: GctUnpackCollections.h:49
GctUnpackCollections
RAII and useful methods for the many dataformat collections required by the GCT unpacker.
Definition: GctUnpackCollections.h:21
GctUnpackCollections::rctEm
L1CaloEmCollection *const rctEm() const
Input electrons from the RCT to the GCT.
Definition: GctUnpackCollections.h:31
GctUnpackCollections::m_gctJetCounts
std::unique_ptr< L1GctJetCountsCollection > m_gctJetCounts
Definition: GctUnpackCollections.h:118
L1GctCollections.h
operator<<
std::ostream & operator<<(std::ostream &os, const GctUnpackCollections &rhs)
Definition: GctUnpackCollections.cc:65
GctUnpackCollections::m_gctFibres
std::unique_ptr< L1GctFibreCollection > m_gctFibres
Raw fibre input to the GCT.
Definition: GctUnpackCollections.h:95
GctUnpackCollections::gctTauJets
L1GctJetCandCollection *const gctTauJets() const
GCT output: Tau Jets collection.
Definition: GctUnpackCollections.h:66
GctUnpackCollections::gctInternEm
L1GctInternEmCandCollection *const gctInternEm() const
Internal EM candidate collection.
Definition: GctUnpackCollections.h:37
L1GctJetCandCollection
std::vector< L1GctJetCand > L1GctJetCandCollection
Definition: L1GctCollections.h:31
GctUnpackCollections::m_gctEtMiss
std::unique_ptr< L1GctEtMissCollection > m_gctEtMiss
Definition: GctUnpackCollections.h:116
GctUnpackCollections::gctHfBitCounts
L1GctHFBitCountsCollection *const gctHfBitCounts() const
GCT output: Hadronic-Forward bit-counts collection.
Definition: GctUnpackCollections.h:67
GctUnpackCollections::m_gctInternJets
std::unique_ptr< L1GctInternJetDataCollection > m_gctInternJets
Definition: GctUnpackCollections.h:101
GctUnpackCollections::gctHfRingEtSums
L1GctHFRingEtSumsCollection *const gctHfRingEtSums() const
GCT output: Hadronic-Forward ring-sums collection.
Definition: GctUnpackCollections.h:70
GctUnpackCollections::gctNonIsoEm
L1GctEmCandCollection *const gctNonIsoEm() const
GCT output: Non-isolated EM candidate collection.
Definition: GctUnpackCollections.h:57
GctUnpackCollections::GctUnpackCollections
GctUnpackCollections(edm::Event &event)
Construct with an event. The collections get put into the event when the object instance goes out of ...
Definition: GctUnpackCollections.cc:3
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
L1TriggerError.h
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
GctUnpackCollections::gctInternJets
L1GctInternJetDataCollection *const gctInternJets() const
Internal Jet candidate collection.
Definition: GctUnpackCollections.h:40
GctUnpackCollections::gctHtMiss
L1GctHtMissCollection *const gctHtMiss() const
GCT output: Missing Ht collection.
Definition: GctUnpackCollections.h:78
L1GctInternEmCandCollection
std::vector< L1GctInternEmCand > L1GctInternEmCandCollection
Definition: L1GctCollections.h:23
GctUnpackCollections::gctInternHFData
L1GctInternHFDataCollection *const gctInternHFData() const
Internal Hadronic-Forward bit-counts/ring-sums data collection.
Definition: GctUnpackCollections.h:46
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::gctForJets
L1GctJetCandCollection *const gctForJets() const
GCT output: Forward Jets collection.
Definition: GctUnpackCollections.h:63
Event.h
GctUnpackCollections::rctCalo
L1CaloRegionCollection *const rctCalo() const
Input calo regions from the RCT to the GCT.
Definition: GctUnpackCollections.h:32
L1CaloCollections.h
GctUnpackCollections::m_gctInternEtSums
std::unique_ptr< L1GctInternEtSumCollection > m_gctInternEtSums
Definition: GctUnpackCollections.h:102
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
GctUnpackCollections::~GctUnpackCollections
~GctUnpackCollections()
Destructor - the last action of this object is to put the gct collections into the event provided on ...
Definition: GctUnpackCollections.cc:34
GctUnpackCollections::gctIsoEm
L1GctEmCandCollection *const gctIsoEm() const
GCT output: Isolated EM candidate collection.
Definition: GctUnpackCollections.h:54
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::errors
L1TriggerErrorCollection *const errors() const
Unpack error code collection.
Definition: GctUnpackCollections.h:84
GctUnpackCollections::gctEtHad
L1GctEtHadCollection *const gctEtHad() const
GCT output: Hadronic transverse-energy (Ht) collection.
Definition: GctUnpackCollections.h:74
GctUnpackCollections::gctJetCounts
L1GctJetCountsCollection *const gctJetCounts() const
DEPRECATED. ONLY GT NEEDS THIS.
Definition: GctUnpackCollections.h:79
GctUnpackCollections::m_gctHfRingEtSums
std::unique_ptr< L1GctHFRingEtSumsCollection > m_gctHfRingEtSums
Definition: GctUnpackCollections.h:113
GctUnpackCollections::gctEtMiss
L1GctEtMissCollection *const gctEtMiss() const
GCT output: Missing Et collection.
Definition: GctUnpackCollections.h:77
L1GctInternJetDataCollection
std::vector< L1GctInternJetData > L1GctInternJetDataCollection
Definition: L1GctCollections.h:24
GctUnpackCollections::m_gctNonIsoEm
std::unique_ptr< L1GctEmCandCollection > m_gctNonIsoEm
Definition: GctUnpackCollections.h:108
GctUnpackCollections::gctCenJets
L1GctJetCandCollection *const gctCenJets() const
GCT output: Central Jets collection.
Definition: GctUnpackCollections.h:60
GctUnpackCollections::m_errors
std::unique_ptr< L1TriggerErrorCollection > m_errors
Definition: GctUnpackCollections.h:121
GctUnpackCollections::gctEtTot
L1GctEtTotalCollection *const gctEtTot() const
GCT output: Total Et collection.
Definition: GctUnpackCollections.h:73
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
edm::Event
Definition: Event.h:73
GctUnpackCollections::m_rctEm
std::unique_ptr< L1CaloEmCollection > m_rctEm
Input electrons.
Definition: GctUnpackCollections.h:96
GctUnpackCollections::gctFibres
L1GctFibreCollection *const gctFibres() const
Raw fibre input to the GCT.
Definition: GctUnpackCollections.h:30
L1GctHFRingEtSumsCollection
std::vector< L1GctHFRingEtSums > L1GctHFRingEtSumsCollection
Definition: L1GctCollections.h:38
GctUnpackCollections::m_gctInternHtMiss
std::unique_ptr< L1GctInternHtMissCollection > m_gctInternHtMiss
Definition: GctUnpackCollections.h:104
GctUnpackCollections::gctInternEtSums
L1GctInternEtSumCollection *const gctInternEtSums() const
Internal Et Sum collection.
Definition: GctUnpackCollections.h:43
L1GctHtMissCollection
std::vector< L1GctHtMiss > L1GctHtMissCollection
Definition: L1GctCollections.h:36