Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DCCALHit_factory.h
Go to the documentation of this file.
1 /*
2  * File: DCCALHit_factory.h
3  *
4  * Created on 11/25/18 by A.S.
5  */
6 
7 
8 #ifndef _DCCALHit_factory_
9 #define _DCCALHit_factory_
10 
11 #include <vector>
12 using namespace std;
13 
14 #include <JANA/JFactory.h>
15 #include "TTAB/DTranslationTable.h"
16 
17 #include "DCCALDigiHit.h"
18 #include "DCCALHit.h"
19 
20 typedef vector< vector<double> > ccal_constants_t;
21 
22 class DCCALHit_factory:public jana::JFactory<DCCALHit>{
23  public:
26 
27  ccal_constants_t gains;
31 
32  double adc_en_scale;
34 
35  double base_time;
36 
37  private:
38  jerror_t init(void); ///< Called once at program start.2
39  jerror_t brun(jana::JEventLoop *eventLoop, int32_t runnumber); ///< Called everytime a new run number is detected.
40  jerror_t evnt(jana::JEventLoop *eventLoop, uint64_t eventnumber); ///< Called every event.
41  jerror_t erun(void); ///< Called everytime run number changes, provided brun has been called.
42  jerror_t fini(void); ///< Called after last event of last event source has been processed.
43 
44  void LoadCCALConst( ccal_constants_t &table,
45  const vector<double> &ccal_const_ch,
46  const DCCALGeometry &ccalGeom);
47 
48 
49  unsigned int DB_PEDESTAL;
50  unsigned int HIT_DEBUG;
51 
52 };
53 
54 #endif // _DCCALHit_factory_
55 
ccal_constants_t adc_offsets
unsigned int HIT_DEBUG
ccal_constants_t pedestals
vector< vector< double > > ccal_constants_t
unsigned int DB_PEDESTAL
ccal_constants_t time_offsets