Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DRFTime.h
Go to the documentation of this file.
1 // $Id$
2 //
3 // File: DRFTime.h
4 // Created: Tue Aug 9 14:29:24 EST 2011
5 // Creator: pmatt (on Linux ifarml6 2.6.18-128.el5 x86_64)
6 //
7 
8 #ifndef _DRFTime_
9 #define _DRFTime_
10 
11 #include <vector>
12 #include <utility>
13 #include <string>
14 
15 #include "JANA/JObject.h"
16 
17 using namespace std;
18 
19 class DRFTime : public jana::JObject
20 {
21  public:
22  JOBJECT_PUBLIC(DRFTime);
23 
24  double dTime; //This time is defined at the center of the target.
25  double dTimeVariance;
26 
27  void toStrings(vector<pair<string,string> > &items) const
28  {
29  AddString(items, "t", "%3.5f", dTime);
30  AddString(items, "var_t", "%3.2f", dTimeVariance);
31  }
32 };
33 
34 #endif // _DRFTime_
35 
double dTimeVariance
Definition: DRFTime.h:25
double dTime
Definition: DRFTime.h:24
void toStrings(vector< pair< string, string > > &items) const
Definition: DRFTime.h:27