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
12
#include "
TPCBase/ContainerFactory.h
"
13
#include "FairRuntimeDb.h"
// for FairRuntimeDb
14
15
class
FairParSet;
16
using namespace
o2::tpc
;
17
18
ClassImp
(
ContainerFactory
);
19
20
static
ContainerFactory
gTpcContainerFactory;
21
22
ContainerFactory::ContainerFactory
()
23
:
FairContFact
()
24
{
26
fName =
"ContainerFactory"
;
27
fTitle =
"Factory for parameter containers in libO2tpc"
;
28
setAllContainers();
29
FairRuntimeDb::instance()->addContFactory(
this
);
30
}
31
32
void
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
48
FairParSet*
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
}
c
uint32_t c
Definition
RawData.h:2
ContainerFactory.h
ClassImp
ClassImp(ContainerFactory)
FairContFact
o2::tpc::ContainerFactory
Definition
ContainerFactory.h:27
o2::tpc::ContainerFactory::createContainer
FairParSet * createContainer(FairContainer *) override
Definition
ContainerFactory.cxx:48
o2::tpc::ContainerFactory::ContainerFactory
ContainerFactory()
Definition
ContainerFactory.cxx:22
o2::tpc
Global TPC definitions and constants.
Definition
SimTraits.h:167
Detectors
TPC
base
src
ContainerFactory.cxx
Generated on Tue Feb 25 2025 23:16:27 for Project by
1.9.8