forked from ShipSoft/FairShip
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvetoContFact.cxx
51 lines (44 loc) · 1.4 KB
/
vetoContFact.cxx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#include "vetoContFact.h"
#include "FairRuntimeDb.h"
#include <iostream>
// static vetoContFact gvetoContFact;
vetoContFact::vetoContFact()
: FairContFact()
{
/** Constructor (called when the library is loaded) */
fName = "vetoContFact";
fTitle = "Factory for parameter containers in libveto";
setAllContainers();
FairRuntimeDb::instance()->addContFactory(this);
}
void vetoContFact::setAllContainers()
{
/** Creates the Container objects with all accepted
contexts and adds them to
the list of containers for the veto library.
*/
/*
FairContainer* p= new FairContainer("vetoGeoPar",
"veto Geometry Parameters",
"TestDefaultContext");
p->addContext("TestNonDefaultContext");
containers->Add(p);
*/
}
FairParSet* vetoContFact::createContainer(FairContainer* c)
{
/** Calls the constructor of the corresponding parameter container.
For an actual context, which is not an empty string and not
the default context
of this container, the name is concatinated with the context.
*/
/* const char* name=c->GetName();
FairParSet* p=NULL;
if (strcmp(name,"vetoGeoPar")==0) {
p=new vetoGeoPar(c->getConcatName().Data(),
c->GetTitle(),c->getContext());
}
return p;
*/
return 0;
}