CbmRoot
ContFactory.cxx
Go to the documentation of this file.
1
/*
2
* To change this license header, choose License Headers in Project Properties.
3
* To change this template file, choose Tools | Templates
4
* and open the template in the editor.
5
*/
6
7
#include "
ContFactory.h
"
8
#include "FairRuntimeDb.h"
9
#include "
Settings.h
"
10
11
#include <iostream>
12
13
using
std::cout;
14
using
std::endl;
15
16
ClassImp
(
CbmBinnedContFactory
)
17
18
static
CbmBinnedContFactory
gCbmBinnedContFactory;
19
20
CbmBinnedContFactory::CbmBinnedContFactory
() {
21
fName =
"CbmBinnedContFactory"
;
22
fTitle =
"Factory for parameter containers in libBinnedTracker"
;
23
setAllContainers
();
24
FairRuntimeDb::instance()->addContFactory(
this
);
25
}
26
27
void
CbmBinnedContFactory::setAllContainers
() {
28
FairContainer* p1 =
new
FairContainer(
29
"CbmBinnedSettings"
,
"Binned tracker reconstruction parameters"
,
"Default"
);
30
p1->addContext(
"Default"
);
31
containers->Add(p1);
32
}
33
34
FairParSet*
CbmBinnedContFactory::createContainer
(FairContainer* c) {
35
const
char
* name = c->GetName();
36
cout <<
" -I container name "
<< name << endl;
37
FairParSet* p = 0;
38
39
if
(0 == strcmp(name,
"CbmBinnedSettings"
)) p =
CbmBinnedSettings::Instance
();
40
41
return
p;
42
}
Settings.h
CbmBinnedContFactory::CbmBinnedContFactory
CbmBinnedContFactory()
Definition:
ContFactory.cxx:20
CbmBinnedContFactory::setAllContainers
void setAllContainers()
Definition:
ContFactory.cxx:27
CbmBinnedContFactory::createContainer
FairParSet * createContainer(FairContainer *)
Definition:
ContFactory.cxx:34
ClassImp
ClassImp(CbmBinnedContFactory) static CbmBinnedContFactory gCbmBinnedContFactory
CbmBinnedSettings::Instance
static CbmBinnedSettings * Instance()
Definition:
Settings.h:29
ContFactory.h
CbmBinnedContFactory
Definition:
ContFactory.h:21
reco
tracking
BinnedTracker
ContFactory.cxx
Generated on Wed Oct 28 2020 15:11:49 for CbmRoot by
1.8.18