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
15
#include "
ITSBase/ContainerFactory.h
"
16
#include "FairRuntimeDb.h"
// for FairRuntimeDb
17
#include "TString.h"
// for TString
18
19
class
FairParSet;
20
21
using namespace
o2::its
;
22
23
ClassImp
(
o2::its::ContainerFactory
);
24
25
static
ContainerFactory
gO2itsContFact;
26
27
ContainerFactory::ContainerFactory
() :
FairContFact
()
28
{
29
fName =
"ContainerFactory"
;
30
fTitle =
"Factory for parameter containers in libO2its"
;
31
mSetAllContainers();
32
FairRuntimeDb::instance()->addContFactory(
this
);
33
}
34
35
void
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
45
FairParSet*
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
}
ContainerFactory.h
Definition of the ContainerFactory class.
ClassImp
ClassImp(o2::its::ContainerFactory)
c
uint32_t c
Definition
RawData.h:2
FairContFact
o2::its::ContainerFactory
Definition
ContainerFactory.h:30
o2::its::ContainerFactory::createContainer
FairParSet * createContainer(FairContainer *) override
Definition
ContainerFactory.cxx:45
o2::its::ContainerFactory::ContainerFactory
ContainerFactory()
Default constructor.
Definition
ContainerFactory.cxx:27
o2::its
Definition
RecoContainer.h:64
Detectors
ITSMFT
ITS
base
src
ContainerFactory.cxx
Generated on Tue Feb 25 2025 23:16:27 for Project by
1.9.8