Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DTOFPaddleHit_factory.h
Go to the documentation of this file.
1 // $Id$
2 //
3 /// File: DTOFPaddleHit_factory.h
4 /// Created: Thu Jun 9 10:05:21 EDT 2005
5 /// Creator: davidl (on Darwin wire129.jlab.org 7.8.0 powerpc)
6 ///
7 /// Addition: command line parmeter -PTOF:TOF_POINT_TAG=TRUTH will initiate
8 /// the use of TOFHitRaw::TRUTH information to calculate the TOFHit positions
9 /// (e.q. use of unsmeared data)
10 
11 
12 #ifndef _DTOFPaddleHit_factory_
13 #define _DTOFPaddleHit_factory_
14 
15 #include "JANA/JFactory.h"
16 #include "JANA/JApplication.h"
17 #include "JANA/JParameterManager.h"
18 #include "JANA/JEventLoop.h"
19 #include "DTOFPaddleHit.h"
20 #include "DTOFGeometry.h"
21 #include "TMath.h"
22 using namespace jana;
23 
24 /// \htmlonly
25 /// <A href="index.html#legend">
26 /// <IMG src="CORE.png" width="100">
27 /// </A>
28 /// \endhtmlonly
29 
30 /// 2-ended TOF coincidences. The individual hits come from DTOFHit objects and
31 /// the 2 planes are combined into single hits in the DTOFPoint objects. This is the
32 /// intermediate set of objects between the two.
33 
34 class DTOFPaddleHit_factory:public JFactory<DTOFPaddleHit>{
35  public:
36  DTOFPaddleHit_factory(){TOF_POINT_TAG="";gPARMS->SetDefaultParameter("TOF:TOF_POINT_TAG", TOF_POINT_TAG,"");};
38 
39  string TOF_POINT_TAG;
40  double C_EFFECTIVE;
41  double HALFPADDLE;
42  double E_THRESHOLD;
43  double ATTEN_LENGTH;
46 
49 
50  vector<double> propagation_speed;
51 
52  vector < vector <float> > AttenuationLengths;
53 
54  vector <const DTOFGeometry*> TOFGeom;
55 
56  protected:
57  //jerror_t init(void); ///< Called once at program start.
58  jerror_t brun(JEventLoop *eventLoop, int32_t runnumber); ///< Called everytime a new run number is detected.
59  jerror_t evnt(JEventLoop *eventLoop, uint64_t eventnumber); ///< Called every event.
60  //jerror_t erun(void); ///< Called everytime run number changes, provided brun has been called.
61  //jerror_t fini(void); ///< Called after last event of last event source has been processed.
62 };
63 
64 #endif // _DTOFPaddleHit_factory_
65 
&lt;A href=&quot;index.html#legend&quot;&gt; &lt;IMG src=&quot;CORE.png&quot; width=&quot;100&quot;&gt; &lt;/A&gt;
vector< double > propagation_speed
vector< vector< float > > AttenuationLengths
vector< const DTOFGeometry * > TOFGeom