Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DMCTrajectoryPoint.h
Go to the documentation of this file.
1 // $Id$
2 //
3 // File: DMCTrajectoryPoint.h
4 // Created: Mon Jun 12 09:29:58 EDT 2006
5 // Creator: davidl (on Darwin swire-b241.jlab.org 8.6.0 powerpc)
6 //
7 
8 #ifndef _DMCTrajectoryPoint_
9 #define _DMCTrajectoryPoint_
10 
11 #include "JANA/JObject.h"
12 #include "JANA/JFactory.h"
13 
14 class DMCTrajectoryPoint:public jana::JObject{
15  public:
17 
18  float x,y,z,t;
19  float px,py,pz;
20  float E, dE;
22  int track;
23  int part;
24  float radlen;
25  float step;
26  int mech;
27 
28  void toStrings(vector<pair<string,string> > &items)const{
29  AddString(items, "x", "%1.3f", x);
30  AddString(items, "y", "%1.3f", y);
31  AddString(items, "z", "%1.3f", z);
32  AddString(items, "t", "%1.3f", t/1.0E-9);
33  AddString(items, "px", "%1.3f", px);
34  AddString(items, "py", "%1.3f", py);
35  AddString(items, "pz", "%1.3f", pz);
36  AddString(items, "E", "%1.3f", E);
37  AddString(items, "dE(MeV)", "%1.3f", 1000.0*dE);
38  AddString(items, "primary", "%d", primary_track);
39  AddString(items, "track", "%d", track);
40  AddString(items, "part", "%d", part);
41  AddString(items, "radlen", "%1.3f", radlen);
42  AddString(items, "step", "%1.3f", step);
43  AddString(items, "mech", "%d", mech);
44  }
45 };
46 
47 #endif // _DMCTrajectoryPoint_
48 
Definition: track.h:16
void toStrings(vector< pair< string, string > > &items) const
JOBJECT_PUBLIC(DMCTrajectoryPoint)