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