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
14
16#include "FairRuntimeDb.h" // for FairRuntimeDb
17#include "TString.h" // for TString
18
19class FairParSet;
20
21using namespace o2::its;
22
24
25static ContainerFactory gO2itsContFact;
26
28{
29 fName = "ContainerFactory";
30 fTitle = "Factory for parameter containers in libO2its";
31 mSetAllContainers();
32 FairRuntimeDb::instance()->addContFactory(this);
33}
34
35void ContainerFactory::mSetAllContainers()
36{
37 // FairContainer* p= new FairContainer("O2itsGeoPar",
38 // "O2its Geometry Parameters",
39 // "TestDefaultContext");
40 // p->addContext("TestNonDefaultContext");
41 //
42 // containers->Add(p);
43}
44
45FairParSet* ContainerFactory::createContainer(FairContainer* c)
46{
47 // const char* name=c->GetName();
48 // FairParSet* p=NULL;
49 // if (strcmp(name,"O2itsGeoPar")==0) {
50 // p=new O2itsGeoPar(c->getConcatName().Data(),
51 // c->GetTitle(),c->getContext());
52 //}
53 // return p;
54 return nullptr;
55}
Definition of the ContainerFactory class.
ClassImp(o2::its::ContainerFactory)
uint32_t c
Definition RawData.h:2
FairParSet * createContainer(FairContainer *) override
ContainerFactory()
Default constructor.