Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DFDCIntersection.h
Go to the documentation of this file.
1 // $Id$
2 //
3 // File: DFDCIntersection.h
4 // Created: Tue Oct 30 11:24:53 EDT 2007
5 // Creator: davidl (on Darwin fwing-dhcp95.jlab.org 8.10.1 i386)
6 //
7 
8 #ifndef _DFDCIntersection_
9 #define _DFDCIntersection_
10 
11 #include <cmath>
12 
13 #include <JANA/JObject.h>
14 #include <JANA/JFactory.h>
15 #include <DVector3.h>
16 #include "FDC/DFDCHit.h"
17 #include "FDC/DFDCWire.h"
18 
19 class DFDCIntersection:public JObject{
20  public:
22 
23  const DFDCHit *hit1;
24  const DFDCHit *hit2;
25  const DFDCWire *wire1;
26  const DFDCWire *wire2;
28 
29  void toStrings(vector<pair<string,string> > &items)const{
30  AddString(items, "layer1", "%d", wire1->layer);
31  AddString(items, "wire1", "%d", wire1->wire);
32  AddString(items, "angle1(deg)", "%3.1f", wire1->angle*180.0/M_PI);
33  AddString(items, "layer2", "%d", wire2->layer);
34  AddString(items, "wire2", "%d", wire2->wire);
35  AddString(items, "angle2(deg)", "%3.1f", wire2->angle*180.0/M_PI);
36  }
37 };
38 
39 #endif // _DFDCIntersection_
40 
const DFDCWire * wire1
float angle
radians
Definition: DFDCWire.h:19
TVector3 DVector3
Definition: DVector3.h:14
const DFDCHit * hit1
JOBJECT_PUBLIC(DFDCIntersection)
int layer
1-24
Definition: DFDCWire.h:16
const DFDCHit * hit2
int wire
1-N
Definition: DFDCWire.h:17
const DFDCWire * wire2
void toStrings(vector< pair< string, string > > &items) const
class DFDCHit: definition for a basic FDC hit data type.
Definition: DFDCHit.h:20