CMS 3D CMS Logo

EDProducer.h
Go to the documentation of this file.
1 #ifndef FWCore_Framework_stream_EDProducer_h
2 #define FWCore_Framework_stream_EDProducer_h
3 // -*- C++ -*-
4 //
5 // Package: FWCore/Framework
6 // Class : EDProducer
7 //
16 //
17 // Original Author: Chris Jones
18 // Created: Thu, 01 Aug 2013 21:41:42 GMT
19 //
20 
21 // system include files
22 
23 // user include files
31 // forward declarations
32 namespace edm {
33 
34  class WaitingTaskWithArenaHolder;
35 
36  namespace stream {
37  template< typename... T>
38  class EDProducer : public AbilityToImplementor<T>::Type...,
39  public EDProducerBase
40  {
41 
42  public:
43  typedef CacheContexts<T...> CacheTypes;
44 
45  typedef typename CacheTypes::GlobalCache GlobalCache;
46  typedef typename CacheTypes::RunCache RunCache;
47  typedef typename CacheTypes::LuminosityBlockCache LuminosityBlockCache;
50  RunCache,
51  GlobalCache> LuminosityBlockContext;
52  typedef typename CacheTypes::RunSummaryCache RunSummaryCache;
53  typedef typename CacheTypes::LuminosityBlockSummaryCache LuminosityBlockSummaryCache;
54 
56 
57 
58  EDProducer() = default;
59  //virtual ~EDProducer();
60 
61  // ---------- const member functions ---------------------
62 
63  // ---------- static member functions --------------------
64 
65  // ---------- member functions ---------------------------
66 
67  private:
68  EDProducer(const EDProducer&) = delete; // stop default
69 
70  const EDProducer& operator=(const EDProducer&) = delete; // stop default
71 
72  void doAcquire_(Event const& ev,
73  EventSetup const& es,
74  WaitingTaskWithArenaHolder& holder) override final {
75  doAcquireIfNeeded(this, ev, es, holder);
76  }
77 
78  // ---------- member data --------------------------------
79 
80  };
81 
82  }
83 }
84 
85 
86 #endif
LuminosityBlockContextT< LuminosityBlockCache, RunCache, GlobalCache > LuminosityBlockContext
Definition: EDProducer.h:51
CacheTypes::GlobalCache GlobalCache
Definition: EDProducer.h:45
CacheTypes::RunCache RunCache
Definition: EDProducer.h:46
CacheContexts< T... > CacheTypes
Definition: EDProducer.h:43
bool ev
CacheTypes::RunSummaryCache RunSummaryCache
Definition: EDProducer.h:52
CacheTypes::LuminosityBlockCache LuminosityBlockCache
Definition: EDProducer.h:47
void doAcquire_(Event const &ev, EventSetup const &es, WaitingTaskWithArenaHolder &holder) override final
Definition: EDProducer.h:72
AbilityChecker< T... > HasAbility
Definition: EDProducer.h:55
CacheTypes::LuminosityBlockSummaryCache LuminosityBlockSummaryCache
Definition: EDProducer.h:53
const EDProducer & operator=(const EDProducer &)=delete
RunContextT< RunCache, GlobalCache > RunContext
Definition: EDProducer.h:48
HLT enums.
void doAcquireIfNeeded(impl::ExternalWork *, Event const &, EventSetup const &, WaitingTaskWithArenaHolder &)
long double T