Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DDIRCLEDRef_factory.h
Go to the documentation of this file.
1 // $Id$
2 //
3 // File: DDIRCLEDRef_factory.h
4 //
5 
6 #ifndef _DDIRCLEDRef_factory_
7 #define _DDIRCLEDRef_factory_
8 
9 #include <vector>
10 #include <map>
11 #include <utility>
12 using namespace std;
13 
14 #include <JANA/JFactory.h>
15 #include "DDIRCLEDRef.h"
16 #include "TTAB/DTranslationTable.h"
17 #include "TTAB/DTTabUtilities.h"
18 #include <DAQ/Df250PulseData.h>
19 #include <DAQ/DCAEN1290TDCHit.h>
20 using namespace jana;
21 
22 
23 class DDIRCLEDRef_factory:public jana::JFactory<DDIRCLEDRef>{
24  public:
27 
28  // overall scale factors
29  double a_scale;
30  double t_scale;
33 
34  DDIRCLEDRef* FindMatch(double T);
35 
36  private:
37  jerror_t init(void);
38  jerror_t brun(jana::JEventLoop *eventLoop, int32_t runnumber);
39  jerror_t evnt(jana::JEventLoop *eventLoop, uint64_t eventnumber);
40  jerror_t erun(void);
41  jerror_t fini(void);
42 
43  double CalcWalkCorrIntegral(DDIRCLEDRef* hit);
44  double CalcWalkCorrAmplitude(DDIRCLEDRef* hit);
45  double CalcWalkCorrNEW(DDIRCLEDRef* hit);
46  double CalcWalkCorrNEWAMP(DDIRCLEDRef* hit);
47 
49 };
50 
51 #endif // _DDIRCLEDRef_factory_
52 
File: DDIRCLEDRef.h.
Definition: DDIRCLEDRef.h:12