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

PgPostBankBackupStorage. More...

#include <coresoftware/blob/master/offline/database/pdbcal/pg/PgPostBankBackupStorage.h>

+ Inheritance diagram for PgPostBankBackupStorage:
+ Collaboration diagram for PgPostBankBackupStorage:

Classes

class  BankHeader
 

Public Member Functions

 PgPostBankBackupStorage (PdbCalBank *b)
 
 PgPostBankBackupStorage ()
 
virtual ~PgPostBankBackupStorage ()
 
virtual void Print (Option_t *option="") const
 
bool isValid () const
 
void format_name_title ()
 
PgPostCalBankcreateBank ()
 use this storage object to recover the PdbCalBankWrapper
 
void printEntry (size_t s)
 
size_t getLength () const
 
PdbCalChangetEntry (size_t pos)
 
const PdbCalBankget_bank () const
 
PdbCalBankget_bank ()
 
const BankHeaderget_database_header () const
 
BankHeaderget_database_header ()
 
void set_database_header (const BankHeader &databaseHeader)
 
const std::string & get_obj_classname () const
 
std::string & get_obj_classname ()
 
void set_obj_classname (const std::string &name)
 
const BankHeaderget_obj_header () const
 
BankHeaderget_obj_header ()
 
void set_obj_header (const BankHeader &objHeader)
 
void set_obj_info (const PgPostCalBank *bankwapper)
 record bankwapper to obj_header and obj_classname
 

Private Attributes

BankHeader database_header
 header as written in database table
 
BankHeader obj_header
 header as written in the bank wrapper object
 
std::string obj_classname
 class name of the PgPostCalBank object as in the database
 
PdbCalBankbank
 storage of the original calibration bank (vector of PdbCalChan)
 

Detailed Description

PgPostBankBackupStorage.

Definition at line 30 of file PgPostBankBackupStorage.h.

View newest version in sPHENIX GitHub at line 30 of file PgPostBankBackupStorage.h

Constructor & Destructor Documentation

PgPostBankBackupStorage::PgPostBankBackupStorage ( PdbCalBank b)

constructor

Parameters
[in]bpointer to a bank (not wrappers!). PgPostBankBackupStorage will own this pointer

Definition at line 33 of file PgPostBankBackupStorage.cc.

View newest version in sPHENIX GitHub at line 33 of file PgPostBankBackupStorage.cc

References b, bank, and g4zmq::exit().

+ Here is the call graph for this function:

PgPostBankBackupStorage::PgPostBankBackupStorage ( )

Definition at line 57 of file PgPostBankBackupStorage.cc.

View newest version in sPHENIX GitHub at line 57 of file PgPostBankBackupStorage.cc

PgPostBankBackupStorage::~PgPostBankBackupStorage ( )
virtual

Definition at line 64 of file PgPostBankBackupStorage.cc.

View newest version in sPHENIX GitHub at line 64 of file PgPostBankBackupStorage.cc

References bank.

Member Function Documentation

PgPostCalBank * PgPostBankBackupStorage::createBank ( )

use this storage object to recover the PdbCalBankWrapper

use this storage object to recover the PdbCalBankWrapper/PdbCalBankWrapper2 user code are responsible to delete the returned PdbCalBank

Definition at line 72 of file PgPostBankBackupStorage.cc.

View newest version in sPHENIX GitHub at line 72 of file PgPostBankBackupStorage.cc

References bank, PHObject::Clone(), database_header, PdbClassMap< T >::end(), PdbClassMap< T >::find(), get_obj_classname(), PgPostBankBackupStorage::BankHeader::getBankID(), PgPostBankBackupStorage::BankHeader::getDescription(), PgPostBankBackupStorage::BankHeader::getEndValTime(), PgPostBankBackupStorage::BankHeader::getInsertTime(), PgPostBankBackupStorage::BankHeader::getRId(), PgPostBankBackupStorage::BankHeader::getStartValTime(), PgPostBankBackupStorage::BankHeader::getTableName(), PgPostBankBackupStorage::BankHeader::getUserName(), PdbClassMap< T >::instance(), isValid(), obj_classname, obj_header, PgPostCalBank::setBankID(), PgPostCalBank::setDescription(), PgPostCalBank::setEndValTime(), PgPostCalBank::setInsertTime(), PgPostCalBank::setStartValTime(), PgPostCalBank::setTableName(), and PgPostCalBank::setUserName().

Referenced by PgPostBankBackupManager::commit(), and PgPostBankBackupManager::commitAllBankfromTFile().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void PgPostBankBackupStorage::format_name_title ( )

Definition at line 213 of file PgPostBankBackupStorage.cc.

View newest version in sPHENIX GitHub at line 213 of file PgPostBankBackupStorage.cc

References database_header, PgPostBankBackupStorage::BankHeader::get_id_string(), PgPostBankBackupStorage::BankHeader::getDescription(), and SetTitle().

Referenced by PgPostBankBackupManager::SQLResultSet2BackupStorage().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

const PdbCalBank* PgPostBankBackupStorage::get_bank ( ) const
inline

Definition at line 206 of file PgPostBankBackupStorage.h.

View newest version in sPHENIX GitHub at line 206 of file PgPostBankBackupStorage.h

References bank.

PdbCalBank* PgPostBankBackupStorage::get_bank ( )
inline

Definition at line 212 of file PgPostBankBackupStorage.h.

View newest version in sPHENIX GitHub at line 212 of file PgPostBankBackupStorage.h

References bank.

const BankHeader& PgPostBankBackupStorage::get_database_header ( ) const
inline

Definition at line 218 of file PgPostBankBackupStorage.h.

View newest version in sPHENIX GitHub at line 218 of file PgPostBankBackupStorage.h

References database_header.

Referenced by PgPostBankBackupManager::commit(), PgPostBankBackupManager::commitAllBankfromTFile(), and PgPostBankBackupManager::SQLResultSet2BackupStorage().

+ Here is the caller graph for this function:

BankHeader& PgPostBankBackupStorage::get_database_header ( )
inline

Definition at line 224 of file PgPostBankBackupStorage.h.

View newest version in sPHENIX GitHub at line 224 of file PgPostBankBackupStorage.h

References database_header.

const std::string& PgPostBankBackupStorage::get_obj_classname ( ) const
inline

Definition at line 236 of file PgPostBankBackupStorage.h.

View newest version in sPHENIX GitHub at line 236 of file PgPostBankBackupStorage.h

References obj_classname.

Referenced by createBank().

+ Here is the caller graph for this function:

std::string& PgPostBankBackupStorage::get_obj_classname ( )
inline

Definition at line 242 of file PgPostBankBackupStorage.h.

View newest version in sPHENIX GitHub at line 242 of file PgPostBankBackupStorage.h

References obj_classname.

const BankHeader& PgPostBankBackupStorage::get_obj_header ( ) const
inline

Definition at line 254 of file PgPostBankBackupStorage.h.

View newest version in sPHENIX GitHub at line 254 of file PgPostBankBackupStorage.h

References obj_header.

Referenced by PgPostBankBackupManager::SQLResultSet2BackupStorage().

+ Here is the caller graph for this function:

BankHeader& PgPostBankBackupStorage::get_obj_header ( )
inline

Definition at line 260 of file PgPostBankBackupStorage.h.

View newest version in sPHENIX GitHub at line 260 of file PgPostBankBackupStorage.h

References obj_header.

PdbCalChan & PgPostBankBackupStorage::getEntry ( size_t  pos)

Definition at line 226 of file PgPostBankBackupStorage.cc.

View newest version in sPHENIX GitHub at line 226 of file PgPostBankBackupStorage.cc

References bank, and PdbCalBank::getEntry().

Referenced by printEntry().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

size_t PgPostBankBackupStorage::getLength ( ) const

Definition at line 220 of file PgPostBankBackupStorage.cc.

View newest version in sPHENIX GitHub at line 220 of file PgPostBankBackupStorage.cc

References bank, and PdbCalBank::getLength().

+ Here is the call graph for this function:

bool PgPostBankBackupStorage::isValid ( ) const

Definition at line 231 of file PgPostBankBackupStorage.cc.

View newest version in sPHENIX GitHub at line 231 of file PgPostBankBackupStorage.cc

References bank, database_header, PgPostBankBackupStorage::BankHeader::getBankID(), PgPostBankBackupStorage::BankHeader::getRId(), PgPostBankBackupStorage::BankHeader::getTableName(), PgPostBankBackupStorage::BankHeader::INVALID_BANKID, and obj_classname.

Referenced by PgPostBankBackupManager::commit(), createBank(), and PgPostBankBackupManager::fetchBank2TFile().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void PgPostBankBackupStorage::Print ( Option_t *  option = "") const
virtual

Definition at line 200 of file PgPostBankBackupStorage.cc.

View newest version in sPHENIX GitHub at line 200 of file PgPostBankBackupStorage.cc

References bank, database_header, obj_header, PdbCalBank::print(), pyG4Element::Print(), and PgPostBankBackupStorage::BankHeader::Print().

Referenced by PgPostBankBackupManager::fetchBank2TFile().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void PgPostBankBackupStorage::printEntry ( size_t  s)
inline

Definition at line 194 of file PgPostBankBackupStorage.h.

View newest version in sPHENIX GitHub at line 194 of file PgPostBankBackupStorage.h

References getEntry(), and PdbCalChan::print().

+ Here is the call graph for this function:

void PgPostBankBackupStorage::set_database_header ( const BankHeader databaseHeader)
inline

Definition at line 230 of file PgPostBankBackupStorage.h.

View newest version in sPHENIX GitHub at line 230 of file PgPostBankBackupStorage.h

References database_header.

void PgPostBankBackupStorage::set_obj_classname ( const std::string &  name)
inline

Definition at line 248 of file PgPostBankBackupStorage.h.

View newest version in sPHENIX GitHub at line 248 of file PgPostBankBackupStorage.h

References obj_classname.

void PgPostBankBackupStorage::set_obj_header ( const BankHeader objHeader)
inline

Definition at line 266 of file PgPostBankBackupStorage.h.

View newest version in sPHENIX GitHub at line 266 of file PgPostBankBackupStorage.h

References obj_header.

void PgPostBankBackupStorage::set_obj_info ( const PgPostCalBank bankwapper)

Member Data Documentation

PdbCalBank* PgPostBankBackupStorage::bank
private

storage of the original calibration bank (vector of PdbCalChan)

Definition at line 283 of file PgPostBankBackupStorage.h.

View newest version in sPHENIX GitHub at line 283 of file PgPostBankBackupStorage.h

Referenced by createBank(), get_bank(), getEntry(), getLength(), isValid(), PgPostBankBackupStorage(), Print(), and ~PgPostBankBackupStorage().

BankHeader PgPostBankBackupStorage::database_header
private

header as written in database table

Definition at line 277 of file PgPostBankBackupStorage.h.

View newest version in sPHENIX GitHub at line 277 of file PgPostBankBackupStorage.h

Referenced by createBank(), format_name_title(), get_database_header(), isValid(), Print(), and set_database_header().

std::string PgPostBankBackupStorage::obj_classname
private

class name of the PgPostCalBank object as in the database

Definition at line 281 of file PgPostBankBackupStorage.h.

View newest version in sPHENIX GitHub at line 281 of file PgPostBankBackupStorage.h

Referenced by createBank(), get_obj_classname(), isValid(), set_obj_classname(), and set_obj_info().

BankHeader PgPostBankBackupStorage::obj_header
private

header as written in the bank wrapper object

Definition at line 279 of file PgPostBankBackupStorage.h.

View newest version in sPHENIX GitHub at line 279 of file PgPostBankBackupStorage.h

Referenced by createBank(), get_obj_header(), Print(), set_obj_header(), and set_obj_info().


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