SeekToEventClient.h
Go to the documentation of this file.
1 #ifndef art_test_Integration_SeekToEventClient_h
2 #define art_test_Integration_SeekToEventClient_h
3 
4 //===================================================================
5 //
6 // SeekToEventClient service is a rough attempt at testing the
7 // expected behavior of the RootInput::seekToEvent function, which is
8 // used for (e.g.) event displays.
9 //
10 //===================================================================
11 
16 #include "cetlib/exempt_ptr.h"
18 #include "fhiclcpp/types/TupleAs.h"
19 
20 #include <vector>
21 
22 namespace art {
23  class RootInput;
24 }
25 
26 namespace arttest {
27  class SeekToEventClient;
28 }
29 
31 public:
32  struct Config {
37  fhicl::Name("nextEventsToProcess"),
38  fhicl::Comment("Specify list of events to process AFTER the first event\n"
39  "in the file has been processed.\n")};
40  };
41 
44 
45 private:
46  void postBeginJobWorkers(art::InputSource* input_source,
47  std::vector<art::Worker*> const&);
48  void preProcessEvent(art::Event const&, art::ScheduleContext);
49  void postProcessEvent(art::Event const&, art::ScheduleContext);
50 
51  std::vector<art::EventID> nextEventsToProcess_;
53 };
54 
56 #endif /* art_test_Integration_SeekToEventClient_h */
57 
58 // Local Variables:
59 // mode: c++
60 // End:
#define DECLARE_ART_SERVICE(svc, scope)
Definition: ServiceMacros.h:86
IDNumber_t< Level::SubRun > SubRunNumber_t
Definition: IDNumber.h:119
art::EventID(art::RunNumber_t, art::SubRunNumber_t, art::EventNumber_t) to_EventID_t
std::vector< art::EventID > nextEventsToProcess_
IDNumber_t< Level::Event > EventNumber_t
Definition: IDNumber.h:118
AdcRoiViewer::Name Name
IDNumber_t< Level::Run > RunNumber_t
Definition: IDNumber.h:120