FairRoot/PandaRoot
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
detectors
ftof
PndFtofContFact.cxx
Go to the documentation of this file.
1
//
3
// CbmHypContFact
4
//
5
// Factory for the parameter containers in libHyp
6
//
7
//
8
//
10
11
#include "
PndFtofContFact.h
"
12
#include "FairRuntimeDb.h"
13
#include "iostream"
14
#include "FairParRootFileIo.h"
15
#include "FairParAsciiFileIo.h"
16
#include "
PndGeoFtofPar.h
"
17
#include <iostream>
18
#include <iomanip>
19
20
ClassImp
(
PndFtofContFact
)
21
22
static
PndFtofContFact
gPndFtofContFact;
23
24
PndFtofContFact
::
PndFtofContFact
() {
25
// Constructor (called when the library is loaded)
26
fName=
"PndFtofContFact"
;
27
fTitle=
"Factory for parameter containers in libFtof"
;
28
setAllContainers();
29
FairRuntimeDb::instance()->addContFactory(
this
);
30
}
31
32
void
PndFtofContFact::setAllContainers
() {
36
FairContainer*
p
=
new
FairContainer(
"PndGeoFtofPar"
,
37
"tof Geometry Parameters"
,
38
"TestDefaultContext"
);
39
p->addContext(
"TestNonDefaultContext"
);
40
41
containers->Add(p);
42
}
43
44
FairParSet*
PndFtofContFact::createContainer
(FairContainer*
c
) {
48
const
char
*
name
=c->GetName();
49
FairParSet*
p
=NULL;
50
if
(strcmp(name,
"PndGeoFtofPar"
)==0) {
51
p=
new
PndGeoFtofPar
(c->getConcatName().Data(),c->GetTitle(),c->getContext());
52
}
53
return
p
;
54
}
PndFtofContFact
Definition:
PndFtofContFact.h:14
PndFtofContFact::createContainer
FairParSet * createContainer(FairContainer *)
Definition:
PndFtofContFact.cxx:44
PndGeoFtofPar
Definition:
PndGeoFtofPar.h:12
p
Double_t p
Definition:
anasim.C:58
ClassImp
ClassImp(PndFtofContFact) static PndFtofContFact gPndFtofContFact
PndFtofContFact.h
name
TString name
Definition:
createRootGeoFile.C:82
c
GeV c
Definition:
ReadMesDecCorrRes_PiT.C:28
PndGeoFtofPar.h
PndFtofContFact::setAllContainers
void setAllContainers()
Definition:
PndFtofContFact.cxx:32
Generated on Sun Aug 18 2019 03:01:25 for FairRoot/PandaRoot by
1.8.8