CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
LMFTestPulseConfigDat.h
Go to the documentation of this file.
1 #ifndef LMFTESTPULSECONFIGDAT_H
2 #define LMFTESTPULSECONFIGDAT_H
3 
4 /*
5  Copyright (c) Giovanni.Organtini@roma1.infn.it 2010
6  */
7 
9 
13 class LMFTestPulseConfigDat : public LMFDat {
14  public:
16  m_tableName = "LMF_TEST_PULSE_CONFIG_DAT";
17  m_className = "LMFTestPulseConfigDat";
18  m_keys["VFE_GAIN"] = 0;
19  m_keys["DAC_MGPA"] = 1;
20  m_keys["PN_GAIN"] = 2;
21  m_keys["PN_VINJ"] = 3;
22  }
24  m_tableName = "LMF_TEST_PULSE_CONFIG_DAT";
25  m_className = "LMFTestPulseConfigDat";
26  m_keys["VFE_GAIN"] = 0;
27  m_keys["DAC_MGPA"] = 1;
28  m_keys["PN_GAIN"] = 2;
29  m_keys["PN_VINJ"] = 3;
30  }
32 
34  LMFDat::setData(id, "VFE_GAIN", g);
35  return *this;
36  }
38  LMFDat::setData(id, "PN_GAIN", g);
39  return *this;
40  }
42  LMFDat::setData(id, "DAC_MGPA", g);
43  return *this;
44  }
46  LMFDat::setData(id, "PN_VINJ", g);
47  return *this;
48  }
49  LMFTestPulseConfigDat& setData(EcalLogicID &id, float g, float d, float pnga,
50  float pnv) {
51  LMFDat::setData(id, "VFE_GAIN", g);
52  LMFDat::setData(id, "DAC_MGPA", d);
53  LMFDat::setData(id, "PN_GAIN", pnga);
54  LMFDat::setData(id, "PN_VINJ", pnv);
55  return *this;
56  }
57  LMFTestPulseConfigDat& setData(EcalLogicID &id, std::vector<float> v) {
58  LMFDat::setData(id, v);
59  return *this;
60  }
61 
62  float getVFEGain(EcalLogicID &id) {
63  return getData(id, "VFE_GAIN");
64  }
65  float getPNGain(EcalLogicID &id) {
66  return getData(id, "PN_GAIN");
67  }
68  float getDACMGPA(EcalLogicID &id) {
69  return getData(id, "DAC_MGPA");
70  }
71  float getPNVinj(EcalLogicID &id) {
72  return getData(id, "PN_VINJ");
73  }
74 
75  private:
76 
77 };
78 
79 #endif
std::string m_className
Definition: LMFUnique.h:98
float getPNVinj(EcalLogicID &id)
float getDACMGPA(EcalLogicID &id)
LMFTestPulseConfigDat & setPNVinj(EcalLogicID &id, float g)
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 getPNGain(EcalLogicID &id)
LMFTestPulseConfigDat(EcalDBConnection *c)
Definition: LMFDat.h:19
LMFTestPulseConfigDat & setPNGain(EcalLogicID &id, float g)
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:568
LMFTestPulseConfigDat & setDACMGPA(EcalLogicID &id, float g)
LMFTestPulseConfigDat & setData(EcalLogicID &id, float g, float d, float pnga, float pnv)
float getVFEGain(EcalLogicID &id)
LMFTestPulseConfigDat & setData(EcalLogicID &id, std::vector< float > v)
LMFTestPulseConfigDat & setVFEGain(EcalLogicID &id, float g)
std::map< std::string, unsigned int > m_keys
Definition: LMFDat.h:152
mathSSE::Vec4< T > v
std::string m_tableName
Definition: LMFDat.h:153