FairRoot/PandaRoot
Public Member Functions | Private Member Functions | List of all members
CbmPlaneContFact Class Reference

#include <CbmPlaneContFact.h>

Inheritance diagram for CbmPlaneContFact:

Public Member Functions

 CbmPlaneContFact ()
 
 ~CbmPlaneContFact ()
 
FairParSet * createContainer (FairContainer *)
 

Private Member Functions

void setAllContainers ()
 

Detailed Description

Definition at line 8 of file CbmPlaneContFact.h.

Constructor & Destructor Documentation

CbmPlaneContFact::CbmPlaneContFact ( )

Definition at line 22 of file CbmPlaneContFact.cxx.

22  {
23  // Constructor (called when the library is loaded)
24  fName="CbmPlaneContFact";
25  fTitle="Factory for parameter containers in libPlane";
27  FairRuntimeDb::instance()->addContFactory(this);
28 }
CbmPlaneContFact::~CbmPlaneContFact ( )
inline

Definition at line 13 of file CbmPlaneContFact.h.

13 {}

Member Function Documentation

FairParSet * CbmPlaneContFact::createContainer ( FairContainer *  c)

Calls the constructor of the corresponding parameter container. For an actual context, which is not an empty string and not the default context of this container, the name is concatinated with the context.

Definition at line 42 of file CbmPlaneContFact.cxx.

References name, and p.

42  {
46  const char* name=c->GetName();
47  FairParSet* p=NULL;
48  if (strcmp(name,"CbmGeoPlanePar")==0) {
49  p=new CbmGeoPlanePar(c->getConcatName().Data(),c->GetTitle(),c->getContext());
50  }
51  return p;
52 }
Double_t p
Definition: anasim.C:58
TString name
void CbmPlaneContFact::setAllContainers ( )
private

Creates the Container objects with all accepted contexts and adds them to the list of containers for the STS library.

Definition at line 30 of file CbmPlaneContFact.cxx.

References p.

30  {
34  FairContainer* p= new FairContainer("CbmGeoPlanePar",
35  "Plane Geometry Parameters",
36  "TestDefaultContext");
37  p->addContext("TestNonDefaultContext");
38 
39  containers->Add(p);
40 }
Double_t p
Definition: anasim.C:58

The documentation for this class was generated from the following files: