CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Friends
LMFCorrVers Class Reference

#include <LMFCorrVers.h>

Inheritance diagram for LMFCorrVers:
LMFPrimVers LMFUnique IUniqueDBObject IDBObject

Public Member Functions

 LMFCorrVers ()
 
 LMFCorrVers (EcalDBConnection *c)
 
 LMFCorrVers (oracle::occi::Environment *env, oracle::occi::Connection *conn)
 
bool operator!= (const LMFCorrVers &t) const
 
bool operator== (const LMFCorrVers &t) const
 
 ~LMFCorrVers () override
 
- Public Member Functions inherited from LMFPrimVers
std::string getDescription () const
 
int getVersion () const
 
 LMFPrimVers ()
 
 LMFPrimVers (EcalDBConnection *c)
 
 LMFPrimVers (oracle::occi::Environment *env, oracle::occi::Connection *conn)
 
bool operator!= (const LMFPrimVers &t) const
 
bool operator== (const LMFPrimVers &t) const
 
void setDescription (const std::string &s)
 
void setVersion (int v)
 
 ~LMFPrimVers () override
 
- Public Member Functions inherited from LMFUnique
void attach (std::string name, LMFUnique *u)
 
void debug ()
 
virtual void dump () const
 
virtual void dump (int n) const
 
virtual bool exists ()
 
virtual boost::ptr_list< LMFUniquefetchAll () const noexcept(false)
 
int fetchID () noexcept(false) override
 
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 ()
 
virtual bool isValid () const
 
 LMFUnique ()
 
 LMFUnique (EcalDBConnection *c)
 
 LMFUnique (oracle::occi::Environment *env, oracle::occi::Connection *conn)
 
void nodebug ()
 
virtual bool operator< (const LMFUnique &r)
 
virtual bool operator<= (const LMFUnique &r)
 
std::string sequencePostfix (const Tm &t)
 
void setByID (int id) noexcept(false) override
 
LMFUniquesetInt (std::string key, int value)
 
LMFUniquesetString (std::string key, std::string value)
 
void startProfiling ()
 
void stopProfiling ()
 
 ~LMFUnique () override
 
- 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

LMFUniquecreateObject () const override
 
std::string fetchAllSql (Statement *stmt) const override
 
std::string fetchIdSql (Statement *stmt) override
 
void getParameters (ResultSet *rset) override
 
std::string setByIDSql (Statement *stmt, int id) override
 

Friends

class LMFRunIOV
 

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 const int ECALDB_NROWS = 1024
 
- Protected Member Functions inherited from LMFUnique
virtual void setClassName (std::string s)
 
virtual int writeDB () noexcept(false)
 
virtual int writeForeignKeys () noexcept(false)
 
- Protected Member Functions inherited from IDBObject
void checkConnection () const noexcept(false)
 
- 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

LMF Correction version

Definition at line 17 of file LMFCorrVers.h.

Constructor & Destructor Documentation

◆ LMFCorrVers() [1/3]

LMFCorrVers::LMFCorrVers ( )

Definition at line 6 of file LMFCorrVers.cc.

6  : LMFPrimVers() {
7  setClassName("LMFCorrVers");
8  setString("description", "");
9 }

References LMFUnique::setClassName(), and LMFUnique::setString().

Referenced by createObject().

◆ LMFCorrVers() [2/3]

LMFCorrVers::LMFCorrVers ( EcalDBConnection c)

Definition at line 11 of file LMFCorrVers.cc.

11  : LMFPrimVers(c) {
12  setClassName("LMFCorrVers");
13  setString("description", "");
14 }

References LMFUnique::setClassName(), and LMFUnique::setString().

◆ LMFCorrVers() [3/3]

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

Definition at line 16 of file LMFCorrVers.cc.

16  : LMFPrimVers(env, conn) {
17  setClassName("LMFCorrVers");
18  setString("description", "");
19 }

References LMFUnique::setClassName(), and LMFUnique::setString().

◆ ~LMFCorrVers()

LMFCorrVers::~LMFCorrVers ( )
override

Definition at line 21 of file LMFCorrVers.cc.

21 {}

Member Function Documentation

◆ createObject()

LMFUnique * LMFCorrVers::createObject ( ) const
overrideprivatevirtual

Reimplemented from LMFUnique.

Definition at line 37 of file LMFCorrVers.cc.

37  {
38  LMFCorrVers *t = new LMFCorrVers;
39  t->setConnection(m_env, m_conn);
40  return t;
41 }

References LMFCorrVers(), IDBObject::m_conn, IDBObject::m_env, and OrderedSet::t.

◆ fetchAllSql()

std::string LMFCorrVers::fetchAllSql ( Statement stmt) const
overrideprivatevirtual

Reimplemented from LMFUnique.

Definition at line 43 of file LMFCorrVers.cc.

43  {
44  std::string sql = "SELECT VERS FROM CMS_ECAL_LASER_COND.LMF_CORR_VERS";
45  stmt->setSQL(sql);
46  return sql;
47 }

References AlCaHLTBitMon_QueryRunRegistry::string.

◆ fetchIdSql()

std::string LMFCorrVers::fetchIdSql ( Statement stmt)
overrideprivatevirtual

Reimplemented from LMFUnique.

Definition at line 23 of file LMFCorrVers.cc.

23 { return ""; }

◆ getParameters()

void LMFCorrVers::getParameters ( ResultSet rset)
overrideprivatevirtual

Reimplemented from LMFUnique.

Definition at line 35 of file LMFCorrVers.cc.

35 { setString("description", rset->getString(1)); }

References LMFUnique::setString().

◆ operator!=()

bool LMFCorrVers::operator!= ( const LMFCorrVers t) const
inline

Definition at line 28 of file LMFCorrVers.h.

28 { return (getID() != t.getID()); }

References LMFUnique::getID(), and OrderedSet::t.

◆ operator==()

bool LMFCorrVers::operator== ( const LMFCorrVers t) const
inline

Definition at line 27 of file LMFCorrVers.h.

27 { return (getID() == t.getID()); }

References LMFUnique::getID(), and OrderedSet::t.

◆ setByIDSql()

std::string LMFCorrVers::setByIDSql ( Statement stmt,
int  id 
)
overrideprivatevirtual

Reimplemented from LMFUnique.

Definition at line 25 of file LMFCorrVers.cc.

25  {
26  std::string sql =
27  "SELECT DESCR FROM "
28  "CMS_ECAL_LASER_COND.LMF_CORR_VERS "
29  "WHERE VERS = :1";
30  stmt->setSQL(sql);
31  stmt->setInt(1, id);
32  return sql;
33 }

References AlCaHLTBitMon_QueryRunRegistry::string.

Friends And Related Function Documentation

◆ LMFRunIOV

friend class LMFRunIOV
friend

Definition at line 19 of file LMFCorrVers.h.

LMFUnique::setClassName
virtual void setClassName(std::string s)
Definition: LMFUnique.h:93
LMFCorrVers
Definition: LMFCorrVers.h:17
LMFPrimVers::LMFPrimVers
LMFPrimVers()
Definition: LMFPrimVers.cc:6
SiStripCommissioningClient_cfg.conn
conn
Definition: SiStripCommissioningClient_cfg.py:5
IDBObject::m_conn
oracle::occi::Connection * m_conn
Definition: IDBObject.h:34
OrderedSet.t
t
Definition: OrderedSet.py:90
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
web.browse_db.env
env
Definition: browse_db.py:18
LMFCorrVers::LMFCorrVers
LMFCorrVers()
Definition: LMFCorrVers.cc:6
HltBtagPostValidation_cff.c
c
Definition: HltBtagPostValidation_cff.py:31
LMFUnique::getID
int getID() const
Definition: LMFUnique.h:54
LMFUnique::setString
LMFUnique & setString(std::string key, std::string value)
Definition: LMFUnique.cc:14
IDBObject::m_env
oracle::occi::Environment * m_env
Definition: IDBObject.h:33