CMS 3D CMS Logo

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

#include <LMFTestPulseConfigDat.h>

Inheritance diagram for LMFTestPulseConfigDat:
LMFDat LMFUnique IUniqueDBObject IDBObject

Public Member Functions

float getDACMGPA (EcalLogicID &id)
 
float getPNGain (EcalLogicID &id)
 
float getPNVinj (EcalLogicID &id)
 
float getVFEGain (EcalLogicID &id)
 
 LMFTestPulseConfigDat ()
 
 LMFTestPulseConfigDat (EcalDBConnection *c)
 
LMFTestPulseConfigDatsetDACMGPA (EcalLogicID &id, float g)
 
LMFTestPulseConfigDatsetData (EcalLogicID &id, float g, float d, float pnga, float pnv)
 
LMFTestPulseConfigDatsetData (EcalLogicID &id, std::vector< float > v)
 
LMFTestPulseConfigDatsetPNGain (EcalLogicID &id, float g)
 
LMFTestPulseConfigDatsetPNVinj (EcalLogicID &id, float g)
 
LMFTestPulseConfigDatsetVFEGain (EcalLogicID &id, float g)
 
 ~LMFTestPulseConfigDat ()
 
- 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_TEST_PULSE_CONFIG_DAT interface

Definition at line 13 of file LMFTestPulseConfigDat.h.

Constructor & Destructor Documentation

LMFTestPulseConfigDat::LMFTestPulseConfigDat ( )
inline

Definition at line 15 of file LMFTestPulseConfigDat.h.

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

15  : LMFDat() {
16  m_tableName = "LMF_TEST_PULSE_CONFIG_DAT";
17  m_className = "LMFTestPulseConfigDat";
18  m_keys["VFE_GAIN"] = 0;
19  m_keys["DAC_MGPA"] = 1;
20  m_keys["PN_GAIN"] = 2;
21  m_keys["PN_VINJ"] = 3;
22  }
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
LMFTestPulseConfigDat::LMFTestPulseConfigDat ( EcalDBConnection c)
inline

Definition at line 23 of file LMFTestPulseConfigDat.h.

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

23  : LMFDat(c) {
24  m_tableName = "LMF_TEST_PULSE_CONFIG_DAT";
25  m_className = "LMFTestPulseConfigDat";
26  m_keys["VFE_GAIN"] = 0;
27  m_keys["DAC_MGPA"] = 1;
28  m_keys["PN_GAIN"] = 2;
29  m_keys["PN_VINJ"] = 3;
30  }
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
LMFTestPulseConfigDat::~LMFTestPulseConfigDat ( )
inline

Definition at line 31 of file LMFTestPulseConfigDat.h.

31 {}

Member Function Documentation

float LMFTestPulseConfigDat::getDACMGPA ( EcalLogicID id)
inline

Definition at line 68 of file LMFTestPulseConfigDat.h.

References LMFDat::getData().

68  {
69  return getData(id, "DAC_MGPA");
70  }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:636
float LMFTestPulseConfigDat::getPNGain ( EcalLogicID id)
inline

Definition at line 65 of file LMFTestPulseConfigDat.h.

References LMFDat::getData().

65  {
66  return getData(id, "PN_GAIN");
67  }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:636
float LMFTestPulseConfigDat::getPNVinj ( EcalLogicID id)
inline

Definition at line 71 of file LMFTestPulseConfigDat.h.

References LMFDat::getData().

71  {
72  return getData(id, "PN_VINJ");
73  }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:636
float LMFTestPulseConfigDat::getVFEGain ( EcalLogicID id)
inline

Definition at line 62 of file LMFTestPulseConfigDat.h.

References LMFDat::getData().

62  {
63  return getData(id, "VFE_GAIN");
64  }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:636
LMFTestPulseConfigDat& LMFTestPulseConfigDat::setDACMGPA ( EcalLogicID id,
float  g 
)
inline

Definition at line 41 of file LMFTestPulseConfigDat.h.

References LMFDat::setData().

41  {
42  LMFDat::setData(id, "DAC_MGPA", g);
43  return *this;
44  }
LMFDat & setData(int logic_id, const std::vector< float > &data)
Definition: LMFDat.h:55
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e g
Definition: Activities.doc:4
LMFTestPulseConfigDat& LMFTestPulseConfigDat::setData ( EcalLogicID id,
float  g,
float  d,
float  pnga,
float  pnv 
)
inline

Definition at line 49 of file LMFTestPulseConfigDat.h.

References LMFDat::setData().

50  {
51  LMFDat::setData(id, "VFE_GAIN", g);
52  LMFDat::setData(id, "DAC_MGPA", d);
53  LMFDat::setData(id, "PN_GAIN", pnga);
54  LMFDat::setData(id, "PN_VINJ", pnv);
55  return *this;
56  }
LMFDat & setData(int logic_id, const std::vector< float > &data)
Definition: LMFDat.h:55
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e g
Definition: Activities.doc:4
LMFTestPulseConfigDat& LMFTestPulseConfigDat::setData ( EcalLogicID id,
std::vector< float >  v 
)
inline

Definition at line 57 of file LMFTestPulseConfigDat.h.

References LMFDat::setData().

57  {
58  LMFDat::setData(id, v);
59  return *this;
60  }
LMFDat & setData(int logic_id, const std::vector< float > &data)
Definition: LMFDat.h:55
mathSSE::Vec4< T > v
LMFTestPulseConfigDat& LMFTestPulseConfigDat::setPNGain ( EcalLogicID id,
float  g 
)
inline

Definition at line 37 of file LMFTestPulseConfigDat.h.

References LMFDat::setData().

37  {
38  LMFDat::setData(id, "PN_GAIN", g);
39  return *this;
40  }
LMFDat & setData(int logic_id, const std::vector< float > &data)
Definition: LMFDat.h:55
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e g
Definition: Activities.doc:4
LMFTestPulseConfigDat& LMFTestPulseConfigDat::setPNVinj ( EcalLogicID id,
float  g 
)
inline

Definition at line 45 of file LMFTestPulseConfigDat.h.

References LMFDat::setData().

45  {
46  LMFDat::setData(id, "PN_VINJ", g);
47  return *this;
48  }
LMFDat & setData(int logic_id, const std::vector< float > &data)
Definition: LMFDat.h:55
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e g
Definition: Activities.doc:4
LMFTestPulseConfigDat& LMFTestPulseConfigDat::setVFEGain ( EcalLogicID id,
float  g 
)
inline

Definition at line 33 of file LMFTestPulseConfigDat.h.

References LMFDat::setData().

33  {
34  LMFDat::setData(id, "VFE_GAIN", g);
35  return *this;
36  }
LMFDat & setData(int logic_id, const std::vector< float > &data)
Definition: LMFDat.h:55
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e g
Definition: Activities.doc:4