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