Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
RDBCproducer.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 RDBCproducer.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 205 of file RDBCproducer.C.

View newest version in sPHENIX GitHub at line 205 of file RDBCproducer.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 RDBCproducer.C.

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

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

+ Here is the call graph for this function:

void DropStuff ( TSQLConnection con)

Definition at line 105 of file RDBCproducer.C.

View newest version in sPHENIX GitHub at line 105 of file RDBCproducer.C

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

+ Here is the call graph for this function:

void Fill ( TSQLConnection con)

Definition at line 116 of file RDBCproducer.C.

View newest version in sPHENIX GitHub at line 116 of file RDBCproducer.C

References TSQLConnection::Commit(), TSQLConnection::CreateStatement(), TSQLStatement::ExecuteQuery(), TSQLResultSet::GetString(), hprof, hpx, hpxpy, kCONCUR_UPDATABLE, kTYPE_SCROLL_SENSITIVE, TSQLResultSet::Next(), TSQLConnection::Print(), 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 166 of file RDBCproducer.C.

View newest version in sPHENIX GitHub at line 166 of file RDBCproducer.C

References TSQLConnection::Close(), TSQLConnection::Commit(), con, CreateStuff(), TSQLDriverManager::GetConnection(), TSQLConnection::GetMetaData(), gSQLDriverManager, 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 RDBCproducer.C.

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

TH1F* hpx

Definition at line 49 of file RDBCproducer.C.

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

TH2F* hpxpy

Definition at line 50 of file RDBCproducer.C.

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

const TString tableName = "object_test"

Definition at line 46 of file RDBCproducer.C.

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