CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
LMFLaserConfigDat.h
Go to the documentation of this file.
1 #ifndef LMFLASERCONFIGDAT_H
2 #define LMFLASERCONFIGDAT_H
3 
4 /*
5  Last updated by Giovanni.Organtini@roma1.infn.it 2010
6  */
7 
9 
13 class LMFLaserConfigDat : public LMFDat {
14  public:
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  }
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  }
40 
42  LMFDat::setData(id, "WAVELENGTH", w);
43  return *this;
44  }
46  LMFDat::setData(id, "VFE_GAIN", g);
47  return *this;
48  }
50  LMFDat::setData(id, "PN_GAIN", g);
51  return *this;
52  }
54  LMFDat::setData(id, "LSR_POWER", g);
55  return *this;
56  }
58  LMFDat::setData(id, "LSR_ATTENUATOR", g);
59  return *this;
60  }
62  LMFDat::setData(id, "LSR_CURRENT", g);
63  return *this;
64  }
66  LMFDat::setData(id, "LSR_DELAY_1", g);
67  return *this;
68  }
70  LMFDat::setData(id, "LSR_DELAY_2", g);
71  return *this;
72  }
73  LMFLaserConfigDat& setData(EcalLogicID &id, float w, float g, float pnga,
74  float p, float a, float c, float d1, float d2) {
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  }
85  LMFLaserConfigDat& setData(EcalLogicID &id, const std::vector<float>& v) {
86  LMFDat::setData(id, v);
87  return *this;
88  }
89 
90  float getWavelength(int id) {
91  return getData(id, "WAVELENGTH");
92  }
93  float getVFEGain(int id) {
94  return getData(id, "VFE_GAIN");
95  }
96  float getPNGain(int id) {
97  return getData(id, "PN_GAIN");
98  }
99  float getLSRPower(int id) {
100  return getData(id, "LSR_POWER");
101  }
102  float getLSRAttenuator(int id) {
103  return getData(id, "LSR_ATTENUATOR");
104  }
105  float getLSRCurrent(int id) {
106  return getData(id, "LSR_CURRENT");
107  }
108  float getLSRDelay1(int id) {
109  return getData(id, "LSR_DELAY_1");
110  }
111  float getLSRDelay2(int id) {
112  return getData(id, "LSR_DELAY_2");
113  }
114 
116  return getData(id, "WAVELENGTH");
117  }
118  float getVFEGain(EcalLogicID &id) {
119  return getData(id, "VFE_GAIN");
120  }
121  float getPNGain(EcalLogicID &id) {
122  return getData(id, "PN_GAIN");
123  }
125  return getData(id, "LSR_POWER");
126  }
128  return getData(id, "LSR_ATTENUATOR");
129  }
131  return getData(id, "LSR_CURRENT");
132  }
134  return getData(id, "LSR_DELAY_1");
135  }
137  return getData(id, "LSR_DELAY_2");
138  }
139 
140 
141  private:
142 
143 };
144 
145 #endif
std::string m_className
Definition: LMFUnique.h:99
LMFLaserConfigDat & setLSRCurrent(EcalLogicID &id, float g)
float getPNGain(EcalLogicID &id)
float getWavelength(EcalLogicID &id)
LMFLaserConfigDat & setData(EcalLogicID &id, const std::vector< float > &v)
float getVFEGain(int id)
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
float getLSRPower(int id)
LMFLaserConfigDat & setWavelength(EcalLogicID &id, int w)
float getLSRPower(EcalLogicID &id)
float getLSRDelay2(int id)
LMFLaserConfigDat & setLSRAttenuator(EcalLogicID &id, float g)
float getLSRAttenuator(EcalLogicID &id)
Definition: LMFDat.h:19
LMFLaserConfigDat(EcalDBConnection *c)
LMFLaserConfigDat & setVFEGain(EcalLogicID &id, float g)
float getLSRDelay1(int id)
LMFLaserConfigDat & setLSRDelay2(EcalLogicID &id, float g)
float getPNGain(int id)
LMFLaserConfigDat & setData(EcalLogicID &id, float w, float g, float pnga, float p, float a, float c, float d1, float d2)
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:636
float getLSRCurrent(EcalLogicID &id)
LMFLaserConfigDat & setPNGain(EcalLogicID &id, float g)
LMFLaserConfigDat & setLSRPower(EcalLogicID &id, float g)
float getVFEGain(EcalLogicID &id)
float getLSRDelay1(EcalLogicID &id)
float getLSRCurrent(int id)
float getLSRAttenuator(int id)
double a
Definition: hdecay.h:121
std::map< std::string, unsigned int > m_keys
Definition: LMFDat.h:155
T w() const
LMFLaserConfigDat & setLSRDelay1(EcalLogicID &id, float g)
float getWavelength(int id)
float getLSRDelay2(EcalLogicID &id)
std::string m_tableName
Definition: LMFDat.h:156