// $Id$ // // File: D250WindowSum.h // Created: Tue Nov 29 08:28:36 EST 2011 // Creator: davidl (on Linux ifarm1102 2.6.18-128.7.1.el5 x86_64) // #ifndef _D250WindowSum_ #define _D250WindowSum_ #include #include class D250WindowSum:public jana::JObject{ public: JOBJECT_PUBLIC(D250WindowSum); uint32_t chan; bool overflow; uint32_t sum; // This method is used primarily for pretty printing // the second argument to AddString is printf style format void toStrings(vector > &items)const{ AddString(items, "chan", "%d", chan); AddString(items, "overflow", "%d", overflow ? 1:0); AddString(items, "sum", "%d", sum); } }; #endif // _D250WindowSum_