CMS 3D CMS Logo

List of all members | Public Member Functions
LMFRunDat Class Reference

#include <LMFRunDat.h>

Inheritance diagram for LMFRunDat:
LMFDat LMFUnique IUniqueDBObject IDBObject

Public Member Functions

LMFRunDatData (const EcalLogicID &id, const std::vector< float > &v)
 
int getEvents (const EcalLogicID &id)
 
int getEvents (int id)
 
int getQualityFlag (const EcalLogicID &id)
 
int getQualityFlag (int id)
 
 LMFRunDat ()
 
 LMFRunDat (EcalDBConnection *conn)
 
 LMFRunDat (oracle::occi::Environment *env, oracle::occi::Connection *conn)
 
LMFRunDatsetData (const EcalLogicID &id, int n, int q)
 
LMFRunDatsetEvents (const EcalLogicID &id, int n)
 
LMFRunDatsetQualityFlag (const EcalLogicID &id, int q)
 
 ~LMFRunDat () override
 
- Public Member Functions inherited from LMFDat
void dump () const override
 
void dump (int n) const override
 
virtual void dump (int n, int max) const
 
void fetch () noexcept(false)
 
void fetch (const EcalLogicID &id) noexcept(false)
 
void fetch (const EcalLogicID &id, const Tm &tm) noexcept(false)
 
void fetch (const EcalLogicID &id, const Tm &tm, int dir) noexcept(false)
 
void fetch (int logic_id) noexcept(false)
 
void fetch (int logic_id, const Tm &tm) noexcept(false)
 
void fetch (int logic_id, const Tm *timestamp, int dir) noexcept(false)
 
std::map< int, std::vector< float > > fetchData () noexcept(false)
 
virtual std::string foreignKeyName () const
 
std::map< int, std::vector< float > > getData ()
 
std::vector< float > getData (const EcalLogicID &id)
 
float getData (const EcalLogicID &id, const std::string &key)
 
bool getData (const EcalLogicID &id, const std::string &key, float &ret)
 
bool getData (const EcalLogicID &id, std::vector< float > &ret)
 
float getData (const EcalLogicID &id, unsigned int k)
 
bool getData (const EcalLogicID &id, unsigned int k, float &ret)
 
std::vector< float > getData (int id)
 
float getData (int id, const std::string &key)
 
bool getData (int id, const std::string &key, float &ret)
 
bool getData (int id, std::vector< float > &ret)
 
float getData (int id, unsigned int k)
 
bool getData (int id, unsigned int k, float &ret)
 
virtual std::string getIovIdFieldName () const
 
std::list< std::string > getKeyList ()
 
std::map< std::string, unsigned int > getKeys ()
 
LMFRunIOV getLMFRunIOV () const
 
int getLMFRunIOVID ()
 
std::list< int > getLogicIds ()
 
void getNext (LMFDat *dat) noexcept(false)
 
void getPrevious (LMFDat *dat) noexcept(false)
 
std::map< unsigned int, std::string > getReverseMap () const
 
Tm getSubrunStart () const
 
virtual std::string getTableName () const
 
bool isValid () override
 
 LMFDat ()
 
 LMFDat (EcalDBConnection *c)
 
 LMFDat (oracle::occi::Environment *env, oracle::occi::Connection *conn)
 
std::vector< float > operator[] (int id)
 
LMFDatsetData (const EcalLogicID &logic_id, const std::string &key, float v)
 
LMFDatsetData (const EcalLogicID &logic_id, const std::vector< float > &data)
 
LMFDatsetData (int logic_id, const std::vector< float > &data)
 
LMFDatsetLMFRunIOV (const LMFRunIOV &iov)
 
LMFDatsetMaxDataToDump (int n)
 
void setWhereClause (std::string w)
 
void setWhereClause (std::string w, const std::vector< std::string > &p)
 
int size () const
 
 ~LMFDat () override
 
- Public Member Functions inherited from LMFUnique
void attach (std::string name, LMFUnique *u)
 
void debug ()
 
virtual bool exists ()
 
virtual std::list< std::unique_ptr< LMFUnique > > fetchAll () 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 () 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 ()
 

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 LMFDat
void adjustParameters (int n, std::string &sql, Statement *stmt)
 
std::string buildInsertSql ()
 
std::string buildSelectSql (int logic_id=0, int direction=0)
 
bool check ()
 
void getKeyTypes () noexcept(false)
 
void getNeighbour (LMFDat *dat, int which) noexcept(false)
 
int writeDB () noexcept(false) override
 
- Protected Member Functions inherited from LMFUnique
virtual void getParameters (ResultSet *rset)
 
virtual void setClassName (std::string s)
 
virtual int writeForeignKeys () noexcept(false)
 
- Protected Member Functions inherited from IDBObject
void checkConnection () const noexcept(false)
 
- Protected Attributes inherited from LMFDat
std::string _where
 
std::vector< std::string > _wherePars
 
std::map< int, std::vector< float > > m_data
 
std::string m_Error
 
std::map< std::string, unsigned int > m_keys
 
int m_max
 
std::string m_tableName
 
std::vector< std::string > m_type
 
- 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_RUN_DAT interface

Definition at line 15 of file LMFRunDat.h.

Constructor & Destructor Documentation

◆ LMFRunDat() [1/3]

LMFRunDat::LMFRunDat ( )

Definition at line 3 of file LMFRunDat.cc.

3  : LMFDat() {
4  m_tableName = "LMF_RUN_DAT";
5  m_className = "LMFRunDat";
6  m_keys["NEVENTS"] = 0;
7  m_keys["QUALITY_FLAG"] = 1;
8 }

References LMFUnique::m_className, LMFDat::m_keys, and LMFDat::m_tableName.

◆ LMFRunDat() [2/3]

LMFRunDat::LMFRunDat ( EcalDBConnection conn)

Definition at line 10 of file LMFRunDat.cc.

10  : LMFDat(conn) {
11  m_tableName = "LMF_RUN_DAT";
12  m_className = "LMFRunDat";
13  m_keys["NEVENTS"] = 0;
14  m_keys["QUALITY_FLAG"] = 1;
15 }

References LMFUnique::m_className, LMFDat::m_keys, and LMFDat::m_tableName.

◆ LMFRunDat() [3/3]

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

Definition at line 17 of file LMFRunDat.cc.

17  : LMFDat(env, conn) {
18  m_tableName = "LMF_RUN_DAT";
19  m_className = "LMFRunDat";
20  m_keys["NEVENTS"] = 0;
21  m_keys["QUALITY_FLAG"] = 1;
22 }

References LMFUnique::m_className, LMFDat::m_keys, and LMFDat::m_tableName.

◆ ~LMFRunDat()

LMFRunDat::~LMFRunDat ( )
inlineoverride

Definition at line 20 of file LMFRunDat.h.

20 {}

Member Function Documentation

◆ Data()

LMFRunDat& LMFRunDat::Data ( const EcalLogicID id,
const std::vector< float > &  v 
)
inline

Definition at line 39 of file LMFRunDat.h.

39  {
40  LMFDat::setData(id, v);
41  return *this;
42  }

References LMFDat::setData(), and findQualityFiles::v.

◆ getEvents() [1/2]

int LMFRunDat::getEvents ( const EcalLogicID id)
inline

Definition at line 22 of file LMFRunDat.h.

22 { return (int)rint(LMFDat::getData(id, "NEVENTS")); }

References LMFDat::getData().

◆ getEvents() [2/2]

int LMFRunDat::getEvents ( int  id)
inline

Definition at line 23 of file LMFRunDat.h.

23 { return (int)rint(LMFDat::getData(id, "NEVENTS")); }

References LMFDat::getData().

◆ getQualityFlag() [1/2]

int LMFRunDat::getQualityFlag ( const EcalLogicID id)
inline

Definition at line 24 of file LMFRunDat.h.

24 { return (int)rint(LMFDat::getData(id, "QUALITY_FLAG")); }

References LMFDat::getData().

◆ getQualityFlag() [2/2]

int LMFRunDat::getQualityFlag ( int  id)
inline

Definition at line 25 of file LMFRunDat.h.

25 { return (int)rint(LMFDat::getData(id, "QUALITY_FLAG")); }

References LMFDat::getData().

◆ setData()

LMFRunDat& LMFRunDat::setData ( const EcalLogicID id,
int  n,
int  q 
)
inline

Definition at line 34 of file LMFRunDat.h.

34  {
35  LMFDat::setData(id, "NEVENTS", (float)n);
36  LMFDat::setData(id, "QUALITY_FLAG", (float)q);
37  return *this;
38  }

References dqmiodumpmetadata::n, submitPVResolutionJobs::q, and LMFDat::setData().

◆ setEvents()

LMFRunDat& LMFRunDat::setEvents ( const EcalLogicID id,
int  n 
)
inline

Definition at line 26 of file LMFRunDat.h.

26  {
27  LMFDat::setData(id, "NEVENTS", (float)n);
28  return *this;
29  }

References dqmiodumpmetadata::n, and LMFDat::setData().

◆ setQualityFlag()

LMFRunDat& LMFRunDat::setQualityFlag ( const EcalLogicID id,
int  q 
)
inline

Definition at line 30 of file LMFRunDat.h.

30  {
31  LMFDat::setData(id, "QUALITY_FLAG", (float)q);
32  return *this;
33  }

References submitPVResolutionJobs::q, and LMFDat::setData().

LMFDat::getData
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:559
dqmiodumpmetadata.n
n
Definition: dqmiodumpmetadata.py:28
SiStripCommissioningClient_cfg.conn
conn
Definition: SiStripCommissioningClient_cfg.py:5
LMFUnique::m_className
std::string m_className
Definition: LMFUnique.h:99
findQualityFiles.v
v
Definition: findQualityFiles.py:179
LMFDat::setData
LMFDat & setData(int logic_id, const std::vector< float > &data)
Definition: LMFDat.h:49
web.browse_db.env
env
Definition: browse_db.py:18
LMFDat::m_tableName
std::string m_tableName
Definition: LMFDat.h:146
LMFDat::m_keys
std::map< std::string, unsigned int > m_keys
Definition: LMFDat.h:145
submitPVResolutionJobs.q
q
Definition: submitPVResolutionJobs.py:84
LMFDat::LMFDat
LMFDat()
Definition: LMFDat.cc:9