Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DFMWPCHit.h
Go to the documentation of this file.
1 // $Id$
2 //
3 // File: DFMWPCHit.h
4 // Created: Tue Jun 16 07:07:54 EDT 2015
5 // Creator: davidl (on Darwin harriet.jlab.org 13.4.0 i386)
6 //
7 
8 #ifndef _DFMWPCHit_
9 #define _DFMWPCHit_
10 
11 #include <JANA/jerror.h>
12 
13 class DFMWPCHit:public JObject{
14  public:
16 
17  int layer; // 1-8
18  int wire; // 1-144
19  float dE; // energy in GeV
20  float t; // time in ns
21 
22  void toStrings(vector<pair<string, string> >&items) const {
23  AddString(items, "layer", "%d", layer);
24  AddString(items, "wire", "%d", wire);
25  AddString(items, "dE(keV)", "%3.1f", dE*1.0E6);
26  AddString(items, "t", "%3.3f", t);
27  }
28 
29 };
30 
31 #endif // _DFMWPCHit_
32 
float dE
Definition: DFMWPCHit.h:19
float t
Definition: DFMWPCHit.h:20
void toStrings(vector< pair< string, string > > &items) const
Definition: DFMWPCHit.h:22
int layer
Definition: DFMWPCHit.h:17
int wire
Definition: DFMWPCHit.h:18
JOBJECT_PUBLIC(DFMWPCHit)