Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
hd_dump/MyProcessor.h
Go to the documentation of this file.
1 // $Id$
2 // Author: David Lawrence June 25, 2004
3 //
4 //
5 // MyProcessor.h
6 //
7 /// hd_dump print event info to screen
8 ///
9 
10 #include <set>
11 using namespace std;
12 
13 #include <JANA/JEventProcessor.h>
14 #include <JANA/JEventLoop.h>
15 #include <JANA/JFactory.h>
16 using namespace jana;
17 
18 extern bool PAUSE_BETWEEN_EVENTS;
19 extern bool SKIP_BORING_EVENTS;
20 extern bool PRINT_ALL;
21 extern bool PRINT_CORE;
22 extern bool LIST_ASSOCIATED_OBJECTS;
23 extern bool PRINT_SUMMARY_ALL;
24 extern bool PRINT_SUMMARY_HEADER;
25 extern bool PRINT_STATUS_BITS;
26 extern bool ACTIVATE_TAGGED_FOR_SUMMARY;
27 
28 extern set<string> toprint;
29 extern set<string> tosummarize;
30 
31 class MyProcessor:public JEventProcessor
32 {
33  public:
34  jerror_t init(void){return NOERROR;}; ///< Called once at program start.
35  jerror_t brun(JEventLoop *eventLoop, int32_t runnumber); ///< Called everytime a new run number is detected.
36  jerror_t evnt(JEventLoop *eventLoop, uint64_t eventnumber); ///< Called every event.
37  jerror_t erun(void){return NOERROR;}; ///< Called everytime run number changes, provided brun has been called.
38  jerror_t fini(void){return NOERROR;}; ///< Called after last event of last event source has been processed.
39 
40  typedef struct{
41  string dataClassName;
42  string tag;
43  JFactory_base *fac;
45  vector<factory_info_t> fac_info;
46 
47  void PrintAssociatedObjects(JEventLoop *eventLoop, const factory_info_t *fac_info);
48 };
bool LIST_ASSOCIATED_OBJECTS
jerror_t init(void)
bool SKIP_BORING_EVENTS
jerror_t erun(void)
bool PRINT_SUMMARY_HEADER
bool PAUSE_BETWEEN_EVENTS
bool PRINT_SUMMARY_ALL
set< string > tosummarize
set< string > toprint
jerror_t fini(void)
Called everytime run number changes, provided brun has been called.
bool PRINT_CORE
bool PRINT_STATUS_BITS
bool ACTIVATE_TAGGED_FOR_SUMMARY
Called after last event of last event source has been processed.
vector< factory_info_t > fac_info
bool PRINT_ALL