CMS 3D CMS Logo

LMFLaserPulseDat.cc
Go to the documentation of this file.
2 
4 
5 LMFLaserPulseDat::LMFLaserPulseDat(oracle::occi::Environment* env, oracle::occi::Connection* conn)
7  init();
8 }
9 
11 
13  init();
14  setColor(color);
15 }
16 
17 LMFLaserPulseDat::LMFLaserPulseDat(oracle::occi::Environment* env, oracle::occi::Connection* conn, std::string color)
19  init();
20  setColor(color);
21 }
22 
24  init();
25  setColor(color);
26 }
27 
29  m_className = "LMFLaserPulseDat";
30  m_keys["FIT_METHOD"] = 0;
31  m_keys["MTQ_AMPL"] = 1;
32  m_keys["MTQ_TIME"] = 2;
33  m_keys["MTQ_RISE"] = 3;
34  m_keys["MTQ_FWHM"] = 4;
35  m_keys["MTQ_FW20"] = 5;
36  m_keys["MTQ_FW80"] = 6;
37  m_keys["MTQ_SLIDING"] = 7;
38  m_keys["VMIN"] = 8;
39  m_keys["VMAX"] = 9;
40  for (int i = 0; i < 10; i++) {
41  m_type.push_back("NUMBER");
42  }
43  setSystem("LASER");
44  m_color = 0;
45 }
46 
48  bool ret = true;
49  ret = LMFDat::isValid();
50  if ((getColor() != "BLUE") && (getColor() != "IR")) {
51  m_Error += " Color not properly set [" + getColor() + "]";
52  ret = false;
53  }
54  return ret;
55 }
56 
58  LMFDat::setData(id, "FIT_METHOD", v);
59  return *this;
60 }
61 
63  LMFDat::setData(id, "MTQ_AMPL", v);
64  return *this;
65 }
66 
68  LMFDat::setData(id, "MTQ_TIME", v);
69  return *this;
70 }
71 
73  LMFDat::setData(id, "MTQ_RISE", v);
74  return *this;
75 }
76 
78  LMFDat::setData(id, "MTQ_FWHM", v);
79  return *this;
80 }
81 
83  LMFDat::setData(id, "MTQ_FW20", v);
84  return *this;
85 }
86 
88  LMFDat::setData(id, "MTQ_FW80", v);
89  return *this;
90 }
91 
93  LMFDat::setData(id, "MTQ_SLIDING", v);
94  return *this;
95 }
96 
97 int LMFLaserPulseDat::getFitMethod(int id) { return getData(id, "FIT_METHOD"); }
98 
99 float LMFLaserPulseDat::getMTQAmplification(int id) { return getData(id, "MTQ_AMPL"); }
100 
101 float LMFLaserPulseDat::getMTQTime(int id) { return getData(id, "MTQ_TIME"); }
102 
103 float LMFLaserPulseDat::getMTQRise(int id) { return getData(id, "MTQ_RISE"); }
104 
105 float LMFLaserPulseDat::getMTQFWHM(int id) { return getData(id, "MTQ_FWHM"); }
106 
107 float LMFLaserPulseDat::getMTQFW20(int id) { return getData(id, "MTQ_FW20"); }
108 
109 float LMFLaserPulseDat::getMTQFW80(int id) { return getData(id, "MTQ_FW80"); }
110 
111 float LMFLaserPulseDat::getMTQSliding(int id) { return getData(id, "MTQ_SLIDING"); }
std::string m_className
Definition: LMFUnique.h:99
bool isValid() override
Definition: LMFDat.cc:287
LMFLaserPulseDat & setFitMethod(EcalLogicID &id, int v)
ret
prodAgent to be discontinued
float getMTQFW20(EcalLogicID &id)
LMFLaserPulseDat & setMTQAmplification(EcalLogicID &id, float v)
std::string getColor() const
LMFDat & setData(int logic_id, const std::vector< float > &data)
Definition: LMFDat.h:49
std::vector< std::string > m_type
Definition: LMFDat.h:140
LMFLaserPulseDat & setMTQSliding(EcalLogicID &id, float v)
bool isValid() override
float getMTQAmplification(EcalLogicID &id)
LMFLaserPulseDat & setMTQRise(EcalLogicID &id, float v)
LMFLaserPulseDat & setMTQFW80(EcalLogicID &id, float v)
LMFLaserPulseDat & setMTQFW20(EcalLogicID &id, float v)
std::string m_Error
Definition: LMFDat.h:147
LMFColoredTable & setColor(int color)
float getMTQSliding(EcalLogicID &id)
float getMTQRise(EcalLogicID &id)
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:559
int getFitMethod(EcalLogicID &id)
virtual LMFColoredTable & setSystem(int system)
std::map< std::string, unsigned int > m_keys
Definition: LMFDat.h:145
conn
Definition: getInfo.py:9
float getMTQFWHM(EcalLogicID &id)
float getMTQFW80(EcalLogicID &id)
LMFLaserPulseDat & setMTQTime(EcalLogicID &id, float v)
float getMTQTime(EcalLogicID &id)
LMFLaserPulseDat & setMTQFWHM(EcalLogicID &id, float v)