Hall-D Software
alpha
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
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
:
21
JOBJECT_PUBLIC
(
DFDCIntersection
);
22
23
const
DFDCHit
*
hit1
;
24
const
DFDCHit
*
hit2
;
25
const
DFDCWire
*
wire1
;
26
const
DFDCWire
*
wire2
;
27
DVector3
pos
;
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
DFDCHit.h
DFDCIntersection::wire1
const DFDCWire * wire1
Definition:
DFDCIntersection.h:25
DFDCWire::angle
float angle
radians
Definition:
DFDCWire.h:19
DVector3
TVector3 DVector3
Definition:
DVector3.h:14
DFDCIntersection::hit1
const DFDCHit * hit1
Definition:
DFDCIntersection.h:23
DFDCWire.h
DFDCWire
Definition:
DFDCWire.h:14
DFDCIntersection::JOBJECT_PUBLIC
JOBJECT_PUBLIC(DFDCIntersection)
DFDCWire::layer
int layer
1-24
Definition:
DFDCWire.h:16
DFDCIntersection::hit2
const DFDCHit * hit2
Definition:
DFDCIntersection.h:24
DFDCIntersection
Definition:
DFDCIntersection.h:19
DFDCIntersection::pos
DVector3 pos
Definition:
DFDCIntersection.h:27
DFDCWire::wire
int wire
1-N
Definition:
DFDCWire.h:17
DFDCIntersection::wire2
const DFDCWire * wire2
Definition:
DFDCIntersection.h:26
DVector3.h
DFDCIntersection::toStrings
void toStrings(vector< pair< string, string > > &items) const
Definition:
DFDCIntersection.h:29
DFDCHit
class DFDCHit: definition for a basic FDC hit data type.
Definition:
DFDCHit.h:20
libraries
FDC
DFDCIntersection.h
Generated on Fri Jul 26 2019 14:00:48 for Hall-D Software by
1.8.5