EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
Home page
Related Pages
Modules
Namespaces
Classes
Files
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
EtmLine2D.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file EtmLine2D.h
1
2
#include <TVector2.h>
3
4
#ifndef _ETM_LINE_2D_
5
#define _ETM_LINE_2D_
6
7
class
EtmLine2D
:
public
TObject
{
8
public
:
9
EtmLine2D
() {};
10
EtmLine2D
(
const
TVector2 &
x
,
const
TVector2 &
v
);
11
EtmLine2D
(
const
TVector2 &
x
,
double
alfa);
12
~EtmLine2D
() {};
13
14
TVector2
Cross
(
const
EtmLine2D
&line)
const
;
15
double
Distance
(
const
TVector2 &
point
)
const
;
16
bool
IsParallel
(
const
EtmLine2D
&line)
const
;
17
18
void
Shift
(
const
TVector2 &
x
) {
mX
+=
x
; };
19
20
TVector2
X
(
void
)
const
{
return
mX
; };
21
TVector2
V
(
void
)
const
{
return
mV
; };
22
TVector2
N
(
void
)
const
{
return
mN
; };
23
24
private
:
25
void
CalculateNormal
(
void
);
26
27
TVector2
mX
,
mV
,
mN
;
28
29
ClassDef(
EtmLine2D
, 1)
30
};
31
32
#endif
EicToyModel
blob
master
include
EtmLine2D.h
Built by
Jin Huang
. updated:
Mon Jan 22 2024 12:43:38
using
1.8.2 with
EIC GitHub integration