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
18
static
R3BNeulandContFact
gR3BNeulandContFact
;
19
20
R3BNeulandContFact::R3BNeulandContFact
()
21
{
22
fName =
"R3BNeulandContFact"
;
23
fTitle =
"Factory for Neuland parameter containers"
;
24
setAllContainers
();
25
FairRuntimeDb::instance()->addContFactory(
this
);
26
}
27
28
void
R3BNeulandContFact::setAllContainers
()
29
{
30
FairContainer* p1 =
new
FairContainer(
"R3BNeulandGeoPar"
,
"Neuland Geometry Parameters"
,
"TestDefaultContext"
);
31
p1->addContext(
"TestNonDefaultContext"
);
32
containers->Add(p1);
33
}
34
35
FairParSet*
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
47
ClassImp
(
R3BNeulandContFact
)
ClassImp
ClassImp(R3B::Neuland::Cal2HitPar)
gR3BNeulandContFact
static R3BNeulandContFact gR3BNeulandContFact
Definition
R3BNeulandContFact.cxx:18
R3BNeulandContFact.h
R3BNeulandGeoPar.h
c
static const Double_t c
Definition
R3BNeulandNeutron.cxx:18
R3BNeulandContFact
NeuLAND parameter container factory.
Definition
R3BNeulandContFact.h:30
R3BNeulandContFact::R3BNeulandContFact
R3BNeulandContFact()
Definition
R3BNeulandContFact.cxx:20
R3BNeulandContFact::createContainer
FairParSet * createContainer(FairContainer *) override
Definition
R3BNeulandContFact.cxx:35
R3BNeulandContFact::setAllContainers
void setAllContainers()
Definition
R3BNeulandContFact.cxx:28
R3BNeulandGeoPar
NeuLAND geometry parameter storage.
Definition
R3BNeulandGeoPar.h:32
neuland
shared
R3BNeulandContFact.cxx
Generated by
1.13.2