CMS 3D CMS Logo

Public Member Functions | Private Member Functions

LMFLaserPulseDat Class Reference

#include <LMFLaserPulseDat.h>

Inheritance diagram for LMFLaserPulseDat:
LMFColoredTable LMFDat LMFUnique IUniqueDBObject IDBObject

List of all members.

Public Member Functions

int getFitMethod (EcalLogicID &id)
int getFitMethod (int id)
float getMTQAmplification (EcalLogicID &id)
float getMTQAmplification (int id)
float getMTQFW20 (int id)
float getMTQFW20 (EcalLogicID &id)
float getMTQFW80 (int id)
float getMTQFW80 (EcalLogicID &id)
float getMTQFWHM (int id)
float getMTQFWHM (EcalLogicID &id)
float getMTQRise (EcalLogicID &id)
float getMTQRise (int id)
float getMTQSliding (int id)
float getMTQSliding (EcalLogicID &id)
float getMTQTime (EcalLogicID &id)
float getMTQTime (int id)
std::string getTableName () const
bool isValid ()
 LMFLaserPulseDat (std::string color)
 LMFLaserPulseDat (EcalDBConnection *c, std::string color)
 LMFLaserPulseDat (EcalDBConnection *c, int color)
 LMFLaserPulseDat ()
 LMFLaserPulseDat (oracle::occi::Environment *env, oracle::occi::Connection *conn)
 LMFLaserPulseDat (int color)
 LMFLaserPulseDat (EcalDBConnection *c)
 LMFLaserPulseDat (oracle::occi::Environment *env, oracle::occi::Connection *conn, std::string color)
 LMFLaserPulseDat (oracle::occi::Environment *env, oracle::occi::Connection *conn, int color)
LMFLaserPulseDatsetFitMethod (EcalLogicID &id, int v)
LMFLaserPulseDatsetMTQAmplification (EcalLogicID &id, float v)
LMFLaserPulseDatsetMTQFW20 (EcalLogicID &id, float v)
LMFLaserPulseDatsetMTQFW80 (EcalLogicID &id, float v)
LMFLaserPulseDatsetMTQFWHM (EcalLogicID &id, float v)
LMFLaserPulseDatsetMTQRise (EcalLogicID &id, float v)
LMFLaserPulseDatsetMTQSliding (EcalLogicID &id, float v)
LMFLaserPulseDatsetMTQTime (EcalLogicID &id, float v)
 ~LMFLaserPulseDat ()

Private Member Functions

void init ()

Detailed Description

LMF_LASER_XXX_PULSE_DAT interface ^ ^ | | | color \---------- system

Definition at line 19 of file LMFLaserPulseDat.h.


Constructor & Destructor Documentation

LMFLaserPulseDat::LMFLaserPulseDat ( )

Definition at line 3 of file LMFLaserPulseDat.cc.

References init().

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

Definition at line 7 of file LMFLaserPulseDat.cc.

References init().

                                                     : 
  LMFColoredTable(env, conn) {
  init();
}
LMFLaserPulseDat::LMFLaserPulseDat ( EcalDBConnection c)

Definition at line 13 of file LMFLaserPulseDat.cc.

References init().

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

Definition at line 17 of file LMFLaserPulseDat.cc.

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

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

Definition at line 23 of file LMFLaserPulseDat.cc.

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

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

Definition at line 31 of file LMFLaserPulseDat.cc.

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

                                                                       : 
  LMFColoredTable(c) {
  init();
  setColor(color);
}
LMFLaserPulseDat::LMFLaserPulseDat ( EcalDBConnection c,
int  color 
)
LMFLaserPulseDat::~LMFLaserPulseDat ( ) [inline]

Definition at line 33 of file LMFLaserPulseDat.h.

{}

Member Function Documentation

int LMFLaserPulseDat::getFitMethod ( EcalLogicID id) [inline]

Definition at line 48 of file LMFLaserPulseDat.h.

References getFitMethod().

Referenced by getFitMethod().

{ return getFitMethod(id.getLogicID()); }
int LMFLaserPulseDat::getFitMethod ( int  id)

Definition at line 106 of file LMFLaserPulseDat.cc.

References LMFDat::getData().

                                         {
  return getData(id, "FIT_METHOD");
}
float LMFLaserPulseDat::getMTQAmplification ( EcalLogicID id) [inline]

Definition at line 49 of file LMFLaserPulseDat.h.

                                             { 
    return getMTQAmplification(id.getLogicID()); 
  }
float LMFLaserPulseDat::getMTQAmplification ( int  id)

Definition at line 110 of file LMFLaserPulseDat.cc.

References LMFDat::getData().

                                                  {
  return getData(id, "MTQ_AMPL");
}
float LMFLaserPulseDat::getMTQFW20 ( int  id)

Definition at line 126 of file LMFLaserPulseDat.cc.

References LMFDat::getData().

                                         {
  return getData(id, "MTQ_FW20");
}
float LMFLaserPulseDat::getMTQFW20 ( EcalLogicID id) [inline]

Definition at line 55 of file LMFLaserPulseDat.h.

References getMTQFW20().

Referenced by getMTQFW20().

{ return getMTQFW20(id.getLogicID()); }
float LMFLaserPulseDat::getMTQFW80 ( EcalLogicID id) [inline]

Definition at line 56 of file LMFLaserPulseDat.h.

References getMTQFW80().

Referenced by getMTQFW80().

{ return getMTQFW80(id.getLogicID()); }
float LMFLaserPulseDat::getMTQFW80 ( int  id)

Definition at line 130 of file LMFLaserPulseDat.cc.

References LMFDat::getData().

                                         {
  return getData(id, "MTQ_FW80");
}
float LMFLaserPulseDat::getMTQFWHM ( int  id)

Definition at line 122 of file LMFLaserPulseDat.cc.

References LMFDat::getData().

                                         {
  return getData(id, "MTQ_FWHM");
}
float LMFLaserPulseDat::getMTQFWHM ( EcalLogicID id) [inline]

Definition at line 54 of file LMFLaserPulseDat.h.

References getMTQFWHM().

Referenced by getMTQFWHM().

{ return getMTQFWHM(id.getLogicID()); }
float LMFLaserPulseDat::getMTQRise ( int  id)

Definition at line 118 of file LMFLaserPulseDat.cc.

References LMFDat::getData().

                                         {
  return getData(id, "MTQ_RISE");
}
float LMFLaserPulseDat::getMTQRise ( EcalLogicID id) [inline]

Definition at line 53 of file LMFLaserPulseDat.h.

References getMTQRise().

Referenced by getMTQRise().

{ return getMTQRise(id.getLogicID()); }
float LMFLaserPulseDat::getMTQSliding ( EcalLogicID id) [inline]

Definition at line 57 of file LMFLaserPulseDat.h.

                                       { 
    return getMTQSliding(id.getLogicID()); 
  }
float LMFLaserPulseDat::getMTQSliding ( int  id)

Definition at line 134 of file LMFLaserPulseDat.cc.

References LMFDat::getData().

                                            {
  return getData(id, "MTQ_SLIDING");
}
float LMFLaserPulseDat::getMTQTime ( int  id)

Definition at line 114 of file LMFLaserPulseDat.cc.

References LMFDat::getData().

                                         {
  return getData(id, "MTQ_TIME");
}
float LMFLaserPulseDat::getMTQTime ( EcalLogicID id) [inline]

Definition at line 52 of file LMFLaserPulseDat.h.

References getMTQTime().

Referenced by getMTQTime().

{ return getMTQTime(id.getLogicID()); }
std::string LMFLaserPulseDat::getTableName ( ) const [inline, virtual]

Implements LMFColoredTable.

Definition at line 35 of file LMFLaserPulseDat.h.

References LMFColoredTable::getColor().

                                 {
    return "LMF_LASER_" + getColor() + "_PULSE_DAT";
  }
void LMFLaserPulseDat::init ( void  ) [private]

Definition at line 37 of file LMFLaserPulseDat.cc.

References i, LMFUnique::m_className, LMFColoredTable::m_color, LMFDat::m_keys, LMFDat::m_type, and LMFColoredTable::setSystem().

Referenced by LMFLaserPulseDat().

                            {
  m_className = "LMFLaserPulseDat";
  m_keys["FIT_METHOD"] = 0;
  m_keys["MTQ_AMPL"]   = 1;
  m_keys["MTQ_TIME"]   = 2;
  m_keys["MTQ_RISE"]   = 3;
  m_keys["MTQ_FWHM"]   = 4;
  m_keys["MTQ_FW20"]   = 5;
  m_keys["MTQ_FW80"]   = 6;
  m_keys["MTQ_SLIDING"]= 7;
  m_keys["VMIN"]       = 8;
  m_keys["VMAX"]       = 9;
  for (int i = 0; i < 10; i++) {
    m_type.push_back("NUMBER");
  }
  setSystem("LASER");
  m_color = 0;
}
bool LMFLaserPulseDat::isValid ( void  ) [virtual]

Reimplemented from LMFDat.

Definition at line 56 of file LMFLaserPulseDat.cc.

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

                               {
  bool ret = true;
  ret = LMFDat::isValid();
  if ((getColor() != "BLUE") && (getColor() != "IR")) {
    m_Error += " Color not properly set [" + getColor() + "]";
    ret = false;
  }
  return ret;
}
LMFLaserPulseDat & LMFLaserPulseDat::setFitMethod ( EcalLogicID id,
int  v 
)

Definition at line 66 of file LMFLaserPulseDat.cc.

References LMFDat::setData().

                                                                       {
  LMFDat::setData(id, "FIT_METHOD", v);
  return *this;
}
LMFLaserPulseDat & LMFLaserPulseDat::setMTQAmplification ( EcalLogicID id,
float  v 
)

Definition at line 71 of file LMFLaserPulseDat.cc.

References LMFDat::setData().

                                                                                {
  LMFDat::setData(id, "MTQ_AMPL", v);
  return *this;
}
LMFLaserPulseDat & LMFLaserPulseDat::setMTQFW20 ( EcalLogicID id,
float  v 
)

Definition at line 91 of file LMFLaserPulseDat.cc.

References LMFDat::setData().

                                                                       {
  LMFDat::setData(id, "MTQ_FW20", v);
  return *this;
}
LMFLaserPulseDat & LMFLaserPulseDat::setMTQFW80 ( EcalLogicID id,
float  v 
)

Definition at line 96 of file LMFLaserPulseDat.cc.

References LMFDat::setData().

                                                                       {
  LMFDat::setData(id, "MTQ_FW80", v);
  return *this;
}
LMFLaserPulseDat & LMFLaserPulseDat::setMTQFWHM ( EcalLogicID id,
float  v 
)

Definition at line 86 of file LMFLaserPulseDat.cc.

References LMFDat::setData().

                                                                       {
  LMFDat::setData(id, "MTQ_FWHM", v);
  return *this;
}
LMFLaserPulseDat & LMFLaserPulseDat::setMTQRise ( EcalLogicID id,
float  v 
)

Definition at line 81 of file LMFLaserPulseDat.cc.

References LMFDat::setData().

                                                                       {
  LMFDat::setData(id, "MTQ_RISE", v);
  return *this;
}
LMFLaserPulseDat & LMFLaserPulseDat::setMTQSliding ( EcalLogicID id,
float  v 
)

Definition at line 101 of file LMFLaserPulseDat.cc.

References LMFDat::setData().

                                                                          {
  LMFDat::setData(id, "MTQ_SLIDING", v); 
  return *this;
}
LMFLaserPulseDat & LMFLaserPulseDat::setMTQTime ( EcalLogicID id,
float  v 
)

Definition at line 76 of file LMFLaserPulseDat.cc.

References LMFDat::setData().

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