Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DTOFDigiHit.h
Go to the documentation of this file.
1 // $Id$
2 //
3 // File: DTOFDigiHit.h
4 // Created: Wed Aug 7 09:30:38 EDT 2013
5 // Creator: davidl (on Darwin harriet.jlab.org 11.4.2 i386)
6 //
7 
8 #ifndef _DTOFDigiHit_
9 #define _DTOFDigiHit_
10 
11 #include <JANA/JObject.h>
12 #include <JANA/JFactory.h>
13 
14 class DTOFDigiHit:public jana::JObject{
15  public:
17 
18  int plane; // plane (0: vertical, 1: horizontal)
19  int bar; // bar number
20  int end; // left/right 0/1 or North/South 0/1
21  uint32_t pulse_integral; ///< identified pulse integral as returned by FPGA algorithm
22  uint32_t pulse_time; ///< identified pulse time as returned by FPGA algorithm
23  uint32_t pedestal; ///< pedestal info used by FPGA (if any)
24  uint32_t QF; ///< Quality Factor from FPGA algorithms
25  uint32_t nsamples_integral; ///< number of samples used in integral
26  uint32_t nsamples_pedestal; ///< number of samples used in pedestal
27  uint32_t pulse_peak; ///< maximum sample in pulse
28 
29  uint32_t datasource; ///< 0=window raw data, 1=old(pre-Fall16) firmware, 2=Df250PulseData
30 
31  // This method is used primarily for pretty printing
32  // the second argument to AddString is printf style format
33  void toStrings(vector<pair<string,string> > &items)const{
34  AddString(items, "bar", "%d", bar);
35  AddString(items, "plane", "%d", plane);
36  AddString(items, "end", "%d", end);
37  AddString(items, "pulse_integral", "%d", pulse_integral);
38  AddString(items, "pulse_peak", "%d", pulse_peak);
39  AddString(items, "pulse_time", "%d", pulse_time);
40  AddString(items, "pedestal", "%d", pedestal);
41  AddString(items, "QF", "%d", QF);
42  AddString(items, "nsamples_integral", "%d", nsamples_integral);
43  AddString(items, "nsamples_pedestal", "%d", nsamples_pedestal);
44  }
45 
46 };
47 
48 #endif // _DTOFDigiHit_
49 
uint32_t pedestal
pedestal info used by FPGA (if any)
Definition: DTOFDigiHit.h:23
JOBJECT_PUBLIC(DTOFDigiHit)
uint32_t nsamples_integral
number of samples used in integral
Definition: DTOFDigiHit.h:25
uint32_t nsamples_pedestal
number of samples used in pedestal
Definition: DTOFDigiHit.h:26
void toStrings(vector< pair< string, string > > &items) const
Definition: DTOFDigiHit.h:33
uint32_t pulse_time
identified pulse time as returned by FPGA algorithm
Definition: DTOFDigiHit.h:22
uint32_t pulse_peak
maximum sample in pulse
Definition: DTOFDigiHit.h:27
uint32_t QF
Quality Factor from FPGA algorithms.
Definition: DTOFDigiHit.h:24
uint32_t datasource
0=window raw data, 1=old(pre-Fall16) firmware, 2=Df250PulseData
Definition: DTOFDigiHit.h:29
uint32_t pulse_integral
identified pulse integral as returned by FPGA algorithm
Definition: DTOFDigiHit.h:21