Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DNeutralShower_factory_PreSelect.h
Go to the documentation of this file.
1 // $Id$
2 //
3 // File: DNeutralShower_factory_PreSelect.h
4 // Created: Tue Aug 9 14:29:24 EST 2011
5 // Creator: pmatt (on Linux ifarml6 2.6.18-128.el5 x86_64)
6 //
7 
8 #ifndef _DNeutralShower_factory_PreSelect_
9 #define _DNeutralShower_factory_PreSelect_
10 
11 #include <iostream>
12 #include <iomanip>
13 
14 #include <JANA/JFactory.h>
15 #include <PID/DNeutralShower.h>
16 #include <BCAL/DBCALShower.h>
17 
18 using namespace std;
19 using namespace jana;
20 
21 class DNeutralShower_factory_PreSelect : public jana::JFactory<DNeutralShower>
22 {
23  public:
26  const char* Tag(void){return "PreSelect";}
27 
28  private:
29  jerror_t init(void); ///< Called once at program start.
30  jerror_t brun(jana::JEventLoop *locEventLoop, int32_t runnumber); ///< Called everytime a new run number is detected.
31  jerror_t evnt(jana::JEventLoop *locEventLoop, uint64_t eventnumber); ///< Called every event.
32  jerror_t erun(void); ///< Called everytime run number changes, provided brun has been called.
33  jerror_t fini(void); ///< Called after last event of last event source has been processed.
34 
35  //Command-line values will override these
36  double dMinFCALE; //PRESELECT:MIN_FCAL_E
37  double dMinBCALE; //PRESELECT:MIN_BCAL_E
38  double dMinBCALNcell; //PRESELECT:MIN_BCAL_NCELL
39 };
40 
41 #endif // _DNeutralShower_factory_PreSelect_
42