Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DFMWPCTruthHit.h
Go to the documentation of this file.
1 // $Id$
2 //
3 // File: DFMWPCTruthHit.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 _DFMWPCTruthHit_
9 #define _DFMWPCTruthHit_
10 
11 #include <JANA/jerror.h>
12 
13 class DFMWPCTruthHit:public JObject{
14  public:
16 
17  int layer; // 1-8
18  int wire; // 1-144
19  float dE; // GeV
20  float dx; // cm
21  float t; // ns
22 
23  void toStrings(vector<pair<string, string> >&items) const {
24  AddString(items, "layer", "%d", layer);
25  AddString(items, "wire", "%d", wire);
26  AddString(items, "dE(keV)", "%3.1f", dE*1.0E6);
27  AddString(items, "dx", "%3.2f", dx);
28  AddString(items, "t", "%3.3f", t);
29  }
30 
31 };
32 
33 #endif // _DFMWPCTruthHit_
34 
void toStrings(vector< pair< string, string > > &items) const
JOBJECT_PUBLIC(DFMWPCTruthHit)