Project
Loading...
Searching...
No Matches
PassiveContFact.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/********************************************************************************
13 * Copyright (C) 2014 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
14 * *
15 * This software is distributed under the terms of the *
16 * GNU Lesser General Public Licence version 3 (LGPL) version 3, *
17 * copied verbatim in the file "LICENSE" *
18 ********************************************************************************/
19
20// -------------------------------------------------------------------------
21// ----- PassiveContFact file -----
22// ----- Created 26/03/14 by M. Al-Turany -----
23// -------------------------------------------------------------------------
24
25//*-- AUTHOR : Denis Bertini
26//*-- Created : 21/06/2005
27
29//
30// PassiveContFact
31//
32// Factory for the parameter containers in libPassive
33//
36#include "FairRuntimeDb.h" // for FairRuntimeDb
37#include "TList.h" // for TList
38#include "TString.h" // for TString
39#include <cstring> // for strcmp, NULL
40
41using namespace std;
42using namespace o2::passive;
43
45
46static PassiveContFact gPassiveContFact;
47
49 : FairContFact()
50{
51 // Constructor (called when the library is loaded)
52 fName = "PassiveContFact";
53 fTitle = "Factory for parameter containers in libPassive";
54 setAllContainers();
55 FairRuntimeDb::instance()->addContFactory(this);
56}
57
58void PassiveContFact::setAllContainers()
59{
63 auto* p = new FairContainer("FairGeoPassivePar",
64 "Passive Geometry Parameters",
65 "TestDefaultContext");
66 p->addContext("TestNonDefaultContext");
67
68 containers->Add(p);
69}
70
71FairParSet* PassiveContFact::createContainer(FairContainer* c)
72{
76 /* const char* name=c->GetName();
77 FairParSet* p=NULL;
78 if (strcmp(name,"FairGeoPassivePar")==0) {
79 p=new FairGeoPassivePar(c->getConcatName().Data(),c->GetTitle(),c->getContext());
80 }
81 return p;
82*/
83 return nullptr;
84}
ClassImp(o2::passive::PassiveContFact)
uint32_t c
Definition RawData.h:2
FairParSet * createContainer(FairContainer *) override
Defining DataPointCompositeObject explicitly as copiable.