CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Member Functions
LMFPnPrimDat Class Reference

#include <LMFPnPrimDat.h>

Inheritance diagram for LMFPnPrimDat:
LMFColoredTable LMFDat LMFUnique IUniqueDBObject IDBObject

Public Member Functions

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 getPNAoverBM3 (EcalLogicID &id)
 
float getPNAoverBM3 (int id)
 
float getPNAoverBMean (EcalLogicID &id)
 
float getPNAoverBMean (int id)
 
float getPNAoverBRMS (EcalLogicID &id)
 
float getPNAoverBRMS (int id)
 
float getRMS (EcalLogicID &id)
 
float getRMS (int id)
 
float getShapeCor (EcalLogicID &id)
 
float getShapeCor (int id)
 
std::string getTableName () const
 
bool isValid ()
 
 LMFPnPrimDat ()
 
 LMFPnPrimDat (oracle::occi::Environment *env, oracle::occi::Connection *conn)
 
 LMFPnPrimDat (EcalDBConnection *c)
 
 LMFPnPrimDat (std::string color, std::string system)
 
 LMFPnPrimDat (oracle::occi::Environment *env, oracle::occi::Connection *conn, std::string color, std::string system)
 
 LMFPnPrimDat (EcalDBConnection *c, std::string color, std::string system)
 
 LMFPnPrimDat (EcalDBConnection *c, std::string color, std::string system, bool debug)
 
 LMFPnPrimDat (int color, std::string system)
 
 LMFPnPrimDat (oracle::occi::Environment *env, oracle::occi::Connection *conn, int color, std::string system)
 
 LMFPnPrimDat (EcalDBConnection *c, int color, std::string system)
 
LMFPnPrimDatsetFlag (EcalLogicID &id, int v)
 
LMFPnPrimDatsetM3 (EcalLogicID &id, float v)
 
LMFPnPrimDatsetMean (EcalLogicID &id, float v)
 
LMFPnPrimDatsetPN (EcalLogicID &id, float mean, float rms, float m3)
 
LMFPnPrimDatsetPNAoverB (EcalLogicID &id, float mean, float rms, float m3)
 
LMFPnPrimDatsetPNAoverBM3 (EcalLogicID &id, float v)
 
LMFPnPrimDatsetPNAoverBMean (EcalLogicID &id, float v)
 
LMFPnPrimDatsetPNAoverBRMS (EcalLogicID &id, float v)
 
LMFPnPrimDatsetRMS (EcalLogicID &id, float v)
 
LMFPnPrimDatsetShapeCorr (EcalLogicID &id, float mean)
 
LMFPnPrimDatsetSystem (std::string s)
 
 ~LMFPnPrimDat ()
 
- Public Member Functions inherited from LMFColoredTable
std::string getColor () const
 
virtual std::string getSystem () const
 
int getVmax (EcalLogicID &id)
 
int getVmin (EcalLogicID &id)
 
 LMFColoredTable ()
 
 LMFColoredTable (EcalDBConnection *c)
 
 LMFColoredTable (oracle::occi::Environment *env, oracle::occi::Connection *conn)
 
LMFColoredTablesetColor (int color)
 
LMFColoredTablesetColor (std::string color)
 
virtual LMFColoredTablesetSystem (int system)
 
LMFColoredTablesetVersions (EcalLogicID &id, int vmin, int vmax)
 
LMFColoredTablesetVmax (EcalLogicID &id, int v)
 
LMFColoredTablesetVmin (EcalLogicID &id, int v)
 
int writeDB () throw (std::runtime_error)
 
 ~LMFColoredTable ()
 
- Public Member Functions inherited from LMFDat
void dump () const
 
void dump (int n) const
 
virtual void dump (int n, int max) const
 
void fetch () throw (std::runtime_error)
 
void fetch (int logic_id) throw (std::runtime_error)
 
void fetch (int logic_id, const Tm &tm) throw (std::runtime_error)
 
void fetch (int logic_id, const Tm *timestamp, int dir) throw (std::runtime_error)
 
void fetch (const EcalLogicID &id, const Tm &tm) throw (std::runtime_error)
 
void fetch (const EcalLogicID &id, const Tm &tm, int dir) throw (std::runtime_error)
 
void fetch (const EcalLogicID &id) throw (std::runtime_error)
 
std::map< int, std::vector
< float > > 
fetchData () throw (std::runtime_error)
 
virtual std::string foreignKeyName () const
 
std::vector< float > getData (int id)
 
std::vector< float > getData (const EcalLogicID &id)
 
bool getData (int id, std::vector< float > &ret)
 
bool getData (const EcalLogicID &id, std::vector< float > &ret)
 
std::map< int, std::vector
< float > > 
getData ()
 
float getData (int id, unsigned int k)
 
float getData (const EcalLogicID &id, unsigned int k)
 
float getData (const EcalLogicID &id, const std::string &key)
 
float getData (int id, const std::string &key)
 
bool getData (int id, unsigned int k, float &ret)
 
bool getData (const EcalLogicID &id, unsigned int k, float &ret)
 
bool getData (int id, const std::string &key, float &ret)
 
bool getData (const EcalLogicID &id, const std::string &key, float &ret)
 
virtual std::string getIovIdFieldName () const
 
std::list< std::string > getKeyList ()
 
std::map< std::string,
unsigned int > 
getKeys ()
 
LMFRunIOV getLMFRunIOV () const
 
int getLMFRunIOVID ()
 
std::list< int > getLogicIds ()
 
void getNext (LMFDat *dat) throw (std::runtime_error)
 
void getPrevious (LMFDat *dat) throw (std::runtime_error)
 
std::map< unsigned int,
std::string > 
getReverseMap () const
 
Tm getSubrunStart () const
 
 LMFDat ()
 
 LMFDat (EcalDBConnection *c)
 
 LMFDat (oracle::occi::Environment *env, oracle::occi::Connection *conn)
 
std::vector< float > operator[] (int id)
 
LMFDatsetData (int logic_id, const std::vector< float > &data)
 
LMFDatsetData (const EcalLogicID &logic_id, const std::vector< float > &data)
 
LMFDatsetData (const EcalLogicID &logic_id, const std::string &key, float v)
 
LMFDatsetLMFRunIOV (const LMFRunIOV &iov)
 
LMFDatsetMaxDataToDump (int n)
 
void setWhereClause (std::string w)
 
void setWhereClause (std::string w, const std::vector< std::string > &p)
 
int size () const
 
 ~LMFDat ()
 
- Public Member Functions inherited from LMFUnique
void attach (std::string name, LMFUnique *u)
 
void debug ()
 
virtual bool exists ()
 
virtual boost::ptr_list
< LMFUnique
fetchAll () const throw (std::runtime_error)
 
int fetchID () throw (std::runtime_error)
 
std::string getClassName ()
 
std::string getClassName () const
 
int getID () const
 
int getInt (std::string fieldname) const
 
std::string getString (std::string fieldname) const
 
virtual bool isValid () const
 
 LMFUnique ()
 
 LMFUnique (oracle::occi::Environment *env, oracle::occi::Connection *conn)
 
 LMFUnique (EcalDBConnection *c)
 
void nodebug ()
 
virtual bool operator< (const LMFUnique &r)
 
virtual bool operator<= (const LMFUnique &r)
 
std::string sequencePostfix (const Tm &t)
 
void setByID (int id) throw (std::runtime_error)
 
LMFUniquesetInt (std::string key, int value)
 
LMFUniquesetString (std::string key, std::string value)
 
void startProfiling ()
 
void stopProfiling ()
 
virtual ~LMFUnique ()
 
- Public Member Functions inherited from IDBObject
oracle::occi::Connection * getConn () const
 
oracle::occi::Environment * getEnv () const
 
void setConnection (oracle::occi::Environment *env, oracle::occi::Connection *conn)
 
virtual ~IDBObject ()
 

Private Member Functions

void init ()
 

Additional Inherited Members

- Public Types inherited from LMFUnique
typedef oracle::occi::ResultSet ResultSet
 
typedef oracle::occi::Statement Statement
 
- Static Public Attributes inherited from IDBObject
static int const ECALDB_NROWS =1024
 
- Protected Member Functions inherited from LMFDat
void adjustParameters (int n, std::string &sql, Statement *stmt)
 
std::string buildInsertSql ()
 
std::string buildSelectSql (int logic_id=0, int direction=0)
 
bool check ()
 
void getKeyTypes () throw (std::runtime_error)
 
void getNeighbour (LMFDat *dat, int which) throw (std::runtime_error)
 
int writeDB () throw (std::runtime_error)
 
- Protected Member Functions inherited from LMFUnique
virtual void setClassName (std::string s)
 
virtual int writeForeignKeys () throw (std::runtime_error)
 
- Protected Member Functions inherited from IDBObject
void checkConnection () const throw (std::runtime_error)
 
- Protected Attributes inherited from LMFColoredTable
int m_color
 
int m_system
 
- Protected Attributes inherited from LMFDat
std::string _where
 
std::vector< std::string > _wherePars
 
std::map< int, std::vector
< float > > 
m_data
 
std::string m_Error
 
std::map< std::string,
unsigned int > 
m_keys
 
int m_max
 
std::string m_tableName
 
std::vector< std::string > m_type
 
- Protected Attributes inherited from LMFUnique
bool _profiling
 
std::string m_className
 
char m_debug
 
std::map< std::string,
LMFUnique * > 
m_foreignKeys
 
std::map< std::string, int > m_intFields
 
std::map< std::string,
std::string > 
m_stringFields
 
- Protected Attributes inherited from IUniqueDBObject
int m_ID
 
- Protected Attributes inherited from IDBObject
oracle::occi::Connection * m_conn
 
oracle::occi::Environment * m_env
 

Detailed Description

LMF_YYYY_XXX_PN_PRIM_DAT interface ^ ^ | | | _____ color -------— system

Definition at line 19 of file LMFPnPrimDat.h.

Constructor & Destructor Documentation

LMFPnPrimDat::LMFPnPrimDat ( )

Definition at line 3 of file LMFPnPrimDat.cc.

LMFPnPrimDat::LMFPnPrimDat ( oracle::occi::Environment *  env,
oracle::occi::Connection *  conn 
)

Definition at line 7 of file LMFPnPrimDat.cc.

LMFPnPrimDat::LMFPnPrimDat ( EcalDBConnection c)

Definition at line 13 of file LMFPnPrimDat.cc.

LMFPnPrimDat::LMFPnPrimDat ( std::string  color,
std::string  system 
)

Definition at line 17 of file LMFPnPrimDat.cc.

LMFPnPrimDat::LMFPnPrimDat ( oracle::occi::Environment *  env,
oracle::occi::Connection *  conn,
std::string  color,
std::string  system 
)

Definition at line 24 of file LMFPnPrimDat.cc.

LMFPnPrimDat::LMFPnPrimDat ( EcalDBConnection c,
std::string  color,
std::string  system 
)

Definition at line 43 of file LMFPnPrimDat.cc.

LMFPnPrimDat::LMFPnPrimDat ( EcalDBConnection c,
std::string  color,
std::string  system,
bool  debug 
)

Definition at line 33 of file LMFPnPrimDat.cc.

LMFPnPrimDat::LMFPnPrimDat ( int  color,
std::string  system 
)

Definition at line 50 of file LMFPnPrimDat.cc.

LMFPnPrimDat::LMFPnPrimDat ( oracle::occi::Environment *  env,
oracle::occi::Connection *  conn,
int  color,
std::string  system 
)

Definition at line 57 of file LMFPnPrimDat.cc.

LMFPnPrimDat::LMFPnPrimDat ( EcalDBConnection c,
int  color,
std::string  system 
)

Definition at line 66 of file LMFPnPrimDat.cc.

LMFPnPrimDat::~LMFPnPrimDat ( )
inline

Definition at line 37 of file LMFPnPrimDat.h.

37 {}

Member Function Documentation

int LMFPnPrimDat::getFlag ( EcalLogicID id)

Definition at line 267 of file LMFPnPrimDat.cc.

int LMFPnPrimDat::getFlag ( int  id)

Definition at line 231 of file LMFPnPrimDat.cc.

float LMFPnPrimDat::getM3 ( EcalLogicID id)

Definition at line 251 of file LMFPnPrimDat.cc.

float LMFPnPrimDat::getM3 ( int  id)

Definition at line 215 of file LMFPnPrimDat.cc.

float LMFPnPrimDat::getMean ( EcalLogicID id)

Definition at line 235 of file LMFPnPrimDat.cc.

float LMFPnPrimDat::getMean ( int  id)

Definition at line 199 of file LMFPnPrimDat.cc.

float LMFPnPrimDat::getPNAoverBM3 ( EcalLogicID id)

Definition at line 255 of file LMFPnPrimDat.cc.

float LMFPnPrimDat::getPNAoverBM3 ( int  id)

Definition at line 219 of file LMFPnPrimDat.cc.

float LMFPnPrimDat::getPNAoverBMean ( EcalLogicID id)

Definition at line 259 of file LMFPnPrimDat.cc.

float LMFPnPrimDat::getPNAoverBMean ( int  id)

Definition at line 223 of file LMFPnPrimDat.cc.

float LMFPnPrimDat::getPNAoverBRMS ( EcalLogicID id)

Definition at line 263 of file LMFPnPrimDat.cc.

float LMFPnPrimDat::getPNAoverBRMS ( int  id)

Definition at line 227 of file LMFPnPrimDat.cc.

float LMFPnPrimDat::getRMS ( EcalLogicID id)

Definition at line 247 of file LMFPnPrimDat.cc.

float LMFPnPrimDat::getRMS ( int  id)

Definition at line 211 of file LMFPnPrimDat.cc.

float LMFPnPrimDat::getShapeCor ( EcalLogicID id)

Definition at line 239 of file LMFPnPrimDat.cc.

float LMFPnPrimDat::getShapeCor ( int  id)

Definition at line 203 of file LMFPnPrimDat.cc.

std::string LMFPnPrimDat::getTableName ( ) const
inlinevirtual

Implements LMFColoredTable.

Definition at line 39 of file LMFPnPrimDat.h.

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

39  {
40  return "LMF_" + getSystem() + "_" + getColor() + "_PN_PRIM_DAT";
41  }
std::string getColor() const
virtual std::string getSystem() const
void LMFPnPrimDat::init ( void  )
private

Definition at line 101 of file LMFPnPrimDat.cc.

bool LMFPnPrimDat::isValid ( void  )
virtual

Reimplemented from LMFDat.

Definition at line 124 of file LMFPnPrimDat.cc.

Referenced by core.AutoHandle.AutoHandle::ReallyLoad().

LMFPnPrimDat & LMFPnPrimDat::setFlag ( EcalLogicID id,
int  v 
)

Definition at line 194 of file LMFPnPrimDat.cc.

LMFPnPrimDat & LMFPnPrimDat::setM3 ( EcalLogicID id,
float  v 
)

Definition at line 153 of file LMFPnPrimDat.cc.

LMFPnPrimDat & LMFPnPrimDat::setMean ( EcalLogicID id,
float  v 
)

Definition at line 143 of file LMFPnPrimDat.cc.

LMFPnPrimDat & LMFPnPrimDat::setPN ( EcalLogicID id,
float  mean,
float  rms,
float  m3 
)

Definition at line 158 of file LMFPnPrimDat.cc.

LMFPnPrimDat & LMFPnPrimDat::setPNAoverB ( EcalLogicID id,
float  mean,
float  rms,
float  m3 
)

Definition at line 187 of file LMFPnPrimDat.cc.

LMFPnPrimDat & LMFPnPrimDat::setPNAoverBM3 ( EcalLogicID id,
float  v 
)

Definition at line 172 of file LMFPnPrimDat.cc.

LMFPnPrimDat & LMFPnPrimDat::setPNAoverBMean ( EcalLogicID id,
float  v 
)

Definition at line 177 of file LMFPnPrimDat.cc.

LMFPnPrimDat & LMFPnPrimDat::setPNAoverBRMS ( EcalLogicID id,
float  v 
)

Definition at line 182 of file LMFPnPrimDat.cc.

LMFPnPrimDat & LMFPnPrimDat::setRMS ( EcalLogicID id,
float  v 
)

Definition at line 148 of file LMFPnPrimDat.cc.

LMFPnPrimDat & LMFPnPrimDat::setShapeCorr ( EcalLogicID id,
float  mean 
)

Definition at line 165 of file LMFPnPrimDat.cc.

LMFPnPrimDat & LMFPnPrimDat::setSystem ( std::string  s)
virtual

Reimplemented from LMFColoredTable.

Definition at line 73 of file LMFPnPrimDat.cc.