Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DBCALTruthCell.h
Go to the documentation of this file.
1 // $Id$
2 //
3 // File: DBCALTruthCell.h
4 // Created: Thu May 5 13:07:05 EDT 2011
5 // Creator: davidl (on Linux ifarm1101 2.6.18-128.7.1.el5 x86_64)
6 //
7 
8 // This object represents the barrelEMcal->bcalCell->bcalHit
9 // structures from HDDM
10 
11 #ifndef _DBCALTruthCell_
12 #define _DBCALTruthCell_
13 
14 #include <JANA/JObject.h>
15 #include <JANA/JFactory.h>
16 
17 class DBCALTruthCell:public jana::JObject{
18  public:
20 
21  int module;
22  int layer;
23  int sector;
24  double E;
25  double t;
26  double zLocal;
27 
28  // This method is used primarily for pretty printing
29  // the second argument to AddString is printf style format
30  void toStrings(vector<pair<string,string> > &items)const{
31  AddString(items, "module", "%2d", module);
32  AddString(items, "layer", "%2d", layer);
33  AddString(items, "sector", "%1d", sector);
34  AddString(items, "E", "%5.3f", E);
35  AddString(items, "t", "%7.2f", t);
36  AddString(items, "zLocal", "%5.1f", zLocal);
37  }
38 
39 };
40 
41 #endif // _DBCALTruthCell_
42 
JOBJECT_PUBLIC(DBCALTruthCell)
void toStrings(vector< pair< string, string > > &items) const