FairRoot
 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 
37 
38 static MyPassiveContFact gMyPassiveContFact;
39 
41  : FairContFact()
42 {
43  // Constructor (called when the library is loaded)
44  fName = "MyPassiveContFact";
45  fTitle = "Factory for parameter containers in libPassive";
46  setAllContainers();
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 
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 }
TString fName
Definition: FairParSet.h:21
static FairRuntimeDb * instance(void)
ClassImp(FairEventBuilder)
FairParSet * createContainer(FairContainer *)
TList * containers
Definition: FairContFact.h:62
void addContFactory(FairContFact *)
void addContext(const char *)
TString fTitle
Definition: FairParSet.h:22