Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
RDBCp.C File Reference
#include <TError.h>
#include <TH1.h>
#include <TH2.h>
#include <TProfile.h>
#include <TRandom.h>
#include <TROOT.h>
#include <TSQLDriverManager.h>
#include <TSQLConnection.h>
#include <TSQLResultSet.h>
#include <TSQLResultSetMetaData.h>
#include <TSQLPreparedStatement.h>
+ Include dependency graph for RDBCp.C:

Go to the source code of this file.

Functions

void CreateStuff (TSQLConnection *con)
 
void DropStuff (TSQLConnection *con)
 
void Fill (TSQLConnection *con)
 
Int_t oproducer (const Text_t *dsn, const Text_t *usr, const Text_t *pwd)
 
void Catch (TSQLException *e)
 

Variables

const TString tableName = "object_test"
 
TH1F * hpx
 
TH2F * hpxpy
 
TProfile * hprof
 

Function Documentation

void Catch ( TSQLException e)

Definition at line 193 of file RDBCp.C.

View newest version in sPHENIX GitHub at line 193 of file RDBCp.C

References TSQLException::GetMessage(), printf(), and str.

+ Here is the call graph for this function:

void CreateStuff ( TSQLConnection con)

Definition at line 54 of file RDBCp.C.

View newest version in sPHENIX GitHub at line 54 of file RDBCp.C

References TSQLConnection::Commit(), TSQLConnection::CreateStatement(), TSQLStatement::ExecuteUpdate(), hprof, hpx, hpxpy, TSQLConnection::PrepareStatement(), printf(), TSQLPreparedStatement::SetObject(), TSQLPreparedStatement::SetString(), and tableName.

Referenced by oproducer(), and RDBCscroll().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void DropStuff ( TSQLConnection con)

Definition at line 95 of file RDBCp.C.

View newest version in sPHENIX GitHub at line 95 of file RDBCp.C

References TSQLConnection::CreateStatement(), TSQLStatement::ExecuteUpdate(), printf(), and tableName.

+ Here is the call graph for this function:

void Fill ( TSQLConnection con)

Definition at line 106 of file RDBCp.C.

View newest version in sPHENIX GitHub at line 106 of file RDBCp.C

References TSQLConnection::Commit(), TSQLConnection::CreateStatement(), TSQLStatement::ExecuteQuery(), TSQLResultSet::GetString(), hprof, hpx, hpxpy, TSQLResultSet::Next(), str, tableName, TSQLResultSet::UpdateObject(), and TSQLResultSet::UpdateRow().

+ Here is the call graph for this function:

Int_t oproducer ( const Text_t *  dsn,
const Text_t *  usr,
const Text_t *  pwd 
)

Definition at line 154 of file RDBCp.C.

View newest version in sPHENIX GitHub at line 154 of file RDBCp.C

References TSQLConnection::Close(), TSQLConnection::Commit(), con, CreateStuff(), TSQLDriverManager::GetConnection(), TSQLConnection::GetMetaData(), gSQLDriverManager, printf(), TSQLConnection::SetAutoCommit(), TSQL::SetHandler(), str, TSQLDatabaseMetaData::SupportsTransactions(), and TSQL::UnsetHandler().

+ Here is the call graph for this function:

Variable Documentation

TProfile* hprof

Definition at line 51 of file RDBCp.C.

View newest version in sPHENIX GitHub at line 51 of file RDBCp.C

TH1F* hpx

Definition at line 49 of file RDBCp.C.

View newest version in sPHENIX GitHub at line 49 of file RDBCp.C

TH2F* hpxpy

Definition at line 50 of file RDBCp.C.

View newest version in sPHENIX GitHub at line 50 of file RDBCp.C

const TString tableName = "object_test"

Definition at line 46 of file RDBCp.C.

View newest version in sPHENIX GitHub at line 46 of file RDBCp.C