// $Id$ // // File: DVertex.h // Created: Tue Apr 6 17:01:54 EDT 2010 // Creator: davidl (on Darwin Amelia.local 9.8.0 i386) // #ifndef _DVertex_ #define _DVertex_ #include #include #include class DVertex:public jana::JObject{ public: JOBJECT_PUBLIC(DVertex); DVector3 x; // vertex position in cm DMatrix cov; // covariance matrix bool beamline_used; // Objects used to calculate this added as Associated Objects void toStrings(vector > &items)const{ vector trks; Get(trks); AddString(items, "x", "%3.2f", x.X()); AddString(items, "y", "%3.2f", x.Y()); AddString(items, "z", "%3.2f", x.Z()); AddString(items, "beamline_used", "%d", beamline_used); AddString(items, "Ntracks", "%d", trks.size()); } }; #endif // _DVertex_