Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DDIRCTruthBarHit.h
Go to the documentation of this file.
1 // -----------------------------------------
2 // DDIRCTruthBarHit.h
3 // created on: 05.04.2017
4 // initial athor: r.dzhygadlo at gsi.de
5 // -----------------------------------------
6 
7 #ifndef DDIRCTRUTHBARHIT_H_
8 #define DDIRCTRUTHBARHIT_H_
9 
10 #include <JANA/JObject.h>
11 #include <JANA/JFactory.h>
12 using namespace jana;
13 
14 class DDIRCTruthBarHit: public JObject {
15 
16 public:
17  JOBJECT_PUBLIC (DDIRCTruthBarHit);
18 
19  float x, y, z; // coordinate where ch. track hits the radiator
20  float px, py, pz; // components of the track momentum
21  float t; // time
22  float E; // energy
23 
24  int pdg; // PDG of the particle
25  int bar; // index of the bar
26  int track; // index of the MC track
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, "px", "%1.3f", px);
33  AddString(items, "py", "%1.3f", py);
34  AddString(items, "pz", "%1.3f", pz);
35  AddString(items, "t", "%1.3f", t);
36  AddString(items, "E", "%1.3f", E);
37  AddString(items, "pdg", "%d", pdg);
38  AddString(items, "bar", "%d", bar);
39  AddString(items, "track", "%d", track);
40  }
41 };
42 
43 #endif /* DDIRCTRUTHBARHIT_H_ */
Definition: track.h:16
Double_t x[NCHANNELS]
Definition: st_tw_resols.C:39
void toStrings(vector< pair< string, string > > &items) const
#define y
TH1D * py[NCHANNELS]