Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DTAGHHit.h
Go to the documentation of this file.
1 // $Id$
2 //
3 // File: DTAGHHit.h
4 // Created: Sat Jul 5 07:49:15 EDT 2014
5 // Creator: jonesrt (on gluey.phys.uconn.edu)
6 //
7 
8 #ifndef _DTAGHhit_
9 #define _DTAGHhit_
10 
11 #include <JANA/JObject.h>
12 #include <JANA/JFactory.h>
13 
14 class DTAGHHit:public jana::JObject{
15  public:
17 
18  double E;
19  double t;
21  double integral;
22  double pulse_peak;
23  double time_tdc;
24  double time_fadc;
25  double npe_fadc;
27  int bg = -1; //if MC, 0 for the photon that generated the event, nonzero otherwise //ignore if not MC
28 
29  void toStrings(vector<pair<string,string> > &items)const{
30  AddString(items, "counter_id", "%d", counter_id);
31  AddString(items, "E(GeV)", "%f", E);
32  AddString(items, "t(ns)", "%f", t);
33  AddString(items, "time_tdc(ns)", "%f", time_tdc);
34  AddString(items, "time_fadc(ns)", "%f", time_fadc);
35  AddString(items, "integral", "%f", integral);
36  AddString(items, "pulse_peak", "%f", pulse_peak);
37  AddString(items, "npe_fadc", "%f", npe_fadc);
38  AddString(items, "has_fADC", "%d", (int)has_fADC);
39  AddString(items, "has_TDC", "%d", (int)has_TDC);
40  AddString(items, "is_double", "%d", (int)is_double);
41  AddString(items, "bg", "%d", bg);
42  }
43 };
44 
45 #endif // _DTAGHHit_
double t
Definition: DTAGHHit.h:19
double E
Definition: DTAGHHit.h:18
double npe_fadc
Definition: DTAGHHit.h:25
void toStrings(vector< pair< string, string > > &items) const
Definition: DTAGHHit.h:29
int bg
Definition: DTAGHHit.h:27
bool is_double
Definition: DTAGHHit.h:26
bool has_TDC
Definition: DTAGHHit.h:26
int counter_id
Definition: DTAGHHit.h:20
double time_tdc
Definition: DTAGHHit.h:23
JOBJECT_PUBLIC(DTAGHHit)
bool has_fADC
Definition: DTAGHHit.h:26
double time_fadc
Definition: DTAGHHit.h:24
double integral
Definition: DTAGHHit.h:21
double pulse_peak
Definition: DTAGHHit.h:22