R3BROOT
R3B analysis software
Loading...
Searching...
No Matches
R3BNeulandContFact.cxx
Go to the documentation of this file.
1/******************************************************************************
2 * Copyright (C) 2019 GSI Helmholtzzentrum für Schwerionenforschung GmbH *
3 * Copyright (C) 2019-2025 Members of R3B Collaboration *
4 * *
5 * This software is distributed under the terms of the *
6 * GNU General Public Licence (GPL) version 3, *
7 * copied verbatim in the file "LICENSE". *
8 * *
9 * In applying this license GSI does not waive the privileges and immunities *
10 * granted to it by virtue of its status as an Intergovernmental Organization *
11 * or submit itself to any jurisdiction. *
12 ******************************************************************************/
13
14#include "R3BNeulandContFact.h"
15#include "FairRuntimeDb.h"
16#include "R3BNeulandGeoPar.h"
17
19
21{
22 fName = "R3BNeulandContFact";
23 fTitle = "Factory for Neuland parameter containers";
24 setAllContainers();
25 FairRuntimeDb::instance()->addContFactory(this);
26}
27
28void R3BNeulandContFact::setAllContainers()
29{
30 FairContainer* p1 = new FairContainer("R3BNeulandGeoPar", "Neuland Geometry Parameters", "TestDefaultContext");
31 p1->addContext("TestNonDefaultContext");
32 containers->Add(p1);
33}
34
35FairParSet* R3BNeulandContFact::createContainer(FairContainer* c)
36{
37 const char* name = c->GetName();
38
39 if (strcmp(name, "R3BNeulandGeoPar") == 0)
40 {
41 return new R3BNeulandGeoPar(c->getConcatName().Data(), c->GetTitle(), c->getContext());
42 }
43
44 return nullptr;
45}
46
ClassImp(R3B::Neuland::Cal2HitPar)
static R3BNeulandContFact gR3BNeulandContFact
static const Double_t c
NeuLAND parameter container factory.
FairParSet * createContainer(FairContainer *) override
NeuLAND geometry parameter storage.