CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
LMFLaserPulseDat.h
Go to the documentation of this file.
1 #ifndef LMFPULSEDAT_H
2 #define LMFPULSEDAT_H
3 
4 /*
5  Last updated by Giovanni.Organtini@roma1.infn.it 2010
6  */
7 
9 
10 #include <cmath>
11 
20 public:
22  LMFLaserPulseDat(oracle::occi::Environment *env, oracle::occi::Connection *conn);
25  LMFLaserPulseDat(int color);
26  LMFLaserPulseDat(oracle::occi::Environment *env, oracle::occi::Connection *conn, std::string color);
27  LMFLaserPulseDat(oracle::occi::Environment *env, oracle::occi::Connection *conn, int color);
29  LMFLaserPulseDat(EcalDBConnection *c, int color);
30  ~LMFLaserPulseDat() override {}
31 
32  std::string getTableName() const override { return "LMF_LASER_" + getColor() + "_PULSE_DAT"; }
33 
42 
43  int getFitMethod(EcalLogicID &id) { return getFitMethod(id.getLogicID()); }
44  float getMTQAmplification(EcalLogicID &id) { return getMTQAmplification(id.getLogicID()); }
45  float getMTQTime(EcalLogicID &id) { return getMTQTime(id.getLogicID()); }
46  float getMTQRise(EcalLogicID &id) { return getMTQRise(id.getLogicID()); }
47  float getMTQFWHM(EcalLogicID &id) { return getMTQFWHM(id.getLogicID()); }
48  float getMTQFW20(EcalLogicID &id) { return getMTQFW20(id.getLogicID()); }
49  float getMTQFW80(EcalLogicID &id) { return getMTQFW80(id.getLogicID()); }
50  float getMTQSliding(EcalLogicID &id) { return getMTQSliding(id.getLogicID()); }
51  int getFitMethod(int id);
52  float getMTQAmplification(int id);
53  float getMTQTime(int id);
54  float getMTQRise(int id);
55  float getMTQFWHM(int id);
56  float getMTQFW20(int id);
57  float getMTQFW80(int id);
58  float getMTQSliding(int id);
59 
60  bool isValid() override;
61  // to do: complete list of set/get methods
62 
63 private:
64  void init();
65 };
66 
67 #endif
const edm::EventSetup & c
LMFLaserPulseDat & setFitMethod(EcalLogicID &id, int v)
float getMTQFW20(EcalLogicID &id)
LMFLaserPulseDat & setMTQAmplification(EcalLogicID &id, float v)
std::string getTableName() const override
std::string getColor() const
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)
~LMFLaserPulseDat() override
float getMTQSliding(EcalLogicID &id)
float getMTQRise(EcalLogicID &id)
int getFitMethod(EcalLogicID &id)
tuple 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)