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
LMFLaserConfigDat::getLSRAttenuator
float getLSRAttenuator(int id)
Definition: LMFLaserConfigDat.h:94
LMFDat.h
LMFLaserConfigDat
Definition: LMFLaserConfigDat.h:13
LMFDat::getData
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:559
LMFLaserConfigDat::getLSRDelay2
float getLSRDelay2(EcalLogicID &id)
Definition: LMFLaserConfigDat.h:106
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
LMFLaserConfigDat::setLSRCurrent
LMFLaserConfigDat & setLSRCurrent(EcalLogicID &id, float g)
Definition: LMFLaserConfigDat.h:61
LMFLaserConfigDat::setWavelength
LMFLaserConfigDat & setWavelength(EcalLogicID &id, int w)
Definition: LMFLaserConfigDat.h:41
LMFUnique::m_className
std::string m_className
Definition: LMFUnique.h:99
LMFLaserConfigDat::LMFLaserConfigDat
LMFLaserConfigDat(EcalDBConnection *c)
Definition: LMFLaserConfigDat.h:27
findQualityFiles.v
v
Definition: findQualityFiles.py:179
LMFLaserConfigDat::setVFEGain
LMFLaserConfigDat & setVFEGain(EcalLogicID &id, float g)
Definition: LMFLaserConfigDat.h:45
LMFLaserConfigDat::getWavelength
float getWavelength(EcalLogicID &id)
Definition: LMFLaserConfigDat.h:99
LMFDat
Definition: LMFDat.h:18
LMFLaserConfigDat::setPNGain
LMFLaserConfigDat & setPNGain(EcalLogicID &id, float g)
Definition: LMFLaserConfigDat.h:49
w
const double w
Definition: UKUtility.cc:23
EcalLogicID
Definition: EcalLogicID.h:7
LMFLaserConfigDat::getLSRCurrent
float getLSRCurrent(EcalLogicID &id)
Definition: LMFLaserConfigDat.h:104
LMFDat::setData
LMFDat & setData(int logic_id, const std::vector< float > &data)
Definition: LMFDat.h:49
LMFLaserConfigDat::getLSRCurrent
float getLSRCurrent(int id)
Definition: LMFLaserConfigDat.h:95
LMFLaserConfigDat::getLSRDelay1
float getLSRDelay1(EcalLogicID &id)
Definition: LMFLaserConfigDat.h:105
LMFDat::m_tableName
std::string m_tableName
Definition: LMFDat.h:146
a
double a
Definition: hdecay.h:119
LMFDat::m_keys
std::map< std::string, unsigned int > m_keys
Definition: LMFDat.h:145
LMFLaserConfigDat::getLSRPower
float getLSRPower(EcalLogicID &id)
Definition: LMFLaserConfigDat.h:102
LMFLaserConfigDat::setLSRAttenuator
LMFLaserConfigDat & setLSRAttenuator(EcalLogicID &id, float g)
Definition: LMFLaserConfigDat.h:57
LMFLaserConfigDat::getLSRPower
float getLSRPower(int id)
Definition: LMFLaserConfigDat.h:93
LMFLaserConfigDat::getLSRAttenuator
float getLSRAttenuator(EcalLogicID &id)
Definition: LMFLaserConfigDat.h:103
LMFLaserConfigDat::~LMFLaserConfigDat
~LMFLaserConfigDat() override
Definition: LMFLaserConfigDat.h:39
LMFLaserConfigDat::getLSRDelay2
float getLSRDelay2(int id)
Definition: LMFLaserConfigDat.h:97
LMFLaserConfigDat::getLSRDelay1
float getLSRDelay1(int id)
Definition: LMFLaserConfigDat.h:96
LMFLaserConfigDat::getWavelength
float getWavelength(int id)
Definition: LMFLaserConfigDat.h:90
LMFLaserConfigDat::setLSRDelay2
LMFLaserConfigDat & setLSRDelay2(EcalLogicID &id, float g)
Definition: LMFLaserConfigDat.h:69
LMFLaserConfigDat::setLSRDelay1
LMFLaserConfigDat & setLSRDelay1(EcalLogicID &id, float g)
Definition: LMFLaserConfigDat.h:65
LMFLaserConfigDat::getVFEGain
float getVFEGain(EcalLogicID &id)
Definition: LMFLaserConfigDat.h:100
LMFLaserConfigDat::setLSRPower
LMFLaserConfigDat & setLSRPower(EcalLogicID &id, float g)
Definition: LMFLaserConfigDat.h:53
LMFLaserConfigDat::getPNGain
float getPNGain(int id)
Definition: LMFLaserConfigDat.h:92
LMFLaserConfigDat::LMFLaserConfigDat
LMFLaserConfigDat()
Definition: LMFLaserConfigDat.h:15
LMFLaserConfigDat::setData
LMFLaserConfigDat & setData(EcalLogicID &id, float w, float g, float pnga, float p, float a, float c, float d1, float d2)
Definition: LMFLaserConfigDat.h:73
LMFLaserConfigDat::getPNGain
float getPNGain(EcalLogicID &id)
Definition: LMFLaserConfigDat.h:101
c
auto & c
Definition: CAHitNtupletGeneratorKernelsImpl.h:46
LMFLaserConfigDat::getVFEGain
float getVFEGain(int id)
Definition: LMFLaserConfigDat.h:91
d1
static constexpr float d1
Definition: L1EGammaCrystalsEmulatorProducer.cc:85
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
LMFLaserConfigDat::setData
LMFLaserConfigDat & setData(EcalLogicID &id, const std::vector< float > &v)
Definition: LMFLaserConfigDat.h:85
EcalDBConnection
Definition: EcalDBConnection.h:15