FairShip
Loading...
Searching...
No Matches
vetoContFact.cxx
Go to the documentation of this file.
1// SPDX-License-Identifier: LGPL-3.0-or-later
2// SPDX-FileCopyrightText: Copyright CERN for the benefit of the SHiP
3// Collaboration
4
5#include "vetoContFact.h"
6
7#include <iostream>
8
9#include "FairRuntimeDb.h"
10
11// static vetoContFact gvetoContFact;
12
13vetoContFact::vetoContFact() : FairContFact() {
15 fName = "vetoContFact";
16 fTitle = "Factory for parameter containers in libveto";
18 FairRuntimeDb::instance()->addContFactory(this);
19}
20
26 /*
27 FairContainer* p= new FairContainer("vetoGeoPar",
28 "veto Geometry Parameters",
29 "TestDefaultContext");
30 p->addContext("TestNonDefaultContext");
31
32 containers->Add(p);
33 */
34}
35
36FairParSet* vetoContFact::createContainer(FairContainer* c) {
42 /* const char* name=c->GetName();
43 FairParSet* p=NULL;
44 if (strcmp(name,"vetoGeoPar")==0) {
45 p=new vetoGeoPar(c->getConcatName().Data(),
46 c->GetTitle(),c->getContext());
47 }
48 return p;
49 */
50 return 0;
51}
void setAllContainers()
FairParSet * createContainer(FairContainer *)