CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_2_7_hltpatch1/src/OnlineDB/EcalCondDB/interface/LMFClsDat.h

Go to the documentation of this file.
00001 #ifndef LMFCLSDAT_H
00002 #define LMFCLSDAT_H
00003 
00004 /*
00005  Last updated by  Giovanni.Organtini@roma1.infn.it 2010
00006  */
00007 
00008 #include "OnlineDB/EcalCondDB/interface/LMFColoredTable.h"
00009 
00010 #include <math.h>
00011 
00018 class LMFClsDat : public LMFColoredTable {
00019  public:
00020   typedef oracle::occi::ResultSet ResultSet;
00021   typedef oracle::occi::Statement Statement;
00022 
00023   LMFClsDat();
00024   LMFClsDat(oracle::occi::Environment* env,
00025             oracle::occi::Connection* conn);
00026   LMFClsDat(EcalDBConnection *c);
00027   LMFClsDat(std::string color);
00028   LMFClsDat(int color);
00029   LMFClsDat(oracle::occi::Environment* env,
00030             oracle::occi::Connection* conn, std::string color);
00031   LMFClsDat(EcalDBConnection *c, std::string color);
00032   LMFClsDat(oracle::occi::Environment* env,
00033             oracle::occi::Connection* conn, int color);
00034   LMFClsDat(EcalDBConnection *c, int color);
00035   ~LMFClsDat() {}
00036 
00037   std::string getTableName() const {
00038     return "LMF_CLS_" + getColor() + "_DAT";
00039   }
00040   
00041   LMFClsDat& setSystem(int system) { return *this; }
00042   LMFClsDat& setSystem(std::string system) { return *this; }
00043 
00044   LMFClsDat& setLMFRefRunIOVID(EcalLogicID &id, int v);
00045   LMFClsDat& setMean(EcalLogicID &id, float v);
00046   LMFClsDat& setNorm(EcalLogicID &id, float v);
00047   LMFClsDat& setENorm(EcalLogicID &id, float v);
00048   LMFClsDat& setRMS(EcalLogicID &id, float v);
00049   LMFClsDat& setNevt(EcalLogicID &id, int v);
00050   LMFClsDat& setFlag(EcalLogicID &id, int v);
00051   LMFClsDat& setFlagNorm(EcalLogicID &id, float v);
00052 
00053   int   getLMFRefRunIOVID(EcalLogicID &id);
00054   float getMean(EcalLogicID &id);
00055   float getNorm(EcalLogicID &id);
00056   float getENorm(EcalLogicID &id);
00057   float getRMS(EcalLogicID &id);
00058   int   getNevt(EcalLogicID &id);
00059   int   getFlag(EcalLogicID &id);
00060   float getFlagNorm(EcalLogicID &id);
00061 
00062   std::string getSystem() const { return ""; }
00063 
00064   bool isValid();
00065   // to do: complete list of set/get methods
00066 
00067  private:
00068   void init();
00069 };
00070 
00071 #endif