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
PndConstPar.cxx
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file PndConstPar.cxx
1
#include "
PndConstPar.h
"
2
#include "
PndConstField.h
"
3
#include "
FairParamList.h
"
4
// ------ Constructor --------------------------------------------------
5
PndConstPar::PndConstPar
(
const
char
*
name
,
const
char
*
title
,
const
char
* context)
6
:
PndMapPar
(name, title, context), fBx(0), fBy(0), fBz(0)
7
{
8
fType
=0;
9
}
10
11
PndConstPar::PndConstPar
()
12
:
PndMapPar
(), fBx(0), fBy(0), fBz(0)
13
{
14
fType
=0;
15
}
16
17
PndConstPar::~PndConstPar
() { }
18
19
void
PndConstPar::putParams
(
FairParamList
*
list
)
20
{
21
if
( ! list )
return
;
22
23
list->
add
(
"Field Type"
,
fType
);
24
25
list->
add
(
"Field min x"
,
fXmin
);
26
list->
add
(
"Field max x"
,
fXmax
);
27
list->
add
(
"Field min y"
,
fYmin
);
28
list->
add
(
"Field max y"
,
fYmax
);
29
list->
add
(
"Field min z"
,
fZmin
);
30
list->
add
(
"Field max z"
,
fZmax
);
31
list->
add
(
"Field Bx"
,
fBx
);
32
list->
add
(
"Field By"
,
fBy
);
33
list->
add
(
"Field Bz"
,
fBz
);
34
35
}
36
37
38
39
Bool_t
PndConstPar::getParams
(
FairParamList
*
list
)
40
{
41
if
( ! list )
return
kFALSE;
42
if
( ! list->
fill
(
"Field Type"
, &
fType
) )
return
kFALSE;
43
if
( ! list->
fill
(
"Field min x"
, &
fXmin
) )
return
kFALSE;
44
if
( ! list->
fill
(
"Field max x"
, &
fXmax
) )
return
kFALSE;
45
if
( ! list->
fill
(
"Field min y"
, &
fYmin
) )
return
kFALSE;
46
if
( ! list->
fill
(
"Field max y"
, &
fYmax
) )
return
kFALSE;
47
if
( ! list->
fill
(
"Field min z"
, &
fZmin
) )
return
kFALSE;
48
if
( ! list->
fill
(
"Field max z"
, &
fZmax
) )
return
kFALSE;
49
if
( ! list->
fill
(
"Field Bx"
, &
fBx
) )
return
kFALSE;
50
if
( ! list->
fill
(
"Field By"
, &
fBy
) )
return
kFALSE;
51
if
( ! list->
fill
(
"Field Bz"
, &
fBz
) )
return
kFALSE;
52
return
kTRUE;
53
}
54
void
PndConstPar:: SetParameters
(FairField* field)
55
{
56
PndConstField
* fieldConst = (
PndConstField
*) field;
57
fBx
= fieldConst->
GetBx
();
58
fBy
= fieldConst->
GetBy
();
59
fBz
= fieldConst->
GetBz
();
60
fXmin
= fieldConst->
GetXmin
();
61
fXmax
= fieldConst->
GetXmax
();
62
fYmin
= fieldConst->
GetYmin
();
63
fYmax
= fieldConst->
GetYmax
();
64
fZmin
= fieldConst->
GetZmin
();
65
fZmax
= fieldConst->
GetZmax
();
66
fMapName
=
""
;
67
fPosX
=
fPosY
=
fPosZ
=
fScale
= 0.;
68
fType
= fieldConst->GetType();
69
}
70
71
72
73
ClassImp
(
PndConstPar
)
74
EicRoot
blob
master
field
PndConstPar.cxx
Built by
Jin Huang
. updated:
Mon Jan 22 2024 12:43:36
using
1.8.2 with
EIC GitHub integration