CMS 3D CMS Logo

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  }
39  ~LMFLaserConfigDat() override {}
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  }
74  EcalLogicID &id, float w, float g, float pnga, 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) { return getData(id, "WAVELENGTH"); }
91  float getVFEGain(int id) { return getData(id, "VFE_GAIN"); }
92  float getPNGain(int id) { return getData(id, "PN_GAIN"); }
93  float getLSRPower(int id) { return getData(id, "LSR_POWER"); }
94  float getLSRAttenuator(int id) { return getData(id, "LSR_ATTENUATOR"); }
95  float getLSRCurrent(int id) { return getData(id, "LSR_CURRENT"); }
96  float getLSRDelay1(int id) { return getData(id, "LSR_DELAY_1"); }
97  float getLSRDelay2(int id) { return getData(id, "LSR_DELAY_2"); }
98 
99  float getWavelength(EcalLogicID &id) { return getData(id, "WAVELENGTH"); }
100  float getVFEGain(EcalLogicID &id) { return getData(id, "VFE_GAIN"); }
101  float getPNGain(EcalLogicID &id) { return getData(id, "PN_GAIN"); }
102  float getLSRPower(EcalLogicID &id) { return getData(id, "LSR_POWER"); }
103  float getLSRAttenuator(EcalLogicID &id) { return getData(id, "LSR_ATTENUATOR"); }
104  float getLSRCurrent(EcalLogicID &id) { return getData(id, "LSR_CURRENT"); }
105  float getLSRDelay1(EcalLogicID &id) { return getData(id, "LSR_DELAY_1"); }
106  float getLSRDelay2(EcalLogicID &id) { return getData(id, "LSR_DELAY_2"); }
107 
108 private:
109 };
110 
111 #endif
std::string m_className
Definition: LMFUnique.h:95
LMFLaserConfigDat & setLSRCurrent(EcalLogicID &id, float g)
float getPNGain(EcalLogicID &id)
const double w
Definition: UKUtility.cc:23
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: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
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:18
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:559
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:119
std::map< std::string, unsigned int > m_keys
Definition: LMFDat.h:145
LMFLaserConfigDat & setLSRDelay1(EcalLogicID &id, float g)
~LMFLaserConfigDat() override
float getWavelength(int id)
float getLSRDelay2(EcalLogicID &id)
std::string m_tableName
Definition: LMFDat.h:146