FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FairRuntimeDb Class Reference

list of container factories More...

#include <FairRuntimeDb.h>

Inheritance diagram for FairRuntimeDb:

Public Member Functions

 ~FairRuntimeDb (void)
 
Bool_t addParamContext (const char *)
 
void printParamContexts ()
 
void addContFactory (FairContFact *)
 
void removeContFactory (FairContFact *fact)
 
FairContFactgetContFactory (const Text_t *)
 
Bool_t addContainer (FairParSet *)
 
FairParSetgetContainer (const Text_t *)
 
FairParSetfindContainer (const char *)
 
void removeContainer (Text_t *)
 
void removeAllContainers (void)
 
Bool_t initContainers (Int_t runId, Int_t refId=-1, const Text_t *fileName="")
 
void setContainersStatic (Bool_t f=kTRUE)
 
Bool_t writeContainers (void)
 
Bool_t writeContainer (FairParSet *, FairRtdbRun *, FairRtdbRun *refRun=0)
 
FairRtdbRunaddRun (Int_t runId, Int_t refId=-1)
 
FairRtdbRungetRun (Int_t)
 
FairRtdbRungetRun (Text_t *)
 
FairRtdbRungetCurrentRun (void)
 
Text_t const * getCurrentFileName ()
 
void clearRunList (void)
 
void removeRun (Text_t *)
 
Bool_t setInputVersion (Int_t run, Text_t *container, Int_t version, Int_t inputNumber)
 
Bool_t setRootOutputVersion (Int_t run, Text_t *container, Int_t version)
 
void setVersionsChanged (Bool_t f=kTRUE)
 
void resetInputVersions (void)
 
void resetOutputVersions (void)
 
void resetAllVersions (void)
 
Bool_t readAll (void)
 
void writeVersions (void)
 
void saveOutput (void)
 
Bool_t setFirstInput (FairParIo *)
 
Bool_t setSecondInput (FairParIo *)
 
Bool_t setOutput (FairParIo *)
 
FairParIogetFirstInput (void)
 
FairParIogetSecondInput (void)
 
FairParIogetOutput (void)
 
void closeFirstInput (void)
 
void closeSecondInput (void)
 
void closeOutput (void)
 
void activateParIo (FairParIo *)
 
TList * getListOfContainers ()
 
void print (void)
 
Int_t findOutputVersion (FairParSet *)
 

Static Public Member Functions

static FairRuntimeDbinstance (void)
 

Protected Types

enum  ParamIOType { UNKNOWN_Type = 0, AsciiFileOutput = 1, RootFileOutput = 2, RootTSQLOutput = 3 }
 

Protected Member Functions

 FairRuntimeDb (void)
 

Protected Attributes

TList * containerList
 
TList * runs
 
FairParIofirstInput
 
FairParIosecondInput
 
FairParIooutput
 
FairRtdbRuncurrentRun
 
TString currentFileName
 
Bool_t versionsChanged
 
Bool_t isRootFileOutput
 
FairLoggerfLogger
 
ParamIOType ioType
 

Detailed Description

list of container factories

Definition at line 24 of file FairRuntimeDb.h.

Member Enumeration Documentation

Select which IO type to use.

Enumerator
UNKNOWN_Type 
AsciiFileOutput 
RootFileOutput 
RootTSQLOutput 

Definition at line 46 of file FairRuntimeDb.h.

Constructor & Destructor Documentation

FairRuntimeDb::FairRuntimeDb ( void  )
protected

Definition at line 65 of file FairRuntimeDb.cxx.

FairRuntimeDb::~FairRuntimeDb ( void  )

Definition at line 82 of file FairRuntimeDb.cxx.

Member Function Documentation

void FairRuntimeDb::activateParIo ( FairParIo io)

Definition at line 877 of file FairRuntimeDb.cxx.

Bool_t FairRuntimeDb::addContainer ( FairParSet container)

Definition at line 156 of file FairRuntimeDb.cxx.

void FairRuntimeDb::addContFactory ( FairContFact fact)

Definition at line 107 of file FairRuntimeDb.cxx.

Bool_t FairRuntimeDb::addParamContext ( const char *  context)

Definition at line 129 of file FairRuntimeDb.cxx.

FairRtdbRun * FairRuntimeDb::addRun ( Int_t  runId,
Int_t  refId = -1 
)

Definition at line 228 of file FairRuntimeDb.cxx.

void FairRuntimeDb::clearRunList ( void  )

Definition at line 284 of file FairRuntimeDb.cxx.

void FairRuntimeDb::closeFirstInput ( void  )

Definition at line 831 of file FairRuntimeDb.cxx.

void FairRuntimeDb::closeOutput ( void  )

Definition at line 863 of file FairRuntimeDb.cxx.

void FairRuntimeDb::closeSecondInput ( void  )

Definition at line 840 of file FairRuntimeDb.cxx.

FairParSet * FairRuntimeDb::findContainer ( const char *  name)

Definition at line 204 of file FairRuntimeDb.cxx.

Int_t FairRuntimeDb::findOutputVersion ( FairParSet cont)

Definition at line 324 of file FairRuntimeDb.cxx.

FairParSet * FairRuntimeDb::getContainer ( const Text_t *  name)

Definition at line 183 of file FairRuntimeDb.cxx.

FairContFact * FairRuntimeDb::getContFactory ( const Text_t *  FactName)

Definition at line 124 of file FairRuntimeDb.cxx.

Text_t const* FairRuntimeDb::getCurrentFileName ( )
inline

Definition at line 79 of file FairRuntimeDb.h.

FairRtdbRun* FairRuntimeDb::getCurrentRun ( void  )
inline

Definition at line 78 of file FairRuntimeDb.h.

FairParIo * FairRuntimeDb::getFirstInput ( void  )

Definition at line 804 of file FairRuntimeDb.cxx.

TList* FairRuntimeDb::getListOfContainers ( )
inline

Definition at line 105 of file FairRuntimeDb.h.

FairParIo * FairRuntimeDb::getOutput ( void  )

Definition at line 822 of file FairRuntimeDb.cxx.

FairRtdbRun * FairRuntimeDb::getRun ( Int_t  id)

Definition at line 257 of file FairRuntimeDb.cxx.

FairRtdbRun * FairRuntimeDb::getRun ( Text_t *  name)

Definition at line 265 of file FairRuntimeDb.cxx.

FairParIo * FairRuntimeDb::getSecondInput ( void  )

Definition at line 813 of file FairRuntimeDb.cxx.

Bool_t FairRuntimeDb::initContainers ( Int_t  runId,
Int_t  refId = -1,
const Text_t *  fileName = "" 
)

Definition at line 505 of file FairRuntimeDb.cxx.

FairRuntimeDb * FairRuntimeDb::instance ( void  )
static

Definition at line 56 of file FairRuntimeDb.cxx.

void FairRuntimeDb::print ( void  )

Definition at line 648 of file FairRuntimeDb.cxx.

void FairRuntimeDb::printParamContexts ( )

Definition at line 145 of file FairRuntimeDb.cxx.

Bool_t FairRuntimeDb::readAll ( void  )

Definition at line 527 of file FairRuntimeDb.cxx.

void FairRuntimeDb::removeAllContainers ( void  )

Definition at line 222 of file FairRuntimeDb.cxx.

void FairRuntimeDb::removeContainer ( Text_t *  name)

Definition at line 212 of file FairRuntimeDb.cxx.

void FairRuntimeDb::removeContFactory ( FairContFact fact)

Definition at line 116 of file FairRuntimeDb.cxx.

void FairRuntimeDb::removeRun ( Text_t *  name)

Definition at line 271 of file FairRuntimeDb.cxx.

void FairRuntimeDb::resetAllVersions ( void  )

Definition at line 721 of file FairRuntimeDb.cxx.

void FairRuntimeDb::resetInputVersions ( void  )

Definition at line 691 of file FairRuntimeDb.cxx.

void FairRuntimeDb::resetOutputVersions ( void  )

Definition at line 709 of file FairRuntimeDb.cxx.

void FairRuntimeDb::saveOutput ( void  )

Definition at line 849 of file FairRuntimeDb.cxx.

void FairRuntimeDb::setContainersStatic ( Bool_t  f = kTRUE)

Definition at line 596 of file FairRuntimeDb.cxx.

Bool_t FairRuntimeDb::setFirstInput ( FairParIo inp1)

Definition at line 729 of file FairRuntimeDb.cxx.

Bool_t FairRuntimeDb::setInputVersion ( Int_t  run,
Text_t *  container,
Int_t  version,
Int_t  inputNumber 
)

Definition at line 608 of file FairRuntimeDb.cxx.

Bool_t FairRuntimeDb::setOutput ( FairParIo op)

Definition at line 782 of file FairRuntimeDb.cxx.

Bool_t FairRuntimeDb::setRootOutputVersion ( Int_t  run,
Text_t *  container,
Int_t  version 
)

Definition at line 628 of file FairRuntimeDb.cxx.

Bool_t FairRuntimeDb::setSecondInput ( FairParIo inp2)

Definition at line 746 of file FairRuntimeDb.cxx.

void FairRuntimeDb::setVersionsChanged ( Bool_t  f = kTRUE)
inline

Definition at line 86 of file FairRuntimeDb.h.

Bool_t FairRuntimeDb::writeContainer ( FairParSet cont,
FairRtdbRun run,
FairRtdbRun refRun = 0 
)

Definition at line 428 of file FairRuntimeDb.cxx.

Bool_t FairRuntimeDb::writeContainers ( void  )

Definition at line 300 of file FairRuntimeDb.cxx.

void FairRuntimeDb::writeVersions ( void  )

Definition at line 286 of file FairRuntimeDb.cxx.

Member Data Documentation

TList* FairRuntimeDb::containerList
protected

Definition at line 31 of file FairRuntimeDb.h.

TString FairRuntimeDb::currentFileName
protected

Definition at line 37 of file FairRuntimeDb.h.

FairRtdbRun* FairRuntimeDb::currentRun
protected

Definition at line 36 of file FairRuntimeDb.h.

FairParIo* FairRuntimeDb::firstInput
protected

Definition at line 33 of file FairRuntimeDb.h.

FairLogger* FairRuntimeDb::fLogger
protected

Fair Logger

Definition at line 41 of file FairRuntimeDb.h.

ParamIOType FairRuntimeDb::ioType
protected

Definition at line 53 of file FairRuntimeDb.h.

Bool_t FairRuntimeDb::isRootFileOutput
protected

Definition at line 39 of file FairRuntimeDb.h.

FairParIo* FairRuntimeDb::output
protected

Definition at line 35 of file FairRuntimeDb.h.

TList* FairRuntimeDb::runs
protected

Definition at line 32 of file FairRuntimeDb.h.

FairParIo* FairRuntimeDb::secondInput
protected

Definition at line 34 of file FairRuntimeDb.h.

Bool_t FairRuntimeDb::versionsChanged
protected

Definition at line 38 of file FairRuntimeDb.h.


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