// $Id$ // // File: DPaddleHit.h // Created: Thu Dec 8 08:05:34 EST 2011 // Creator: davidl (on Linux ifarm1102 2.6.18-128.7.1.el5 x86_64) // #ifndef _DPaddleHit_ #define _DPaddleHit_ #include #include class DPaddleHit:public jana::JObject{ public: JOBJECT_PUBLIC(DPaddleHit); int orientation; // 0=horizontal, 1=vertical int chid; // 0-4 double sum; double ped; // This method is used primarily for pretty printing // the second argument to AddString is printf style format void toStrings(vector > &items)const{ AddString(items, "orientation", "%d", orientation); AddString(items, "chid", "%d", chid); AddString(items, "sum", "%5.1f", sum); AddString(items, "ped", "%5.1f", ped); } }; #endif // _DPaddleHit_