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"); }
runTheMatrix.ret
ret
prodAgent to be discontinued
Definition: runTheMatrix.py:367
LMFColoredTable
Definition: LMFColoredTable.h:20
LMFLaserPulseDat::getMTQRise
float getMTQRise(EcalLogicID &id)
Definition: LMFLaserPulseDat.h:46
LMFDat::getData
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:559
mps_fire.i
i
Definition: mps_fire.py:428
LMFLaserPulseDat.h
LMFColoredTable::setSystem
virtual LMFColoredTable & setSystem(int system)
Definition: LMFColoredTable.h:40
LMFLaserPulseDat::getMTQSliding
float getMTQSliding(EcalLogicID &id)
Definition: LMFLaserPulseDat.h:50
SiStripCommissioningClient_cfg.conn
conn
Definition: SiStripCommissioningClient_cfg.py:5
LMFLaserPulseDat::getFitMethod
int getFitMethod(EcalLogicID &id)
Definition: LMFLaserPulseDat.h:43
LMFUnique::m_className
std::string m_className
Definition: LMFUnique.h:99
findQualityFiles.v
v
Definition: findQualityFiles.py:179
LMFColoredTable::setColor
LMFColoredTable & setColor(int color)
Definition: LMFColoredTable.h:32
LMFLaserPulseDat::getMTQFWHM
float getMTQFWHM(EcalLogicID &id)
Definition: LMFLaserPulseDat.h:47
LMFLaserPulseDat::getMTQFW80
float getMTQFW80(EcalLogicID &id)
Definition: LMFLaserPulseDat.h:49
LMFLaserPulseDat::setMTQTime
LMFLaserPulseDat & setMTQTime(EcalLogicID &id, float v)
Definition: LMFLaserPulseDat.cc:67
LMFDat::isValid
bool isValid() override
Definition: LMFDat.cc:287
LMFLaserPulseDat::setMTQFWHM
LMFLaserPulseDat & setMTQFWHM(EcalLogicID &id, float v)
Definition: LMFLaserPulseDat.cc:77
LMFLaserPulseDat
Definition: LMFLaserPulseDat.h:19
EcalLogicID
Definition: EcalLogicID.h:7
LMFLaserPulseDat::getMTQTime
float getMTQTime(EcalLogicID &id)
Definition: LMFLaserPulseDat.h:45
LMFLaserPulseDat::init
void init()
Definition: LMFLaserPulseDat.cc:28
LMFDat::setData
LMFDat & setData(int logic_id, const std::vector< float > &data)
Definition: LMFDat.h:49
LMFLaserPulseDat::LMFLaserPulseDat
LMFLaserPulseDat()
Definition: LMFLaserPulseDat.cc:3
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
web.browse_db.env
env
Definition: browse_db.py:18
LMFDat::m_keys
std::map< std::string, unsigned int > m_keys
Definition: LMFDat.h:145
LMFLaserPulseDat::setMTQAmplification
LMFLaserPulseDat & setMTQAmplification(EcalLogicID &id, float v)
Definition: LMFLaserPulseDat.cc:62
HltBtagPostValidation_cff.c
c
Definition: HltBtagPostValidation_cff.py:31
LMFLaserPulseDat::setFitMethod
LMFLaserPulseDat & setFitMethod(EcalLogicID &id, int v)
Definition: LMFLaserPulseDat.cc:57
LMFColoredTable::m_color
int m_color
Definition: LMFColoredTable.h:70
LMFLaserPulseDat::getMTQFW20
float getMTQFW20(EcalLogicID &id)
Definition: LMFLaserPulseDat.h:48
LMFLaserPulseDat::setMTQSliding
LMFLaserPulseDat & setMTQSliding(EcalLogicID &id, float v)
Definition: LMFLaserPulseDat.cc:92
LMFColoredTable::getColor
std::string getColor() const
Definition: LMFColoredTable.cc:39
LMFLaserPulseDat::setMTQRise
LMFLaserPulseDat & setMTQRise(EcalLogicID &id, float v)
Definition: LMFLaserPulseDat.cc:72
LMFLaserPulseDat::getMTQAmplification
float getMTQAmplification(EcalLogicID &id)
Definition: LMFLaserPulseDat.h:44
LMFLaserPulseDat::isValid
bool isValid() override
Definition: LMFLaserPulseDat.cc:47
LMFLaserPulseDat::setMTQFW80
LMFLaserPulseDat & setMTQFW80(EcalLogicID &id, float v)
Definition: LMFLaserPulseDat.cc:87
LMFDat::m_type
std::vector< std::string > m_type
Definition: LMFDat.h:140
LMFLaserPulseDat::setMTQFW20
LMFLaserPulseDat & setMTQFW20(EcalLogicID &id, float v)
Definition: LMFLaserPulseDat.cc:82
LMFDat::m_Error
std::string m_Error
Definition: LMFDat.h:147
EcalDBConnection
Definition: EcalDBConnection.h:15