// $Id$ // // File: DMuonDetectorTruthHit.h // Created: Fri May 10 11:00:38 EDT 2013 // Creator: davidl (on Linux ifarm1102 2.6.32-220.7.1.el6.x86_64 x86_64) // #ifndef _DMuonDetectorTruthHit_ #define _DMuonDetectorTruthHit_ #include #include class DMuonDetectorTruthHit:public jana::JObject{ public: JOBJECT_PUBLIC(DMuonDetectorTruthHit); float dE; int32_t layer; int32_t ptype; float px; float py; float pz; float t; int32_t track; float x; float y; float z; // This method is used primarily for pretty printing // the second argument to AddString is printf style format void toStrings(vector > &items)const{ AddString(items, "dE", "%f", dE); AddString(items, "layer", "%d", layer); AddString(items, "ptype", "%d", ptype); AddString(items, "px", "%3.3f", px); AddString(items, "py", "%3.3f", py); AddString(items, "pz", "%3.3f", pz); AddString(items, "t", "%3.3f", t); AddString(items, "track", "%d", track); AddString(items, "x", "%3.3f", x); AddString(items, "y", "%3.3f", y); AddString(items, "z", "%3.3f", z); } }; #endif // _DMuonDetectorTruthHit_