Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DTOFHit.h
Go to the documentation of this file.
1 // $Id: DTOFHit.h Tue Jan 18 16:15:26 EST 2011
2 //
3 /// File: DTOFHit.h
4 /// Created: Tue Jan 18 16:15:26 EST 2011
5 /// Creator: B. Zihlmann
6 /// Purpose: Container class to hold Monte Carlo data, unsmeared and
7 /// smeared with the MC tag.
8 //
9 
10 #ifndef _DTOFHit_
11 #define _DTOFHit_
12 
13 #include "JANA/JObject.h"
14 #include "JANA/JFactory.h"
15 
16 class DTOFHit:public jana::JObject{
17 
18  public:
20 
21  int plane; // plane (0: vertical, 1: horizontal)
22  int bar; // bar number
23  int end; // left/right 0/1 or North/South 0/1
24  float dE; // attenuated energy deposition
25  float Amp; // Signal max Amplitude, ADC counts
26  float t_fADC; // time from adc
27  float t_TDC; // time from tdc
28  float t; // walk corrected time
29  bool has_fADC;
30  bool has_TDC;
31 
32  void toStrings(vector<pair<string,string> > &items)const{
33  AddString(items, "bar", "%d", bar);
34  AddString(items, "plane", "%d", plane);
35  AddString(items, "end", "%d", end);
36  AddString(items, "dE", "%12.4f", dE);
37  AddString(items, "Amp", "%12.4f", Amp);
38  AddString(items, "t", "%12.4f", t);
39  AddString(items, "t_TDC","%12.4f",t_TDC);
40  AddString(items, "t_fADC","%12.4f",t_fADC);
41  }
42 };
43 
44 #endif // _DTOFHit_
45 
int end
Definition: DTOFHit.h:23
int plane
Definition: DTOFHit.h:21
bool has_fADC
Definition: DTOFHit.h:29
float t
Definition: DTOFHit.h:28
float t_TDC
Definition: DTOFHit.h:27
float Amp
Definition: DTOFHit.h:25
bool has_TDC
Definition: DTOFHit.h:30
float t_fADC
Definition: DTOFHit.h:26
void toStrings(vector< pair< string, string > > &items) const
Definition: DTOFHit.h:32
JOBJECT_PUBLIC(DTOFHit)
int bar
Definition: DTOFHit.h:22
File: DTOFHit.h Created: Tue Jan 18 16:15:26 EST 2011 Creator: B. Zihlmann Purpose: Container class t...
Definition: DTOFHit.h:16
float dE
Definition: DTOFHit.h:24