CMS 3D CMS Logo

PuttableSourceBase.h
Go to the documentation of this file.
1 #ifndef FWCore_Sources_PuttableSourceBase_h
2 #define FWCore_Sources_PuttableSourceBase_h
3 // -*- C++ -*-
4 //
5 // Package: FWCore/Sources
6 // Class : PuttableSourceBase
7 //
16 //
17 // Original Author: root
18 // Created: Tue, 26 Sep 2017 20:51:50 GMT
19 //
20 
21 // system include files
22 
23 // user include files
27 
28 // forward declarations
29 namespace edm {
31 {
32 
33 public:
35 
36  // ---------- const member functions ---------------------
37 
38  // ---------- static member functions --------------------
39 
40  // ---------- member functions ---------------------------
43  void registerProducts() final;
44 
45 protected:
46  //If inheriting class overrides, they need to call this function as well
47  void beginJob() override;
48 private:
49  void doBeginLumi(LuminosityBlockPrincipal& lbp, ProcessContext const*) override;
50  void doEndLumi(LuminosityBlockPrincipal& lbp, bool cleaningUpAfterException, ProcessContext const*) override;
51  void doBeginRun(RunPrincipal& rp, ProcessContext const*) override;
52  void doEndRun(RunPrincipal& rp, bool cleaningUpAfterException, ProcessContext const*) override;
53 
54 
55  virtual void beginRun(Run&);
56  virtual void endRun(Run&);
58  virtual void endLuminosityBlock(LuminosityBlock&);
59 
60  PuttableSourceBase(const PuttableSourceBase&) = delete;
61 
63 
64  // ---------- member data --------------------------------
65 
66 };
67 }
68 
69 #endif
virtual void beginRun(Run &)
virtual void endLuminosityBlock(LuminosityBlock &)
void doEndRun(RunPrincipal &rp, bool cleaningUpAfterException, ProcessContext const *) override
Called by framework at end of run.
void doBeginLumi(LuminosityBlockPrincipal &lbp, ProcessContext const *) override
Called by framework at beginning of lumi block.
void registerProducts() final
Register any produced products.
void registerProducts(ProducerBase *, ProductRegistry *, ModuleDescription const &)
Definition: ProducerBase.cc:60
void resolvePutIndicies(BranchType iBranchType, ModuleToResolverIndicies const &iIndicies, std::string const &moduleLabel)
Definition: ProducerBase.cc:85
virtual void beginLuminosityBlock(LuminosityBlock &)
void doBeginRun(RunPrincipal &rp, ProcessContext const *) override
Called by framework at beginning of run.
PuttableSourceBase(ParameterSet const &, InputSourceDescription const &)
HLT enums.
virtual void endRun(Run &)
PuttableSourceBase & operator=(const PuttableSourceBase &)=delete
void doEndLumi(LuminosityBlockPrincipal &lbp, bool cleaningUpAfterException, ProcessContext const *) override
Called by framework at end of lumi block.
Definition: Run.h:43