Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DVertex.h
Go to the documentation of this file.
1 // $Id$
2 //
3 // File: DVertex.h
4 // Created: Tue Apr 6 17:01:54 EDT 2010
5 // Creator: davidl (on Darwin Amelia.local 9.8.0 i386)
6 //
7 
8 #ifndef _DVertex_
9 #define _DVertex_
10 
11 #include <map>
12 
13 #include <JANA/JObject.h>
14 
15 #include <DLorentzVector.h>
16 
17 #include "PID/DKinematicData.h"
19 
20 using namespace std;
21 using namespace jana;
22 
23 class DVertex: public jana::JObject
24 {
25  public:
26  JOBJECT_PUBLIC(DVertex);
27 
28  DLorentzVector dSpacetimeVertex; // vertex position in cm + vertex time in ns
29  TMatrixFSym dCovarianceMatrix; //xyzt order
30 
31  unsigned int dKinFitNDF;
32  double dKinFitChiSq;
33  map<const JObject*, map<DKinFitPullType, double> > dKinFitPulls;
34 
35  // Objects used to calculate this added as Associated Objects
36  void toStrings(vector<pair<string,string> > &items) const
37  {
38  AddString(items, "x", "%3.2f", dSpacetimeVertex.X());
39  AddString(items, "y", "%3.2f", dSpacetimeVertex.Y());
40  AddString(items, "z", "%3.2f", dSpacetimeVertex.Z());
41  AddString(items, "t", "%3.2f", dSpacetimeVertex.T());
42  }
43 };
44 
45 #endif // _DVertex_
46 
unsigned int dKinFitNDF
Definition: DVertex.h:31
TLorentzVector DLorentzVector
map< const JObject *, map< DKinFitPullType, double > > dKinFitPulls
Definition: DVertex.h:33
DLorentzVector dSpacetimeVertex
Definition: DVertex.h:28
TMatrixFSym dCovarianceMatrix
Definition: DVertex.h:29
double dKinFitChiSq
Definition: DVertex.h:32
void toStrings(vector< pair< string, string > > &items) const
Definition: DVertex.h:36