Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DBCALSiPMHit.h
Go to the documentation of this file.
1 // $Id$
2 //
3 // File: DBCALSiPMHit.h
4 // Created: Fri May 13 11:06:38 EDT 2011
5 // Creator: davidl (on Darwin eleanor.jlab.org 10.7.0 i386)
6 //
7 
8 #ifndef _DBCALSiPMHit_
9 #define _DBCALSiPMHit_
10 
11 #include "BCAL/DBCALGeometry.h"
12 
13 #include <JANA/JObject.h>
14 #include <JANA/JFactory.h>
15 using namespace jana;
16 
17 // WARNING: This class represents the SiPM hits and is intended
18 // for debugging of simulated data only. The information contained
19 // here may not be available in real data (use the DBCALHit objects
20 // for that).
21 //
22 // Objects of this class hold hold data from the bcalSiPMUpHit and
23 // bcalSiPMDownHit structures from HDDM
24 
25 class DBCALSiPMHit:public JObject{
26  public:
27  JOBJECT_PUBLIC(DBCALSiPMHit);
28 
30  virtual ~DBCALSiPMHit(){}
31 
32  int module;
33  int layer;
34  int sector;
36  float E;
37  float t;
38 
39  int cellId;
40 
41  void toStrings(vector<pair<string,string> > &items)const{
42  AddString(items, "cellId", "%d", cellId);
43  AddString(items, "module", "%d", module);
44  AddString(items, "layer", "%d", layer);
45  AddString(items, "sector", "%d", sector);
46  AddString(items, "end", "%s", end==0 ? "upstream":"downstream" );
47  AddString(items, "E(GeV)", "%2.3f", E);
48  AddString(items, "t(ns)", "%4.2f", t);
49  }
50 };
51 
52 #endif // _DBCALSiPMHit_
53 
DBCALGeometry::End end
Definition: DBCALSiPMHit.h:35
Int_t layer
virtual ~DBCALSiPMHit()
Definition: DBCALSiPMHit.h:30
void toStrings(vector< pair< string, string > > &items) const
Definition: DBCALSiPMHit.h:41