File indexing completed on 2024-04-06 12:12:17
0001 #ifndef Integration_RunLumiEventAnalyzer_h
0002 #define Integration_RunLumiEventAnalyzer_h
0003
0004 #include "FWCore/Framework/interface/Frameworkfwd.h"
0005 #include "FWCore/Framework/interface/one/EDAnalyzer.h"
0006 #include "FWCore/Utilities/interface/EDGetToken.h"
0007 #include "FWCore/Utilities/interface/propagate_const.h"
0008
0009 #include <vector>
0010
0011 namespace edm {
0012 class TriggerResults;
0013 }
0014
0015 namespace edmtest {
0016
0017 class RunLumiEventAnalyzer : public edm::one::EDAnalyzer<edm::one::WatchRuns, edm::one::WatchLuminosityBlocks> {
0018 public:
0019 explicit RunLumiEventAnalyzer(edm::ParameterSet const& pset);
0020
0021 virtual ~RunLumiEventAnalyzer() {}
0022
0023 virtual void analyze(edm::Event const& event, edm::EventSetup const& es);
0024 virtual void beginRun(edm::Run const& run, edm::EventSetup const& es);
0025 virtual void endRun(edm::Run const& run, edm::EventSetup const& es);
0026 virtual void beginLuminosityBlock(edm::LuminosityBlock const& lumi, edm::EventSetup const& es);
0027 virtual void endLuminosityBlock(edm::LuminosityBlock const& lumi, edm::EventSetup const& es);
0028 virtual void endJob();
0029
0030 private:
0031 std::vector<unsigned long long> expectedRunLumisEvents0_;
0032 std::vector<unsigned long long> expectedRunLumisEvents1_;
0033 edm::propagate_const<std::vector<unsigned long long>*> expectedRunLumisEvents_;
0034 int index_;
0035 bool verbose_;
0036 bool dumpTriggerResults_;
0037 int expectedEndingIndex0_;
0038 int expectedEndingIndex1_;
0039 int expectedEndingIndex_;
0040 edm::EDGetTokenT<edm::TriggerResults> triggerResultsToken_;
0041 };
0042 }
0043
0044 #endif