Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DTOFTDCDigiHit.h
Go to the documentation of this file.
1 // $Id$
2 //
3 // File: DTOFTDCDigiHit.h
4 // Created: Wed Aug 7 09:31:00 EDT 2013
5 // Creator: davidl (on Darwin harriet.jlab.org 11.4.2 i386)
6 //
7 
8 #ifndef _DTOFTDCDigiHit_
9 #define _DTOFTDCDigiHit_
10 
11 #include <JANA/JObject.h>
12 #include <JANA/JFactory.h>
13 
14 class DTOFTDCDigiHit: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 time; ///< hit time
22 
23  // This method is used primarily for pretty printing
24  // the second argument to AddString is printf style format
25  void toStrings(vector<pair<string,string> > &items)const{
26  AddString(items, "bar", "%d", bar);
27  AddString(items, "plane", "%d", plane);
28  AddString(items, "end", "%d", end);
29  AddString(items, "time", "%d", time);
30  }
31 
32 };
33 
34 #endif // _DTOFTDCDigiHit_
35 
int bar
bar number
int end
left/right 0/1 or North/South 0/1
void toStrings(vector< pair< string, string > > &items) const
int plane
plane (0: vertical, 1: horizontal)
JOBJECT_PUBLIC(DTOFTDCDigiHit)
uint32_t time
hit time