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  Copyright (c) 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, std::vector<float> v) {
86  LMFDat::setData(id, v);
87  return *this;
88  }
89 
91  return getData(id, "WAVELENGTH");
92  }
93  float getVFEGain(EcalLogicID &id) {
94  return getData(id, "VFE_GAIN");
95  }
96  float getPNGain(EcalLogicID &id) {
97  return getData(id, "PN_GAIN");
98  }
99  float getLSRPower(EcalLogicID &id) {
100  return getData(id, "LSR_POWER");
101  }
103  return getData(id, "LSR_ATTENUATOR");
104  }
106  return getData(id, "LSR_CURRENT");
107  }
109  return getData(id, "LSR_DELAY_1");
110  }
112  return getData(id, "LSR_DELAY_2");
113  }
114 
115 
116  private:
117 
118 };
119 
120 #endif
std::string m_className
Definition: LMFUnique.h:98
LMFLaserConfigDat & setLSRCurrent(EcalLogicID &id, float g)
float getPNGain(EcalLogicID &id)
float getLSRCURRENT(EcalLogicID &id)
float getWavelength(EcalLogicID &id)
LMFDat & setData(int logic_id, const std::vector< float > &data)
Definition: LMFDat.h:55
tuple d1
Definition: debug_cff.py:7
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 & setData(EcalLogicID &id, std::vector< float > v)
LMFLaserConfigDat & setWavelength(EcalLogicID &id, int w)
float getLSRPower(EcalLogicID &id)
LMFLaserConfigDat & setLSRAttenuator(EcalLogicID &id, float g)
float getLSRAttenuator(EcalLogicID &id)
Definition: LMFDat.h:19
LMFLaserConfigDat(EcalDBConnection *c)
LMFLaserConfigDat & setVFEGain(EcalLogicID &id, float g)
LMFLaserConfigDat & setLSRDelay2(EcalLogicID &id, float g)
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:568
LMFLaserConfigDat & setPNGain(EcalLogicID &id, float g)
LMFLaserConfigDat & setLSRPower(EcalLogicID &id, float g)
float getVFEGain(EcalLogicID &id)
float getLSRDelay1(EcalLogicID &id)
double a
Definition: hdecay.h:121
std::map< std::string, unsigned int > m_keys
Definition: LMFDat.h:152
LMFLaserConfigDat & setLSRDelay1(EcalLogicID &id, float g)
mathSSE::Vec4< T > v
float getLSRDelay2(EcalLogicID &id)
std::string m_tableName
Definition: LMFDat.h:153