Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DBCALDigiHit.h
Go to the documentation of this file.
1 // $Id$
2 //
3 // File: DBCALDigiHit.h
4 // Created: Tue Aug 6 09:14:41 EDT 2013
5 // Creator: davidl (on Darwin harriet.jlab.org 11.4.2 i386)
6 //
7 
8 #ifndef _DBCALDigiHit_
9 #define _DBCALDigiHit_
10 
11 #include <BCAL/DBCALGeometry.h>
12 
13 #include <JANA/JObject.h>
14 using namespace jana;
15 
16 class DBCALDigiHit:public JObject{
17 
18  /// This class holds a single hit from a BCAL fADC250 module.
19  /// The values are in the digitized form coming from the module
20  /// and are therefore uncalibrated.
21 
22  public:
23  JOBJECT_PUBLIC(DBCALDigiHit);
24 
25  int module;
26  int layer;
27  int sector;
29  uint32_t pulse_integral; ///< identified pulse integral as returned by FPGA algorithm
30  uint32_t pulse_peak; ///< identified pulse height as returned by FPGA algorithm
31  uint32_t pulse_time; ///< identified pulse time as returned by FPGA algorithm
32  uint32_t pedestal; ///< pedestal info used by FPGA (if any)
33  uint32_t QF; ///< Quality Factor from FPGA algorithms
34  uint32_t nsamples_integral; ///< number of samples used in integral
35  uint32_t nsamples_pedestal; ///< number of samples used in pedestal
36 
37  uint32_t datasource; ///< 0=window raw data, 1=old(pre-Fall16) firmware, 2=Df250PulseData, 3=MC
38 
39  void toStrings(vector<pair<string,string> > &items)const{
40  AddString(items, "module", "%d", module);
41  AddString(items, "layer", "%d", layer);
42  AddString(items, "sector", "%d", sector);
43  AddString(items, "end", "%s", end==0 ? "upstream":"downstream" );
44  AddString(items, "pulse_integral", "%d", pulse_integral);
45  AddString(items, "pulse_peak", "%d", pulse_peak);
46  AddString(items, "pulse_time", "%d", pulse_time);
47  AddString(items, "pedestal", "%d", pedestal);
48  AddString(items, "QF", "%d", QF);
49  AddString(items, "nsamples_integral", "%d", nsamples_integral);
50  AddString(items, "nsamples_pedestal", "%d", nsamples_pedestal);
51  }
52 
53 };
54 
55 #endif // _DBCALDigiHit_
56 
Int_t layer
uint32_t nsamples_integral
number of samples used in integral
Definition: DBCALDigiHit.h:34
DBCALGeometry::End end
Definition: DBCALDigiHit.h:28
uint32_t datasource
0=window raw data, 1=old(pre-Fall16) firmware, 2=Df250PulseData, 3=MC
Definition: DBCALDigiHit.h:37
uint32_t pulse_peak
identified pulse height as returned by FPGA algorithm
Definition: DBCALDigiHit.h:30
uint32_t pulse_integral
identified pulse integral as returned by FPGA algorithm
Definition: DBCALDigiHit.h:29
uint32_t nsamples_pedestal
number of samples used in pedestal
Definition: DBCALDigiHit.h:35
uint32_t QF
Quality Factor from FPGA algorithms.
Definition: DBCALDigiHit.h:33
uint32_t pedestal
pedestal info used by FPGA (if any)
Definition: DBCALDigiHit.h:32
static TH1I * pedestal[nChan]
uint32_t pulse_time
identified pulse time as returned by FPGA algorithm
Definition: DBCALDigiHit.h:31
void toStrings(vector< pair< string, string > > &items) const
Definition: DBCALDigiHit.h:39