File indexing completed on 2023-03-17 11:02:25
0001 #ifndef Framework_TestBeginEndJobAnalyzer_h
0002 #define Framework_TestBeginEndJobAnalyzer_h
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022 #include "FWCore/Framework/interface/one/EDAnalyzer.h"
0023
0024
0025
0026 class TestBeginEndJobAnalyzer : public edm::one::EDAnalyzer<edm::one::WatchRuns, edm::one::WatchLuminosityBlocks> {
0027 public:
0028 explicit TestBeginEndJobAnalyzer(const edm::ParameterSet&);
0029 ~TestBeginEndJobAnalyzer();
0030
0031 void analyze(const edm::Event&, const edm::EventSetup&) override;
0032
0033 void beginJob() override;
0034 void endJob() override;
0035 void beginRun(edm::Run const&, edm::EventSetup const&) override;
0036 void endRun(edm::Run const&, edm::EventSetup const&) override;
0037 void beginLuminosityBlock(edm::LuminosityBlock const&, edm::EventSetup const&) override;
0038 void endLuminosityBlock(edm::LuminosityBlock const&, edm::EventSetup const&) override;
0039
0040 struct Control {
0041 bool beginJobCalled = false;
0042 bool endJobCalled = false;
0043 bool beginRunCalled = false;
0044 bool endRunCalled = false;
0045 bool beginLumiCalled = false;
0046 bool endLumiCalled = false;
0047 bool destructorCalled = false;
0048 };
0049
0050 static Control& control();
0051
0052 private:
0053
0054 };
0055
0056 #endif