Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DNeutralShower_factory.h
Go to the documentation of this file.
1 // $Id$
2 //
3 // File: DNeutralShower_factory.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_
9 #define _DNeutralShower_factory_
10 
11 #include <iostream>
12 #include <iomanip>
13 
14 #include <JANA/JFactory.h>
15 #include <PID/DNeutralShower.h>
16 #include <PID/DChargedTrack.h>
18 #include <FCAL/DFCALShower.h>
19 #include <BCAL/DBCALShower.h>
20 #include "DResourcePool.h"
21 #include "DVector3.h"
22 
24 
25 using namespace std;
26 using namespace jana;
27 
28 class DNeutralShower_factory:public jana::JFactory<DNeutralShower>
29 {
30  public:
32  ~DNeutralShower_factory(){ delete dFCALClassifier; }
33 
34  private:
35  jerror_t init(void); ///< Called once at program start.
36  jerror_t brun(jana::JEventLoop *locEventLoop, int32_t runnumber); ///< Called everytime a new run number is detected.
37  jerror_t evnt(jana::JEventLoop *locEventLoop, uint64_t eventnumber); ///< Called every event.
38  jerror_t erun(void); ///< Called everytime run number changes, provided brun has been called.
39  jerror_t fini(void); ///< Called after last event of last event source has been processed.
40 
41  shared_ptr<DResourcePool<TMatrixFSym>> dResourcePool_TMatrixFSym;
43 
44  const char* inputVars[8] = { "nHits", "e9e25Sh", "e1e9Sh", "sumUSh", "sumVSh", "asymUVSh", "speedSh", "dtTrSh" };
46 
47  double getFCALQuality( const DFCALShower* fcalShower, double rfTime ) const;
48 };
49 
50 #endif // _DNeutralShower_factory_
51 
TVector3 DVector3
Definition: DVector3.h:14
DNeutralShower_FCALQualityMLP * dFCALClassifier
shared_ptr< DResourcePool< TMatrixFSym > > dResourcePool_TMatrixFSym