CMS 3D CMS Logo

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,
23  oracle::occi::Connection* conn);
26  LMFLaserPulseDat(int color);
27  LMFLaserPulseDat(oracle::occi::Environment* env,
28  oracle::occi::Connection* conn, std::string color);
29  LMFLaserPulseDat(oracle::occi::Environment* env,
30  oracle::occi::Connection* conn, int color);
32  LMFLaserPulseDat(EcalDBConnection *c, int color);
33  ~LMFLaserPulseDat() override {}
34 
35  std::string getTableName() const override {
36  return "LMF_LASER_" + getColor() + "_PULSE_DAT";
37  }
38 
47 
48  int getFitMethod(EcalLogicID &id) { return getFitMethod(id.getLogicID()); }
50  return getMTQAmplification(id.getLogicID());
51  }
52  float getMTQTime(EcalLogicID &id) { return getMTQTime(id.getLogicID()); }
53  float getMTQRise(EcalLogicID &id) { return getMTQRise(id.getLogicID()); }
54  float getMTQFWHM(EcalLogicID &id) { return getMTQFWHM(id.getLogicID()); }
55  float getMTQFW20(EcalLogicID &id) { return getMTQFW20(id.getLogicID()); }
56  float getMTQFW80(EcalLogicID &id) { return getMTQFW80(id.getLogicID()); }
57  float getMTQSliding(EcalLogicID &id) {
58  return getMTQSliding(id.getLogicID());
59  }
60  int getFitMethod(int id);
61  float getMTQAmplification(int id);
62  float getMTQTime(int id);
63  float getMTQRise(int id);
64  float getMTQFWHM(int id);
65  float getMTQFW20(int id);
66  float getMTQFW80(int id);
67  float getMTQSliding(int id);
68 
69  bool isValid() override;
70  // to do: complete list of set/get methods
71 
72  private:
73  void init();
74 };
75 
76 #endif
LMFLaserPulseDat & setFitMethod(EcalLogicID &id, int v)
float getMTQFW20(EcalLogicID &id)
LMFLaserPulseDat & setMTQAmplification(EcalLogicID &id, float v)
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)
std::string getTableName() const override
float getMTQFWHM(EcalLogicID &id)
float getMTQFW80(EcalLogicID &id)
LMFLaserPulseDat & setMTQTime(EcalLogicID &id, float v)
float getMTQTime(EcalLogicID &id)
LMFLaserPulseDat & setMTQFWHM(EcalLogicID &id, float v)