CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 ()
 
- Public Member Functions inherited from LMFDat
void dump () const
 
void dump (int n) const
 
virtual void dump (int n, int max) const
 
void fetch () throw (std::runtime_error)
 
void fetch (int logic_id) throw (std::runtime_error)
 
void fetch (int logic_id, const Tm &tm) throw (std::runtime_error)
 
void fetch (int logic_id, const Tm *timestamp, int dir) throw (std::runtime_error)
 
void fetch (const EcalLogicID &id, const Tm &tm) throw (std::runtime_error)
 
void fetch (const EcalLogicID &id, const Tm &tm, int dir) throw (std::runtime_error)
 
void fetch (const EcalLogicID &id) throw (std::runtime_error)
 
std::map< int, std::vector
< float > > 
fetchData () throw (std::runtime_error)
 
virtual std::string foreignKeyName () const
 
std::vector< float > getData (int id)
 
std::vector< float > getData (const EcalLogicID &id)
 
bool getData (int id, std::vector< float > &ret)
 
bool getData (const EcalLogicID &id, std::vector< float > &ret)
 
std::map< int, std::vector
< float > > 
getData ()
 
float getData (int id, unsigned int k)
 
float getData (const EcalLogicID &id, unsigned int k)
 
float getData (const EcalLogicID &id, const std::string &key)
 
float getData (int id, const std::string &key)
 
bool getData (int id, unsigned int k, float &ret)
 
bool getData (const EcalLogicID &id, unsigned int k, float &ret)
 
bool getData (int id, const std::string &key, float &ret)
 
bool getData (const EcalLogicID &id, const std::string &key, 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) throw (std::runtime_error)
 
void getPrevious (LMFDat *dat) throw (std::runtime_error)
 
std::map< unsigned int,
std::string > 
getReverseMap () const
 
Tm getSubrunStart () const
 
virtual std::string getTableName () const
 
virtual bool isValid ()
 
 LMFDat ()
 
 LMFDat (EcalDBConnection *c)
 
 LMFDat (oracle::occi::Environment *env, oracle::occi::Connection *conn)
 
std::vector< float > operator[] (int id)
 
LMFDatsetData (int logic_id, const std::vector< float > &data)
 
LMFDatsetData (const EcalLogicID &logic_id, const std::vector< float > &data)
 
LMFDatsetData (const EcalLogicID &logic_id, const std::string &key, float v)
 
LMFDatsetLMFRunIOV (const LMFRunIOV &iov)
 
LMFDatsetMaxDataToDump (int n)
 
void setWhereClause (std::string w)
 
void setWhereClause (std::string w, std::vector< std::string > p)
 
int size () const
 
 ~LMFDat ()
 
- Public Member Functions inherited from LMFUnique
void attach (std::string name, LMFUnique *u)
 
void debug ()
 
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 (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 ()
 

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 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 () throw (std::runtime_error)
 
void getNeighbour (LMFDat *dat, int which) throw (std::runtime_error)
 
int writeDB () throw (std::runtime_error)
 
- Protected Member Functions inherited from LMFUnique
virtual void setClassName (std::string s)
 
virtual int writeForeignKeys () throw (std::runtime_error)
 
- Protected Member Functions inherited from IDBObject
void checkConnection () const throw (std::runtime_error)
 
- 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::LMFRunDat ( )

Definition at line 3 of file LMFRunDat.cc.

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

3  : LMFDat() {
4  m_tableName = "LMF_RUN_DAT";
5  m_className = "LMFRunDat";
6  m_keys["NEVENTS"] = 0;
7  m_keys["QUALITY_FLAG"] = 1;
8 }
std::string m_className
Definition: LMFUnique.h:99
LMFDat()
Definition: LMFDat.cc:9
std::map< std::string, unsigned int > m_keys
Definition: LMFDat.h:155
std::string m_tableName
Definition: LMFDat.h:156
LMFRunDat::LMFRunDat ( EcalDBConnection conn)

Definition at line 10 of file LMFRunDat.cc.

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

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 }
std::string m_className
Definition: LMFUnique.h:99
LMFDat()
Definition: LMFDat.cc:9
std::map< std::string, unsigned int > m_keys
Definition: LMFDat.h:155
std::string m_tableName
Definition: LMFDat.h:156
LMFRunDat::LMFRunDat ( oracle::occi::Environment *  env,
oracle::occi::Connection *  conn 
)

Definition at line 17 of file LMFRunDat.cc.

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

18  : LMFDat(env, conn) {
19  m_tableName = "LMF_RUN_DAT";
20  m_className = "LMFRunDat";
21  m_keys["NEVENTS"] = 0;
22  m_keys["QUALITY_FLAG"] = 1;
23 }
std::string m_className
Definition: LMFUnique.h:99
LMFDat()
Definition: LMFDat.cc:9
std::map< std::string, unsigned int > m_keys
Definition: LMFDat.h:155
tuple conn
Definition: results_mgr.py:53
std::string m_tableName
Definition: LMFDat.h:156
LMFRunDat::~LMFRunDat ( )
inline

Definition at line 21 of file LMFRunDat.h.

21 { }

Member Function Documentation

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

Definition at line 48 of file LMFRunDat.h.

References LMFDat::setData().

48  {
49  LMFDat::setData(id, v);
50  return *this;
51  }
LMFDat & setData(int logic_id, const std::vector< float > &data)
Definition: LMFDat.h:55
mathSSE::Vec4< T > v
int LMFRunDat::getEvents ( const EcalLogicID id)
inline

Definition at line 23 of file LMFRunDat.h.

References LMFDat::getData().

23  {
24  return (int)rint(LMFDat::getData(id, "NEVENTS"));
25  }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:636
int LMFRunDat::getEvents ( int  id)
inline

Definition at line 26 of file LMFRunDat.h.

References LMFDat::getData().

26  {
27  return (int)rint(LMFDat::getData(id, "NEVENTS"));
28  }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:636
int LMFRunDat::getQualityFlag ( const EcalLogicID id)
inline

Definition at line 29 of file LMFRunDat.h.

References LMFDat::getData().

29  {
30  return (int)rint(LMFDat::getData(id, "QUALITY_FLAG"));
31  }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:636
int LMFRunDat::getQualityFlag ( int  id)
inline

Definition at line 32 of file LMFRunDat.h.

References LMFDat::getData().

32  {
33  return (int)rint(LMFDat::getData(id, "QUALITY_FLAG"));
34  }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:636
LMFRunDat& LMFRunDat::setData ( const EcalLogicID id,
int  n,
int  q 
)
inline

Definition at line 43 of file LMFRunDat.h.

References LMFDat::setData().

43  {
44  LMFDat::setData(id, "NEVENTS", (float)n);
45  LMFDat::setData(id, "QUALITY_FLAG", (float)q);
46  return *this;
47  }
LMFDat & setData(int logic_id, const std::vector< float > &data)
Definition: LMFDat.h:55
LMFRunDat& LMFRunDat::setEvents ( const EcalLogicID id,
int  n 
)
inline

Definition at line 35 of file LMFRunDat.h.

References LMFDat::setData().

35  {
36  LMFDat::setData(id, "NEVENTS", (float)n);
37  return *this;
38  }
LMFDat & setData(int logic_id, const std::vector< float > &data)
Definition: LMFDat.h:55
LMFRunDat& LMFRunDat::setQualityFlag ( const EcalLogicID id,
int  q 
)
inline

Definition at line 39 of file LMFRunDat.h.

References LMFDat::setData().

39  {
40  LMFDat::setData(id, "QUALITY_FLAG", (float)q);
41  return *this;
42  }
LMFDat & setData(int logic_id, const std::vector< float > &data)
Definition: LMFDat.h:55