1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
#ifndef RctUnpackCollections_h
#define RctUnpackCollections_h
/*!
* \class RctUnpackCollections
*
*/
// CMSSW headers
#include "FWCore/Framework/interface/Event.h"
// DataFormat headers
#include "DataFormats/L1CaloTrigger/interface/L1CaloCollections.h"
#include "DataFormats/L1GlobalCaloTrigger/interface/L1GctCollections.h"
#include "DataFormats/L1Trigger/interface/L1TriggerError.h"
#include "TList.h"
class RctUnpackCollections {
public:
/// Construct with an event. The collections get put into the event when the object instance goes out of scope (i.e. in the destructor).
RctUnpackCollections(edm::Event& event);
/// deliberately not implemented!
RctUnpackCollections(const RctUnpackCollections&) = delete; ///< Copy ctor
RctUnpackCollections& operator=(const RctUnpackCollections&) = delete; ///< Assignment op
/// Destructor - the last action of this object is to put the rct collections into the event provided on construction.
~RctUnpackCollections();
// Collections for storing RCT input data.
L1CaloEmCollection* const rctEm() const { return m_rctEm.get(); } ///< Input electrons from the RCT to the RCT.
L1CaloRegionCollection* const rctCalo() const {
return m_rctCalo.get();
} ///< Input calo regions from the RCT to the RCT.
private:
edm::Event&
m_event; ///< The event the collections will be put into on destruction of the RctUnpackCollections instance.
// Collections for storing RCT input data.
std::unique_ptr<L1CaloEmCollection> m_rctEm; ///< Input electrons.
std::unique_ptr<L1CaloRegionCollection> m_rctCalo; ///< Input calo regions.
};
// Pretty print for the RctUnpackCollections sub-class
std::ostream& operator<<(std::ostream& os, const RctUnpackCollections& rhs);
#endif /* RctUnpackCollections_h */
|