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 (EcalLogicID &id)
 
float getLSRAttenuator (int id)
 
float getLSRCurrent (EcalLogicID &id)
 
float getLSRCurrent (int id)
 
float getLSRDelay1 (EcalLogicID &id)
 
float getLSRDelay1 (int id)
 
float getLSRDelay2 (EcalLogicID &id)
 
float getLSRDelay2 (int id)
 
float getLSRPower (EcalLogicID &id)
 
float getLSRPower (int id)
 
float getPNGain (EcalLogicID &id)
 
float getPNGain (int id)
 
float getVFEGain (EcalLogicID &id)
 
float getVFEGain (int id)
 
float getWavelength (EcalLogicID &id)
 
float getWavelength (int id)
 
 LMFLaserConfigDat ()
 
 LMFLaserConfigDat (EcalDBConnection *c)
 
LMFLaserConfigDatsetData (EcalLogicID &id, const std::vector< float > &v)
 
LMFLaserConfigDatsetData (EcalLogicID &id, float w, float g, float pnga, float p, float a, float c, float d1, float d2)
 
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 (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 boost::ptr_list< LMFUniquefetchAll () 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_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.

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  }

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

◆ LMFLaserConfigDat() [2/2]

LMFLaserConfigDat::LMFLaserConfigDat ( EcalDBConnection c)
inline

Definition at line 27 of file LMFLaserConfigDat.h.

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  }

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

◆ ~LMFLaserConfigDat()

LMFLaserConfigDat::~LMFLaserConfigDat ( )
inlineoverride

Definition at line 39 of file LMFLaserConfigDat.h.

39 {}

Member Function Documentation

◆ getLSRAttenuator() [1/2]

float LMFLaserConfigDat::getLSRAttenuator ( EcalLogicID id)
inline

Definition at line 103 of file LMFLaserConfigDat.h.

103 { return getData(id, "LSR_ATTENUATOR"); }

References LMFDat::getData().

◆ getLSRAttenuator() [2/2]

float LMFLaserConfigDat::getLSRAttenuator ( int  id)
inline

Definition at line 94 of file LMFLaserConfigDat.h.

94 { return getData(id, "LSR_ATTENUATOR"); }

References LMFDat::getData().

◆ getLSRCurrent() [1/2]

float LMFLaserConfigDat::getLSRCurrent ( EcalLogicID id)
inline

Definition at line 104 of file LMFLaserConfigDat.h.

104 { return getData(id, "LSR_CURRENT"); }

References LMFDat::getData().

◆ getLSRCurrent() [2/2]

float LMFLaserConfigDat::getLSRCurrent ( int  id)
inline

Definition at line 95 of file LMFLaserConfigDat.h.

95 { return getData(id, "LSR_CURRENT"); }

References LMFDat::getData().

◆ getLSRDelay1() [1/2]

float LMFLaserConfigDat::getLSRDelay1 ( EcalLogicID id)
inline

Definition at line 105 of file LMFLaserConfigDat.h.

105 { return getData(id, "LSR_DELAY_1"); }

References LMFDat::getData().

◆ getLSRDelay1() [2/2]

float LMFLaserConfigDat::getLSRDelay1 ( int  id)
inline

Definition at line 96 of file LMFLaserConfigDat.h.

96 { return getData(id, "LSR_DELAY_1"); }

References LMFDat::getData().

◆ getLSRDelay2() [1/2]

float LMFLaserConfigDat::getLSRDelay2 ( EcalLogicID id)
inline

Definition at line 106 of file LMFLaserConfigDat.h.

106 { return getData(id, "LSR_DELAY_2"); }

References LMFDat::getData().

◆ getLSRDelay2() [2/2]

float LMFLaserConfigDat::getLSRDelay2 ( int  id)
inline

Definition at line 97 of file LMFLaserConfigDat.h.

97 { return getData(id, "LSR_DELAY_2"); }

References LMFDat::getData().

◆ getLSRPower() [1/2]

float LMFLaserConfigDat::getLSRPower ( EcalLogicID id)
inline

Definition at line 102 of file LMFLaserConfigDat.h.

102 { return getData(id, "LSR_POWER"); }

References LMFDat::getData().

◆ getLSRPower() [2/2]

float LMFLaserConfigDat::getLSRPower ( int  id)
inline

Definition at line 93 of file LMFLaserConfigDat.h.

93 { return getData(id, "LSR_POWER"); }

References LMFDat::getData().

◆ getPNGain() [1/2]

float LMFLaserConfigDat::getPNGain ( EcalLogicID id)
inline

Definition at line 101 of file LMFLaserConfigDat.h.

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

References LMFDat::getData().

◆ getPNGain() [2/2]

float LMFLaserConfigDat::getPNGain ( int  id)
inline

Definition at line 92 of file LMFLaserConfigDat.h.

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

References LMFDat::getData().

◆ getVFEGain() [1/2]

float LMFLaserConfigDat::getVFEGain ( EcalLogicID id)
inline

Definition at line 100 of file LMFLaserConfigDat.h.

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

References LMFDat::getData().

◆ getVFEGain() [2/2]

float LMFLaserConfigDat::getVFEGain ( int  id)
inline

Definition at line 91 of file LMFLaserConfigDat.h.

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

References LMFDat::getData().

◆ getWavelength() [1/2]

float LMFLaserConfigDat::getWavelength ( EcalLogicID id)
inline

Definition at line 99 of file LMFLaserConfigDat.h.

99 { return getData(id, "WAVELENGTH"); }

References LMFDat::getData().

◆ getWavelength() [2/2]

float LMFLaserConfigDat::getWavelength ( int  id)
inline

Definition at line 90 of file LMFLaserConfigDat.h.

90 { return getData(id, "WAVELENGTH"); }

References LMFDat::getData().

◆ setData() [1/2]

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

Definition at line 85 of file LMFLaserConfigDat.h.

85  {
86  LMFDat::setData(id, v);
87  return *this;
88  }

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

◆ setData() [2/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.

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  }

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

◆ setLSRAttenuator()

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

Definition at line 57 of file LMFLaserConfigDat.h.

57  {
58  LMFDat::setData(id, "LSR_ATTENUATOR", g);
59  return *this;
60  }

References g, and LMFDat::setData().

◆ setLSRCurrent()

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

Definition at line 61 of file LMFLaserConfigDat.h.

61  {
62  LMFDat::setData(id, "LSR_CURRENT", g);
63  return *this;
64  }

References g, and LMFDat::setData().

◆ setLSRDelay1()

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

Definition at line 65 of file LMFLaserConfigDat.h.

65  {
66  LMFDat::setData(id, "LSR_DELAY_1", g);
67  return *this;
68  }

References g, and LMFDat::setData().

◆ setLSRDelay2()

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

Definition at line 69 of file LMFLaserConfigDat.h.

69  {
70  LMFDat::setData(id, "LSR_DELAY_2", g);
71  return *this;
72  }

References g, and LMFDat::setData().

◆ setLSRPower()

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

Definition at line 53 of file LMFLaserConfigDat.h.

53  {
54  LMFDat::setData(id, "LSR_POWER", g);
55  return *this;
56  }

References g, and LMFDat::setData().

◆ setPNGain()

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

Definition at line 49 of file LMFLaserConfigDat.h.

49  {
50  LMFDat::setData(id, "PN_GAIN", g);
51  return *this;
52  }

References g, and LMFDat::setData().

◆ setVFEGain()

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

Definition at line 45 of file LMFLaserConfigDat.h.

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

References g, and LMFDat::setData().

◆ setWavelength()

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

Definition at line 41 of file LMFLaserConfigDat.h.

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

References LMFDat::setData(), and w.

LMFDat::getData
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:559
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
LMFUnique::m_className
std::string m_className
Definition: LMFUnique.h:95
findQualityFiles.v
v
Definition: findQualityFiles.py:179
w
const double w
Definition: UKUtility.cc:23
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
a
double a
Definition: hdecay.h:119
LMFDat::m_keys
std::map< std::string, unsigned int > m_keys
Definition: LMFDat.h:145
HltBtagPostValidation_cff.c
c
Definition: HltBtagPostValidation_cff.py:31
LMFDat::LMFDat
LMFDat()
Definition: LMFDat.cc:9
d1
static constexpr float d1
Definition: L1EGammaCrystalsEmulatorProducer.cc:85
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