#include <LMFPnPrimDat.h>
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 override |
bool | isValid () override |
LMFPnPrimDat () | |
LMFPnPrimDat (EcalDBConnection *c) | |
LMFPnPrimDat (EcalDBConnection *c, int 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) | |
LMFPnPrimDat (oracle::occi::Environment *env, oracle::occi::Connection *conn, int color, std::string system) | |
LMFPnPrimDat (oracle::occi::Environment *env, oracle::occi::Connection *conn, std::string color, std::string system) | |
LMFPnPrimDat (std::string color, std::string system) | |
LMFPnPrimDat & | setFlag (EcalLogicID &id, int v) |
LMFPnPrimDat & | setM3 (EcalLogicID &id, float v) |
LMFPnPrimDat & | setMean (EcalLogicID &id, float v) |
LMFPnPrimDat & | setPN (EcalLogicID &id, float mean, float rms, float m3) |
LMFPnPrimDat & | setPNAoverB (EcalLogicID &id, float mean, float rms, float m3) |
LMFPnPrimDat & | setPNAoverBM3 (EcalLogicID &id, float v) |
LMFPnPrimDat & | setPNAoverBMean (EcalLogicID &id, float v) |
LMFPnPrimDat & | setPNAoverBRMS (EcalLogicID &id, float v) |
LMFPnPrimDat & | setRMS (EcalLogicID &id, float v) |
LMFPnPrimDat & | setShapeCorr (EcalLogicID &id, float mean) |
LMFPnPrimDat & | setSystem (std::string s) override |
~LMFPnPrimDat () override | |
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) | |
LMFColoredTable & | setColor (int color) |
LMFColoredTable & | setColor (std::string color) |
virtual LMFColoredTable & | setSystem (int system) |
LMFColoredTable & | setVersions (EcalLogicID &id, int vmin, int vmax) |
LMFColoredTable & | setVmax (EcalLogicID &id, int v) |
LMFColoredTable & | setVmin (EcalLogicID &id, int v) |
int | writeDB () noexcept(false) override |
~LMFColoredTable () override | |
Public Member Functions inherited from LMFDat | |
void | dump () const override |
void | dump (int n) const override |
virtual void | dump (int n, int max) const |
void | fetch () noexcept(false) |
void | fetch (const EcalLogicID &id) noexcept(false) |
void | fetch (const EcalLogicID &id, const Tm &tm) noexcept(false) |
void | fetch (const EcalLogicID &id, const Tm &tm, int dir) noexcept(false) |
void | fetch (int logic_id) noexcept(false) |
void | fetch (int logic_id, const Tm &tm) noexcept(false) |
void | fetch (int logic_id, const Tm *timestamp, int dir) noexcept(false) |
std::map< int, std::vector< float > > | fetchData () noexcept(false) |
virtual std::string | foreignKeyName () const |
std::map< int, std::vector< float > > | getData () |
std::vector< float > | getData (const EcalLogicID &id) |
float | getData (const EcalLogicID &id, const std::string &key) |
bool | getData (const EcalLogicID &id, const std::string &key, float &ret) |
bool | getData (const EcalLogicID &id, std::vector< float > &ret) |
float | getData (const EcalLogicID &id, unsigned int k) |
bool | getData (const EcalLogicID &id, unsigned int k, float &ret) |
std::vector< float > | getData (int id) |
float | getData (int id, const std::string &key) |
bool | getData (int id, const std::string &key, float &ret) |
bool | getData (int id, std::vector< float > &ret) |
float | getData (int id, unsigned int k) |
bool | getData (int id, unsigned int k, 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) noexcept(false) |
void | getPrevious (LMFDat *dat) noexcept(false) |
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) |
LMFDat & | setData (const EcalLogicID &logic_id, const std::string &key, float v) |
LMFDat & | setData (const EcalLogicID &logic_id, const std::vector< float > &data) |
LMFDat & | setData (int logic_id, const std::vector< float > &data) |
LMFDat & | setLMFRunIOV (const LMFRunIOV &iov) |
LMFDat & | setMaxDataToDump (int n) |
void | setWhereClause (std::string w) |
void | setWhereClause (std::string w, const std::vector< std::string > &p) |
int | size () const |
~LMFDat () override | |
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 noexcept(false) |
int | fetchID () noexcept(false) override |
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 (EcalDBConnection *c) | |
LMFUnique (oracle::occi::Environment *env, oracle::occi::Connection *conn) | |
void | nodebug () |
virtual bool | operator< (const LMFUnique &r) |
virtual bool | operator<= (const LMFUnique &r) |
std::string | sequencePostfix (const Tm &t) |
void | setByID (int id) noexcept(false) override |
LMFUnique & | setInt (std::string key, int value) |
LMFUnique & | setString (std::string key, std::string value) |
void | startProfiling () |
void | stopProfiling () |
~LMFUnique () override | |
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 const int | 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 () noexcept(false) |
void | getNeighbour (LMFDat *dat, int which) noexcept(false) |
int | writeDB () noexcept(false) override |
Protected Member Functions inherited from LMFUnique | |
virtual void | getParameters (ResultSet *rset) |
virtual void | setClassName (std::string s) |
virtual int | writeForeignKeys () noexcept(false) |
Protected Member Functions inherited from IDBObject | |
void | checkConnection () const noexcept(false) |
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 |
LMF_YYYY_XXX_PN_PRIM_DAT interface ^ ^ | | | _____ color -------— system
Definition at line 19 of file LMFPnPrimDat.h.
LMFPnPrimDat::LMFPnPrimDat | ( | ) |
LMFPnPrimDat::LMFPnPrimDat | ( | oracle::occi::Environment * | env, |
oracle::occi::Connection * | conn | ||
) |
Definition at line 5 of file LMFPnPrimDat.cc.
References init().
LMFPnPrimDat::LMFPnPrimDat | ( | EcalDBConnection * | c | ) |
LMFPnPrimDat::LMFPnPrimDat | ( | std::string | color, |
std::string | system | ||
) |
Definition at line 12 of file LMFPnPrimDat.cc.
References init(), LMFColoredTable::setColor(), and setSystem().
LMFPnPrimDat::LMFPnPrimDat | ( | oracle::occi::Environment * | env, |
oracle::occi::Connection * | conn, | ||
std::string | color, | ||
std::string | system | ||
) |
Definition at line 18 of file LMFPnPrimDat.cc.
References init(), LMFColoredTable::setColor(), and setSystem().
LMFPnPrimDat::LMFPnPrimDat | ( | EcalDBConnection * | c, |
std::string | color, | ||
std::string | system | ||
) |
Definition at line 37 of file LMFPnPrimDat.cc.
References init(), LMFColoredTable::setColor(), and setSystem().
LMFPnPrimDat::LMFPnPrimDat | ( | EcalDBConnection * | c, |
std::string | color, | ||
std::string | system, | ||
bool | debug | ||
) |
Definition at line 28 of file LMFPnPrimDat.cc.
References ztail::d, LMFUnique::debug(), init(), LMFColoredTable::setColor(), and setSystem().
LMFPnPrimDat::LMFPnPrimDat | ( | int | color, |
std::string | system | ||
) |
Definition at line 43 of file LMFPnPrimDat.cc.
References init(), LMFColoredTable::setColor(), and setSystem().
LMFPnPrimDat::LMFPnPrimDat | ( | oracle::occi::Environment * | env, |
oracle::occi::Connection * | conn, | ||
int | color, | ||
std::string | system | ||
) |
Definition at line 49 of file LMFPnPrimDat.cc.
References init(), LMFColoredTable::setColor(), and setSystem().
LMFPnPrimDat::LMFPnPrimDat | ( | EcalDBConnection * | c, |
int | color, | ||
std::string | system | ||
) |
Definition at line 56 of file LMFPnPrimDat.cc.
References init(), LMFColoredTable::setColor(), and setSystem().
|
inlineoverride |
Definition at line 31 of file LMFPnPrimDat.h.
int LMFPnPrimDat::getFlag | ( | EcalLogicID & | id | ) |
int LMFPnPrimDat::getFlag | ( | int | id | ) |
float LMFPnPrimDat::getM3 | ( | EcalLogicID & | id | ) |
float LMFPnPrimDat::getM3 | ( | int | id | ) |
float LMFPnPrimDat::getMean | ( | EcalLogicID & | id | ) |
float LMFPnPrimDat::getMean | ( | int | id | ) |
float LMFPnPrimDat::getPNAoverBM3 | ( | EcalLogicID & | id | ) |
float LMFPnPrimDat::getPNAoverBM3 | ( | int | id | ) |
float LMFPnPrimDat::getPNAoverBMean | ( | EcalLogicID & | id | ) |
float LMFPnPrimDat::getPNAoverBMean | ( | int | id | ) |
float LMFPnPrimDat::getPNAoverBRMS | ( | EcalLogicID & | id | ) |
float LMFPnPrimDat::getPNAoverBRMS | ( | int | id | ) |
float LMFPnPrimDat::getRMS | ( | EcalLogicID & | id | ) |
float LMFPnPrimDat::getRMS | ( | int | id | ) |
float LMFPnPrimDat::getShapeCor | ( | EcalLogicID & | id | ) |
Definition at line 207 of file LMFPnPrimDat.cc.
References LMFDat::getData(), LMFColoredTable::getSystem(), and x.
float LMFPnPrimDat::getShapeCor | ( | int | id | ) |
Definition at line 185 of file LMFPnPrimDat.cc.
References LMFDat::getData(), LMFColoredTable::getSystem(), and x.
|
inlineoverridevirtual |
Implements LMFColoredTable.
Definition at line 33 of file LMFPnPrimDat.h.
References LMFColoredTable::getColor(), and LMFColoredTable::getSystem().
|
private |
Definition at line 89 of file LMFPnPrimDat.cc.
References mps_fire::i, LMFUnique::m_className, LMFColoredTable::m_color, LMFDat::m_keys, LMFColoredTable::m_system, and LMFDat::m_type.
Referenced by LMFPnPrimDat().
|
overridevirtual |
Reimplemented from LMFDat.
Definition at line 112 of file LMFPnPrimDat.cc.
References LMFColoredTable::getColor(), LMFColoredTable::getSystem(), LMFDat::m_Error, and runTheMatrix::ret.
Referenced by ntupleDataFormat._Object::_checkIsValid(), and core.AutoHandle.AutoHandle::ReallyLoad().
LMFPnPrimDat & LMFPnPrimDat::setFlag | ( | EcalLogicID & | id, |
int | v | ||
) |
Definition at line 178 of file LMFPnPrimDat.cc.
References LMFDat::setData(), and findQualityFiles::v.
LMFPnPrimDat & LMFPnPrimDat::setM3 | ( | EcalLogicID & | id, |
float | v | ||
) |
Definition at line 139 of file LMFPnPrimDat.cc.
References LMFDat::setData(), and findQualityFiles::v.
Referenced by setPN().
LMFPnPrimDat & LMFPnPrimDat::setMean | ( | EcalLogicID & | id, |
float | v | ||
) |
Definition at line 129 of file LMFPnPrimDat.cc.
References LMFDat::setData(), and findQualityFiles::v.
Referenced by setPN().
LMFPnPrimDat & LMFPnPrimDat::setPN | ( | EcalLogicID & | id, |
float | mean, | ||
float | rms, | ||
float | m3 | ||
) |
Definition at line 144 of file LMFPnPrimDat.cc.
References SiStripPI::mean, SiStripPI::rms, setM3(), setMean(), and setRMS().
LMFPnPrimDat & LMFPnPrimDat::setPNAoverB | ( | EcalLogicID & | id, |
float | mean, | ||
float | rms, | ||
float | m3 | ||
) |
Definition at line 172 of file LMFPnPrimDat.cc.
References SiStripPI::mean, SiStripPI::rms, setPNAoverBM3(), setPNAoverBMean(), and setPNAoverBRMS().
LMFPnPrimDat & LMFPnPrimDat::setPNAoverBM3 | ( | EcalLogicID & | id, |
float | v | ||
) |
Definition at line 157 of file LMFPnPrimDat.cc.
References LMFDat::setData(), and findQualityFiles::v.
Referenced by setPNAoverB().
LMFPnPrimDat & LMFPnPrimDat::setPNAoverBMean | ( | EcalLogicID & | id, |
float | v | ||
) |
Definition at line 162 of file LMFPnPrimDat.cc.
References LMFDat::setData(), and findQualityFiles::v.
Referenced by setPNAoverB().
LMFPnPrimDat & LMFPnPrimDat::setPNAoverBRMS | ( | EcalLogicID & | id, |
float | v | ||
) |
Definition at line 167 of file LMFPnPrimDat.cc.
References LMFDat::setData(), and findQualityFiles::v.
Referenced by setPNAoverB().
LMFPnPrimDat & LMFPnPrimDat::setRMS | ( | EcalLogicID & | id, |
float | v | ||
) |
Definition at line 134 of file LMFPnPrimDat.cc.
References LMFDat::setData(), and findQualityFiles::v.
Referenced by setPN().
LMFPnPrimDat & LMFPnPrimDat::setShapeCorr | ( | EcalLogicID & | id, |
float | mean | ||
) |
Definition at line 150 of file LMFPnPrimDat.cc.
References LMFColoredTable::getSystem(), LMFDat::setData(), and findQualityFiles::v.
|
overridevirtual |
Reimplemented from LMFColoredTable.
Definition at line 62 of file LMFPnPrimDat.cc.
References gather_cfg::cout, MillePedeFileConverter_cfg::e, mps_fire::i, LMFDat::m_data, LMFUnique::m_debug, LMFDat::m_keys, LMFDat::m_type, alignCSCRings::s, LMFColoredTable::setSystem(), and HcalDetIdTransform::transform().
Referenced by LMFPnPrimDat().