CMS 3D CMS Logo

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
LMFDat.h
LMFDat::getData
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:559
LMFTestPulseConfigDat::setPNVinj
LMFTestPulseConfigDat & setPNVinj(EcalLogicID &id, float g)
Definition: LMFTestPulseConfigDat.h:45
LMFUnique::m_className
std::string m_className
Definition: LMFUnique.h:99
findQualityFiles.v
v
Definition: findQualityFiles.py:179
LMFDat
Definition: LMFDat.h:18
LMFTestPulseConfigDat::setPNGain
LMFTestPulseConfigDat & setPNGain(EcalLogicID &id, float g)
Definition: LMFTestPulseConfigDat.h:37
LMFTestPulseConfigDat
Definition: LMFTestPulseConfigDat.h:13
LMFTestPulseConfigDat::setData
LMFTestPulseConfigDat & setData(EcalLogicID &id, const std::vector< float > &v)
Definition: LMFTestPulseConfigDat.h:56
EcalLogicID
Definition: EcalLogicID.h:7
LMFTestPulseConfigDat::LMFTestPulseConfigDat
LMFTestPulseConfigDat()
Definition: LMFTestPulseConfigDat.h:15
LMFDat::setData
LMFDat & setData(int logic_id, const std::vector< float > &data)
Definition: LMFDat.h:49
LMFDat::m_tableName
std::string m_tableName
Definition: LMFDat.h:146
LMFDat::m_keys
std::map< std::string, unsigned int > m_keys
Definition: LMFDat.h:145
LMFTestPulseConfigDat::~LMFTestPulseConfigDat
~LMFTestPulseConfigDat() override
Definition: LMFTestPulseConfigDat.h:31
LMFTestPulseConfigDat::setVFEGain
LMFTestPulseConfigDat & setVFEGain(EcalLogicID &id, float g)
Definition: LMFTestPulseConfigDat.h:33
LMFTestPulseConfigDat::getPNGain
float getPNGain(EcalLogicID &id)
Definition: LMFTestPulseConfigDat.h:62
LMFTestPulseConfigDat::getVFEGain
float getVFEGain(EcalLogicID &id)
Definition: LMFTestPulseConfigDat.h:61
LMFTestPulseConfigDat::LMFTestPulseConfigDat
LMFTestPulseConfigDat(EcalDBConnection *c)
Definition: LMFTestPulseConfigDat.h:23
LMFTestPulseConfigDat::getPNVinj
float getPNVinj(EcalLogicID &id)
Definition: LMFTestPulseConfigDat.h:64
LMFTestPulseConfigDat::setData
LMFTestPulseConfigDat & setData(EcalLogicID &id, float g, float d, float pnga, float pnv)
Definition: LMFTestPulseConfigDat.h:49
LMFTestPulseConfigDat::getDACMGPA
float getDACMGPA(EcalLogicID &id)
Definition: LMFTestPulseConfigDat.h:63
ztail.d
d
Definition: ztail.py:151
c
auto & c
Definition: CAHitNtupletGeneratorKernelsImpl.h:46
g
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
LMFTestPulseConfigDat::setDACMGPA
LMFTestPulseConfigDat & setDACMGPA(EcalLogicID &id, float g)
Definition: LMFTestPulseConfigDat.h:41
EcalDBConnection
Definition: EcalDBConnection.h:15