CMS 3D CMS Logo

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, const std::vector< float > &v)
 
LMFTestPulseConfigDatsetData (EcalLogicID &id, float g, float d, float pnga, float pnv)
 
LMFTestPulseConfigDatsetPNGain (EcalLogicID &id, float g)
 
LMFTestPulseConfigDatsetPNVinj (EcalLogicID &id, float g)
 
LMFTestPulseConfigDatsetVFEGain (EcalLogicID &id, float g)
 
 ~LMFTestPulseConfigDat () 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_TEST_PULSE_CONFIG_DAT interface

Definition at line 13 of file LMFTestPulseConfigDat.h.

Constructor & Destructor Documentation

◆ LMFTestPulseConfigDat() [1/2]

LMFTestPulseConfigDat::LMFTestPulseConfigDat ( )
inline

Definition at line 15 of file LMFTestPulseConfigDat.h.

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  }

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

◆ LMFTestPulseConfigDat() [2/2]

LMFTestPulseConfigDat::LMFTestPulseConfigDat ( EcalDBConnection c)
inline

Definition at line 23 of file LMFTestPulseConfigDat.h.

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  }

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

◆ ~LMFTestPulseConfigDat()

LMFTestPulseConfigDat::~LMFTestPulseConfigDat ( )
inlineoverride

Definition at line 31 of file LMFTestPulseConfigDat.h.

31 {}

Member Function Documentation

◆ getDACMGPA()

float LMFTestPulseConfigDat::getDACMGPA ( EcalLogicID id)
inline

Definition at line 63 of file LMFTestPulseConfigDat.h.

63 { return getData(id, "DAC_MGPA"); }

References LMFDat::getData().

◆ getPNGain()

float LMFTestPulseConfigDat::getPNGain ( EcalLogicID id)
inline

Definition at line 62 of file LMFTestPulseConfigDat.h.

62 { return getData(id, "PN_GAIN"); }

References LMFDat::getData().

◆ getPNVinj()

float LMFTestPulseConfigDat::getPNVinj ( EcalLogicID id)
inline

Definition at line 64 of file LMFTestPulseConfigDat.h.

64 { return getData(id, "PN_VINJ"); }

References LMFDat::getData().

◆ getVFEGain()

float LMFTestPulseConfigDat::getVFEGain ( EcalLogicID id)
inline

Definition at line 61 of file LMFTestPulseConfigDat.h.

61 { return getData(id, "VFE_GAIN"); }

References LMFDat::getData().

◆ setDACMGPA()

LMFTestPulseConfigDat& LMFTestPulseConfigDat::setDACMGPA ( EcalLogicID id,
float  g 
)
inline

Definition at line 41 of file LMFTestPulseConfigDat.h.

41  {
42  LMFDat::setData(id, "DAC_MGPA", g);
43  return *this;
44  }

References g, and LMFDat::setData().

◆ setData() [1/2]

LMFTestPulseConfigDat& LMFTestPulseConfigDat::setData ( EcalLogicID id,
const std::vector< float > &  v 
)
inline

Definition at line 56 of file LMFTestPulseConfigDat.h.

56  {
57  LMFDat::setData(id, v);
58  return *this;
59  }

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

◆ setData() [2/2]

LMFTestPulseConfigDat& LMFTestPulseConfigDat::setData ( EcalLogicID id,
float  g,
float  d,
float  pnga,
float  pnv 
)
inline

Definition at line 49 of file LMFTestPulseConfigDat.h.

49  {
50  LMFDat::setData(id, "VFE_GAIN", g);
51  LMFDat::setData(id, "DAC_MGPA", d);
52  LMFDat::setData(id, "PN_GAIN", pnga);
53  LMFDat::setData(id, "PN_VINJ", pnv);
54  return *this;
55  }

References ztail::d, g, and LMFDat::setData().

◆ setPNGain()

LMFTestPulseConfigDat& LMFTestPulseConfigDat::setPNGain ( EcalLogicID id,
float  g 
)
inline

Definition at line 37 of file LMFTestPulseConfigDat.h.

37  {
38  LMFDat::setData(id, "PN_GAIN", g);
39  return *this;
40  }

References g, and LMFDat::setData().

◆ setPNVinj()

LMFTestPulseConfigDat& LMFTestPulseConfigDat::setPNVinj ( EcalLogicID id,
float  g 
)
inline

Definition at line 45 of file LMFTestPulseConfigDat.h.

45  {
46  LMFDat::setData(id, "PN_VINJ", g);
47  return *this;
48  }

References g, and LMFDat::setData().

◆ setVFEGain()

LMFTestPulseConfigDat& LMFTestPulseConfigDat::setVFEGain ( EcalLogicID id,
float  g 
)
inline

Definition at line 33 of file LMFTestPulseConfigDat.h.

33  {
34  LMFDat::setData(id, "VFE_GAIN", g);
35  return *this;
36  }

References g, and LMFDat::setData().

LMFDat::getData
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:559
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
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
ztail.d
d
Definition: ztail.py:151
LMFDat::LMFDat
LMFDat()
Definition: LMFDat.cc:9
c
auto & c
Definition: CAHitNtupletGeneratorKernelsImpl.h:56
g
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