CMS 3D CMS Logo

List of all members | Public Member Functions
LMFLaserConfigDat Class Reference

#include <LMFLaserConfigDat.h>

Inheritance diagram for LMFLaserConfigDat:
LMFDat LMFUnique IUniqueDBObject IDBObject

Public Member Functions

float getLSRAttenuator (int id)
 
float getLSRAttenuator (EcalLogicID &id)
 
float getLSRCurrent (int id)
 
float getLSRCurrent (EcalLogicID &id)
 
float getLSRDelay1 (int id)
 
float getLSRDelay1 (EcalLogicID &id)
 
float getLSRDelay2 (int id)
 
float getLSRDelay2 (EcalLogicID &id)
 
float getLSRPower (int id)
 
float getLSRPower (EcalLogicID &id)
 
float getPNGain (int id)
 
float getPNGain (EcalLogicID &id)
 
float getVFEGain (int id)
 
float getVFEGain (EcalLogicID &id)
 
float getWavelength (int id)
 
float getWavelength (EcalLogicID &id)
 
 LMFLaserConfigDat ()
 
 LMFLaserConfigDat (EcalDBConnection *c)
 
LMFLaserConfigDatsetData (EcalLogicID &id, float w, float g, float pnga, float p, float a, float c, float d1, float d2)
 
LMFLaserConfigDatsetData (EcalLogicID &id, const std::vector< float > &v)
 
LMFLaserConfigDatsetLSRAttenuator (EcalLogicID &id, float g)
 
LMFLaserConfigDatsetLSRCurrent (EcalLogicID &id, float g)
 
LMFLaserConfigDatsetLSRDelay1 (EcalLogicID &id, float g)
 
LMFLaserConfigDatsetLSRDelay2 (EcalLogicID &id, float g)
 
LMFLaserConfigDatsetLSRPower (EcalLogicID &id, float g)
 
LMFLaserConfigDatsetPNGain (EcalLogicID &id, float g)
 
LMFLaserConfigDatsetVFEGain (EcalLogicID &id, float g)
 
LMFLaserConfigDatsetWavelength (EcalLogicID &id, int w)
 
 ~LMFLaserConfigDat () 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 (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)
 
void fetch (const EcalLogicID &id, const Tm &tm) noexcept(false)
 
void fetch (const EcalLogicID &id, const Tm &tm, int dir) noexcept(false)
 
void fetch (const EcalLogicID &id) noexcept(false)
 
std::map< int, std::vector< float > > fetchData () noexcept(false)
 
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) 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 (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, 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 (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 (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 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 () 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_LASER_CONFIG_DAT interface

Definition at line 13 of file LMFLaserConfigDat.h.

Constructor & Destructor Documentation

◆ LMFLaserConfigDat() [1/2]

LMFLaserConfigDat::LMFLaserConfigDat ( )
inline

Definition at line 15 of file LMFLaserConfigDat.h.

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

15  : LMFDat() {
16  m_tableName = "LMF_LASER_CONFIG_DAT";
17  m_className = "LMFLaserConfigDat";
18  m_keys["WAVELENGTH"] = 0;
19  m_keys["VFE_GAIN"] = 1;
20  m_keys["PN_GAIN"] = 2;
21  m_keys["LSR_POWER"] = 3;
22  m_keys["LSR_ATTENUATOR"] = 4;
23  m_keys["LSR_CURRENT"] = 5;
24  m_keys["LSR_DELAY_1"] = 6;
25  m_keys["LSR_DELAY_2"] = 7;
26  }
std::string m_className
Definition: LMFUnique.h:99
LMFDat()
Definition: LMFDat.cc:9
std::map< std::string, unsigned int > m_keys
Definition: LMFDat.h:145
std::string m_tableName
Definition: LMFDat.h:146

◆ LMFLaserConfigDat() [2/2]

LMFLaserConfigDat::LMFLaserConfigDat ( EcalDBConnection c)
inline

Definition at line 27 of file LMFLaserConfigDat.h.

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

27  : LMFDat(c) {
28  m_tableName = "LMF_LASER_CONFIG_DAT";
29  m_className = "LMFLaserConfigDat";
30  m_keys["WAVELENGTH"] = 0;
31  m_keys["VFE_GAIN"] = 1;
32  m_keys["PN_GAIN"] = 2;
33  m_keys["LSR_POWER"] = 3;
34  m_keys["LSR_ATTENUATOR"] = 4;
35  m_keys["LSR_CURRENT"] = 5;
36  m_keys["LSR_DELAY_1"] = 6;
37  m_keys["LSR_DELAY_2"] = 7;
38  }
std::string m_className
Definition: LMFUnique.h:99
LMFDat()
Definition: LMFDat.cc:9
std::map< std::string, unsigned int > m_keys
Definition: LMFDat.h:145
std::string m_tableName
Definition: LMFDat.h:146

◆ ~LMFLaserConfigDat()

LMFLaserConfigDat::~LMFLaserConfigDat ( )
inlineoverride

Definition at line 39 of file LMFLaserConfigDat.h.

39 {}

Member Function Documentation

◆ getLSRAttenuator() [1/2]

float LMFLaserConfigDat::getLSRAttenuator ( int  id)
inline

Definition at line 94 of file LMFLaserConfigDat.h.

References LMFDat::getData().

94 { return getData(id, "LSR_ATTENUATOR"); }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:559

◆ getLSRAttenuator() [2/2]

float LMFLaserConfigDat::getLSRAttenuator ( EcalLogicID id)
inline

Definition at line 103 of file LMFLaserConfigDat.h.

References LMFDat::getData().

103 { return getData(id, "LSR_ATTENUATOR"); }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:559

◆ getLSRCurrent() [1/2]

float LMFLaserConfigDat::getLSRCurrent ( int  id)
inline

Definition at line 95 of file LMFLaserConfigDat.h.

References LMFDat::getData().

95 { return getData(id, "LSR_CURRENT"); }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:559

◆ getLSRCurrent() [2/2]

float LMFLaserConfigDat::getLSRCurrent ( EcalLogicID id)
inline

Definition at line 104 of file LMFLaserConfigDat.h.

References LMFDat::getData().

104 { return getData(id, "LSR_CURRENT"); }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:559

◆ getLSRDelay1() [1/2]

float LMFLaserConfigDat::getLSRDelay1 ( int  id)
inline

Definition at line 96 of file LMFLaserConfigDat.h.

References LMFDat::getData().

96 { return getData(id, "LSR_DELAY_1"); }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:559

◆ getLSRDelay1() [2/2]

float LMFLaserConfigDat::getLSRDelay1 ( EcalLogicID id)
inline

Definition at line 105 of file LMFLaserConfigDat.h.

References LMFDat::getData().

105 { return getData(id, "LSR_DELAY_1"); }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:559

◆ getLSRDelay2() [1/2]

float LMFLaserConfigDat::getLSRDelay2 ( int  id)
inline

Definition at line 97 of file LMFLaserConfigDat.h.

References LMFDat::getData().

97 { return getData(id, "LSR_DELAY_2"); }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:559

◆ getLSRDelay2() [2/2]

float LMFLaserConfigDat::getLSRDelay2 ( EcalLogicID id)
inline

Definition at line 106 of file LMFLaserConfigDat.h.

References LMFDat::getData().

106 { return getData(id, "LSR_DELAY_2"); }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:559

◆ getLSRPower() [1/2]

float LMFLaserConfigDat::getLSRPower ( int  id)
inline

Definition at line 93 of file LMFLaserConfigDat.h.

References LMFDat::getData().

93 { return getData(id, "LSR_POWER"); }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:559

◆ getLSRPower() [2/2]

float LMFLaserConfigDat::getLSRPower ( EcalLogicID id)
inline

Definition at line 102 of file LMFLaserConfigDat.h.

References LMFDat::getData().

102 { return getData(id, "LSR_POWER"); }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:559

◆ getPNGain() [1/2]

float LMFLaserConfigDat::getPNGain ( int  id)
inline

Definition at line 92 of file LMFLaserConfigDat.h.

References LMFDat::getData().

92 { return getData(id, "PN_GAIN"); }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:559

◆ getPNGain() [2/2]

float LMFLaserConfigDat::getPNGain ( EcalLogicID id)
inline

Definition at line 101 of file LMFLaserConfigDat.h.

References LMFDat::getData().

101 { return getData(id, "PN_GAIN"); }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:559

◆ getVFEGain() [1/2]

float LMFLaserConfigDat::getVFEGain ( int  id)
inline

Definition at line 91 of file LMFLaserConfigDat.h.

References LMFDat::getData().

91 { return getData(id, "VFE_GAIN"); }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:559

◆ getVFEGain() [2/2]

float LMFLaserConfigDat::getVFEGain ( EcalLogicID id)
inline

Definition at line 100 of file LMFLaserConfigDat.h.

References LMFDat::getData().

100 { return getData(id, "VFE_GAIN"); }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:559

◆ getWavelength() [1/2]

float LMFLaserConfigDat::getWavelength ( int  id)
inline

Definition at line 90 of file LMFLaserConfigDat.h.

References LMFDat::getData().

90 { return getData(id, "WAVELENGTH"); }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:559

◆ getWavelength() [2/2]

float LMFLaserConfigDat::getWavelength ( EcalLogicID id)
inline

Definition at line 99 of file LMFLaserConfigDat.h.

References LMFDat::getData().

99 { return getData(id, "WAVELENGTH"); }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:559

◆ setData() [1/2]

LMFLaserConfigDat& LMFLaserConfigDat::setData ( EcalLogicID id,
float  w,
float  g,
float  pnga,
float  p,
float  a,
float  c,
float  d1,
float  d2 
)
inline

Definition at line 73 of file LMFLaserConfigDat.h.

References a, HltBtagPostValidation_cff::c, d1, g, AlCaHLTBitMon_ParallelJobs::p, LMFDat::setData(), and w().

74  {
75  LMFDat::setData(id, "WAVELENGTH", w);
76  LMFDat::setData(id, "VFE_GAIN", g);
77  LMFDat::setData(id, "PN_GAIN", pnga);
78  LMFDat::setData(id, "LSR_POWER", p);
79  LMFDat::setData(id, "LSR_ATTENUATOR", a);
80  LMFDat::setData(id, "LSR_CURRENT", c);
81  LMFDat::setData(id, "LSR_DELAY_1", d1);
82  LMFDat::setData(id, "LSR_DELAY_2", d2);
83  return *this;
84  }
T w() const
LMFDat & setData(int logic_id, const std::vector< float > &data)
Definition: LMFDat.h:49
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
double a
Definition: hdecay.h:119
static constexpr float d1

◆ setData() [2/2]

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

Definition at line 85 of file LMFLaserConfigDat.h.

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

85  {
86  LMFDat::setData(id, v);
87  return *this;
88  }
LMFDat & setData(int logic_id, const std::vector< float > &data)
Definition: LMFDat.h:49

◆ setLSRAttenuator()

LMFLaserConfigDat& LMFLaserConfigDat::setLSRAttenuator ( EcalLogicID id,
float  g 
)
inline

Definition at line 57 of file LMFLaserConfigDat.h.

References g, and LMFDat::setData().

57  {
58  LMFDat::setData(id, "LSR_ATTENUATOR", g);
59  return *this;
60  }
LMFDat & setData(int logic_id, const std::vector< float > &data)
Definition: LMFDat.h:49
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

◆ setLSRCurrent()

LMFLaserConfigDat& LMFLaserConfigDat::setLSRCurrent ( EcalLogicID id,
float  g 
)
inline

Definition at line 61 of file LMFLaserConfigDat.h.

References g, and LMFDat::setData().

61  {
62  LMFDat::setData(id, "LSR_CURRENT", g);
63  return *this;
64  }
LMFDat & setData(int logic_id, const std::vector< float > &data)
Definition: LMFDat.h:49
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

◆ setLSRDelay1()

LMFLaserConfigDat& LMFLaserConfigDat::setLSRDelay1 ( EcalLogicID id,
float  g 
)
inline

Definition at line 65 of file LMFLaserConfigDat.h.

References g, and LMFDat::setData().

65  {
66  LMFDat::setData(id, "LSR_DELAY_1", g);
67  return *this;
68  }
LMFDat & setData(int logic_id, const std::vector< float > &data)
Definition: LMFDat.h:49
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

◆ setLSRDelay2()

LMFLaserConfigDat& LMFLaserConfigDat::setLSRDelay2 ( EcalLogicID id,
float  g 
)
inline

Definition at line 69 of file LMFLaserConfigDat.h.

References g, and LMFDat::setData().

69  {
70  LMFDat::setData(id, "LSR_DELAY_2", g);
71  return *this;
72  }
LMFDat & setData(int logic_id, const std::vector< float > &data)
Definition: LMFDat.h:49
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

◆ setLSRPower()

LMFLaserConfigDat& LMFLaserConfigDat::setLSRPower ( EcalLogicID id,
float  g 
)
inline

Definition at line 53 of file LMFLaserConfigDat.h.

References g, and LMFDat::setData().

53  {
54  LMFDat::setData(id, "LSR_POWER", g);
55  return *this;
56  }
LMFDat & setData(int logic_id, const std::vector< float > &data)
Definition: LMFDat.h:49
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

◆ setPNGain()

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

Definition at line 49 of file LMFLaserConfigDat.h.

References g, and LMFDat::setData().

49  {
50  LMFDat::setData(id, "PN_GAIN", g);
51  return *this;
52  }
LMFDat & setData(int logic_id, const std::vector< float > &data)
Definition: LMFDat.h:49
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

◆ setVFEGain()

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

Definition at line 45 of file LMFLaserConfigDat.h.

References g, and LMFDat::setData().

45  {
46  LMFDat::setData(id, "VFE_GAIN", g);
47  return *this;
48  }
LMFDat & setData(int logic_id, const std::vector< float > &data)
Definition: LMFDat.h:49
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

◆ setWavelength()

LMFLaserConfigDat& LMFLaserConfigDat::setWavelength ( EcalLogicID id,
int  w 
)
inline

Definition at line 41 of file LMFLaserConfigDat.h.

References LMFDat::setData(), and w().

41  {
42  LMFDat::setData(id, "WAVELENGTH", w);
43  return *this;
44  }
T w() const
LMFDat & setData(int logic_id, const std::vector< float > &data)
Definition: LMFDat.h:49