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 ()
 
- Public Member Functions inherited from LMFDat
void dump () const
 
void dump (int n) const
 
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
 
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, const 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< LMFUniquefetchAll () const noexcept(false)
 
int fetchID () noexcept(false)
 
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)
 
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 () noexcept(false)
 
void getNeighbour (LMFDat *dat, int which) noexcept(false)
 
int writeDB () noexcept(false)
 
- Protected Member Functions inherited from LMFUnique
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::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:98
LMFDat()
Definition: LMFDat.cc:9
std::map< std::string, unsigned int > m_keys
Definition: LMFDat.h:154
std::string m_tableName
Definition: LMFDat.h:155
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:98
LMFDat()
Definition: LMFDat.cc:9
std::map< std::string, unsigned int > m_keys
Definition: LMFDat.h:154
std::string m_tableName
Definition: LMFDat.h:155
LMFLaserConfigDat::~LMFLaserConfigDat ( )
inline

Definition at line 39 of file LMFLaserConfigDat.h.

39 {}

Member Function Documentation

float LMFLaserConfigDat::getLSRAttenuator ( int  id)
inline

Definition at line 102 of file LMFLaserConfigDat.h.

References LMFDat::getData().

102  {
103  return getData(id, "LSR_ATTENUATOR");
104  }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:636
float LMFLaserConfigDat::getLSRAttenuator ( EcalLogicID id)
inline

Definition at line 127 of file LMFLaserConfigDat.h.

References LMFDat::getData().

127  {
128  return getData(id, "LSR_ATTENUATOR");
129  }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:636
float LMFLaserConfigDat::getLSRCurrent ( int  id)
inline

Definition at line 105 of file LMFLaserConfigDat.h.

References LMFDat::getData().

105  {
106  return getData(id, "LSR_CURRENT");
107  }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:636
float LMFLaserConfigDat::getLSRCurrent ( EcalLogicID id)
inline

Definition at line 130 of file LMFLaserConfigDat.h.

References LMFDat::getData().

130  {
131  return getData(id, "LSR_CURRENT");
132  }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:636
float LMFLaserConfigDat::getLSRDelay1 ( int  id)
inline

Definition at line 108 of file LMFLaserConfigDat.h.

References LMFDat::getData().

108  {
109  return getData(id, "LSR_DELAY_1");
110  }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:636
float LMFLaserConfigDat::getLSRDelay1 ( EcalLogicID id)
inline

Definition at line 133 of file LMFLaserConfigDat.h.

References LMFDat::getData().

133  {
134  return getData(id, "LSR_DELAY_1");
135  }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:636
float LMFLaserConfigDat::getLSRDelay2 ( int  id)
inline

Definition at line 111 of file LMFLaserConfigDat.h.

References LMFDat::getData().

111  {
112  return getData(id, "LSR_DELAY_2");
113  }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:636
float LMFLaserConfigDat::getLSRDelay2 ( EcalLogicID id)
inline

Definition at line 136 of file LMFLaserConfigDat.h.

References LMFDat::getData().

136  {
137  return getData(id, "LSR_DELAY_2");
138  }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:636
float LMFLaserConfigDat::getLSRPower ( int  id)
inline

Definition at line 99 of file LMFLaserConfigDat.h.

References LMFDat::getData().

99  {
100  return getData(id, "LSR_POWER");
101  }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:636
float LMFLaserConfigDat::getLSRPower ( EcalLogicID id)
inline

Definition at line 124 of file LMFLaserConfigDat.h.

References LMFDat::getData().

124  {
125  return getData(id, "LSR_POWER");
126  }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:636
float LMFLaserConfigDat::getPNGain ( int  id)
inline

Definition at line 96 of file LMFLaserConfigDat.h.

References LMFDat::getData().

96  {
97  return getData(id, "PN_GAIN");
98  }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:636
float LMFLaserConfigDat::getPNGain ( EcalLogicID id)
inline

Definition at line 121 of file LMFLaserConfigDat.h.

References LMFDat::getData().

121  {
122  return getData(id, "PN_GAIN");
123  }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:636
float LMFLaserConfigDat::getVFEGain ( int  id)
inline

Definition at line 93 of file LMFLaserConfigDat.h.

References LMFDat::getData().

93  {
94  return getData(id, "VFE_GAIN");
95  }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:636
float LMFLaserConfigDat::getVFEGain ( EcalLogicID id)
inline

Definition at line 118 of file LMFLaserConfigDat.h.

References LMFDat::getData().

118  {
119  return getData(id, "VFE_GAIN");
120  }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:636
float LMFLaserConfigDat::getWavelength ( int  id)
inline

Definition at line 90 of file LMFLaserConfigDat.h.

References LMFDat::getData().

90  {
91  return getData(id, "WAVELENGTH");
92  }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:636
float LMFLaserConfigDat::getWavelength ( EcalLogicID id)
inline

Definition at line 115 of file LMFLaserConfigDat.h.

References LMFDat::getData().

115  {
116  return getData(id, "WAVELENGTH");
117  }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:636
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 LMFDat::setData().

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  }
const double w
Definition: UKUtility.cc:23
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
double a
Definition: hdecay.h:121
LMFLaserConfigDat& LMFLaserConfigDat::setData ( EcalLogicID id,
const std::vector< float > &  v 
)
inline

Definition at line 85 of file LMFLaserConfigDat.h.

References LMFDat::setData().

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

Definition at line 57 of file LMFLaserConfigDat.h.

References 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: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
LMFLaserConfigDat& LMFLaserConfigDat::setLSRCurrent ( EcalLogicID id,
float  g 
)
inline

Definition at line 61 of file LMFLaserConfigDat.h.

References 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: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
LMFLaserConfigDat& LMFLaserConfigDat::setLSRDelay1 ( EcalLogicID id,
float  g 
)
inline

Definition at line 65 of file LMFLaserConfigDat.h.

References 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: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
LMFLaserConfigDat& LMFLaserConfigDat::setLSRDelay2 ( EcalLogicID id,
float  g 
)
inline

Definition at line 69 of file LMFLaserConfigDat.h.

References 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: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
LMFLaserConfigDat& LMFLaserConfigDat::setLSRPower ( EcalLogicID id,
float  g 
)
inline

Definition at line 53 of file LMFLaserConfigDat.h.

References 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: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
LMFLaserConfigDat& LMFLaserConfigDat::setPNGain ( EcalLogicID id,
float  g 
)
inline

Definition at line 49 of file LMFLaserConfigDat.h.

References 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: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
LMFLaserConfigDat& LMFLaserConfigDat::setVFEGain ( EcalLogicID id,
float  g 
)
inline

Definition at line 45 of file LMFLaserConfigDat.h.

References 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: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
LMFLaserConfigDat& LMFLaserConfigDat::setWavelength ( EcalLogicID id,
int  w 
)
inline

Definition at line 41 of file LMFLaserConfigDat.h.

References LMFDat::setData().

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