Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DPSCPair.h
Go to the documentation of this file.
1 // $Id$
2 //
3 // File: DPSCPair.h
4 // Created: Tue Mar 24 21:35:49 EDT 2015
5 // Creator: nsparks (on Linux cua2.jlab.org 2.6.32-431.5.1.el6.x86_64 x86_64)
6 //
7 
8 #ifndef _DPSCPair_
9 #define _DPSCPair_
10 
11 #include <JANA/JObject.h>
12 #include <JANA/JFactory.h>
13 #include "DPSCHit.h"
14 
15 class DPSCPair:public jana::JObject{
16  public:
18 
19  pair<const DPSCHit*,const DPSCHit*> ee; // first:North(left); second:South(right)
20 
21  void toStrings(vector<pair<string,string> > &items)const{
22  AddString(items, "module_lhit", "%d", ee.first->module);
23  AddString(items, "module_rhit", "%d", ee.second->module);
24  AddString(items, "t_tdc_lhit", "%f", ee.first->time_tdc);
25  AddString(items, "t_tdc_rhit", "%f", ee.second->time_tdc);
26  AddString(items, "t_fadc_lhit", "%f", ee.first->time_fadc);
27  AddString(items, "t_fadc_rhit", "%f", ee.second->time_fadc);
28  AddString(items, "integral_lhit", "%f", ee.first->integral);
29  AddString(items, "integral_rhit", "%f", ee.second->integral);
30  AddString(items, "pulse_peak_lhit", "%f", ee.first->pulse_peak);
31  AddString(items, "pulse_peak_rhit", "%f", ee.second->pulse_peak);
32  }
33 
34 };
35 
36 #endif // _DPSCPair_
37 
pair< const DPSCHit *, const DPSCHit * > ee
Definition: DPSCPair.h:19
JOBJECT_PUBLIC(DPSCPair)
void toStrings(vector< pair< string, string > > &items) const
Definition: DPSCPair.h:21