Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DTAGHHit_factory.h
Go to the documentation of this file.
1 // $Id$
2 //
3 // File: DTAGHHit_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 _DTAGHHit_factory_
9 #define _DTAGHHit_factory_
10 
11 #include <JANA/JFactory.h>
12 #include "DTAGHHit.h"
13 
14 class DTAGHHit_factory: public jana::JFactory<DTAGHHit> {
15  public:
18 
19  private:
20  // config. parameters
21  bool MERGE_DOUBLES;
26 
28  bool IsDoubleHit(double tdiff);
29 
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 
37 #endif // _DTAGHHit_factory_
jerror_t fini(void)
Called after last event of last event source has been processed.
bool IsDoubleHit(double tdiff)
jerror_t erun(void)
Called everytime run number changes, if brun has been called.
jerror_t evnt(jana::JEventLoop *eventLoop, uint64_t eventnumber)
Called every event.
jerror_t brun(jana::JEventLoop *eventLoop, int32_t runnumber)
Called everytime a new run number is detected.
jerror_t init(void)
Called once at program start.