forked from cms-patatrack/pixeltrack-standalone
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEventProcessor.h
41 lines (32 loc) · 1.03 KB
/
EventProcessor.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
#ifndef EventProcessor_h
#define EventProcessor_h
#include <filesystem>
#include <string>
#include <vector>
#include "Framework/EventSetup.h"
#include "PluginManager.h"
#include "StreamSchedule.h"
#include "Source.h"
namespace edm {
class EventProcessor {
public:
explicit EventProcessor(int maxEvents,
int runForMinutes,
int numberOfStreams,
std::vector<std::string> const& path,
std::vector<std::string> const& esproducers,
std::filesystem::path const& datadir,
bool validation);
int maxEvents() const { return source_.maxEvents(); }
int processedEvents() const { return source_.processedEvents(); }
void runToCompletion();
void endJob();
private:
edmplugin::PluginManager pluginManager_;
ProductRegistry registry_;
Source source_;
EventSetup eventSetup_;
std::vector<StreamSchedule> schedules_;
};
} // namespace edm
#endif