Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DBCALHit.h
Go to the documentation of this file.
1 // $Id$
2 //
3 // File: DBCALHit.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 _DBCALHit_
9 #define _DBCALHit_
10 
11 #include "BCAL/DBCALGeometry.h"
12 
13 #include <JANA/JObject.h>
14 #include <JANA/JFactory.h>
15 using namespace jana;
16 
17 class DBCALHit:public JObject{
18 
19  /// This class holds data originating from the fADC250
20  /// modules connected to the BCAL
21 
22  public:
23  JOBJECT_PUBLIC(DBCALHit);
24 
25  int module;
26  int layer;
27  int sector;
29  int pulse_peak; // Pedestal subtracted pulse peak (per event)
30  float E;
31  float t;
32  float t_raw; ///< Uncalibrated time in ns
33 
34  int cellId;
35 
36  void toStrings(vector<pair<string,string> > &items)const{
37  AddString(items, "module", "%d", module);
38  AddString(items, "layer", "%d", layer);
39  AddString(items, "sector", "%d", sector);
40  AddString(items, "end", "%s", end==0 ? "upstream":"downstream" );
41  AddString(items, "E(GeV)", "%6.3f", E);
42  AddString(items, "t(ns)", "%4.2f", t);
43  }
44 };
45 
46 #endif // _DBCALHit_
47 
float E
Definition: DBCALHit.h:30
Int_t layer
int module
Definition: DBCALHit.h:25
int layer
Definition: DBCALHit.h:26
DBCALGeometry::End end
Definition: DBCALHit.h:28
void toStrings(vector< pair< string, string > > &items) const
Definition: DBCALHit.h:36
float t
Definition: DBCALHit.h:31
int sector
Definition: DBCALHit.h:27
int cellId
Definition: DBCALHit.h:34
int pulse_peak
Definition: DBCALHit.h:29
float t_raw
Uncalibrated time in ns.
Definition: DBCALHit.h:32