FairRoot
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
MyPassiveContFact.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 (LGPL) version 3, *
6
* copied verbatim in the file "LICENSE" *
7
********************************************************************************/
8
9
// -------------------------------------------------------------------------
10
// ----- MyPassiveContFact file -----
11
// ----- Created 26/03/14 by M. Al-Turany -----
12
// -------------------------------------------------------------------------
13
14
//*-- AUTHOR : Denis Bertini
15
//*-- Created : 21/06/2005
16
18
//
19
// MyPassiveContFact
20
//
21
// Factory for the parameter containers in libPassive
22
//
24
#include "
MyPassiveContFact.h
"
25
26
#include "
FairRuntimeDb.h
"
// for FairRuntimeDb
27
28
#include <TList.h>
// for TList
29
#include <TString.h>
// for TString
30
#include <string.h>
// for strcmp, NULL
31
32
class
FairParSet
;
33
34
using namespace
std;
35
36
ClassImp
(
MyPassiveContFact
);
37
38
static
MyPassiveContFact
gMyPassiveContFact;
39
40
MyPassiveContFact::MyPassiveContFact
()
41
:
FairContFact
()
42
{
43
// Constructor (called when the library is loaded)
44
fName
=
"MyPassiveContFact"
;
45
fTitle
=
"Factory for parameter containers in libPassive"
;
46
setAllContainers();
47
FairRuntimeDb::instance
()->
addContFactory
(
this
);
48
}
49
50
void
MyPassiveContFact::setAllContainers()
51
{
55
FairContainer
* p =
new
FairContainer
(
"FairGeoPassivePar"
,
"Passive Geometry Parameters"
,
"TestDefaultContext"
);
56
p->
addContext
(
"TestNonDefaultContext"
);
57
58
containers
->Add(p);
59
}
60
61
FairParSet
*
MyPassiveContFact::createContainer
(
FairContainer
* c)
62
{
66
/* const char* name=c->GetName();
67
FairParSet* p=NULL;
68
if (strcmp(name,"FairGeoPassivePar")==0) {
69
p=new FairGeoPassivePar(c->getConcatName().Data(),c->GetTitle(),c->getContext());
70
}
71
return p;
72
*/
73
}
FairRuntimeDb.h
MyPassiveContFact
Definition:
MyPassiveContFact.h:23
FairParSet::fName
TString fName
Definition:
FairParSet.h:21
FairContainer
Definition:
FairContFact.h:20
FairRuntimeDb::instance
static FairRuntimeDb * instance(void)
Definition:
FairRuntimeDb.cxx:56
FairParSet
Definition:
FairParSet.h:18
ClassImp
ClassImp(FairEventBuilder)
MyPassiveContFact::createContainer
FairParSet * createContainer(FairContainer *)
Definition:
MyPassiveContFact.cxx:61
FairContFact::containers
TList * containers
Definition:
FairContFact.h:62
MyPassiveContFact::MyPassiveContFact
MyPassiveContFact()
Definition:
MyPassiveContFact.cxx:40
FairContFact
Definition:
FairContFact.h:48
FairRuntimeDb::addContFactory
void addContFactory(FairContFact *)
Definition:
FairRuntimeDb.cxx:107
FairContainer::addContext
void addContext(const char *)
Definition:
FairContFact.cxx:64
MyPassiveContFact.h
FairParSet::fTitle
TString fTitle
Definition:
FairParSet.h:22
FairRoot
templates
project_stl_containers
passive
MyPassiveContFact.cxx
Generated on Mon Mar 8 2021 12:14:07 for FairRoot by
1.8.5