Project
Loading...
Searching...
No Matches
ContainerFactory.cxx
Go to the documentation of this file.
1// Copyright 2019-2020 CERN and copyright holders of ALICE O2.
2// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
3// All rights not expressly granted are reserved.
4//
5// This software is distributed under the terms of the GNU General Public
6// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
7//
8// In applying this license CERN does not waive the privileges and immunities
9// granted to it by virtue of its status as an Intergovernmental Organization
10// or submit itself to any jurisdiction.
11
13#include "FairRuntimeDb.h" // for FairRuntimeDb
14
15class FairParSet;
16using namespace o2::tpc;
17
19
20static ContainerFactory gTpcContainerFactory;
21
23 : FairContFact()
24{
26 fName = "ContainerFactory";
27 fTitle = "Factory for parameter containers in libO2tpc";
28 setAllContainers();
29 FairRuntimeDb::instance()->addContFactory(this);
30}
31
32void ContainerFactory::setAllContainers()
33{
39 /* FairContainer* p= new FairContainer("O2tpcGeoPar",
40 "O2tpc Geometry Parameters",
41 "TestDefaultContext");
42 p->addContext("TestNonDefaultContext");
43
44 containers->Add(p);
45*/
46}
47
48FairParSet* ContainerFactory::createContainer(FairContainer* c)
49{
55 /*
56 const char* name=c->GetName();
57 FairParSet* p=NULL;
58 if (strcmp(name,"O2tpcGeoPar")==0) {
59 p=new O2tpcGeoPar(c->getConcatName().Data(),
60 c->GetTitle(),c->getContext());
61 }
62 return p;
63 */
64 return nullptr;
65}
uint32_t c
Definition RawData.h:2
ClassImp(ContainerFactory)
FairParSet * createContainer(FairContainer *) override
Global TPC definitions and constants.
Definition SimTraits.h:167