CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes | Friends
RunIOV Class Reference

#include <RunIOV.h>

Inheritance diagram for RunIOV:
IIOV IUniqueDBObject IDBObject

Public Member Functions

int fetchID () throw (std::runtime_error)
 
int fetchIDByRunAndTag () throw (std::runtime_error)
 
Tm getDBInsertionTime ()
 
int getID ()
 
Tm getRunEnd () const
 
run_t getRunNumber () const
 
Tm getRunStart () const
 
RunTag getRunTag () const
 
bool operator!= (const RunIOV &r) const
 
bool operator== (const RunIOV &r) const
 
 RunIOV ()
 
void setByID (int id) throw (std::runtime_error)
 
void setDBInsertionTime (const Tm &dbtime)
 
void setID (int id)
 
void setRunEnd (const Tm &end)
 
void setRunNumber (run_t run)
 
void setRunStart (const Tm &start)
 
void setRunTag (const RunTag &tag)
 
 ~RunIOV ()
 
- Public Member Functions inherited from IDBObject
oracle::occi::Connection * getConn () const
 
oracle::occi::Environment * getEnv () const
 
void setConnection (oracle::occi::Environment *env, oracle::occi::Connection *conn)
 
virtual ~IDBObject ()
 

Private Member Functions

void setByRecentData (std::string dataTable, RunTag *tag, run_t run=(unsigned int)-1) throw (std::runtime_error)
 
void setByRecentData (std::string dataTable, std::string location, run_t run) throw (std::runtime_error)
 
void setByRun (RunTag *tag, run_t run) throw (std::runtime_error)
 
void setByRun (std::string location, run_t run) throw (std::runtime_error)
 
void setByTime (std::string location, const Tm &t) throw (std::runtime_error)
 
int updateEndTimeDB () throw (std::runtime_error)
 
int updateStartTimeDB () throw (std::runtime_error)
 
int writeDB () throw (std::runtime_error)
 

Private Attributes

Tm m_dbtime
 
Tm m_runEnd
 
run_t m_runNum
 
Tm m_runStart
 
RunTag m_runTag
 

Friends

class EcalCondDBInterface
 

Additional Inherited Members

- Static Public Attributes inherited from IDBObject
static int const ECALDB_NROWS =1024
 
- Protected Member Functions inherited from IDBObject
void checkConnection () const throw (std::runtime_error)
 
- Protected Attributes inherited from IUniqueDBObject
int m_ID
 
- Protected Attributes inherited from IDBObject
oracle::occi::Connection * m_conn
 
oracle::occi::Environment * m_env
 

Detailed Description

Definition at line 13 of file RunIOV.h.

Constructor & Destructor Documentation

RunIOV::RunIOV ( )

Definition at line 12 of file RunIOV.cc.

RunIOV::~RunIOV ( )

Definition at line 23 of file RunIOV.cc.

Member Function Documentation

int RunIOV::fetchID ( )
throw (std::runtime_error
)
virtual

Implements IUniqueDBObject.

Definition at line 103 of file RunIOV.cc.

int RunIOV::fetchIDByRunAndTag ( )
throw (std::runtime_error
)

Definition at line 284 of file RunIOV.cc.

Tm RunIOV::getDBInsertionTime ( )
inline

Definition at line 32 of file RunIOV.h.

References m_dbtime.

32 {return m_dbtime;}
Tm m_dbtime
Definition: RunIOV.h:59
int RunIOV::getID ( )
inline

Definition at line 36 of file RunIOV.h.

References IUniqueDBObject::m_ID.

36 { return m_ID;} ;
Tm RunIOV::getRunEnd ( ) const

Definition at line 79 of file RunIOV.cc.

run_t RunIOV::getRunNumber ( ) const

Definition at line 45 of file RunIOV.cc.

Referenced by EcalErrorMask::readDB().

Tm RunIOV::getRunStart ( ) const

Definition at line 62 of file RunIOV.cc.

RunTag RunIOV::getRunTag ( ) const

Definition at line 96 of file RunIOV.cc.

Referenced by EcalCondDBReader::EcalCondDBReader().

bool RunIOV::operator!= ( const RunIOV r) const
inline

Definition at line 51 of file RunIOV.h.

References alignCSCRings::r.

51 { return !(*this == r); }
bool RunIOV::operator== ( const RunIOV r) const
inline

Definition at line 43 of file RunIOV.h.

References m_runEnd, m_runNum, m_runStart, and m_runTag.

44  {
45  return (m_runNum == r.m_runNum &&
46  m_runStart == r.m_runStart &&
47  m_runEnd == r.m_runEnd &&
48  m_runTag == r.m_runTag);
49  }
Tm m_runStart
Definition: RunIOV.h:56
Tm m_runEnd
Definition: RunIOV.h:57
run_t m_runNum
Definition: RunIOV.h:55
RunTag m_runTag
Definition: RunIOV.h:58
void RunIOV::setByID ( int  id)
throw (std::runtime_error
)
virtual

Implements IUniqueDBObject.

Definition at line 152 of file RunIOV.cc.

void RunIOV::setByRecentData ( std::string  dataTable,
RunTag tag,
run_t  run = (unsigned int)-1 
)
throw (std::runtime_error
)
private

Definition at line 496 of file RunIOV.cc.

void RunIOV::setByRecentData ( std::string  dataTable,
std::string  location,
run_t  run 
)
throw (std::runtime_error
)
private

Definition at line 546 of file RunIOV.cc.

void RunIOV::setByRun ( RunTag tag,
run_t  run 
)
throw (std::runtime_error
)
private

Definition at line 376 of file RunIOV.cc.

void RunIOV::setByRun ( std::string  location,
run_t  run 
)
throw (std::runtime_error
)
private

Definition at line 458 of file RunIOV.cc.

void RunIOV::setByTime ( std::string  location,
const Tm t 
)
throw (std::runtime_error
)
private

Definition at line 417 of file RunIOV.cc.

void RunIOV::setDBInsertionTime ( const Tm dbtime)
inline

Definition at line 31 of file RunIOV.h.

References m_dbtime.

31 {m_dbtime=dbtime;}
Tm m_dbtime
Definition: RunIOV.h:59
void RunIOV::setID ( int  id)

Definition at line 37 of file RunIOV.cc.

void RunIOV::setRunEnd ( const Tm end)

Definition at line 69 of file RunIOV.cc.

void RunIOV::setRunNumber ( run_t  run)

Definition at line 29 of file RunIOV.cc.

void RunIOV::setRunStart ( const Tm start)

Definition at line 52 of file RunIOV.cc.

void RunIOV::setRunTag ( const RunTag tag)

Definition at line 86 of file RunIOV.cc.

int RunIOV::updateEndTimeDB ( )
throw (std::runtime_error
)
private

Definition at line 240 of file RunIOV.cc.

int RunIOV::updateStartTimeDB ( )
throw (std::runtime_error
)
private

Definition at line 330 of file RunIOV.cc.

int RunIOV::writeDB ( )
throw (std::runtime_error
)
private

Definition at line 190 of file RunIOV.cc.

Friends And Related Function Documentation

friend class EcalCondDBInterface
friend

Definition at line 15 of file RunIOV.h.

Member Data Documentation

Tm RunIOV::m_dbtime
private

Definition at line 59 of file RunIOV.h.

Referenced by getDBInsertionTime(), and setDBInsertionTime().

Tm RunIOV::m_runEnd
private

Definition at line 57 of file RunIOV.h.

Referenced by operator==().

run_t RunIOV::m_runNum
private

Definition at line 55 of file RunIOV.h.

Referenced by operator==().

Tm RunIOV::m_runStart
private

Definition at line 56 of file RunIOV.h.

Referenced by operator==().

RunTag RunIOV::m_runTag
private

Definition at line 58 of file RunIOV.h.

Referenced by operator==().