Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DBCALIncidentParticle.h
Go to the documentation of this file.
1 // $Id: DBCALIncidentParticle.h 9441 2012-08-06 21:56:11Z davidl $
2 //
3 // File: DBCALIncidentParticle.h
4 // Created: Thu Jun 9 10:14:35 EDT 2005
5 // Creator: davidl (on Darwin wire129.jlab.org 7.8.0 powerpc)
6 //
7 
8 #ifndef _DBCALIncidentParticle_
9 #define _DBCALIncidentParticle_
10 
11 #include "BCAL/DBCALGeometry.h"
12 
13 #include <JANA/JObject.h>
14 #include <JANA/JFactory.h>
15 using namespace jana;
16 
17 class DBCALIncidentParticle:public JObject{
18 
19  /// This class holds data originating from the fADC250
20  /// modules connected to the BCAL
21 
22  public:
23  JOBJECT_PUBLIC(DBCALIncidentParticle);
24 
25  int ptype;
26  float px;
27  float py;
28  float pz;
29  float x;
30  float y;
31  float z;
32 
33  void toStrings(vector<pair<string,string> > &items)const{
34  AddString(items, "ptype", "%d", ptype);
35  AddString(items, "px[GeV]", "%7.5f", px);
36  AddString(items, "py[GeV]", "%7.5f", py);
37  AddString(items, "pz[GeV]", "%7.5f", pz);
38  AddString(items, "x[GeV]", "%7.5f", x);
39  AddString(items, "y[GeV]", "%7.5f", y);
40  AddString(items, "z[GeV]", "%7.5f", z);
41  }
42 };
43 
44 #endif // _DBCALIncidentParticle_
45 
Double_t x[NCHANNELS]
Definition: st_tw_resols.C:39
#define y
void toStrings(vector< pair< string, string > > &items) const
TH1D * py[NCHANNELS]