StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
StEmcDbHandler Class Reference
Inheritance diagram for StEmcDbHandler:

Public Member Functions

 StEmcDbHandler ()
 Class ctor. More...
 
virtual ~StEmcDbHandler ()
 Class dtor. More...
 
StDbTablegetDbTable ()
 
std::vector< std::string > getTimeStampList (const char *beginTime, const char *endTime)
 
void setTableNode (const char *node="Calibrations_emc")
 
void setTableName (const char *name)
 
void setTimeStamp (const char *stamp="2030-01-01 00:00:00")
 
void setMaxEntryTime (const char *stamp="2030-01-01 00:00:00")
 
void setFlavor (const char *flavor="ofl")
 
void writeToDb (char *data)
 

Static Public Member Functions

static std::string timeToSqlTime (const char *apiTime)
 

Protected Attributes

std::string mFlavor
 flavor for BEMC tables
 
std::string mTableNode
 Database node for EMC tables.
 
std::string mTableName
 EMC database table name, according to input.
 
std::string mTimeStamp
 EMC database table time stamp.
 
std::string mMaxTime
 EMC database max entry time.
 
std::vector< std::string > mTimeStampList
 Time stamp list of specified EMC database table.
 

Detailed Description

Definition at line 31 of file StEmcDbHandler.h.

Constructor & Destructor Documentation

StEmcDbHandler::StEmcDbHandler ( )

Class ctor.

Class constructor

Definition at line 24 of file StEmcDbHandler.cxx.

StEmcDbHandler::~StEmcDbHandler ( )
virtual

Class dtor.

Class destructor

Definition at line 34 of file StEmcDbHandler.cxx.

Member Function Documentation

StDbTable * StEmcDbHandler::getDbTable ( )

Retrieving of specified database Emc Table

Definition at line 39 of file StEmcDbHandler.cxx.

References StDbManager::Instance(), mFlavor, mMaxTime, mTableName, mTableNode, and mTimeStamp.

Referenced by StBemcTablesWriter::loadTables().

std::vector< std::string > StEmcDbHandler::getTimeStampList ( const char *  beginTime,
const char *  endTime 
)

Return time stamp list of an EMC table within specified limits

Definition at line 70 of file StEmcDbHandler.cxx.

References StDbManager::Instance(), mFlavor, mMaxTime, mTableName, mTableNode, and mTimeStampList.


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