LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
EventDisplay.h
Go to the documentation of this file.
1 #ifndef EVDB_EVENTDISPLAY_H
9 #define EVDB_EVENTDISPLAY_H
10 
13 
14 namespace fhicl { class ParameterSet; }
15 namespace art { class ActivityRegistry; }
16 namespace art { class Worker; }
17 namespace art { class InputSource; }
18 namespace art { class EventID; }
19 namespace art { class Event; }
20 
21 namespace evdb
22 {
27  {
28  public:
29 
31  void reconfigure(fhicl::ParameterSet const& pset);
32 
33  private:
34 
35  void postBeginJob();
36  void postBeginJobWorkers(art::InputSource* inputs,
37  std::vector<art::Worker*> const& workers);
38  void preProcessEvent(art::Event const&, art::ScheduleContext);
39  void postProcessEvent(art::Event const&, art::ScheduleContext);
40 
41  private:
43 
44  public:
45  unsigned int fAutoAdvanceInterval;
48  std::string fAutoPrintPattern;
49  bool fEchoPrint;
50  std::string fEchoPrintFile;
51  std::string fEchoPrintTempFile;
52  };
53 }
54 
56 #endif // EVDB_EVENTDISPLAY_H
57 
int fAutoPrintMax
How many events to print (zero = disable printing).
Definition: EventDisplay.h:47
std::string fEchoPrintFile
The file to dump that .gif to. Only one file, if you want a different file for each event...
Definition: EventDisplay.h:50
unsigned int fAutoAdvanceInterval
Wait time in milliseconds.
Definition: EventDisplay.h:45
bool fEchoPrint
Copy what you see in X to a .gif for each event.
Definition: EventDisplay.h:49
std::string fEchoPrintTempFile
a temporary file to enable atomic writes
Definition: EventDisplay.h:51
Manage all things related to colors for the event display.
ART event display service.
Definition: EventDisplay.h:26
#define DECLARE_ART_SERVICE(svc, scope)
parameter set interface
Definition: MVAAlg.h:12
int fAutoPrintCount
Number of events printed so far.
Definition: EventDisplay.h:46
std::string fAutoPrintPattern
Pattern for printing output filenames. Must contain "%s" and "%d", in that order. ...
Definition: EventDisplay.h:48
art::InputSource * fInputSource
Input source of events.
Definition: EventDisplay.h:42