Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
RunToTimePg Class Reference

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

+ Inheritance diagram for RunToTimePg:
+ Collaboration diagram for RunToTimePg:

Public Member Functions

virtual ~RunToTimePg ()
 
PHTimeStampgetBeginTime (const int runNumber)
 
PHTimeStampgetEndTime (const int runNumber)
 
int getRunNumber (const PHTimeStamp &ts)
 
int DisconnectDB ()
 

Static Public Member Functions

static RunToTimePginstance ()
 
static int Register ()
 
- Static Public Member Functions inherited from RunToTime
static RunToTimeinstance ()
 

Protected Member Functions

 RunToTimePg ()
 
- Protected Member Functions inherited from RunToTime
 RunToTime ()
 
virtual ~RunToTime ()
 

Private Member Functions

PHTimeStampgetTime (const int runNumber, const std::string &what)
 
int GetConnection ()
 

Private Attributes

std::map< const int,
PHTimeStamp * > 
beginruntimes
 
std::map< const int,
PHTimeStamp * > 
endruntimes
 
odbc::Connectioncon
 

Static Private Attributes

static RunToTimePgmySpecificCopy = nullptr
 

Additional Inherited Members

- Static Protected Attributes inherited from RunToTime
static RunToTime__instance = 0
 

Detailed Description

Definition at line 18 of file RunToTimePg.h.

View newest version in sPHENIX GitHub at line 18 of file RunToTimePg.h

Constructor & Destructor Documentation

RunToTimePg::RunToTimePg ( )
protected

Definition at line 30 of file RunToTimePg.cc.

View newest version in sPHENIX GitHub at line 30 of file RunToTimePg.cc

References con.

RunToTimePg::~RunToTimePg ( )
virtual

Definition at line 36 of file RunToTimePg.cc.

View newest version in sPHENIX GitHub at line 36 of file RunToTimePg.cc

Member Function Documentation

int RunToTimePg::DisconnectDB ( )
virtual

Implements RunToTime.

Definition at line 83 of file RunToTimePg.cc.

View newest version in sPHENIX GitHub at line 83 of file RunToTimePg.cc

References con.

PHTimeStamp * RunToTimePg::getBeginTime ( const int  runNumber)
virtual

Implements RunToTime.

Definition at line 196 of file RunToTimePg.cc.

View newest version in sPHENIX GitHub at line 196 of file RunToTimePg.cc

int RunToTimePg::GetConnection ( )
private

Definition at line 64 of file RunToTimePg.cc.

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

References con, Acts::UnitConstants::e, odbc::DriverManager::getConnection(), odbc::SQLException::getMessage(), and PHWHERE.

+ Here is the call graph for this function:

PHTimeStamp * RunToTimePg::getEndTime ( const int  runNumber)
virtual

Implements RunToTime.

Definition at line 217 of file RunToTimePg.cc.

View newest version in sPHENIX GitHub at line 217 of file RunToTimePg.cc

int RunToTimePg::getRunNumber ( const PHTimeStamp ts)
virtual

Implements RunToTime.

Definition at line 237 of file RunToTimePg.cc.

View newest version in sPHENIX GitHub at line 237 of file RunToTimePg.cc

References cleanup(), runCondor_beamspot::cmd, con, odbc::Connection::createStatement(), Acts::UnitConstants::e, odbc::Statement::executeQuery(), odbc::ResultSet::getInt(), odbc::SQLException::getMessage(), PHTimeStamp::getTics(), odbc::ResultSet::next(), and runnumber.

+ Here is the call graph for this function:

PHTimeStamp * RunToTimePg::getTime ( const int  runNumber,
const std::string &  what 
)
private

Definition at line 91 of file RunToTimePg.cc.

View newest version in sPHENIX GitHub at line 91 of file RunToTimePg.cc

References runCondor_beamspot::cmd, con, odbc::Connection::createStatement(), Acts::UnitConstants::e, odbc::Statement::executeQuery(), odbc::ResultSet::getInt(), odbc::SQLException::getMessage(), maxentries, and odbc::ResultSet::next().

+ Here is the call graph for this function:

static RunToTimePg* RunToTimePg::instance ( )
inlinestatic

Definition at line 26 of file RunToTimePg.h.

View newest version in sPHENIX GitHub at line 26 of file RunToTimePg.h

References mySpecificCopy.

int RunToTimePg::Register ( )
static

Definition at line 53 of file RunToTimePg.cc.

View newest version in sPHENIX GitHub at line 53 of file RunToTimePg.cc

Member Data Documentation

std::map<const int, PHTimeStamp *> RunToTimePg::beginruntimes
private

Definition at line 41 of file RunToTimePg.h.

View newest version in sPHENIX GitHub at line 41 of file RunToTimePg.h

odbc::Connection* RunToTimePg::con
private

Definition at line 43 of file RunToTimePg.h.

View newest version in sPHENIX GitHub at line 43 of file RunToTimePg.h

std::map<const int, PHTimeStamp *> RunToTimePg::endruntimes
private

Definition at line 42 of file RunToTimePg.h.

View newest version in sPHENIX GitHub at line 42 of file RunToTimePg.h

RunToTimePg * RunToTimePg::mySpecificCopy = nullptr
staticprivate

Definition at line 40 of file RunToTimePg.h.

View newest version in sPHENIX GitHub at line 40 of file RunToTimePg.h

Referenced by instance().


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