Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DCCALHit.h
Go to the documentation of this file.
1 /*
2  * File: DCCALHit.h
3  *
4  * Created on 11/25/18 by A.S.
5  */
6 
7 
8 #ifndef _DCCALHit_
9 #define _DCCALHit_
10 
11 #include <JANA/jerror.h>
12 #include <JANA/JFactory.h>
13 using namespace jana;
14 
15 class DCCALHit:public jana::JObject{
16  public:
17 
18  JOBJECT_PUBLIC(DCCALHit);
19 
21 
22  int row;
23  int column;
24  float x;
25  float y;
26  float E;
27  float t;
28  float intOverPeak;
29 
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);
37  AddString(items, "t(ns)", "%2.3f", t);
38  AddString(items, "integral over peak", "%2.3f", intOverPeak);
39  }
40 };
41 
42 #endif // _DCCALHit_
43 
float t
Definition: DCCALHit.h:27
float x
Definition: DCCALHit.h:24
int row
Definition: DCCALHit.h:22
int column
Definition: DCCALHit.h:23
Double_t x[NCHANNELS]
Definition: st_tw_resols.C:39
#define y
void toStrings(vector< pair< string, string > > &items) const
Definition: DCCALHit.h:31
DCCALHit()
Definition: DCCALHit.h:20
float E
Definition: DCCALHit.h:26
float y
Definition: DCCALHit.h:25
float intOverPeak
Definition: DCCALHit.h:28