JTest.h

Go to the documentation of this file.
00001 // $Id$
00002 //
00003 //    File: JTest.h
00004 // Created: Wed Aug  8 20:52:23 EDT 2007
00005 // Creator: davidl (on Darwin Amelia.local 8.10.1 i386)
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 

Generated on Wed Jun 10 22:31:32 2009 for JANA (JLab ANAlysis) by  doxygen 1.5.1