Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DFCALHit.h
Go to the documentation of this file.
1 // $Id$
2 //
3 // File: DFCALHit.h
4 // Created: Thu Jun 9 10:29:52 EDT 2005
5 // Creator: davidl (on Darwin wire129.jlab.org 7.8.0 powerpc)
6 //
7 
8 #ifndef _DFCALHit_
9 #define _DFCALHit_
10 
11 #include <JANA/JObject.h>
12 #include <JANA/JFactory.h>
13 using namespace jana;
14 
15 class DFCALHit:public JObject{
16 
17 public:
18 
19  JOBJECT_PUBLIC(DFCALHit);
20 
22 
23  int row;
24  int column;
25  float x;
26  float y;
27  float E;
28  float t;
29  float intOverPeak;
30 
31  void toStrings(vector<pair<string,string> > &items) const {
32  AddString(items, "row", "%4d", row);
33  AddString(items, "column", "%4d", column);
34  AddString(items, "x(cm)", "%3.1f", x);
35  AddString(items, "y(cm)", "%3.1f", y);
36  AddString(items, "E(MeV)", "%2.3f", E*1000.0);
37  AddString(items, "t(ns)", "%2.3f", t);
38  AddString(items, "integral over peak", "%2.3f", intOverPeak);
39  }
40 };
41 
42 #endif // _DFCALHit_
43 
Double_t x[NCHANNELS]
Definition: st_tw_resols.C:39
#define y
int row
Definition: DFCALHit.h:23
void toStrings(vector< pair< string, string > > &items) const
Definition: DFCALHit.h:31
float y
Definition: DFCALHit.h:26
float x
Definition: DFCALHit.h:25
float E
Definition: DFCALHit.h:27
float t
Definition: DFCALHit.h:28
int column
Definition: DFCALHit.h:24
DFCALHit()
Definition: DFCALHit.h:21
float intOverPeak
Definition: DFCALHit.h:29