CMS 3D CMS Logo

Public Types | Public Member Functions | Private Member Functions

LMFClsDat Class Reference

#include <LMFClsDat.h>

Inheritance diagram for LMFClsDat:
LMFColoredTable LMFDat LMFUnique IUniqueDBObject IDBObject

List of all members.

Public Types

typedef oracle::occi::ResultSet ResultSet
typedef oracle::occi::Statement Statement

Public Member Functions

float getENorm (EcalLogicID &id)
int getFlag (EcalLogicID &id)
float getFlagNorm (EcalLogicID &id)
int getLMFRefRunIOVID (EcalLogicID &id)
float getMean (EcalLogicID &id)
int getNevt (EcalLogicID &id)
float getNorm (EcalLogicID &id)
float getRMS (EcalLogicID &id)
std::string getSystem () const
std::string getTableName () const
bool isValid ()
 LMFClsDat (oracle::occi::Environment *env, oracle::occi::Connection *conn)
 LMFClsDat (std::string color)
 LMFClsDat (oracle::occi::Environment *env, oracle::occi::Connection *conn, int color)
 LMFClsDat (EcalDBConnection *c, int color)
 LMFClsDat ()
 LMFClsDat (int color)
 LMFClsDat (EcalDBConnection *c)
 LMFClsDat (oracle::occi::Environment *env, oracle::occi::Connection *conn, std::string color)
 LMFClsDat (EcalDBConnection *c, std::string color)
LMFClsDatsetENorm (EcalLogicID &id, float v)
LMFClsDatsetFlag (EcalLogicID &id, int v)
LMFClsDatsetFlagNorm (EcalLogicID &id, float v)
LMFClsDatsetLMFRefRunIOVID (EcalLogicID &id, int v)
LMFClsDatsetMean (EcalLogicID &id, float v)
LMFClsDatsetNevt (EcalLogicID &id, int v)
LMFClsDatsetNorm (EcalLogicID &id, float v)
LMFClsDatsetRMS (EcalLogicID &id, float v)
LMFClsDatsetSystem (std::string system)
LMFClsDatsetSystem (int system)
 ~LMFClsDat ()

Private Member Functions

void init ()

Detailed Description

LMF_CLS_XXXX_DAT interface ^ | color

Definition at line 18 of file LMFClsDat.h.


Member Typedef Documentation

Reimplemented from LMFUnique.

Definition at line 20 of file LMFClsDat.h.

typedef oracle::occi::Statement LMFClsDat::Statement

Reimplemented from LMFUnique.

Definition at line 21 of file LMFClsDat.h.


Constructor & Destructor Documentation

LMFClsDat::LMFClsDat ( )

Definition at line 3 of file LMFClsDat.cc.

References init().

                     : LMFColoredTable() {
  init();
}
LMFClsDat::LMFClsDat ( oracle::occi::Environment *  env,
oracle::occi::Connection *  conn 
)

Definition at line 7 of file LMFClsDat.cc.

References init().

LMFClsDat::LMFClsDat ( EcalDBConnection c)

Definition at line 13 of file LMFClsDat.cc.

References init().

                                        : LMFColoredTable(c) {
  init();
}
LMFClsDat::LMFClsDat ( std::string  color)

Definition at line 17 of file LMFClsDat.cc.

References init(), and LMFColoredTable::setColor().

                                    : 
  LMFColoredTable() {
  init();
  setColor(color);
}
LMFClsDat::LMFClsDat ( int  color)

Definition at line 23 of file LMFClsDat.cc.

References init(), and LMFColoredTable::setColor().

                              : 
  LMFColoredTable() {
  init();
  setColor(color);
}
LMFClsDat::LMFClsDat ( oracle::occi::Environment *  env,
oracle::occi::Connection *  conn,
std::string  color 
)

Definition at line 29 of file LMFClsDat.cc.

References init(), and LMFColoredTable::setColor().

                                          : 
  LMFColoredTable(env, conn) {
  init();
  setColor(color);
}
LMFClsDat::LMFClsDat ( EcalDBConnection c,
std::string  color 
)

Definition at line 45 of file LMFClsDat.cc.

References init(), and LMFColoredTable::setColor().

                                                         : LMFColoredTable(c) {
  init();
  setColor(color);
}
LMFClsDat::LMFClsDat ( oracle::occi::Environment *  env,
oracle::occi::Connection *  conn,
int  color 
)

Definition at line 37 of file LMFClsDat.cc.

References init(), and LMFColoredTable::setColor().

                                    : 
  LMFColoredTable(env, conn) {
  init();
  setColor(color);
}
LMFClsDat::LMFClsDat ( EcalDBConnection c,
int  color 
)

Definition at line 50 of file LMFClsDat.cc.

References init(), and LMFColoredTable::setColor().

                                                   : LMFColoredTable(c) {
  init();
  setColor(color);
}
LMFClsDat::~LMFClsDat ( ) [inline]

Definition at line 35 of file LMFClsDat.h.

{}

Member Function Documentation

float LMFClsDat::getENorm ( EcalLogicID id)

Definition at line 135 of file LMFClsDat.cc.

References LMFDat::getData().

                                         {
  return getData(id, "ENORM");
}
int LMFClsDat::getFlag ( EcalLogicID id)

Definition at line 147 of file LMFClsDat.cc.

References LMFDat::getData().

                                      {
  return getData(id, "FLAG");
}
float LMFClsDat::getFlagNorm ( EcalLogicID id)

Definition at line 151 of file LMFClsDat.cc.

References LMFDat::getData().

                                            {
  return getData(id, "FLAGNORM");
}
int LMFClsDat::getLMFRefRunIOVID ( EcalLogicID id)

Definition at line 123 of file LMFClsDat.cc.

References LMFDat::getData().

                                                {
  return getData(id, "LMF_IOV_ID_REF");
}
float LMFClsDat::getMean ( EcalLogicID id)

Definition at line 127 of file LMFClsDat.cc.

References LMFDat::getData().

                                        {
  return getData(id, "MEAN");
}
int LMFClsDat::getNevt ( EcalLogicID id)

Definition at line 143 of file LMFClsDat.cc.

References LMFDat::getData().

                                      {
  return getData(id, "NEVT");
}
float LMFClsDat::getNorm ( EcalLogicID id)

Definition at line 131 of file LMFClsDat.cc.

References LMFDat::getData().

                                        {
  return getData(id, "NORM");
}
float LMFClsDat::getRMS ( EcalLogicID id)

Definition at line 139 of file LMFClsDat.cc.

References LMFDat::getData().

                                       {
  return getData(id, "RMS");
}
std::string LMFClsDat::getSystem ( ) const [inline, virtual]

Reimplemented from LMFColoredTable.

Definition at line 62 of file LMFClsDat.h.

{ return ""; }
std::string LMFClsDat::getTableName ( ) const [inline, virtual]

Implements LMFColoredTable.

Definition at line 37 of file LMFClsDat.h.

References LMFColoredTable::getColor().

                                 {
    return "LMF_CLS_" + getColor() + "_DAT";
  }
void LMFClsDat::init ( void  ) [private]

Definition at line 55 of file LMFClsDat.cc.

References i, LMFUnique::m_className, LMFColoredTable::m_color, LMFDat::m_keys, LMFColoredTable::m_system, and LMFDat::m_type.

Referenced by LMFClsDat().

                     {
  m_className = "LMFClsDat";
  m_keys["LMF_IOV_ID_REF"] = 0;
  m_keys["MEAN"] = 1;
  m_keys["NORM"] = 2;
  m_keys["RMS"] = 3;
  m_keys["NEVT"] = 4;
  m_keys["ENORM"] = 5;
  m_keys["FLAG"] = 6;
  m_keys["FLAGNORM"] = 7;
  m_keys["VMIN"] = 8;
  m_keys["VMAX"] = 9;
  for (unsigned int i = 0; i < m_keys.size(); i++) {
    m_type.push_back("NUMBER");
  }
  m_system = 0;
  m_color = 0;
}
bool LMFClsDat::isValid ( void  ) [virtual]

Reimplemented from LMFDat.

Definition at line 74 of file LMFClsDat.cc.

References LMFColoredTable::getColor(), LMFDat::m_Error, and run_regression::ret.

                        {
  bool ret = true;
  if ((getColor() != "BLUE") && (getColor() != "IR")) {
    m_Error += " Color not properly set [" + getColor() + "]";
    ret = false;
  }
  return ret;
}
LMFClsDat & LMFClsDat::setENorm ( EcalLogicID id,
float  v 
)

Definition at line 98 of file LMFClsDat.cc.

References LMFDat::setData().

                                                       {
  LMFDat::setData(id, "ENORM", v);
  return *this;
}
LMFClsDat & LMFClsDat::setFlag ( EcalLogicID id,
int  v 
)

Definition at line 113 of file LMFClsDat.cc.

References LMFDat::setData().

                                                    {
  LMFDat::setData(id, "FLAG", v);
  return *this;
}
LMFClsDat & LMFClsDat::setFlagNorm ( EcalLogicID id,
float  v 
)

Definition at line 118 of file LMFClsDat.cc.

References LMFDat::setData().

                                                          {
  LMFDat::setData(id, "FLAGNORM", v);
  return *this;
}
LMFClsDat & LMFClsDat::setLMFRefRunIOVID ( EcalLogicID id,
int  v 
)

Definition at line 83 of file LMFClsDat.cc.

References LMFDat::setData().

                                                              {
  LMFDat::setData(id, "LMF_IOV_ID_REF", v);
  return *this;
}
LMFClsDat & LMFClsDat::setMean ( EcalLogicID id,
float  v 
)

Definition at line 88 of file LMFClsDat.cc.

References LMFDat::setData().

                                                      {
  LMFDat::setData(id, "MEAN", v);
  return *this;
}
LMFClsDat & LMFClsDat::setNevt ( EcalLogicID id,
int  v 
)

Definition at line 108 of file LMFClsDat.cc.

References LMFDat::setData().

                                                    {
  LMFDat::setData(id, "NEVT", v);
  return *this;
}
LMFClsDat & LMFClsDat::setNorm ( EcalLogicID id,
float  v 
)

Definition at line 93 of file LMFClsDat.cc.

References LMFDat::setData().

                                                      {
  LMFDat::setData(id, "NORM", v);
  return *this;
}
LMFClsDat & LMFClsDat::setRMS ( EcalLogicID id,
float  v 
)

Definition at line 103 of file LMFClsDat.cc.

References LMFDat::setData().

                                                     {
  LMFDat::setData(id, "RMS", v);
  return *this;
}
LMFClsDat& LMFClsDat::setSystem ( std::string  system) [inline, virtual]

Reimplemented from LMFColoredTable.

Definition at line 42 of file LMFClsDat.h.

{ return *this; }
LMFClsDat& LMFClsDat::setSystem ( int  system) [inline, virtual]

Reimplemented from LMFColoredTable.

Definition at line 41 of file LMFClsDat.h.

{ return *this; }