EventDisplay.h
Go to the documentation of this file.
1 ///
2 /// \file EventDisplay.h
3 /// \brief The interactive event display
4 ///
5 /// \version $Id: EventDisplay.h,v 1.15 2012-03-05 14:37:34 messier Exp $
6 /// \author messier@indiana.edu
7 ///
8 #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 {
23  ///
24  /// \brief ART event display service
25  ///
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:
42  art::InputSource* fInputSource; ///< Input source of events
43 
44  public:
45  unsigned int fAutoAdvanceInterval; ///< Wait time in milliseconds
46  int fAutoPrintCount; ///< Number of events printed so far
47  int fAutoPrintMax; ///< How many events to print (zero = disable printing).
48  std::string fAutoPrintPattern; ///< Pattern for printing output filenames. Must contain "%s" and "%d", in that order.
49  bool fEchoPrint; ///< Copy what you see in X to a .gif for each event
50  std::string fEchoPrintFile; ///< The file to dump that .gif to. Only one file, if you want a different file for each event, use AutoPrint instead.
51  std::string fEchoPrintTempFile; ///< a temporary file to enable atomic writes
52  };
53 }
54 
56 #endif // EVDB_EVENTDISPLAY_H
57 
58 ////////////////////////////////////////////////////////////////////////
int fAutoPrintMax
How many events to print (zero = disable printing).
Definition: EventDisplay.h:47
std::string string
Definition: nybbler.cc:12
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
#define DECLARE_ART_SERVICE(svc, scope)
Definition: ServiceMacros.h:86
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
parameter set interface
Definition: types.h:32
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
workers
Definition: train.py:479
art::InputSource * fInputSource
Input source of events.
Definition: EventDisplay.h:42