FairRoot/PandaRoot
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
tutorials
rtdb
PndTutPar.cxx
Go to the documentation of this file.
1
#include <iostream>
2
#include "
PndTutPar.h
"
3
#include "TMath.h"
4
5
PndTutPar::PndTutPar
(
const
char
*
name
,
const
char
* title,
const
char
* context)
6
: FairParGenericSet(name,title,context)
7
{
8
clear
();
9
}
10
11
void
PndTutPar::putParams
(FairParamList* list)
12
{
13
std::cout<<
"-I- PndTutPar::putParams() called"
<<std::endl;
14
if
(!list)
return
;
15
list->add(
"top_pitch"
,
fTopPitch
);
16
list->add(
"top_anchor_x"
, (
Double_t
)
fTopAnchor
.X());
17
list->add(
"top_anchor_y"
, (
Double_t
)
fTopAnchor
.Y());
18
list->add(
"top_anchor_z"
, (
Double_t
)
fTopAnchor
.Z());
19
list->add(
"nr_fe_top"
,
fTopNrFE
);
20
list->add(
"fe_Type"
,
fFeType
);
21
}
22
23
Bool_t
PndTutPar::getParams
(FairParamList* list)
24
{
25
std::cout<<
"-I- PndTutPar::getParams() called"
<<std::endl;
26
if
(!list)
return
kFALSE;
27
std::cout<<
"-I- PndTutPar::getParams() 1 "
;
28
29
if
(!list->fill(
"top_pitch"
, &
fTopPitch
))
return
kFALSE;
30
std::cout<<
"2 "
;
31
Double_t
x
,
y
,
z
;
32
if
(!list->fill(
"top_anchor_x"
, &x))
return
kFALSE;
33
if
(!list->fill(
"top_anchor_y"
, &y))
return
kFALSE;
34
if
(!list->fill(
"top_anchor_z"
, &z))
return
kFALSE;
35
fTopAnchor
.SetXYZ(x,y,z);
36
std::cout<<
"3 "
;
37
if
(!list->fill(
"nr_fe_top"
, &
fTopNrFE
))
return
kFALSE;
38
Text_t feName[80];
39
std::cout<<
"4 "
<<std::endl;
40
if
(!list->fill(
"fe_Type"
,feName,80))
return
kFALSE;
41
fFeType
= feName;
42
return
kTRUE;
43
}
44
45
ClassImp
(
PndTutPar
);
46
47
void
PndTutPar::Print
()
48
{
49
std::cout<<
"Tutorial Parameters:"
<<std::endl;
50
std::cout<<
" Top Pitch = "
<<
fTopPitch
<<std::endl;
51
std::cout<<
" Top Anchor = ("
<<
fTopAnchor
.X()<<
","
<<
fTopAnchor
.Y()<<
","
<<
fTopAnchor
.Z()<<
")"
<<std::endl;
52
std::cout<<
" Nr of Frontends (Top Side) = "
<<
fTopNrFE
<<std::endl;
53
std::cout<<
" Frontend type name is = "
<<
fFeType
.Data()<<std::endl;
54
}
PndTutPar::fFeType
TString fFeType
Definition:
PndTutPar.h:41
PndTutPar::putParams
void putParams(FairParamList *list)
Definition:
PndTutPar.cxx:11
PndTutPar::getParams
Bool_t getParams(FairParamList *list)
Definition:
PndTutPar.cxx:23
PndTutPar::fTopNrFE
Int_t fTopNrFE
Definition:
PndTutPar.h:40
PndTutPar.h
PndTutPar::clear
void clear(void)
Definition:
PndTutPar.h:20
PndTutPar::fTopAnchor
TVector3 fTopAnchor
Definition:
PndTutPar.h:39
Double_t
Double_t
Definition:
SimCompleteLinkDef.h:6
z
Double_t z
Definition:
createRootFscGeometryFile.C:146
name
TString name
Definition:
createRootGeoFile.C:82
x
Double_t x
Definition:
createRootFscGeometryFile.C:159
PndTutPar
Definition:
PndTutPar.h:13
ClassImp
ClassImp(PndAnaContFact)
PndTutPar::fTopPitch
Double_t fTopPitch
Definition:
PndTutPar.h:38
Bool_t
Bool_t
Definition:
SimCompleteLinkDef.h:6
PndTutPar::PndTutPar
PndTutPar(const char *name="PndTutParTest", const char *title="Tutorial parameter", const char *context="TestDefaultContext")
Definition:
PndTutPar.cxx:5
y
Double_t y
Definition:
createRootFscGeometryFile.C:159
PndTutPar::Print
void Print()
Definition:
PndTutPar.cxx:47
Generated on Wed Apr 3 2019 08:44:04 for FairRoot/PandaRoot by
1.8.5