CMS 3D CMS Logo

implementors.h
Go to the documentation of this file.
1 #ifndef FWCore_Framework_limited_implementors_h
2 #define FWCore_Framework_limited_implementors_h
3 // -*- C++ -*-
4 //
5 // Package: FWCore/Framework
6 // Class : implementors
7 //
16 //
17 // Original Author: Chris Jones
18 // Created: Thu, 18 Jul 2013 11:52:34 GMT
19 //
20 
21 // system include files
22 #include <memory>
23 #include <mutex>
24 #include <string>
25 #include <tuple>
26 #include <utility>
27 #include <vector>
28 
29 // user include files
41 
42 // forward declarations
43 namespace edm {
44 
45  namespace limited {
46  namespace impl {
47  class EmptyType {
48  public:
50  };
51 
52  template <typename T, typename C>
53  class StreamCacheHolder : public virtual T {
54  public:
55  StreamCacheHolder(edm::ParameterSet const& iPSet) : T(iPSet) {}
58  ~StreamCacheHolder() override {
59  for (auto c : caches_) {
60  delete c;
61  }
62  }
63 
64  protected:
65  C* streamCache(edm::StreamID iID) const { return caches_[iID.value()]; }
66 
67  private:
68  void preallocStreams(unsigned int iNStreams) final { caches_.resize(iNStreams, static_cast<C*>(nullptr)); }
69  void doBeginStream_(StreamID id) final { caches_[id.value()] = beginStream(id).release(); }
70  void doEndStream_(StreamID id) final {
71  endStream(id);
72  delete caches_[id.value()];
73  caches_[id.value()] = nullptr;
74  }
75  void doStreamBeginRun_(StreamID id, Run const& rp, EventSetup const& c) final { streamBeginRun(id, rp, c); }
76  void doStreamEndRun_(StreamID id, Run const& rp, EventSetup const& c) final { streamEndRun(id, rp, c); }
77  void doStreamBeginLuminosityBlock_(StreamID id, LuminosityBlock const& lbp, EventSetup const& c) final {
78  streamBeginLuminosityBlock(id, lbp, c);
79  }
80  void doStreamEndLuminosityBlock_(StreamID id, LuminosityBlock const& lbp, EventSetup const& c) final {
81  streamEndLuminosityBlock(id, lbp, c);
82  }
83 
84  virtual std::unique_ptr<C> beginStream(edm::StreamID) const = 0;
85  virtual void streamBeginRun(edm::StreamID, edm::Run const&, edm::EventSetup const&) const {}
87  edm::LuminosityBlock const&,
88  edm::EventSetup const&) const {}
90  edm::LuminosityBlock const&,
91  edm::EventSetup const&) const {}
92  virtual void streamEndRun(edm::StreamID, edm::Run const&, edm::EventSetup const&) const {}
93  virtual void endStream(edm::StreamID) const {}
94 
95  //When threaded we will have a container for N items whre N is # of streams
96  std::vector<C*> caches_;
97  };
98 
99  template <typename T, typename... CacheTypes>
100  class InputProcessBlockCacheHolder : public virtual T {
101  public:
105  ~InputProcessBlockCacheHolder() noexcept(false) override {}
106 
107  std::tuple<CacheHandle<CacheTypes>...> processBlockCaches(Event const& event) const {
108  return cacheImpl_.processBlockCaches(event);
109  }
110 
111  template <std::size_t ICacheType, typename DataType, typename Func>
113  cacheImpl_.template registerProcessBlockCacheFiller<ICacheType, DataType, Func>(token,
114  std::forward<Func>(func));
115  }
116 
117  template <typename CacheType, typename DataType, typename Func>
119  cacheImpl_.template registerProcessBlockCacheFiller<CacheType, DataType, Func>(token,
120  std::forward<Func>(func));
121  }
122 
123  // This is intended for use by Framework unit tests only
124  unsigned int cacheSize() const { return cacheImpl_.cacheSize(); }
125 
126  private:
127  void doSelectInputProcessBlocks(ProductRegistry const& productRegistry,
128  ProcessBlockHelperBase const& processBlockHelperBase) final {
129  cacheImpl_.selectInputProcessBlocks(productRegistry, processBlockHelperBase, *this);
130  }
131 
132  void doAccessInputProcessBlock_(ProcessBlock const& pb) final {
133  cacheImpl_.accessInputProcessBlock(pb);
135  }
136 
137  // Alternate method to access ProcessBlocks without using the caches
138  // Mostly intended for unit testing, but might have other uses...
139  virtual void accessInputProcessBlock(ProcessBlock const&) {}
140 
141  void clearInputProcessBlockCaches() final { cacheImpl_.clearCaches(); }
142 
144  };
145 
146  template <typename T, typename C>
147  class RunCacheHolder : public virtual T {
148  public:
149  RunCacheHolder(edm::ParameterSet const& iPSet) : T(iPSet) {}
150  RunCacheHolder(RunCacheHolder<T, C> const&) = delete;
152  ~RunCacheHolder() noexcept(false) override{};
153 
154  protected:
155  C const* runCache(edm::RunIndex iID) const { return cache_.get(); }
156 
157  private:
158  void doBeginRun_(Run const& rp, EventSetup const& c) final { cache_ = globalBeginRun(rp, c); }
159  void doEndRun_(Run const& rp, EventSetup const& c) final {
160  globalEndRun(rp, c);
161  cache_ = nullptr; // propagate_const<T> has no reset() function
162  }
163 
164  virtual std::shared_ptr<C> globalBeginRun(edm::Run const&, edm::EventSetup const&) const = 0;
165  virtual void globalEndRun(edm::Run const&, edm::EventSetup const&) const = 0;
166  //When threaded we will have a container for N items whre N is # of simultaneous runs
168  };
169 
170  template <typename T, typename C>
171  class LuminosityBlockCacheHolder : public virtual T {
172  public:
176  ~LuminosityBlockCacheHolder() noexcept(false) override{};
177 
178  protected:
179  C const* luminosityBlockCache(edm::LuminosityBlockIndex iID) const { return caches_[iID].get(); }
180 
181  private:
182  void preallocLumis(unsigned int iNLumis) final { caches_.reset(new std::shared_ptr<C>[iNLumis]); }
183 
184  void doBeginLuminosityBlock_(LuminosityBlock const& lp, EventSetup const& c) final {
185  caches_[lp.index()] = globalBeginLuminosityBlock(lp, c);
186  }
187  void doEndLuminosityBlock_(LuminosityBlock const& lp, EventSetup const& c) final {
189  caches_[lp.index()].reset();
190  }
191 
192  virtual std::shared_ptr<C> globalBeginLuminosityBlock(edm::LuminosityBlock const&,
193  edm::EventSetup const&) const = 0;
194  virtual void globalEndLuminosityBlock(edm::LuminosityBlock const&, edm::EventSetup const&) const = 0;
195  //When threaded we will have a container for N items whre N is # of simultaneous runs
196  std::unique_ptr<std::shared_ptr<C>[]> caches_;
197  };
198 
199  template <typename T, typename C>
201 
202  template <typename T, typename C>
203  class RunSummaryCacheHolder : public virtual T {
204  public:
205  RunSummaryCacheHolder(edm::ParameterSet const& iPSet) : T(iPSet) {}
208  ~RunSummaryCacheHolder() noexcept(false) override{};
209 
210  private:
211  friend class EndRunSummaryProducer<T, C>;
212  void doBeginRunSummary_(edm::Run const& rp, EventSetup const& c) final {
214  }
215  void doStreamEndRunSummary_(StreamID id, Run const& rp, EventSetup const& c) final {
216  //NOTE: in future this will need to be serialized
217  std::lock_guard<std::mutex> guard(mutex_);
218  streamEndRunSummary(id, rp, c, cache_.get());
219  }
220  void doEndRunSummary_(Run const& rp, EventSetup const& c) final { globalEndRunSummary(rp, c, cache_.get()); }
221 
222  virtual std::shared_ptr<C> globalBeginRunSummary(edm::Run const&, edm::EventSetup const&) const = 0;
223  virtual void streamEndRunSummary(StreamID, edm::Run const&, edm::EventSetup const&, C*) const = 0;
224 
225  virtual void globalEndRunSummary(edm::Run const&, edm::EventSetup const&, C*) const = 0;
226 
227  //When threaded we will have a container for N items where N is # of simultaneous runs
228  std::shared_ptr<C> cache_;
230  };
231 
232  template <typename T, typename C>
234 
235  template <typename T, typename C>
236  class LuminosityBlockSummaryCacheHolder : public virtual T {
237  public:
242 
243  private:
244  void preallocLumisSummary(unsigned int iNLumis) final { caches_.reset(new std::shared_ptr<C>[iNLumis]); }
245 
247 
249  caches_[lb.index()] = globalBeginLuminosityBlockSummary(lb, c);
250  }
251 
253  std::lock_guard<std::mutex> guard(mutex_);
254  streamEndLuminosityBlockSummary(id, lb, c, caches_[lb.index()].get());
255  }
257  globalEndLuminosityBlockSummary(lb, c, caches_[lb.index()].get());
258  maybeClearCache(lb);
259  }
260 
261  virtual std::shared_ptr<C> globalBeginLuminosityBlockSummary(edm::LuminosityBlock const&,
262  edm::EventSetup const&) const = 0;
264  edm::LuminosityBlock const&,
265  edm::EventSetup const&,
266  C*) const = 0;
267 
268  virtual void globalEndLuminosityBlockSummary(edm::LuminosityBlock const&, edm::EventSetup const&, C*) const = 0;
269 
270  virtual void maybeClearCache(LuminosityBlock const& lb) { caches_[lb.index()].reset(); }
271 
272  //When threaded we will have a container for N items where N is # of simultaneous Lumis
273  std::unique_ptr<std::shared_ptr<C>[]> caches_;
275  };
276 
277  template <typename T>
278  class WatchProcessBlock : public virtual T {
279  public:
280  WatchProcessBlock(edm::ParameterSet const& iPSet) : T(iPSet) {}
281  WatchProcessBlock(WatchProcessBlock const&) = delete;
283  ~WatchProcessBlock() noexcept(false) override{};
284 
285  private:
286  void doBeginProcessBlock_(ProcessBlock const&) final;
287  void doEndProcessBlock_(ProcessBlock const&) final;
288 
289  virtual void beginProcessBlock(ProcessBlock const&) {}
290  virtual void endProcessBlock(ProcessBlock const&) {}
291  };
292 
293  template <typename T>
294  class BeginProcessBlockProducer : public virtual T {
295  public:
299  ~BeginProcessBlockProducer() noexcept(false) override{};
300 
301  private:
303 
304  virtual void beginProcessBlockProduce(edm::ProcessBlock&) = 0;
305  };
306 
307  template <typename T>
308  class EndProcessBlockProducer : public virtual T {
309  public:
310  EndProcessBlockProducer(edm::ParameterSet const& iPSet) : T(iPSet) {}
313  ~EndProcessBlockProducer() noexcept(false) override{};
314 
315  private:
317 
318  virtual void endProcessBlockProduce(edm::ProcessBlock&) = 0;
319  };
320 
321  template <typename T>
322  class BeginRunProducer : public virtual T {
323  public:
324  BeginRunProducer(edm::ParameterSet const& iPSet) : T(iPSet) {}
325  BeginRunProducer(BeginRunProducer const&) = delete;
326  BeginRunProducer& operator=(BeginRunProducer const&) = delete;
327  ~BeginRunProducer() noexcept(false) override{};
328 
329  private:
330  void doBeginRunProduce_(Run& rp, EventSetup const& c) final;
331 
332  virtual void globalBeginRunProduce(edm::Run&, edm::EventSetup const&) const = 0;
333  };
334 
335  template <typename T>
336  class EndRunProducer : public virtual T {
337  public:
338  EndRunProducer(edm::ParameterSet const& iPSet) : T(iPSet) {}
339  EndRunProducer(EndRunProducer const&) = delete;
340  EndRunProducer& operator=(EndRunProducer const&) = delete;
341  ~EndRunProducer() noexcept(false) override{};
342 
343  private:
344  void doEndRunProduce_(Run& rp, EventSetup const& c) final;
345 
346  virtual void globalEndRunProduce(edm::Run&, edm::EventSetup const&) const = 0;
347  };
348 
349  template <typename T, typename C>
350  class EndRunSummaryProducer : public RunSummaryCacheHolder<T, C> {
351  public:
352  EndRunSummaryProducer(edm::ParameterSet const& iPSet) : T(iPSet), RunSummaryCacheHolder<T, C>(iPSet) {}
355  ~EndRunSummaryProducer() noexcept(false) override{};
356 
357  private:
358  void doEndRunProduce_(Run& rp, EventSetup const& c) final {
360  }
361 
362  virtual void globalEndRunProduce(edm::Run&, edm::EventSetup const&, C const*) const = 0;
363  };
364 
365  template <typename T>
366  class BeginLuminosityBlockProducer : public virtual T {
367  public:
371  ~BeginLuminosityBlockProducer() noexcept(false) override{};
372 
373  private:
376  };
377 
378  template <typename T>
379  class EndLuminosityBlockProducer : public virtual T {
380  public:
384  ~EndLuminosityBlockProducer() noexcept(false) override{};
385 
386  private:
389  };
390 
391  template <typename T, typename S>
392  class EndLuminosityBlockSummaryProducer : public LuminosityBlockSummaryCacheHolder<T, S> {
393  public:
395  : T(iPSet), LuminosityBlockSummaryCacheHolder<T, S>(iPSet) {}
399 
400  private:
404  }
405 
406  virtual void globalEndLuminosityBlockProduce(edm::LuminosityBlock&, edm::EventSetup const&, S const*) const = 0;
407 
408  // Do nothing because the cache is cleared in doEndLuminosityBlockProduce_
409  void maybeClearCache(LuminosityBlock const&) final {}
410  };
411 
412  template <typename T>
413  class Accumulator : public virtual T {
414  public:
415  Accumulator(edm::ParameterSet const& iPSet) : T(iPSet) {}
416  Accumulator() = default;
417  Accumulator(Accumulator const&) = delete;
418  Accumulator& operator=(Accumulator const&) = delete;
419  ~Accumulator() noexcept(false) override{};
420 
421  private:
422  bool hasAccumulator() const override { return true; }
423 
424  void produce(StreamID streamID, Event& ev, EventSetup const& es) const final { accumulate(streamID, ev, es); }
425 
426  virtual void accumulate(StreamID streamID, Event const& ev, EventSetup const& es) const = 0;
427  };
428  } // namespace impl
429  } // namespace limited
430 } // namespace edm
431 
432 #endif
void preallocLumisSummary(unsigned int iNLumis) final
Definition: implementors.h:244
~EndRunSummaryProducer() noexcept(false) override
Definition: implementors.h:355
virtual void globalEndLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &) const =0
std::tuple< CacheHandle< CacheTypes >... > processBlockCaches(Event const &event) const
Definition: implementors.h:107
EndLuminosityBlockSummaryProducer & operator=(EndLuminosityBlockSummaryProducer const &)=delete
void doBeginLuminosityBlockSummary_(edm::LuminosityBlock const &lb, EventSetup const &c) final
Definition: implementors.h:248
edm::impl::InputProcessBlockCacheImpl< CacheTypes... > cacheImpl_
Definition: implementors.h:143
virtual std::unique_ptr< C > beginStream(edm::StreamID) const =0
void doEndStream_(StreamID id) final
Definition: implementors.h:70
EndProcessBlockProducer(edm::ParameterSet const &iPSet)
Definition: implementors.h:310
virtual void endProcessBlockProduce(edm::ProcessBlock &)=0
void produce(StreamID streamID, Event &ev, EventSetup const &es) const final
Definition: implementors.h:424
void doEndRun_(Run const &rp, EventSetup const &c) final
Definition: implementors.h:159
BeginProcessBlockProducer & operator=(BeginProcessBlockProducer const &)=delete
~EndLuminosityBlockProducer() noexcept(false) override
Definition: implementors.h:384
LuminosityBlockCacheHolder< T, C > & operator=(LuminosityBlockCacheHolder< T, C > const &)=delete
StreamCacheHolder(edm::ParameterSet const &iPSet)
Definition: implementors.h:55
virtual void endStream(edm::StreamID) const
Definition: implementors.h:93
void doEndRunSummary_(Run const &rp, EventSetup const &c) final
Definition: implementors.h:220
static std::mutex mutex
Definition: Proxy.cc:8
RunCacheHolder< T, C > & operator=(RunCacheHolder< T, C > const &)=delete
C const * runCache(edm::RunIndex iID) const
Definition: implementors.h:155
InputProcessBlockCacheHolder(edm::ParameterSet const &iPSet)
Definition: implementors.h:102
WatchProcessBlock & operator=(WatchProcessBlock const &)=delete
EndRunProducer & operator=(EndRunProducer const &)=delete
virtual void streamEndLuminosityBlock(edm::StreamID, edm::LuminosityBlock const &, edm::EventSetup const &) const
Definition: implementors.h:89
virtual void streamEndRunSummary(StreamID, edm::Run const &, edm::EventSetup const &, C *) const =0
virtual void endProcessBlock(ProcessBlock const &)
Definition: implementors.h:290
void doStreamEndLuminosityBlock_(StreamID id, LuminosityBlock const &lbp, EventSetup const &c) final
Definition: implementors.h:80
void doBeginRun_(Run const &rp, EventSetup const &c) final
Definition: implementors.h:158
virtual void globalEndRun(edm::Run const &, edm::EventSetup const &) const =0
Accumulator & operator=(Accumulator const &)=delete
std::unique_ptr< std::shared_ptr< C >[]> caches_
Definition: implementors.h:196
C const * luminosityBlockCache(edm::LuminosityBlockIndex iID) const
Definition: implementors.h:179
BeginLuminosityBlockProducer(edm::ParameterSet const &iPSet)
Definition: implementors.h:368
EndProcessBlockProducer & operator=(EndProcessBlockProducer const &)=delete
void doEndLuminosityBlock_(LuminosityBlock const &lp, EventSetup const &c) final
Definition: implementors.h:187
BeginProcessBlockProducer(edm::ParameterSet const &iPSet)
Definition: implementors.h:296
void doAccessInputProcessBlock_(ProcessBlock const &pb) final
Definition: implementors.h:132
~BeginLuminosityBlockProducer() noexcept(false) override
Definition: implementors.h:371
virtual void globalEndLuminosityBlockSummary(edm::LuminosityBlock const &, edm::EventSetup const &, C *) const =0
void preallocStreams(unsigned int iNStreams) final
Definition: implementors.h:68
WatchProcessBlock(edm::ParameterSet const &iPSet)
Definition: implementors.h:280
~EndRunProducer() noexcept(false) override
Definition: implementors.h:341
LuminosityBlockSummaryCacheHolder(edm::ParameterSet const &iPSet)
Definition: implementors.h:238
void doStreamBeginLuminosityBlock_(StreamID id, LuminosityBlock const &lbp, EventSetup const &c) final
Definition: implementors.h:77
~RunCacheHolder() noexcept(false) override
Definition: implementors.h:152
virtual void streamBeginLuminosityBlock(edm::StreamID, edm::LuminosityBlock const &, edm::EventSetup const &) const
Definition: implementors.h:86
void doStreamEndRun_(StreamID id, Run const &rp, EventSetup const &c) final
Definition: implementors.h:76
~EndProcessBlockProducer() noexcept(false) override
Definition: implementors.h:313
edm::propagate_const< std::shared_ptr< C > > cache_
Definition: implementors.h:167
void doEndLuminosityBlockSummary_(LuminosityBlock const &lb, EventSetup const &c) final
Definition: implementors.h:256
constexpr element_type const * get() const
InputProcessBlockCacheHolder & operator=(InputProcessBlockCacheHolder const &)=delete
EndRunSummaryProducer & operator=(EndRunSummaryProducer const &)=delete
EndRunSummaryProducer(edm::ParameterSet const &iPSet)
Definition: implementors.h:352
EmptyType(edm::ParameterSet const &)
Definition: implementors.h:49
LuminosityBlockCacheHolder(edm::ParameterSet const &iPSet)
Definition: implementors.h:173
virtual void globalBeginLuminosityBlockProduce(edm::LuminosityBlock &, edm::EventSetup const &) const =0
virtual std::shared_ptr< C > globalBeginRun(edm::Run const &, edm::EventSetup const &) const =0
BeginRunProducer(edm::ParameterSet const &iPSet)
Definition: implementors.h:324
virtual void beginProcessBlockProduce(edm::ProcessBlock &)=0
virtual void globalEndRunSummary(edm::Run const &, edm::EventSetup const &, C *) const =0
RunCacheHolder(edm::ParameterSet const &iPSet)
Definition: implementors.h:149
virtual std::shared_ptr< C > globalBeginLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &) const =0
virtual std::shared_ptr< C > globalBeginRunSummary(edm::Run const &, edm::EventSetup const &) const =0
void doBeginLuminosityBlock_(LuminosityBlock const &lp, EventSetup const &c) final
Definition: implementors.h:184
RunSummaryCacheHolder(edm::ParameterSet const &iPSet)
Definition: implementors.h:205
void doEndLuminosityBlockProduce_(LuminosityBlock &lb, EventSetup const &c) final
BeginLuminosityBlockProducer & operator=(BeginLuminosityBlockProducer const &)=delete
StreamCacheHolder< T, C > & operator=(StreamCacheHolder< T, C > const &)=delete
virtual void globalEndLuminosityBlockProduce(edm::LuminosityBlock &, edm::EventSetup const &) const =0
void doEndProcessBlockProduce_(ProcessBlock &) final
virtual void streamBeginRun(edm::StreamID, edm::Run const &, edm::EventSetup const &) const
Definition: implementors.h:85
RunSummaryCacheHolder< T, C > & operator=(RunSummaryCacheHolder< T, C > const &)=delete
void doEndRunProduce_(Run &rp, EventSetup const &c) final
Definition: implementors.h:358
Accumulator(edm::ParameterSet const &iPSet)
Definition: implementors.h:415
EndRunProducer(edm::ParameterSet const &iPSet)
Definition: implementors.h:338
void doBeginProcessBlockProduce_(ProcessBlock &) final
void maybeClearCache(LuminosityBlock const &) final
Definition: implementors.h:409
virtual void streamEndLuminosityBlockSummary(StreamID, edm::LuminosityBlock const &, edm::EventSetup const &, C *) const =0
~LuminosityBlockCacheHolder() noexcept(false) override
Definition: implementors.h:176
void doStreamEndLuminosityBlockSummary_(StreamID id, LuminosityBlock const &lb, EventSetup const &c) final
Definition: implementors.h:252
virtual void globalEndRunProduce(edm::Run &, edm::EventSetup const &) const =0
LuminosityBlockSummaryCacheHolder< T, C > & operator=(LuminosityBlockSummaryCacheHolder< T, C > const &)=delete
virtual void accessInputProcessBlock(ProcessBlock const &)
Definition: implementors.h:139
void doBeginStream_(StreamID id) final
Definition: implementors.h:69
void doStreamEndRunSummary_(StreamID id, Run const &rp, EventSetup const &c) final
Definition: implementors.h:215
EndLuminosityBlockSummaryProducer(edm::ParameterSet const &iPSet)
Definition: implementors.h:394
EndLuminosityBlockProducer(edm::ParameterSet const &iPSet)
Definition: implementors.h:381
~BeginRunProducer() noexcept(false) override
Definition: implementors.h:327
~WatchProcessBlock() noexcept(false) override
Definition: implementors.h:283
void registerProcessBlockCacheFiller(EDGetTokenT< DataType > const &token, Func &&func)
Definition: implementors.h:112
bool hasAccumulator() const override
Definition: implementors.h:422
void doSelectInputProcessBlocks(ProductRegistry const &productRegistry, ProcessBlockHelperBase const &processBlockHelperBase) final
Definition: implementors.h:127
~BeginProcessBlockProducer() noexcept(false) override
Definition: implementors.h:299
virtual void globalBeginRunProduce(edm::Run &, edm::EventSetup const &) const =0
~EndLuminosityBlockSummaryProducer() noexcept(false) override
Definition: implementors.h:398
virtual std::shared_ptr< C > globalBeginLuminosityBlockSummary(edm::LuminosityBlock const &, edm::EventSetup const &) const =0
BeginRunProducer & operator=(BeginRunProducer const &)=delete
~RunSummaryCacheHolder() noexcept(false) override
Definition: implementors.h:208
void doBeginLuminosityBlockProduce_(LuminosityBlock &lb, EventSetup const &c) final
void doEndLuminosityBlockProduce_(LuminosityBlock &lb, EventSetup const &c) final
Definition: implementors.h:401
LuminosityBlockIndex index() const
C * streamCache(edm::StreamID iID) const
Definition: implementors.h:65
void doStreamBeginRun_(StreamID id, Run const &rp, EventSetup const &c) final
Definition: implementors.h:75
HLT enums.
virtual void globalEndLuminosityBlockProduce(edm::LuminosityBlock &, edm::EventSetup const &, S const *) const =0
void doBeginRunSummary_(edm::Run const &rp, EventSetup const &c) final
Definition: implementors.h:212
virtual void globalEndRunProduce(edm::Run &, edm::EventSetup const &, C const *) const =0
~Accumulator() noexcept(false) override
Definition: implementors.h:419
virtual void streamEndRun(edm::StreamID, edm::Run const &, edm::EventSetup const &) const
Definition: implementors.h:92
virtual void maybeClearCache(LuminosityBlock const &lb)
Definition: implementors.h:270
unsigned int value() const
Definition: StreamID.h:43
std::unique_ptr< std::shared_ptr< C >[]> caches_
Definition: implementors.h:273
~LuminosityBlockSummaryCacheHolder() noexcept(false) override
Definition: implementors.h:241
void doEndRunProduce_(Run &rp, EventSetup const &c) final
void doEndProcessBlock_(ProcessBlock const &) final
long double T
void doBeginRunProduce_(Run &rp, EventSetup const &c) final
virtual void beginProcessBlock(ProcessBlock const &)
Definition: implementors.h:289
~InputProcessBlockCacheHolder() noexcept(false) override
Definition: implementors.h:105
EndLuminosityBlockProducer & operator=(EndLuminosityBlockProducer const &)=delete
Definition: event.py:1
Definition: Run.h:45
virtual void accumulate(StreamID streamID, Event const &ev, EventSetup const &es) const =0
void doBeginProcessBlock_(ProcessBlock const &) final
void preallocLumis(unsigned int iNLumis) final
Definition: implementors.h:182