Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
JEventProcessor_janaded.h
Go to the documentation of this file.
1 // $Id$
2 //
3 // File: JEventProcessor_janaded.h
4 // Created: Fri 20 Jul 2012 10:03:48 AM EDT
5 // Creator: garmon
6 //
7 
8 #ifndef _JEventProcessor_janaded_
9 #define _JEventProcessor_janaded_
10 
11 #include <map>
12 #include <string>
13 
14 #include <JANA/JEventProcessor.h>
15 #include <JANA/JFactory_base.h>
16 #include <cMsg.hxx>
17 using namespace cmsg;
18 
19 
20 class JEventProcessor_janaded:public jana::JEventProcessor,public cmsg::cMsgCallback {
21  public:
24  const char* className(void){return "JEventProcessor_janaded";}
25 
34  type_string
35  };
36 
37 
38  private:
39  jerror_t init(void); ///< Called once at program start.
40  jerror_t brun(jana::JEventLoop *eventLoop, int32_t runnumber); ///< Called everytime a new run number is detected.
41  jerror_t evnt(jana::JEventLoop *eventLoop, uint64_t eventnumber); ///< Called every event.
42  jerror_t erun(void); ///< Called everytime run number changes, provided brun has been called.
43  jerror_t fini(void); ///< Called after last event of last event source has been processed.
44  void callback(cMsgMessage *msg, void *arg); ///< Callback method
45 
46  unsigned int Nevents;
47 
48  unsigned int Nwarnings;
49  unsigned int MaxWarnings;
50 
52  vector<string> nametags_to_write_out;
53 
54 };
55 
56 #endif // _JEventProcessor_janaded_
57 
vector< string > nametags_to_write_out