CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
LMFTestPulseConfigDat.h
Go to the documentation of this file.
1 #ifndef LMFTESTPULSECONFIGDAT_H
2 #define LMFTESTPULSECONFIGDAT_H
3 
4 /*
5  Last updated by 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  }
31  ~LMFTestPulseConfigDat() override {}
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, float pnv) {
50  LMFDat::setData(id, "VFE_GAIN", g);
51  LMFDat::setData(id, "DAC_MGPA", d);
52  LMFDat::setData(id, "PN_GAIN", pnga);
53  LMFDat::setData(id, "PN_VINJ", pnv);
54  return *this;
55  }
56  LMFTestPulseConfigDat &setData(EcalLogicID &id, const std::vector<float> &v) {
57  LMFDat::setData(id, v);
58  return *this;
59  }
60 
61  float getVFEGain(EcalLogicID &id) { return getData(id, "VFE_GAIN"); }
62  float getPNGain(EcalLogicID &id) { return getData(id, "PN_GAIN"); }
63  float getDACMGPA(EcalLogicID &id) { return getData(id, "DAC_MGPA"); }
64  float getPNVinj(EcalLogicID &id) { return getData(id, "PN_VINJ"); }
65 
66 private:
67 };
68 
69 #endif
std::string m_className
Definition: LMFUnique.h:99
float getPNVinj(EcalLogicID &id)
const edm::EventSetup & c
LMFTestPulseConfigDat & setData(EcalLogicID &id, const std::vector< float > &v)
float getDACMGPA(EcalLogicID &id)
LMFTestPulseConfigDat & setPNVinj(EcalLogicID &id, float g)
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 getPNGain(EcalLogicID &id)
tuple d
Definition: ztail.py:151
LMFTestPulseConfigDat(EcalDBConnection *c)
Definition: LMFDat.h:18
LMFTestPulseConfigDat & setPNGain(EcalLogicID &id, float g)
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:559
LMFTestPulseConfigDat & setDACMGPA(EcalLogicID &id, float g)
LMFTestPulseConfigDat & setData(EcalLogicID &id, float g, float d, float pnga, float pnv)
float getVFEGain(EcalLogicID &id)
LMFTestPulseConfigDat & setVFEGain(EcalLogicID &id, float g)
std::map< std::string, unsigned int > m_keys
Definition: LMFDat.h:145
std::string m_tableName
Definition: LMFDat.h:146