CbmRoot
Loading...
Searching...
No Matches
CbmPassiveContFact.cxx
Go to the documentation of this file.
1
/* Copyright (C) 2006-2012 GSI Helmholtzzentrum fuer Schwerionenforschung, Darmstadt
2
SPDX-License-Identifier: GPL-3.0-only
3
Authors: Denis Bertini [committer], Florian Uhlig */
4
5
//*-- AUTHOR : Denis Bertini
6
//*-- Created : 21/06/2005
7
9
//
10
// CbmPassiveContFact
11
//
12
// Factory for the parameter containers in libPassive
13
//
15
16
#include "
CbmPassiveContFact.h
"
17
18
#include "
CbmGeoPassivePar.h
"
19
20
#include "FairRuntimeDb.h"
21
22
//#include <iostream>
23
//#include <iomanip>
24
25
ClassImp
(
CbmPassiveContFact
)
26
27
static
CbmPassiveContFact
gCbmPassiveContFact;
28
29
CbmPassiveContFact::CbmPassiveContFact
() : FairContFact()
30
{
31
// Constructor (called when the library is loaded)
32
fName =
"CbmPassiveContFact"
;
33
fTitle =
"Factory for parameter containers in libPassive"
;
34
setAllContainers
();
35
FairRuntimeDb::instance()->addContFactory(
this
);
36
}
37
38
void
CbmPassiveContFact::setAllContainers
()
39
{
43
FairContainer* p =
new
FairContainer(
"CbmGeoPassivePar"
,
"Passive Geometry Parameters"
,
"TestDefaultContext"
);
44
p->addContext(
"TestNonDefaultContext"
);
45
46
containers->Add(p);
47
}
48
49
FairParSet*
CbmPassiveContFact::createContainer
(FairContainer* c)
50
{
54
const
char
* name = c->GetName();
55
FairParSet* p = NULL;
56
if
(strcmp(name,
"CbmGeoPassivePar"
) == 0) {
57
p =
new
CbmGeoPassivePar
(c->getConcatName().Data(), c->GetTitle(), c->getContext());
58
}
59
return
p;
60
}
CbmGeoPassivePar.h
ClassImp
ClassImp(CbmPassiveContFact) static CbmPassiveContFact gCbmPassiveContFact
CbmPassiveContFact.h
CbmGeoPassivePar
Definition
CbmGeoPassivePar.h:10
CbmPassiveContFact
Definition
CbmPassiveContFact.h:12
CbmPassiveContFact::createContainer
FairParSet * createContainer(FairContainer *)
Definition
CbmPassiveContFact.cxx:49
CbmPassiveContFact::setAllContainers
void setAllContainers()
Definition
CbmPassiveContFact.cxx:38
CbmPassiveContFact::CbmPassiveContFact
CbmPassiveContFact()
Definition
CbmPassiveContFact.cxx:29
sim
passive
CbmPassiveContFact.cxx
Generated on Sun Dec 22 2024 23:04:19 for CbmRoot by
1.12.0