Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DPSHit.h
Go to the documentation of this file.
1 // $Id$
2 //
3 // File: DPSHit.h
4 // Created: Wed Oct 15 16:45:01 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 _DPSHit_
9 #define _DPSHit_
10 
11 #include <JANA/JObject.h>
12 #include <JANA/JFactory.h>
13 #include "DPSGeometry.h"
14 
15 class DPSHit:public jana::JObject{
16  public:
18 
19  DPSGeometry::Arm arm; // North(left): 0, South(right): 1
20  int column;
21  double E;
22  double t;
23  double integral;
24  double pulse_peak;
25  double npix_fadc;
26 
27  void toStrings(vector<pair<string,string> > &items)const{
28  AddString(items, "arm", "%d", arm);
29  AddString(items, "column", "%d", column);
30  AddString(items, "E(GeV)", "%f", E);
31  AddString(items, "t(ns)", "%f", t);
32  AddString(items, "integral", "%f", integral);
33  AddString(items, "pulse_peak", "%f", pulse_peak);
34  AddString(items, "npix_fadc", "%f", npix_fadc);
35  }
36 };
37 
38 #endif // _DPSHit_
39 
double integral
Definition: DPSHit.h:23
Definition: DPSHit.h:15
double npix_fadc
Definition: DPSHit.h:25
double E
Definition: DPSHit.h:21
JOBJECT_PUBLIC(DPSHit)
void toStrings(vector< pair< string, string > > &items) const
Definition: DPSHit.h:27
double pulse_peak
Definition: DPSHit.h:24
double t
Definition: DPSHit.h:22
DPSGeometry::Arm arm
Definition: DPSHit.h:19
int column
Definition: DPSHit.h:20