Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DSCHit.h
Go to the documentation of this file.
1 // $Id$
2 //
3 // File: DSCHit.h
4 // Created: Wed Feb 7 10:46:20 EST 2007
5 // Creator: davidl (on Linux megrez.jlab.org 2.6.9-42.0.2.ELsmp x86_64)
6 //
7 
8 #ifndef _DSCHit_
9 #define _DSCHit_
10 
11 #include <JANA/JObject.h>
12 #include <JANA/JFactory.h>
13 
14 class DSCHit:public jana::JObject{
15  public:
17 
18  int sector; // sector number 1-30
19  float dE; // Energy loss in GeV
20  float t; // best time (walk-corrected tdc)
21  float t_TDC; // time from TDC, no walk correction
22  float t_fADC; // time from fADC
23  float pulse_height; // amplitude of pulse (used in time-walk corrections)
24  bool has_fADC;
25  bool has_TDC;
26 
27  void toStrings(vector<pair<string,string> > &items)const{
28  AddString(items, "sector", "%d", sector);
29  AddString(items, "dE", "%3.3f", dE);
30  AddString(items, "t", "%3.3f", t);
31  AddString(items, "t_TDC","%3.3f", t_TDC);
32  AddString(items, "t_fADC", "%3.3f", t_fADC);
33  AddString(items, "has_fADC", "%d", (int)has_fADC);
34  AddString(items, "has_TDC", "%d", (int)has_TDC);
35  }
36 };
37 
38 #endif // _DSCHit_
39 
float pulse_height
Definition: DSCHit.h:23
bool has_TDC
Definition: DSCHit.h:25
int sector
Definition: DSCHit.h:18
Definition: DSCHit.h:14
float t_fADC
Definition: DSCHit.h:22
float t_TDC
Definition: DSCHit.h:21
void toStrings(vector< pair< string, string > > &items) const
Definition: DSCHit.h:27
float dE
Definition: DSCHit.h:19
bool has_fADC
Definition: DSCHit.h:24
float t
Definition: DSCHit.h:20
JOBJECT_PUBLIC(DSCHit)