CMS 3D CMS Logo

ESGetToken.h
Go to the documentation of this file.
1 #ifndef FWCore_Utilities_ESGetToken_h
2 #define FWCore_Utilities_ESGetToken_h
3 // -*- C++ -*-
4 //
5 // Package: FWCore/Utilities
6 // Class : ESGetToken
7 //
18 
19 namespace edm {
20  class EDConsumerBase;
21  class ESProducer;
22  class ESConsumesCollector;
23  class EventSetup;
24  namespace eventsetup {
25  class EventSetupRecord;
26  }
27 
28  // A ESGetToken is created by calls to 'esConsumes' from an EDM
29  // module.
30  template<typename ESProduct>
31  class ESGetTokenT {
32  friend class EDConsumerBase;
33  friend class ESProducer;
34  friend class ESConsumesCollector;
35  friend class EventSetup;
37 
38  public:
39  ESGetTokenT() = default;
40 
41  private:
42  explicit ESGetTokenT(ESInputTag const& tag) : m_tag{tag} {}
43 
44  ESInputTag m_tag{};
45  };
46 
47 }
48 
49 #endif
ESGetTokenT(ESInputTag const &tag)
Definition: ESGetToken.h:42
HLT enums.