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
CbmRichContFact.cxx
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file CbmRichContFact.cxx
1
//*-- AUTHOR : Denis Bertini
2
//*-- Created : 21/06/2005
3
4
6
//
7
// CbmRichContFact
8
//
9
// Factory for the parameter containers in libRich
10
//
12
13
#include "
CbmGeoRichPar.h
"
14
15
#include "
CbmRichContFact.h
"
16
#include "
FairRuntimeDb.h
"
17
18
#include <iostream>
19
#include <iomanip>
20
21
ClassImp
(
CbmRichContFact
)
22
23
static
CbmRichContFact
gCbmRichContFact;
24
25
CbmRichContFact
::
CbmRichContFact
() {
26
// Constructor (called when the library is loaded)
27
fName=
"CbmRichContFact"
;
28
fTitle=
"Factory for parameter containers in libRich"
;
29
setAllContainers();
30
FairRuntimeDb::instance
()->
addContFactory
(
this
);
31
}
32
33
void
CbmRichContFact::setAllContainers
() {
37
FairContainer
*
p
=
new
FairContainer
(
"CbmGeoRichPar"
,
38
"Rich Geometry Parameters"
,
39
"TestDefaultContext"
);
40
p->
addContext
(
"TestNonDefaultContext"
);
41
42
containers
->Add(p);
43
}
44
45
FairParSet
*
CbmRichContFact::createContainer
(
FairContainer
*
c
) {
49
const
char
*
name
=c->GetName();
50
FairParSet
*
p
=NULL;
51
if
(strcmp(name,
"CbmGeoRichPar"
)==0) {
52
p=
new
CbmGeoRichPar
(c->
getConcatName
().Data(),c->GetTitle(),c->
getContext
());
53
}
54
return
p
;
55
}
56
EicRoot
blob
master
rich
CbmRichContFact.cxx
Built by
Jin Huang
. updated:
Mon Jan 22 2024 12:43:37
using
1.8.2 with
EIC GitHub integration