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
FairHit.cxx
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file FairHit.cxx
1
#include "
FairHit.h
"
2
3
4
// ----- Default constructor -------------------------------------------
5
FairHit::FairHit
()
6
:
FairTimeStamp
(),
7
fDx(0),
8
fDy(0),
9
fDz(0),
10
fRefIndex(-1),
11
fDetectorID(-1),
12
fX
(0),
13
fY
(0),
14
fZ
(0)
15
16
17
{
18
}
19
20
FairHit::FairHit
(Int_t detID, TVector3&
pos
, Int_t index)
21
:
FairTimeStamp
(),
22
fDx (0.0),
23
fDy (0.0),
24
fDz (0.0),
25
fRefIndex (index),
26
fDetectorID (detID),
27
fX
(pos.X()),
28
fY
(pos.Y()),
29
fZ
(pos.Z())
30
{
31
}
32
33
// -------------------------------------------------------------------------
34
35
36
37
// ----- Standard constructor ------------------------------------------
38
FairHit::FairHit
(Int_t detID, TVector3&
pos
, TVector3& dpos, Int_t index)
39
:
FairTimeStamp
(),
40
fDx (dpos.X()),
41
fDy (dpos.Y()),
42
fDz (dpos.Z()),
43
fRefIndex (index),
44
fDetectorID (detID),
45
fX
(pos.X()),
46
fY
(pos.Y()),
47
fZ
(pos.Z())
48
{
49
}
50
// -------------------------------------------------------------------------
51
52
53
54
// ----- Destructor ----------------------------------------------------
55
FairHit::~FairHit
() { }
56
// -------------------------------------------------------------------------
57
58
59
60
ClassImp
(
FairHit
)
EicRoot
blob
master
base
FairHit.cxx
Built by
Jin Huang
. updated:
Mon Jan 22 2024 12:43:32
using
1.8.2 with
EIC GitHub integration