CMS 3D CMS Logo

Public Member Functions | Private Member Functions

LMFPrimDat Class Reference

#include <LMFPrimDat.h>

Inheritance diagram for LMFPrimDat:
LMFColoredTable LMFDat LMFUnique IUniqueDBObject IDBObject

List of all members.

Public Member Functions

float getAlpha (EcalLogicID &id)
float getAlpha (int id)
float getAPDoverAM3 (EcalLogicID &id)
float getAPDoverAM3 (int id)
float getAPDoverAMean (EcalLogicID &id)
float getAPDoverAMean (int id)
float getAPDoverARMS (EcalLogicID &id)
float getAPDoverARMS (int id)
float getAPDoverBM3 (EcalLogicID &id)
float getAPDoverBM3 (int id)
float getAPDoverBMean (EcalLogicID &id)
float getAPDoverBMean (int id)
float getAPDoverBRMS (EcalLogicID &id)
float getAPDoverBRMS (int id)
float getAPDoverPnM3 (EcalLogicID &id)
float getAPDoverPnM3 (int id)
float getAPDoverPnMean (EcalLogicID &id)
float getAPDoverPnMean (int id)
float getAPDoverPnRMS (int id)
float getAPDoverPnRMS (EcalLogicID &id)
float getBeta (EcalLogicID &id)
float getBeta (int id)
int getFlag (EcalLogicID &id)
int getFlag (int id)
float getM3 (EcalLogicID &id)
float getM3 (int id)
float getMean (EcalLogicID &id)
float getMean (int id)
float getRMS (EcalLogicID &id)
float getRMS (int id)
float getShapeCorr (int id)
float getShapeCorr (EcalLogicID &id)
std::string getTableName () const
bool isValid ()
 LMFPrimDat (std::string color, std::string system)
 LMFPrimDat (oracle::occi::Environment *env, oracle::occi::Connection *conn, int color, std::string system)
 LMFPrimDat ()
 LMFPrimDat (EcalDBConnection *c, int color, std::string system)
 LMFPrimDat (oracle::occi::Environment *env, oracle::occi::Connection *conn)
 LMFPrimDat (EcalDBConnection *c)
 LMFPrimDat (int color, std::string system)
 LMFPrimDat (oracle::occi::Environment *env, oracle::occi::Connection *conn, std::string color, std::string system)
 LMFPrimDat (EcalDBConnection *c, std::string color, std::string system)
LMFPrimDatsetAlpha (EcalLogicID &id, float v)
LMFPrimDatsetAPDoverA (EcalLogicID &id, float mean, float rms, float m3)
LMFPrimDatsetAPDoverAM3 (EcalLogicID &id, float v)
LMFPrimDatsetAPDoverAMean (EcalLogicID &id, float v)
LMFPrimDatsetAPDoverARMS (EcalLogicID &id, float v)
LMFPrimDatsetAPDoverB (EcalLogicID &id, float mean, float rms, float m3)
LMFPrimDatsetAPDoverBM3 (EcalLogicID &id, float v)
LMFPrimDatsetAPDoverBMean (EcalLogicID &id, float v)
LMFPrimDatsetAPDoverBRMS (EcalLogicID &id, float v)
LMFPrimDatsetAPDoverPn (EcalLogicID &id, float mean, float rms, float m3)
LMFPrimDatsetAPDoverPnM3 (EcalLogicID &id, float v)
LMFPrimDatsetAPDoverPnMean (EcalLogicID &id, float v)
LMFPrimDatsetAPDoverPnRMS (EcalLogicID &id, float v)
LMFPrimDatsetBeta (EcalLogicID &id, float v)
LMFPrimDatsetFlag (EcalLogicID &id, int v)
LMFPrimDatsetM3 (EcalLogicID &id, float v)
LMFPrimDatsetMean (EcalLogicID &id, float v)
LMFPrimDatsetPN (EcalLogicID &id, float mean, float rms, float m3)
LMFPrimDatsetRMS (EcalLogicID &id, float v)
LMFPrimDatsetShapeCorr (EcalLogicID &id, float v)
 ~LMFPrimDat ()

Private Member Functions

void init ()

Detailed Description

LMF_YYYY_XXX_PPRIM_DAT interface ^ ^ | | | color \---------- system

Definition at line 19 of file LMFPrimDat.h.


Constructor & Destructor Documentation

LMFPrimDat::LMFPrimDat ( )

Definition at line 3 of file LMFPrimDat.cc.

References init().

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

Definition at line 7 of file LMFPrimDat.cc.

References init().

LMFPrimDat::LMFPrimDat ( EcalDBConnection c)

Definition at line 13 of file LMFPrimDat.cc.

References init().

                                          : LMFColoredTable(c) {
  init();
}
LMFPrimDat::LMFPrimDat ( std::string  color,
std::string  system 
)

Definition at line 17 of file LMFPrimDat.cc.

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

                                                        : 
  LMFColoredTable() {
  init();
  setColor(color);
  setSystem(system);
}
LMFPrimDat::LMFPrimDat ( int  color,
std::string  system 
)

Definition at line 24 of file LMFPrimDat.cc.

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

                                                  : 
  LMFColoredTable() {
  init();
  setColor(color);
  setSystem(system);
}
LMFPrimDat::LMFPrimDat ( oracle::occi::Environment *  env,
oracle::occi::Connection *  conn,
std::string  color,
std::string  system 
)
LMFPrimDat::LMFPrimDat ( EcalDBConnection c,
std::string  color,
std::string  system 
)

Definition at line 49 of file LMFPrimDat.cc.

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

                                           : LMFColoredTable(c) {
  init();
  setColor(color);
  setSystem(system);
}
LMFPrimDat::LMFPrimDat ( oracle::occi::Environment *  env,
oracle::occi::Connection *  conn,
int  color,
std::string  system 
)
LMFPrimDat::LMFPrimDat ( EcalDBConnection c,
int  color,
std::string  system 
)

Definition at line 56 of file LMFPrimDat.cc.

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

                                           : LMFColoredTable(c) {
  init();
  setColor(color);
  setSystem(system);
}
LMFPrimDat::~LMFPrimDat ( ) [inline]

Definition at line 35 of file LMFPrimDat.h.

{}

Member Function Documentation

float LMFPrimDat::getAlpha ( EcalLogicID id)

Definition at line 269 of file LMFPrimDat.cc.

References LMFDat::getData().

                                          {
  return getData(id, "ALPHA");
}
float LMFPrimDat::getAlpha ( int  id)

Definition at line 333 of file LMFPrimDat.cc.

References LMFDat::getData().

                                 {
  return getData(id, "ALPHA");
}
float LMFPrimDat::getAPDoverAM3 ( EcalLogicID id)

Definition at line 233 of file LMFPrimDat.cc.

References LMFDat::getData().

                                               {
  return getData(id, "APDAM3");
}
float LMFPrimDat::getAPDoverAM3 ( int  id)

Definition at line 297 of file LMFPrimDat.cc.

References LMFDat::getData().

                                      {
  return getData(id, "APDAM3");
}
float LMFPrimDat::getAPDoverAMean ( int  id)

Definition at line 301 of file LMFPrimDat.cc.

References LMFDat::getData().

                                        {
  return getData(id, "APDAMEAN");
}
float LMFPrimDat::getAPDoverAMean ( EcalLogicID id)

Definition at line 237 of file LMFPrimDat.cc.

References LMFDat::getData().

                                                 {
  return getData(id, "APDAMEAN");
}
float LMFPrimDat::getAPDoverARMS ( int  id)

Definition at line 305 of file LMFPrimDat.cc.

References LMFDat::getData().

                                       {
  return getData(id, "APDARMS");
}
float LMFPrimDat::getAPDoverARMS ( EcalLogicID id)

Definition at line 241 of file LMFPrimDat.cc.

References LMFDat::getData().

                                                {
  return getData(id, "APDARMS");
}
float LMFPrimDat::getAPDoverBM3 ( int  id)

Definition at line 309 of file LMFPrimDat.cc.

References LMFDat::getData().

                                      {
  return getData(id, "APDBM3");
}
float LMFPrimDat::getAPDoverBM3 ( EcalLogicID id)

Definition at line 245 of file LMFPrimDat.cc.

References LMFDat::getData().

                                               {
  return getData(id, "APDBM3");
}
float LMFPrimDat::getAPDoverBMean ( int  id)

Definition at line 325 of file LMFPrimDat.cc.

References LMFDat::getData().

                                        {
  return getData(id, "APDBMEAN");
}
float LMFPrimDat::getAPDoverBMean ( EcalLogicID id)

Definition at line 261 of file LMFPrimDat.cc.

References LMFDat::getData().

                                                 {
  return getData(id, "APDBMEAN");
}
float LMFPrimDat::getAPDoverBRMS ( int  id)

Definition at line 329 of file LMFPrimDat.cc.

References LMFDat::getData().

                                       {
  return getData(id, "APDBRMS");
}
float LMFPrimDat::getAPDoverBRMS ( EcalLogicID id)

Definition at line 265 of file LMFPrimDat.cc.

References LMFDat::getData().

                                                {
  return getData(id, "APDBRMS");
}
float LMFPrimDat::getAPDoverPnM3 ( EcalLogicID id)

Definition at line 257 of file LMFPrimDat.cc.

References LMFDat::getData().

                                                {
  return getData(id, "APDPNM3");
}
float LMFPrimDat::getAPDoverPnM3 ( int  id)

Definition at line 321 of file LMFPrimDat.cc.

References LMFDat::getData().

                                       {
  return getData(id, "APDPNM3");
}
float LMFPrimDat::getAPDoverPnMean ( EcalLogicID id)

Definition at line 249 of file LMFPrimDat.cc.

References LMFDat::getData().

                                                  {
  return getData(id, "APDPNMEAN");
}
float LMFPrimDat::getAPDoverPnMean ( int  id)

Definition at line 313 of file LMFPrimDat.cc.

References LMFDat::getData().

                                         {
  return getData(id, "APDPNMEAN");
}
float LMFPrimDat::getAPDoverPnRMS ( EcalLogicID id)

Definition at line 253 of file LMFPrimDat.cc.

References LMFDat::getData().

                                                 {
  return getData(id, "APDPNRMS");
}
float LMFPrimDat::getAPDoverPnRMS ( int  id)

Definition at line 317 of file LMFPrimDat.cc.

References LMFDat::getData().

                                        {
  return getData(id, "APDPNRMS");
}
float LMFPrimDat::getBeta ( EcalLogicID id)

Definition at line 273 of file LMFPrimDat.cc.

References LMFDat::getData().

                                         {
  return getData(id, "BETA");
}
float LMFPrimDat::getBeta ( int  id)

Definition at line 337 of file LMFPrimDat.cc.

References LMFDat::getData().

                                {
  return getData(id, "BETA");
}
int LMFPrimDat::getFlag ( int  id)

Definition at line 345 of file LMFPrimDat.cc.

References LMFDat::getData().

                              {
  return getData(id, "FLAG");
}
int LMFPrimDat::getFlag ( EcalLogicID id)

Definition at line 281 of file LMFPrimDat.cc.

References LMFDat::getData().

                                       {
  return getData(id, "FLAG");
}
float LMFPrimDat::getM3 ( int  id)

Definition at line 293 of file LMFPrimDat.cc.

References LMFDat::getData().

                              {
  return getData(id, "M3");
}
float LMFPrimDat::getM3 ( EcalLogicID id)

Definition at line 229 of file LMFPrimDat.cc.

References LMFDat::getData().

                                       {
  return getData(id, "M3");
}
float LMFPrimDat::getMean ( int  id)

Definition at line 285 of file LMFPrimDat.cc.

References LMFDat::getData().

                                {
  return getData(id, "MEAN");
}
float LMFPrimDat::getMean ( EcalLogicID id)

Definition at line 221 of file LMFPrimDat.cc.

References LMFDat::getData().

                                         {
  return getData(id, "MEAN");
}
float LMFPrimDat::getRMS ( EcalLogicID id)

Definition at line 225 of file LMFPrimDat.cc.

References LMFDat::getData().

                                        {
  return getData(id, "RMS");
}
float LMFPrimDat::getRMS ( int  id)

Definition at line 289 of file LMFPrimDat.cc.

References LMFDat::getData().

                               {
  return getData(id, "RMS");
}
float LMFPrimDat::getShapeCorr ( EcalLogicID id)

Definition at line 277 of file LMFPrimDat.cc.

References LMFDat::getData().

                                              {
  return getData(id, "SHAPECORR");
}
float LMFPrimDat::getShapeCorr ( int  id)

Definition at line 341 of file LMFPrimDat.cc.

References LMFDat::getData().

                                     {
  return getData(id, "SHAPECORR");
}
std::string LMFPrimDat::getTableName ( ) const [inline, virtual]

Implements LMFColoredTable.

Definition at line 37 of file LMFPrimDat.h.

References LMFColoredTable::getColor(), and LMFColoredTable::getSystem().

                                 {
    return "LMF_" + getSystem() + "_" + getColor() + "_PRIM_DAT";
  }
void LMFPrimDat::init ( void  ) [private]

Definition at line 63 of file LMFPrimDat.cc.

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

Referenced by LMFPrimDat().

                      {
  m_className = "LMFPrimDat";
  m_keys["FLAG"] = 0;
  m_keys["MEAN"] = 1;
  m_keys["RMS"] = 2;
  m_keys["M3"] = 3;
  m_keys["APDAMEAN"] = 4;
  m_keys["APDARMS"] = 5;
  m_keys["APDAM3"] = 6;
  m_keys["APDBMEAN"] = 7;
  m_keys["APDBRMS"] = 8;
  m_keys["APDBM3"] = 9;
  m_keys["APDPNMEAN"] = 10;
  m_keys["APDPNRMS"] = 11;
  m_keys["APDPNM3"] = 12;
  m_keys["ALPHA"] = 13;
  m_keys["BETA"] = 14;
  m_keys["SHAPECORR"] = 15;
  m_keys["VMIN"] = 16;
  m_keys["VMAX"] = 17;
  for (unsigned int i = 0; i < m_keys.size(); i++) {
    m_type.push_back("NUMBER");
  }
  m_system = 0;
  m_color = 0;
}
bool LMFPrimDat::isValid ( void  ) [virtual]

Reimplemented from LMFDat.

Definition at line 90 of file LMFPrimDat.cc.

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

                         {
  bool ret = true;
  if ((getSystem() != "LASER") && (getSystem() != "LED")) {
    m_Error += " System name not properly set [" + getSystem() + "]";
    ret = false;
  }
  if ((getSystem() == "LASER") && 
      (getColor() != "BLUE") && (getColor() != "IR")) {
    m_Error += " Color not properly set [" + getColor() + "]";
    ret = false;
  }
  if ((getSystem() == "LED") && 
      (getColor() != "BLUE") && (getColor() != "ORANGE")) {
    m_Error += " Color not properly set [" + getColor() + "]";
    ret = false;
  }
  return ret;
}
LMFPrimDat & LMFPrimDat::setAlpha ( EcalLogicID id,
float  v 
)

Definition at line 206 of file LMFPrimDat.cc.

References LMFDat::setData().

                                                         {
  LMFDat::setData(id, "ALPHA", v);
  return *this;
}
LMFPrimDat & LMFPrimDat::setAPDoverA ( EcalLogicID id,
float  mean,
float  rms,
float  m3 
)

Definition at line 147 of file LMFPrimDat.cc.

References setAPDoverAM3(), setAPDoverAMean(), and setAPDoverARMS().

                                                                     {
  setAPDoverAMean(id, mean);
  setAPDoverARMS(id, rms);
  setAPDoverAM3(id, m3);
  return *this;
}
LMFPrimDat & LMFPrimDat::setAPDoverAM3 ( EcalLogicID id,
float  v 
)

Definition at line 132 of file LMFPrimDat.cc.

References LMFDat::setData().

Referenced by setAPDoverA().

                                                              {
  LMFDat::setData(id, "APDAM3", v);
  return *this;
}
LMFPrimDat & LMFPrimDat::setAPDoverAMean ( EcalLogicID id,
float  v 
)

Definition at line 137 of file LMFPrimDat.cc.

References LMFDat::setData().

Referenced by setAPDoverA().

                                                                {
  LMFDat::setData(id, "APDAMEAN", v);
  return *this;
}
LMFPrimDat & LMFPrimDat::setAPDoverARMS ( EcalLogicID id,
float  v 
)

Definition at line 142 of file LMFPrimDat.cc.

References LMFDat::setData().

Referenced by setAPDoverA().

                                                               {
  LMFDat::setData(id, "APDARMS", v);
  return *this;
}
LMFPrimDat & LMFPrimDat::setAPDoverB ( EcalLogicID id,
float  mean,
float  rms,
float  m3 
)

Definition at line 170 of file LMFPrimDat.cc.

References setAPDoverBM3(), setAPDoverBMean(), and setAPDoverBRMS().

                                                                         {
  setAPDoverBMean(id, mean);
  setAPDoverBRMS(id, rms);
  setAPDoverBM3(id, m3);
  return *this;
}
LMFPrimDat & LMFPrimDat::setAPDoverBM3 ( EcalLogicID id,
float  v 
)

Definition at line 155 of file LMFPrimDat.cc.

References LMFDat::setData().

Referenced by setAPDoverB().

                                                              {
  LMFDat::setData(id, "APDBM3", v);
  return *this;
}
LMFPrimDat & LMFPrimDat::setAPDoverBMean ( EcalLogicID id,
float  v 
)

Definition at line 160 of file LMFPrimDat.cc.

References LMFDat::setData().

Referenced by setAPDoverB().

                                                                {
  LMFDat::setData(id, "APDBMEAN", v);
  return *this;
}
LMFPrimDat & LMFPrimDat::setAPDoverBRMS ( EcalLogicID id,
float  v 
)

Definition at line 165 of file LMFPrimDat.cc.

References LMFDat::setData().

Referenced by setAPDoverB().

                                                               {
  LMFDat::setData(id, "APDBRMS", v);
  return *this;
}
LMFPrimDat & LMFPrimDat::setAPDoverPn ( EcalLogicID id,
float  mean,
float  rms,
float  m3 
)

Definition at line 193 of file LMFPrimDat.cc.

References setAPDoverPnM3(), setAPDoverPnMean(), and setAPDoverPnRMS().

                                                                     {
  setAPDoverPnMean(id, mean);
  setAPDoverPnRMS(id, rms);
  setAPDoverPnM3(id, m3);
  return *this;
}
LMFPrimDat & LMFPrimDat::setAPDoverPnM3 ( EcalLogicID id,
float  v 
)

Definition at line 178 of file LMFPrimDat.cc.

References LMFDat::setData().

Referenced by setAPDoverPn().

                                                               {
  LMFDat::setData(id, "APDPNM3", v);
  return *this;
}
LMFPrimDat & LMFPrimDat::setAPDoverPnMean ( EcalLogicID id,
float  v 
)

Definition at line 183 of file LMFPrimDat.cc.

References LMFDat::setData().

Referenced by setAPDoverPn().

                                                                 {
  LMFDat::setData(id, "APDPNMEAN", v);
  return *this;
}
LMFPrimDat & LMFPrimDat::setAPDoverPnRMS ( EcalLogicID id,
float  v 
)

Definition at line 188 of file LMFPrimDat.cc.

References LMFDat::setData().

Referenced by setAPDoverPn().

                                                                {
  LMFDat::setData(id, "APDPNRMS", v);
  return *this;
}
LMFPrimDat & LMFPrimDat::setBeta ( EcalLogicID id,
float  v 
)

Definition at line 211 of file LMFPrimDat.cc.

References LMFDat::setData().

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

Definition at line 201 of file LMFPrimDat.cc.

References LMFDat::setData().

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

Definition at line 119 of file LMFPrimDat.cc.

References LMFDat::setData().

Referenced by setPN().

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

Definition at line 109 of file LMFPrimDat.cc.

References LMFDat::setData().

Referenced by setPN().

                                                        {
  LMFDat::setData(id, "MEAN", v);
  return *this;
}
LMFPrimDat & LMFPrimDat::setPN ( EcalLogicID id,
float  mean,
float  rms,
float  m3 
)

Definition at line 124 of file LMFPrimDat.cc.

References setM3(), setMean(), and setRMS().

                                            {
  setMean(id, mean);
  setRMS(id, rms);
  setM3(id, m3);
  return *this;
}
LMFPrimDat & LMFPrimDat::setRMS ( EcalLogicID id,
float  v 
)

Definition at line 114 of file LMFPrimDat.cc.

References LMFDat::setData().

Referenced by setPN().

                                                       {
  LMFDat::setData(id, "RMS", v);
  return *this;
}
LMFPrimDat & LMFPrimDat::setShapeCorr ( EcalLogicID id,
float  v 
)

Definition at line 216 of file LMFPrimDat.cc.

References LMFDat::setData().

                                                             {
  LMFDat::setData(id, "SHAPECORR", v);
  return *this;
}