CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
LMFLaserPulseDat.cc
Go to the documentation of this file.
2 
4  init();
5 }
6 
7 LMFLaserPulseDat::LMFLaserPulseDat(oracle::occi::Environment* env,
8  oracle::occi::Connection* conn) :
9  LMFColoredTable(env, conn) {
10  init();
11 }
12 
14  init();
15 }
16 
18  LMFColoredTable() {
19  init();
20  setColor(color);
21 }
22 
23 LMFLaserPulseDat::LMFLaserPulseDat(oracle::occi::Environment* env,
24  oracle::occi::Connection* conn,
25  std::string color) :
26  LMFColoredTable(env, conn) {
27  init();
28  setColor(color);
29 }
30 
32  LMFColoredTable(c) {
33  init();
34  setColor(color);
35 }
36 
38  m_className = "LMFLaserPulseDat";
39  m_keys["FIT_METHOD"] = 0;
40  m_keys["MTQ_AMPL"] = 1;
41  m_keys["MTQ_TIME"] = 2;
42  m_keys["MTQ_RISE"] = 3;
43  m_keys["MTQ_FWHM"] = 4;
44  m_keys["MTQ_FW20"] = 5;
45  m_keys["MTQ_FW80"] = 6;
46  m_keys["MTQ_SLIDING"]= 7;
47  m_keys["VMIN"] = 8;
48  m_keys["VMAX"] = 9;
49  for (int i = 0; i < 10; i++) {
50  m_type.push_back("NUMBER");
51  }
52  setSystem("LASER");
53  m_color = 0;
54 }
55 
57  bool ret = true;
58  ret = LMFDat::isValid();
59  if ((getColor() != "BLUE") && (getColor() != "IR")) {
60  m_Error += " Color not properly set [" + getColor() + "]";
61  ret = false;
62  }
63  return ret;
64 }
65 
67  LMFDat::setData(id, "FIT_METHOD", v);
68  return *this;
69 }
70 
72  LMFDat::setData(id, "MTQ_AMPL", v);
73  return *this;
74 }
75 
77  LMFDat::setData(id, "MTQ_TIME", v);
78  return *this;
79 }
80 
82  LMFDat::setData(id, "MTQ_RISE", v);
83  return *this;
84 }
85 
87  LMFDat::setData(id, "MTQ_FWHM", v);
88  return *this;
89 }
90 
92  LMFDat::setData(id, "MTQ_FW20", v);
93  return *this;
94 }
95 
97  LMFDat::setData(id, "MTQ_FW80", v);
98  return *this;
99 }
100 
102  LMFDat::setData(id, "MTQ_SLIDING", v);
103  return *this;
104 }
105 
107  return getData(id, "FIT_METHOD");
108 }
109 
111  return getData(id, "MTQ_AMPL");
112 }
113 
115  return getData(id, "MTQ_TIME");
116 }
117 
119  return getData(id, "MTQ_RISE");
120 }
121 
123  return getData(id, "MTQ_FWHM");
124 }
125 
127  return getData(id, "MTQ_FW20");
128 }
129 
131  return getData(id, "MTQ_FW80");
132 }
133 
135  return getData(id, "MTQ_SLIDING");
136 }
137 
std::string m_className
Definition: LMFUnique.h:99
int i
Definition: DBlmapReader.cc:9
LMFLaserPulseDat & setFitMethod(EcalLogicID &id, int v)
float getMTQFW20(EcalLogicID &id)
LMFLaserPulseDat & setMTQAmplification(EcalLogicID &id, float v)
LMFDat & setData(int logic_id, const std::vector< float > &data)
Definition: LMFDat.h:55
std::vector< std::string > m_type
Definition: LMFDat.h:150
std::string getColor() const
LMFLaserPulseDat & setMTQSliding(EcalLogicID &id, float v)
float getMTQAmplification(EcalLogicID &id)
LMFLaserPulseDat & setMTQRise(EcalLogicID &id, float v)
LMFLaserPulseDat & setMTQFW80(EcalLogicID &id, float v)
virtual bool isValid()
Definition: LMFDat.cc:339
LMFLaserPulseDat & setMTQFW20(EcalLogicID &id, float v)
std::string m_Error
Definition: LMFDat.h:157
LMFColoredTable & setColor(int color)
float getMTQSliding(EcalLogicID &id)
float getMTQRise(EcalLogicID &id)
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:636
int getFitMethod(EcalLogicID &id)
virtual LMFColoredTable & setSystem(int system)
std::map< std::string, unsigned int > m_keys
Definition: LMFDat.h:155
float getMTQFWHM(EcalLogicID &id)
float getMTQFW80(EcalLogicID &id)
LMFLaserPulseDat & setMTQTime(EcalLogicID &id, float v)
float getMTQTime(EcalLogicID &id)
mathSSE::Vec4< T > v
tuple conn
Definition: results_mgr.py:53
LMFLaserPulseDat & setMTQFWHM(EcalLogicID &id, float v)