00001
00002
00003
00004
00005
00006
00007
00008 #ifndef _JTest_
00009 #define _JTest_
00010
00011 #include <JANA/JObject.h>
00012 #include <JANA/JFactory.h>
00013 using namespace jana;
00014
00015 class JTest:public JObject{
00016 public:
00017 JOBJECT_PUBLIC(JTest);
00018
00019 double x;
00020 double y;
00021 double z;
00022
00023 void toStrings(vector<pair<string,string> > &items)const{
00024 AddString(items, "x", "%3.2f", x);
00025 AddString(items, "y", "%3.2f", y);
00026 AddString(items, "z", "%3.2f", z);
00027 }
00028 };
00029
00030 #endif // _JTest_
00031