CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_3/src/OnlineDB/EcalCondDB/interface/LMFPnPrimDat.h

Go to the documentation of this file.
00001 #ifndef LMFPNPRIMDAT_H
00002 #define LMFPNPRIMDAT_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 
00019 class LMFPnPrimDat : public LMFColoredTable {
00020  public:
00021   LMFPnPrimDat();
00022   LMFPnPrimDat(oracle::occi::Environment* env,
00023               oracle::occi::Connection* conn);
00024   LMFPnPrimDat(EcalDBConnection *c);
00025   LMFPnPrimDat(std::string color, std::string system);
00026   LMFPnPrimDat(oracle::occi::Environment* env,
00027               oracle::occi::Connection* conn, std::string color,
00028               std::string system);
00029   LMFPnPrimDat(EcalDBConnection *c, std::string color, std::string system);
00030   LMFPnPrimDat(EcalDBConnection *c, std::string color, std::string system,
00031                bool debug);
00032   LMFPnPrimDat(int color, std::string system);
00033   LMFPnPrimDat(oracle::occi::Environment* env,
00034               oracle::occi::Connection* conn, int color,
00035               std::string system);
00036   LMFPnPrimDat(EcalDBConnection *c, int color, std::string system);
00037   ~LMFPnPrimDat() {}
00038 
00039   std::string getTableName() const {
00040     return "LMF_" + getSystem() + "_" + getColor() + "_PN_PRIM_DAT";
00041   }
00042 
00043   LMFPnPrimDat& setMean(EcalLogicID &id, float v);
00044   LMFPnPrimDat& setRMS(EcalLogicID &id, float v);
00045   LMFPnPrimDat& setM3(EcalLogicID &id, float v);
00046   LMFPnPrimDat& setPN(EcalLogicID &id, float mean, float rms, float m3);
00047   LMFPnPrimDat& setShapeCorr(EcalLogicID &id, float mean);
00048   LMFPnPrimDat& setPNAoverBMean(EcalLogicID &id, float v);
00049   LMFPnPrimDat& setPNAoverBRMS(EcalLogicID &id, float v);
00050   LMFPnPrimDat& setPNAoverBM3(EcalLogicID &id, float v);
00051   LMFPnPrimDat& setPNAoverB(EcalLogicID &id, float mean, float rms, float m3);
00052   LMFPnPrimDat& setFlag(EcalLogicID &id, int v);
00053 
00054   LMFPnPrimDat& setSystem(std::string s);
00055 
00056   float getMean(EcalLogicID &id);
00057   float getRMS(EcalLogicID &id);
00058   float getM3(EcalLogicID &id);
00059   float getPNAoverBMean(EcalLogicID &id);
00060   float getPNAoverBRMS(EcalLogicID &id);
00061   float getPNAoverBM3(EcalLogicID &id);
00062   float getShapeCor(EcalLogicID &id);
00063   int getFlag(EcalLogicID &id);
00064 
00065   float getMean(int id);
00066   float getRMS(int id);
00067   float getM3(int id);
00068   float getPNAoverBMean(int id);
00069   float getPNAoverBRMS(int id);
00070   float getPNAoverBM3(int id);
00071   float getShapeCor(int id);
00072   int getFlag(int id);
00073 
00074   bool isValid();
00075   // to do: complete list of set/get methods
00076 
00077  private:
00078   void init();
00079 };
00080 
00081 #endif