EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
FairDetParTSQLIo Class Reference

#include <EicRoot/blob/master/parbase/dbIO/FairDetParTSQLIo.h>

+ Inheritance diagram for FairDetParTSQLIo:
+ Collaboration diagram for FairDetParTSQLIo:

Public Member Functions

 FairDetParTSQLIo ()
 Constructors.
 
 FairDetParTSQLIo (FairDbMultConnector const &cons, int const dbNum=-1)
 
virtual ~FairDetParTSQLIo ()
 Destructor.
 
Bool_t read (FairParSet *pars)
 
Int_t write (FairParSet *pars)
 
Int_t getRunStart (FairParSet *pPar=0)
 
virtual void commit ()
 
virtual void rollback ()
 
void print ()
 _______________ Inline Implementations ________________
 
- Public Member Functions inherited from FairDetParIo
 FairDetParIo ()
 
virtual ~FairDetParIo ()
 
void setInputNumber (Int_t n)
 
Int_t getInputNumber ()
 
virtual Bool_t init (FairParSet *)
 

Protected Member Functions

void setChanged (FairParSet *pars)
 

Protected Attributes

int fDefaultDb
 
FairDbMultConnectorfConnections
 
TList * fcontainerList
 FairDbConnection.
 
FairRtdbRunfactContVers
 List of parameter containers.
 
int actRunId
 The actual list of container versions.
 
- Protected Attributes inherited from FairDetParIo
Int_t inputNumber
 

Private Member Functions

 FairDetParTSQLIo (FairDetParTSQLIo const &ot)
 
FairDetParTSQLIooperator= (FairDetParTSQLIo const &ot)
 

Detailed Description

Definition at line 22 of file FairDetParTSQLIo.h.

View newest version in sPHENIX GitHub at line 22 of file FairDetParTSQLIo.h

Constructor & Destructor Documentation

FairDetParTSQLIo::FairDetParTSQLIo ( )

Constructors.

FairDetParTSQLIo::FairDetParTSQLIo ( FairDbMultConnector const &  cons,
int const  dbNum = -1 
)
Parameters
consFairDbMultConnector which holds a number of initialized db connections.
dbNumThe db which is selected to act as the master for the current operations. Note: A new FairDbMultConnector object is created (to keep the ownership).
consFairDbMultConnector which holds a number of initialized db connections.
dbNumThe number of the db which is selected to act as the master for the current operations. Note: A new FairDbMultConnector object is created (to keep the ownership).

Definition at line 34 of file FairDetParTSQLIo.cxx.

View newest version in sPHENIX GitHub at line 34 of file FairDetParTSQLIo.cxx

FairDetParTSQLIo::~FairDetParTSQLIo ( )
virtual

Destructor.

Definition at line 44 of file FairDetParTSQLIo.cxx.

View newest version in sPHENIX GitHub at line 44 of file FairDetParTSQLIo.cxx

References factContVers, fConnections, and fcontainerList.

FairDetParTSQLIo::FairDetParTSQLIo ( FairDetParTSQLIo const &  ot)
private

Member Function Documentation

void FairDetParTSQLIo::commit ( )
virtual

Definition at line 104 of file FairDetParTSQLIo.cxx.

View newest version in sPHENIX GitHub at line 104 of file FairDetParTSQLIo.cxx

int FairDetParTSQLIo::getRunStart ( FairParSet pPar = 0)

Definition at line 61 of file FairDetParTSQLIo.cxx.

View newest version in sPHENIX GitHub at line 61 of file FairDetParTSQLIo.cxx

References actRunId, factContVers, FairRuntimeDb::getCurrentRun(), FairRtdbRun::getRefRun(), FairRtdbRun::getRunId(), and FairRuntimeDb::instance().

+ Here is the call graph for this function:

FairDetParTSQLIo& FairDetParTSQLIo::operator= ( FairDetParTSQLIo const &  ot)
private
void FairDetParTSQLIo::print ( )
inline

_______________ Inline Implementations ________________

Definition at line 87 of file FairDetParTSQLIo.h.

View newest version in sPHENIX GitHub at line 87 of file FairDetParTSQLIo.h

Bool_t FairDetParTSQLIo::read ( FairParSet pars)

Read the parameter set from the DB.

Definition at line 119 of file FairDetParTSQLIo.cxx.

View newest version in sPHENIX GitHub at line 119 of file FairDetParTSQLIo.cxx

void FairDetParTSQLIo::rollback ( )
virtual

Definition at line 111 of file FairDetParTSQLIo.cxx.

View newest version in sPHENIX GitHub at line 111 of file FairDetParTSQLIo.cxx

void FairDetParTSQLIo::setChanged ( FairParSet pars)
protected

Definition at line 91 of file FairDetParTSQLIo.cxx.

View newest version in sPHENIX GitHub at line 91 of file FairDetParTSQLIo.cxx

References Acts::UnitConstants::s, FairParSet::setChanged(), and FairParSet::setDescription().

+ Here is the call graph for this function:

Int_t FairDetParTSQLIo::write ( FairParSet pars)
virtual

Reimplemented from FairDetParIo.

Reimplemented in FairGenericParTSQLIo.

Definition at line 128 of file FairDetParTSQLIo.cxx.

View newest version in sPHENIX GitHub at line 128 of file FairDetParTSQLIo.cxx

References FairParSet::getAuthor(), FairParSet::getDescription(), FairParSet::getDetectorName(), and FairParSet::getParamContext().

+ Here is the call graph for this function:

Member Data Documentation

int FairDetParTSQLIo::actRunId
protected

The actual list of container versions.

Definition at line 72 of file FairDetParTSQLIo.h.

View newest version in sPHENIX GitHub at line 72 of file FairDetParTSQLIo.h

Referenced by getRunStart().

FairRtdbRun* FairDetParTSQLIo::factContVers
protected

List of parameter containers.

Definition at line 71 of file FairDetParTSQLIo.h.

View newest version in sPHENIX GitHub at line 71 of file FairDetParTSQLIo.h

Referenced by getRunStart(), and ~FairDetParTSQLIo().

FairDbMultConnector* FairDetParTSQLIo::fConnections
protected

Definition at line 69 of file FairDetParTSQLIo.h.

View newest version in sPHENIX GitHub at line 69 of file FairDetParTSQLIo.h

Referenced by ~FairDetParTSQLIo().

TList* FairDetParTSQLIo::fcontainerList
protected

FairDbConnection.

Definition at line 70 of file FairDetParTSQLIo.h.

View newest version in sPHENIX GitHub at line 70 of file FairDetParTSQLIo.h

Referenced by ~FairDetParTSQLIo().

int FairDetParTSQLIo::fDefaultDb
protected

The default Database connection.

Definition at line 68 of file FairDetParTSQLIo.h.

View newest version in sPHENIX GitHub at line 68 of file FairDetParTSQLIo.h


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