Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DTOFPaddleHit.h
Go to the documentation of this file.
1 // $Id$
2 //
3 // File: DTOFPaddleHit.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 
8 #ifndef _DTOFPaddleHit_
9 #define _DTOFPaddleHit_
10 
11 #include <JANA/JObject.h>
12 #include <JANA/JFactory.h>
13 using namespace jana;
14 
15 class DTOFPaddleHit:public JObject{
16  public:
17  JOBJECT_PUBLIC(DTOFPaddleHit);
18 
19  int orientation; // 0: vertical, 1: horizontal
20  int bar; // bar number
21  float t_north; // time of light at end of bar (calibrated)
22  float E_north; // attenuated energy deposition (calibrated)
23  float t_south; // time of light at end of bar (calibrated)
24  float E_south; // attenuated energy deposition (calibrated)
25 
26  float meantime; // equivalent to time of flight
27  float timediff; // north - south time difference
28  float pos; // hit position in paddle
29  float dpos; // estimated uncertainty in hitposition
30  float dE; // weighted energy deposition
31 
32  void toStrings(vector<pair<string,string> > &items)const{
33  AddString(items, "orientation", "%d", orientation);
34  AddString(items, "bar", "%d", bar);
35  AddString(items, "t_north", "%1.3f", t_north);
36  AddString(items, "E_north", "%1.3f", E_north);
37  AddString(items, "t_south", "%1.3f", t_south);
38  AddString(items, "E_south", "%1.3f", E_south);
39  AddString(items, "meantime", "%1.3f", meantime);
40  AddString(items, "timediff", "%1.3f", timediff);
41  AddString(items, "pos", "%1.3f", pos);
42  AddString(items, "dpos", "%1.3f", dpos);
43  AddString(items, "dE", "%1.3f", dE);
44  }
45 };
46 
47 #endif // _DTOFPaddleHit_
48 
void toStrings(vector< pair< string, string > > &items) const
Definition: DTOFPaddleHit.h:32