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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
#ifndef FWCore_Sources_PuttableSourceBase_h
#define FWCore_Sources_PuttableSourceBase_h
// -*- C++ -*-
//
// Package: FWCore/Sources
// Class : PuttableSourceBase
//
/**\class PuttableSourceBase PuttableSourceBase.h "PuttableSourceBase.h"
Description: [one line class summary]
Usage:
<usage>
*/
//
// Original Author: root
// Created: Tue, 26 Sep 2017 20:51:50 GMT
//
// system include files
// user include files
#include "FWCore/Framework/interface/InputSource.h"
#include "FWCore/Framework/interface/Frameworkfwd.h"
#include "FWCore/Framework/interface/ProducerBase.h"
// forward declarations
namespace edm {
class PuttableSourceBase : public InputSource, public ProducerBase {
public:
PuttableSourceBase(ParameterSet const&, InputSourceDescription const&);
PuttableSourceBase(const PuttableSourceBase&) = delete;
PuttableSourceBase& operator=(const PuttableSourceBase&) = delete;
// ---------- const member functions ---------------------
// ---------- static member functions --------------------
// ---------- member functions ---------------------------
using ProducerBase::registerProducts;
using ProducerBase::resolvePutIndicies;
void registerProducts() final;
bool hasAbilityToProduceInBeginRuns() const final { return true; }
bool hasAbilityToProduceInBeginLumis() const final { return true; }
protected:
//If inheriting class overrides, they need to call this function as well
void beginJob(edm::ProductRegistry const&) override;
private:
void doBeginLumi(LuminosityBlockPrincipal& lbp, ProcessContext const*) override;
void doBeginRun(RunPrincipal& rp, ProcessContext const*) override;
virtual void beginRun(Run&);
virtual void beginLuminosityBlock(LuminosityBlock&);
// ---------- member data --------------------------------
};
} // namespace edm
#endif
|