/
ThingSource.h
42 lines (29 loc) · 1.11 KB
/
ThingSource.h
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
#ifndef Integration_ThingSource_h
#define Integration_ThingSource_h
/** \class ThingSource
*
* \version 1st Version Dec. 27, 2005
*
************************************************************/
#include "FWCore/Framework/interface/Frameworkfwd.h"
#include "FWCore/Integration/test/ThingAlgorithm.h"
#include "FWCore/Sources/interface/ProducerSourceBase.h"
namespace edmtest {
class ThingSource : public edm::ProducerSourceBase {
public:
// The following is not yet used, but will be the primary
// constructor when the parameter set system is available.
//
explicit ThingSource(edm::ParameterSet const& pset, edm::InputSourceDescription const& desc);
virtual ~ThingSource();
virtual bool setRunAndEventInfo(edm::EventID&, edm::TimeValue_t&, edm::EventAuxiliary::ExperimentType&) {return true;}
virtual void produce(edm::Event& e);
virtual void beginRun(edm::Run& r);
virtual void endRun(edm::Run& r);
virtual void beginLuminosityBlock(edm::LuminosityBlock& lb);
virtual void endLuminosityBlock(edm::LuminosityBlock& lb);
private:
ThingAlgorithm alg_;
};
}
#endif