Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DTAGMHit_factory.h
Go to the documentation of this file.
1 // $Id$
2 //
3 // File: DTAGMHit_factory.h
4 // Created: Sat Aug 2 12:23:43 EDT 2014
5 // Creator: jonesrt (on Linux gluey.phys.uconn.edu)
6 //
7 
8 #ifndef _DTAGMHit_factory_
9 #define _DTAGMHit_factory_
10 
11 #include <vector>
12 using namespace std;
13 
14 #include <JANA/JFactory.h>
15 #include "TTAB/DTTabUtilities.h"
16 
17 #include "DTAGMHit.h"
18 #include "DTAGMGeometry.h"
19 
20 class DTAGMHit_factory: public jana::JFactory<DTAGMHit> {
21  public:
24 
25  // config. parameter
26  double DELTA_T_CLUSTER_MAX;
27  bool MERGE_HITS;
28 
29  private:
30  jerror_t init(void); ///< Called once at program start
31  jerror_t brun(jana::JEventLoop *eventLoop, int32_t runnumber); ///< Called everytime a new run number is detected
32  jerror_t evnt(jana::JEventLoop *eventLoop, uint64_t eventnumber); ///< Called every event
33  jerror_t erun(void); ///< Called everytime run number changes, if brun has been called
34  jerror_t fini(void); ///< Called after last event of last event source has been processed
35 
36  void Reset_Data(void);
37 };
38 
39 #endif // _DTAGMHit_factory_