ATTPCROOT
0.3.0-alpha
A ROOT-based framework for analyzing data from active target detectors
AtPassive
AtPassiveContFact.cxx
Go to the documentation of this file.
1
/********************************************************************************
2
* Copyright (C) 2014 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
3
* *
4
* This software is distributed under the terms of the *
5
* GNU Lesser General Public Licence version 3 (LGPL) version 3, *
6
* copied verbatim in the file "LICENSE" *
7
********************************************************************************/
8
9
// -------------------------------------------------------------------------
10
// ----- AtPassiveContFact file -----
11
// ----- Created 26/03/14 by M. Al-Turany -----
12
// -------------------------------------------------------------------------
13
14
//*-- AUTHOR : Denis Bertini
15
//*-- Created : 21/06/2005
16
18
//
19
// AtPassiveContFact
20
//
21
// Factory for the parameter containers in libPassive
22
//
24
#include "
AtPassiveContFact.h
"
25
26
#include <FairContFact.h>
27
#include <FairRuntimeDb.h>
// for FairRuntimeDb
28
29
#include <Rtypes.h>
30
#include <TList.h>
// for TList
31
#include <TString.h>
// for TString
32
33
#include <iosfwd>
34
35
class
FairParSet;
36
37
using namespace
std;
38
39
ClassImp
(
AtPassiveContFact
)
40
41
static
AtPassiveContFact
gAtPassiveContFact;
42
43
AtPassiveContFact::AtPassiveContFact
() : FairContFact()
44
{
45
// Constructor (called when the library is loaded)
46
fName =
"AtPassiveContFact"
;
47
fTitle =
"Factory for parameter containers in libPassive"
;
48
setAllContainers();
49
FairRuntimeDb::instance()->addContFactory(
this
);
50
}
51
52
void
AtPassiveContFact::setAllContainers()
53
{
57
auto
*p =
new
FairContainer(
"FairGeoPassivePar"
,
"Passive Geometry Parameters"
,
"TestDefaultContext"
);
58
p->addContext(
"TestNonDefaultContext"
);
59
60
containers->Add(p);
61
}
62
63
FairParSet *
AtPassiveContFact::createContainer
(FairContainer *
c
)
64
{
68
/* const char* name=c->GetName();
69
FairParSet* p=NULL;
70
if (strcmp(name,"FairGeoPassivePar")==0) {
71
p=new FairGeoPassivePar(c->getConcatName().Data(),c->GetTitle(),c->getContext());
72
}
73
return p;
74
*/
75
return
nullptr
;
76
}
AtPassiveContFact
Definition:
AtPassiveContFact.h:26
AtPassiveContFact::AtPassiveContFact
AtPassiveContFact()
Definition:
AtPassiveContFact.cxx:43
AtPassiveContFact::createContainer
FairParSet * createContainer(FairContainer *)
Definition:
AtPassiveContFact.cxx:63
ClassImp
ClassImp(AtPassiveContFact) static AtPassiveContFact gAtPassiveContFact
c
constexpr auto c
Definition:
AtRadialChargeModel.cxx:20
AtPassiveContFact.h
Generated on Sat Nov 11 2023 15:30:38 for ATTPCROOT by
1.8.18