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
LMFRunIOV Class Reference

#include <LMFRunIOV.h>

Inheritance diagram for LMFRunIOV:
LMFUnique IUniqueDBObject IDBObject

Public Member Functions

virtual void dump () const
 
std::list< LMFRunIOVfetchBySequence (const LMFSeqDat &s)
 
std::list< LMFRunIOVfetchBySequence (const LMFSeqDat &s, int lmr)
 
std::list< LMFRunIOVfetchBySequence (const LMFSeqDat &s, int lmr, int type, int color)
 
std::string fetchIdSql (Statement *stmt)
 
std::list< LMFRunIOVfetchLastBeforeSequence (const LMFSeqDat &s, int lmr, int type, int color)
 
LMFColor getColor () const
 
std::string getColorLongName () const
 
std::string getColorShortName () const
 
Tm getDBInsertionTime () const
 
LMFColor getLMFColor () const
 
LMFRunTag getLMFRunTag () const
 
int getLmr () const
 
void getParameters (ResultSet *rset)
 
LMFSeqDat getSequence () const
 
Tm getSubRunEnd () const
 
Tm getSubRunStart () const
 
std::string getSubRunType () const
 
LMFTrigType getTriggerType () const
 
bool isValid ()
 
 LMFRunIOV ()
 
 LMFRunIOV (oracle::occi::Environment *env, oracle::occi::Connection *conn)
 
 LMFRunIOV (EcalDBConnection *c)
 
 LMFRunIOV (const LMFRunIOV &r)
 
bool operator!= (const LMFRunIOV &m) const
 
virtual LMFRunIOVoperator= (const LMFRunIOV &r)
 
bool operator== (const LMFRunIOV &m) const
 
std::string setByIDSql (Statement *stmt, int id)
 
LMFRunIOVsetColor (const LMFColor &c)
 
LMFRunIOVsetColor (std::string name)
 
LMFRunIOVsetColor (int color_id)
 
LMFRunIOVsetColorIndex (int color_index)
 
LMFRunIOVsetLMFRunTag (const LMFRunTag &tag)
 
LMFRunIOVsetLMFRunTag (int tag_id)
 
LMFRunIOVsetLmr (int n)
 
LMFRunIOVsetSequence (LMFSeqDat &seq)
 
LMFRunIOVsetSequence (LMFSeqDat *seq)
 
LMFRunIOVsetSubRunEnd (const Tm &end)
 
LMFRunIOVsetSubRunStart (const Tm &start)
 
LMFRunIOVsetSubRunType (const std::string &x)
 
LMFRunIOVsetTriggerType (LMFTrigType &tt)
 
LMFRunIOVsetTriggerType (int trigType_id)
 
LMFRunIOVsetTriggerType (std::string trigShortName)
 
std::string writeDBSql (Statement *stmt)
 
 ~LMFRunIOV ()
 
- Public Member Functions inherited from LMFUnique
void attach (std::string name, LMFUnique *u)
 
void debug ()
 
virtual void dump (int n) const
 
virtual bool exists ()
 
virtual boost::ptr_list
< LMFUnique
fetchAll () const throw (std::runtime_error)
 
int fetchID () throw (std::runtime_error)
 
std::string getClassName ()
 
std::string getClassName () const
 
int getID () const
 
int getInt (std::string fieldname) const
 
std::string getString (std::string fieldname) const
 
virtual bool isValid () const
 
 LMFUnique ()
 
 LMFUnique (oracle::occi::Environment *env, oracle::occi::Connection *conn)
 
 LMFUnique (EcalDBConnection *c)
 
void nodebug ()
 
virtual bool operator< (const LMFUnique &r)
 
virtual bool operator<= (const LMFUnique &r)
 
std::string sequencePostfix (const Tm &t)
 
void setByID (int id) throw (std::runtime_error)
 
LMFUniquesetInt (std::string key, int value)
 
LMFUniquesetString (std::string key, std::string value)
 
void startProfiling ()
 
void stopProfiling ()
 
virtual ~LMFUnique ()
 
- 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 checkFabric ()
 
std::list< LMFRunIOVfetchBySequence (const std::vector< int > &par, const std::string &sql, const std::string &method) throw (std::runtime_error)
 
void initialize ()
 

Private Attributes

LMFDefFabric_fabric
 

Friends

class EcalCondDBInterface
 

Additional Inherited Members

- Public Types inherited from LMFUnique
typedef oracle::occi::ResultSet ResultSet
 
typedef oracle::occi::Statement Statement
 
- Static Public Attributes inherited from IDBObject
static int const ECALDB_NROWS =1024
 
- Protected Member Functions inherited from LMFUnique
virtual void setClassName (std::string s)
 
virtual int writeDB () throw (std::runtime_error)
 
virtual int writeForeignKeys () throw (std::runtime_error)
 
- Protected Member Functions inherited from IDBObject
void checkConnection () const throw (std::runtime_error)
 
- Protected Attributes inherited from LMFUnique
bool _profiling
 
std::string m_className
 
char m_debug
 
std::map< std::string,
LMFUnique * > 
m_foreignKeys
 
std::map< std::string, int > m_intFields
 
std::map< std::string,
std::string > 
m_stringFields
 
- 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 19 of file LMFRunIOV.h.

Constructor & Destructor Documentation

LMFRunIOV::LMFRunIOV ( )

Definition at line 26 of file LMFRunIOV.cc.

LMFRunIOV::LMFRunIOV ( oracle::occi::Environment *  env,
oracle::occi::Connection *  conn 
)

Definition at line 31 of file LMFRunIOV.cc.

LMFRunIOV::LMFRunIOV ( EcalDBConnection c)

Definition at line 37 of file LMFRunIOV.cc.

LMFRunIOV::LMFRunIOV ( const LMFRunIOV r)

Definition at line 42 of file LMFRunIOV.cc.

LMFRunIOV::~LMFRunIOV ( )

Definition at line 47 of file LMFRunIOV.cc.

Member Function Documentation

void LMFRunIOV::checkFabric ( )
private

Definition at line 85 of file LMFRunIOV.cc.

void LMFRunIOV::dump ( void  ) const
virtual

Reimplemented from LMFUnique.

Definition at line 209 of file LMFRunIOV.cc.

std::list< LMFRunIOV > LMFRunIOV::fetchBySequence ( const LMFSeqDat s)

Definition at line 347 of file LMFRunIOV.cc.

std::list< LMFRunIOV > LMFRunIOV::fetchBySequence ( const LMFSeqDat s,
int  lmr 
)

Definition at line 356 of file LMFRunIOV.cc.

std::list< LMFRunIOV > LMFRunIOV::fetchBySequence ( const LMFSeqDat s,
int  lmr,
int  type,
int  color 
)

Definition at line 367 of file LMFRunIOV.cc.

std::list< LMFRunIOV > LMFRunIOV::fetchBySequence ( const std::vector< int > &  par,
const std::string &  sql,
const std::string &  method 
)
throw (std::runtime_error
)
private

Definition at line 318 of file LMFRunIOV.cc.

std::string LMFRunIOV::fetchIdSql ( Statement stmt)
virtual

Reimplemented from LMFUnique.

Definition at line 217 of file LMFRunIOV.cc.

std::list< LMFRunIOV > LMFRunIOV::fetchLastBeforeSequence ( const LMFSeqDat s,
int  lmr,
int  type,
int  color 
)

Definition at line 382 of file LMFRunIOV.cc.

LMFColor LMFRunIOV::getColor ( ) const
inline

Definition at line 56 of file LMFRunIOV.h.

References getLMFColor().

56 { return getLMFColor(); }
LMFColor getLMFColor() const
Definition: LMFRunIOV.cc:105
std::string LMFRunIOV::getColorLongName ( ) const

Definition at line 117 of file LMFRunIOV.cc.

std::string LMFRunIOV::getColorShortName ( ) const

Definition at line 112 of file LMFRunIOV.cc.

Tm LMFRunIOV::getDBInsertionTime ( ) const

Definition at line 178 of file LMFRunIOV.cc.

LMFColor LMFRunIOV::getLMFColor ( ) const

Definition at line 105 of file LMFRunIOV.cc.

Referenced by getColor(), and operator==().

LMFRunTag LMFRunIOV::getLMFRunTag ( ) const

Definition at line 66 of file LMFRunIOV.cc.

Referenced by operator==().

int LMFRunIOV::getLmr ( ) const

Definition at line 152 of file LMFRunIOV.cc.

Referenced by operator==().

void LMFRunIOV::getParameters ( ResultSet rset)
virtual

Reimplemented from LMFUnique.

Definition at line 248 of file LMFRunIOV.cc.

LMFSeqDat LMFRunIOV::getSequence ( ) const

Definition at line 202 of file LMFRunIOV.cc.

Referenced by operator==().

Tm LMFRunIOV::getSubRunEnd ( ) const

Definition at line 172 of file LMFRunIOV.cc.

Referenced by operator==().

Tm LMFRunIOV::getSubRunStart ( ) const

Definition at line 161 of file LMFRunIOV.cc.

Referenced by LMFDat::getSubrunStart(), and operator==().

std::string LMFRunIOV::getSubRunType ( ) const

Definition at line 189 of file LMFRunIOV.cc.

Referenced by operator==().

LMFTrigType LMFRunIOV::getTriggerType ( void  ) const

Definition at line 140 of file LMFRunIOV.cc.

Referenced by operator==().

void LMFRunIOV::initialize ( void  )
private

Definition at line 8 of file LMFRunIOV.cc.

bool LMFRunIOV::isValid ( void  )
virtual

Reimplemented from LMFUnique.

Definition at line 273 of file LMFRunIOV.cc.

Referenced by core.AutoHandle.AutoHandle::ReallyLoad().

bool LMFRunIOV::operator!= ( const LMFRunIOV m) const
inline

Definition at line 84 of file LMFRunIOV.h.

References visualization-live-secondInstance_cfg::m.

LMFRunIOV & LMFRunIOV::operator= ( const LMFRunIOV r)
virtual

Definition at line 400 of file LMFRunIOV.cc.

bool LMFRunIOV::operator== ( const LMFRunIOV m) const
inline

Definition at line 72 of file LMFRunIOV.h.

References getLMFColor(), getLMFRunTag(), getLmr(), getSequence(), getSubRunEnd(), getSubRunStart(), getSubRunType(), and getTriggerType().

73  {
74  return ( getLMFRunTag() == m.getLMFRunTag() &&
75  getSequence() == m.getSequence() &&
76  getLmr() == m.getLmr() &&
77  getLMFColor() == m.getLMFColor() &&
78  getTriggerType() == m.getTriggerType() &&
79  getSubRunType() == m.getSubRunType() &&
80  getSubRunStart() == m.getSubRunStart() &&
81  getSubRunEnd() == m.getSubRunEnd() );
82  }
std::string getSubRunType() const
Definition: LMFRunIOV.cc:189
Tm getSubRunStart() const
Definition: LMFRunIOV.cc:161
LMFColor getLMFColor() const
Definition: LMFRunIOV.cc:105
LMFSeqDat getSequence() const
Definition: LMFRunIOV.cc:202
int getLmr() const
Definition: LMFRunIOV.cc:152
LMFTrigType getTriggerType() const
Definition: LMFRunIOV.cc:140
Tm getSubRunEnd() const
Definition: LMFRunIOV.cc:172
LMFRunTag getLMFRunTag() const
Definition: LMFRunIOV.cc:66
std::string LMFRunIOV::setByIDSql ( Statement stmt,
int  id 
)
virtual

Reimplemented from LMFUnique.

Definition at line 236 of file LMFRunIOV.cc.

LMFRunIOV & LMFRunIOV::setColor ( const LMFColor c)

Definition at line 73 of file LMFRunIOV.cc.

LMFRunIOV & LMFRunIOV::setColor ( std::string  name)

Definition at line 98 of file LMFRunIOV.cc.

LMFRunIOV & LMFRunIOV::setColor ( int  color_id)

Definition at line 79 of file LMFRunIOV.cc.

LMFRunIOV & LMFRunIOV::setColorIndex ( int  color_index)

Definition at line 91 of file LMFRunIOV.cc.

LMFRunIOV & LMFRunIOV::setLMFRunTag ( const LMFRunTag tag)

Definition at line 54 of file LMFRunIOV.cc.

LMFRunIOV & LMFRunIOV::setLMFRunTag ( int  tag_id)

Definition at line 60 of file LMFRunIOV.cc.

LMFRunIOV & LMFRunIOV::setLmr ( int  n)

Definition at line 147 of file LMFRunIOV.cc.

LMFRunIOV & LMFRunIOV::setSequence ( LMFSeqDat seq)

Definition at line 193 of file LMFRunIOV.cc.

LMFRunIOV& LMFRunIOV::setSequence ( LMFSeqDat seq)
LMFRunIOV & LMFRunIOV::setSubRunEnd ( const Tm end)

Definition at line 167 of file LMFRunIOV.cc.

LMFRunIOV & LMFRunIOV::setSubRunStart ( const Tm start)

Definition at line 156 of file LMFRunIOV.cc.

LMFRunIOV & LMFRunIOV::setSubRunType ( const std::string &  x)

Definition at line 184 of file LMFRunIOV.cc.

LMFRunIOV & LMFRunIOV::setTriggerType ( LMFTrigType tt)

Definition at line 122 of file LMFRunIOV.cc.

LMFRunIOV & LMFRunIOV::setTriggerType ( int  trigType_id)

Definition at line 135 of file LMFRunIOV.cc.

LMFRunIOV & LMFRunIOV::setTriggerType ( std::string  trigShortName)

Definition at line 128 of file LMFRunIOV.cc.

std::string LMFRunIOV::writeDBSql ( Statement stmt)
virtual

Reimplemented from LMFUnique.

Definition at line 294 of file LMFRunIOV.cc.

Friends And Related Function Documentation

friend class EcalCondDBInterface
friend

Definition at line 21 of file LMFRunIOV.h.

Member Data Documentation

LMFDefFabric* LMFRunIOV::_fabric
private

Definition at line 99 of file LMFRunIOV.h.