Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DPSCHit.h
Go to the documentation of this file.
1 // $Id$
2 //
3 // File: DPSCHit.h
4 // Created: Wed Oct 15 16:45:33 EDT 2014
5 // Creator: staylor (on Linux gluon05.jlab.org 2.6.32-358.18.1.el6.x86_64 x86_64)
6 //
7 
8 #ifndef _DPSCHit_
9 #define _DPSCHit_
10 
11 #include <JANA/JObject.h>
12 #include <JANA/JFactory.h>
13 #include "DPSGeometry.h"
14 
15 class DPSCHit:public jana::JObject{
16  public:
18 
19  DPSGeometry::Arm arm; // North(left): 0, South(right): 1
20  int module;
21  double t;
22  double integral;
23  double pulse_peak;
24  double time_tdc;
25  double time_fadc;
26  double npe_fadc;
28 
29  void toStrings(vector<pair<string,string> > &items)const{
30  AddString(items, "arm", "%d", arm);
31  AddString(items, "module", "%d", module);
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  }
41 };
42 
43 #endif // _DPSCHit_
44 
int module
Definition: DPSCHit.h:20
double pulse_peak
Definition: DPSCHit.h:23
double integral
Definition: DPSCHit.h:22
void toStrings(vector< pair< string, string > > &items) const
Definition: DPSCHit.h:29
DPSGeometry::Arm arm
Definition: DPSCHit.h:19
double t
Definition: DPSCHit.h:21
bool has_TDC
Definition: DPSCHit.h:27
bool has_fADC
Definition: DPSCHit.h:27
double npe_fadc
Definition: DPSCHit.h:26
double time_tdc
Definition: DPSCHit.h:24
JOBJECT_PUBLIC(DPSCHit)
double time_fadc
Definition: DPSCHit.h:25