CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions
LMFLaserPulseDat Class Reference

#include <LMFLaserPulseDat.h>

Inheritance diagram for LMFLaserPulseDat:
LMFColoredTable LMFDat LMFUnique IUniqueDBObject IDBObject

Public Member Functions

int getFitMethod (EcalLogicID &id)
 
int getFitMethod (int id)
 
float getMTQAmplification (EcalLogicID &id)
 
float getMTQAmplification (int id)
 
float getMTQFW20 (EcalLogicID &id)
 
float getMTQFW20 (int id)
 
float getMTQFW80 (EcalLogicID &id)
 
float getMTQFW80 (int id)
 
float getMTQFWHM (EcalLogicID &id)
 
float getMTQFWHM (int id)
 
float getMTQRise (EcalLogicID &id)
 
float getMTQRise (int id)
 
float getMTQSliding (EcalLogicID &id)
 
float getMTQSliding (int id)
 
float getMTQTime (EcalLogicID &id)
 
float getMTQTime (int id)
 
std::string getTableName () const override
 
bool isValid () override
 
 LMFLaserPulseDat ()
 
 LMFLaserPulseDat (EcalDBConnection *c)
 
 LMFLaserPulseDat (EcalDBConnection *c, int color)
 
 LMFLaserPulseDat (EcalDBConnection *c, std::string color)
 
 LMFLaserPulseDat (int color)
 
 LMFLaserPulseDat (oracle::occi::Environment *env, oracle::occi::Connection *conn)
 
 LMFLaserPulseDat (oracle::occi::Environment *env, oracle::occi::Connection *conn, int color)
 
 LMFLaserPulseDat (oracle::occi::Environment *env, oracle::occi::Connection *conn, std::string color)
 
 LMFLaserPulseDat (std::string 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 () 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)
 
LMFColoredTablesetColor (int color)
 
LMFColoredTablesetColor (std::string color)
 
virtual LMFColoredTablesetSystem (int system)
 
virtual LMFColoredTablesetSystem (std::string s)
 
LMFColoredTablesetVersions (EcalLogicID &id, int vmin, int vmax)
 
LMFColoredTablesetVmax (EcalLogicID &id, int v)
 
LMFColoredTablesetVmin (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)
 
LMFDatsetData (const EcalLogicID &logic_id, const std::string &key, float v)
 
LMFDatsetData (const EcalLogicID &logic_id, const std::vector< float > &data)
 
LMFDatsetData (int logic_id, const std::vector< float > &data)
 
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 () override
 
- Public Member Functions inherited from LMFUnique
void attach (std::string name, LMFUnique *u)
 
void debug ()
 
virtual bool exists ()
 
virtual std::list< std::unique_ptr< 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
 
LMFUniquesetInt (std::string key, int value)
 
LMFUniquesetString (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
 

Detailed Description

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

Definition at line 19 of file LMFLaserPulseDat.h.

Constructor & Destructor Documentation

◆ LMFLaserPulseDat() [1/9]

LMFLaserPulseDat::LMFLaserPulseDat ( )

Definition at line 3 of file LMFLaserPulseDat.cc.

3 : LMFColoredTable() { init(); }

References init().

◆ LMFLaserPulseDat() [2/9]

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

Definition at line 5 of file LMFLaserPulseDat.cc.

7  init();
8 }

References init().

◆ LMFLaserPulseDat() [3/9]

LMFLaserPulseDat::LMFLaserPulseDat ( EcalDBConnection c)

Definition at line 10 of file LMFLaserPulseDat.cc.

10 : LMFColoredTable(c) { init(); }

References init().

◆ LMFLaserPulseDat() [4/9]

LMFLaserPulseDat::LMFLaserPulseDat ( std::string  color)

Definition at line 12 of file LMFLaserPulseDat.cc.

12  : LMFColoredTable() {
13  init();
14  setColor(color);
15 }

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

◆ LMFLaserPulseDat() [5/9]

LMFLaserPulseDat::LMFLaserPulseDat ( int  color)

◆ LMFLaserPulseDat() [6/9]

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

Definition at line 17 of file LMFLaserPulseDat.cc.

19  init();
20  setColor(color);
21 }

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

◆ LMFLaserPulseDat() [7/9]

LMFLaserPulseDat::LMFLaserPulseDat ( oracle::occi::Environment *  env,
oracle::occi::Connection *  conn,
int  color 
)

◆ LMFLaserPulseDat() [8/9]

LMFLaserPulseDat::LMFLaserPulseDat ( EcalDBConnection c,
std::string  color 
)

Definition at line 23 of file LMFLaserPulseDat.cc.

23  : LMFColoredTable(c) {
24  init();
25  setColor(color);
26 }

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

◆ LMFLaserPulseDat() [9/9]

LMFLaserPulseDat::LMFLaserPulseDat ( EcalDBConnection c,
int  color 
)

◆ ~LMFLaserPulseDat()

LMFLaserPulseDat::~LMFLaserPulseDat ( )
inlineoverride

Definition at line 30 of file LMFLaserPulseDat.h.

30 {}

Member Function Documentation

◆ getFitMethod() [1/2]

int LMFLaserPulseDat::getFitMethod ( EcalLogicID id)
inline

Definition at line 43 of file LMFLaserPulseDat.h.

43 { return getFitMethod(id.getLogicID()); }

References getFitMethod().

Referenced by getFitMethod().

◆ getFitMethod() [2/2]

int LMFLaserPulseDat::getFitMethod ( int  id)

Definition at line 97 of file LMFLaserPulseDat.cc.

97 { return getData(id, "FIT_METHOD"); }

References LMFDat::getData().

◆ getMTQAmplification() [1/2]

float LMFLaserPulseDat::getMTQAmplification ( EcalLogicID id)
inline

Definition at line 44 of file LMFLaserPulseDat.h.

44 { return getMTQAmplification(id.getLogicID()); }

References getMTQAmplification().

Referenced by getMTQAmplification().

◆ getMTQAmplification() [2/2]

float LMFLaserPulseDat::getMTQAmplification ( int  id)

Definition at line 99 of file LMFLaserPulseDat.cc.

99 { return getData(id, "MTQ_AMPL"); }

References LMFDat::getData().

◆ getMTQFW20() [1/2]

float LMFLaserPulseDat::getMTQFW20 ( EcalLogicID id)
inline

Definition at line 48 of file LMFLaserPulseDat.h.

48 { return getMTQFW20(id.getLogicID()); }

References getMTQFW20().

Referenced by getMTQFW20().

◆ getMTQFW20() [2/2]

float LMFLaserPulseDat::getMTQFW20 ( int  id)

Definition at line 107 of file LMFLaserPulseDat.cc.

107 { return getData(id, "MTQ_FW20"); }

References LMFDat::getData().

◆ getMTQFW80() [1/2]

float LMFLaserPulseDat::getMTQFW80 ( EcalLogicID id)
inline

Definition at line 49 of file LMFLaserPulseDat.h.

49 { return getMTQFW80(id.getLogicID()); }

References getMTQFW80().

Referenced by getMTQFW80().

◆ getMTQFW80() [2/2]

float LMFLaserPulseDat::getMTQFW80 ( int  id)

Definition at line 109 of file LMFLaserPulseDat.cc.

109 { return getData(id, "MTQ_FW80"); }

References LMFDat::getData().

◆ getMTQFWHM() [1/2]

float LMFLaserPulseDat::getMTQFWHM ( EcalLogicID id)
inline

Definition at line 47 of file LMFLaserPulseDat.h.

47 { return getMTQFWHM(id.getLogicID()); }

References getMTQFWHM().

Referenced by getMTQFWHM().

◆ getMTQFWHM() [2/2]

float LMFLaserPulseDat::getMTQFWHM ( int  id)

Definition at line 105 of file LMFLaserPulseDat.cc.

105 { return getData(id, "MTQ_FWHM"); }

References LMFDat::getData().

◆ getMTQRise() [1/2]

float LMFLaserPulseDat::getMTQRise ( EcalLogicID id)
inline

Definition at line 46 of file LMFLaserPulseDat.h.

46 { return getMTQRise(id.getLogicID()); }

References getMTQRise().

Referenced by getMTQRise().

◆ getMTQRise() [2/2]

float LMFLaserPulseDat::getMTQRise ( int  id)

Definition at line 103 of file LMFLaserPulseDat.cc.

103 { return getData(id, "MTQ_RISE"); }

References LMFDat::getData().

◆ getMTQSliding() [1/2]

float LMFLaserPulseDat::getMTQSliding ( EcalLogicID id)
inline

Definition at line 50 of file LMFLaserPulseDat.h.

50 { return getMTQSliding(id.getLogicID()); }

References getMTQSliding().

Referenced by getMTQSliding().

◆ getMTQSliding() [2/2]

float LMFLaserPulseDat::getMTQSliding ( int  id)

Definition at line 111 of file LMFLaserPulseDat.cc.

111 { return getData(id, "MTQ_SLIDING"); }

References LMFDat::getData().

◆ getMTQTime() [1/2]

float LMFLaserPulseDat::getMTQTime ( EcalLogicID id)
inline

Definition at line 45 of file LMFLaserPulseDat.h.

45 { return getMTQTime(id.getLogicID()); }

References getMTQTime().

Referenced by getMTQTime().

◆ getMTQTime() [2/2]

float LMFLaserPulseDat::getMTQTime ( int  id)

Definition at line 101 of file LMFLaserPulseDat.cc.

101 { return getData(id, "MTQ_TIME"); }

References LMFDat::getData().

◆ getTableName()

std::string LMFLaserPulseDat::getTableName ( ) const
inlineoverridevirtual

Implements LMFColoredTable.

Definition at line 32 of file LMFLaserPulseDat.h.

32 { return "LMF_LASER_" + getColor() + "_PULSE_DAT"; }

References LMFColoredTable::getColor().

◆ init()

void LMFLaserPulseDat::init ( void  )
private

Definition at line 28 of file LMFLaserPulseDat.cc.

28  {
29  m_className = "LMFLaserPulseDat";
30  m_keys["FIT_METHOD"] = 0;
31  m_keys["MTQ_AMPL"] = 1;
32  m_keys["MTQ_TIME"] = 2;
33  m_keys["MTQ_RISE"] = 3;
34  m_keys["MTQ_FWHM"] = 4;
35  m_keys["MTQ_FW20"] = 5;
36  m_keys["MTQ_FW80"] = 6;
37  m_keys["MTQ_SLIDING"] = 7;
38  m_keys["VMIN"] = 8;
39  m_keys["VMAX"] = 9;
40  for (int i = 0; i < 10; i++) {
41  m_type.push_back("NUMBER");
42  }
43  setSystem("LASER");
44  m_color = 0;
45 }

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

Referenced by LMFLaserPulseDat().

◆ isValid()

bool LMFLaserPulseDat::isValid ( void  )
overridevirtual

Reimplemented from LMFDat.

Definition at line 47 of file LMFLaserPulseDat.cc.

47  {
48  bool ret = true;
49  ret = LMFDat::isValid();
50  if ((getColor() != "BLUE") && (getColor() != "IR")) {
51  m_Error += " Color not properly set [" + getColor() + "]";
52  ret = false;
53  }
54  return ret;
55 }

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

Referenced by ntupleDataFormat._Object::_checkIsValid(), and core.AutoHandle.AutoHandle::ReallyLoad().

◆ setFitMethod()

LMFLaserPulseDat & LMFLaserPulseDat::setFitMethod ( EcalLogicID id,
int  v 
)

Definition at line 57 of file LMFLaserPulseDat.cc.

57  {
58  LMFDat::setData(id, "FIT_METHOD", v);
59  return *this;
60 }

References LMFDat::setData(), and findQualityFiles::v.

◆ setMTQAmplification()

LMFLaserPulseDat & LMFLaserPulseDat::setMTQAmplification ( EcalLogicID id,
float  v 
)

Definition at line 62 of file LMFLaserPulseDat.cc.

62  {
63  LMFDat::setData(id, "MTQ_AMPL", v);
64  return *this;
65 }

References LMFDat::setData(), and findQualityFiles::v.

◆ setMTQFW20()

LMFLaserPulseDat & LMFLaserPulseDat::setMTQFW20 ( EcalLogicID id,
float  v 
)

Definition at line 82 of file LMFLaserPulseDat.cc.

82  {
83  LMFDat::setData(id, "MTQ_FW20", v);
84  return *this;
85 }

References LMFDat::setData(), and findQualityFiles::v.

◆ setMTQFW80()

LMFLaserPulseDat & LMFLaserPulseDat::setMTQFW80 ( EcalLogicID id,
float  v 
)

Definition at line 87 of file LMFLaserPulseDat.cc.

87  {
88  LMFDat::setData(id, "MTQ_FW80", v);
89  return *this;
90 }

References LMFDat::setData(), and findQualityFiles::v.

◆ setMTQFWHM()

LMFLaserPulseDat & LMFLaserPulseDat::setMTQFWHM ( EcalLogicID id,
float  v 
)

Definition at line 77 of file LMFLaserPulseDat.cc.

77  {
78  LMFDat::setData(id, "MTQ_FWHM", v);
79  return *this;
80 }

References LMFDat::setData(), and findQualityFiles::v.

◆ setMTQRise()

LMFLaserPulseDat & LMFLaserPulseDat::setMTQRise ( EcalLogicID id,
float  v 
)

Definition at line 72 of file LMFLaserPulseDat.cc.

72  {
73  LMFDat::setData(id, "MTQ_RISE", v);
74  return *this;
75 }

References LMFDat::setData(), and findQualityFiles::v.

◆ setMTQSliding()

LMFLaserPulseDat & LMFLaserPulseDat::setMTQSliding ( EcalLogicID id,
float  v 
)

Definition at line 92 of file LMFLaserPulseDat.cc.

92  {
93  LMFDat::setData(id, "MTQ_SLIDING", v);
94  return *this;
95 }

References LMFDat::setData(), and findQualityFiles::v.

◆ setMTQTime()

LMFLaserPulseDat & LMFLaserPulseDat::setMTQTime ( EcalLogicID id,
float  v 
)

Definition at line 67 of file LMFLaserPulseDat.cc.

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

References LMFDat::setData(), and findQualityFiles::v.

runTheMatrix.ret
ret
prodAgent to be discontinued
Definition: runTheMatrix.py:373
LMFLaserPulseDat::getMTQRise
float getMTQRise(EcalLogicID &id)
Definition: LMFLaserPulseDat.h:46
LMFDat::getData
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:559
mps_fire.i
i
Definition: mps_fire.py:428
LMFColoredTable::setSystem
virtual LMFColoredTable & setSystem(int system)
Definition: LMFColoredTable.h:40
LMFLaserPulseDat::getMTQSliding
float getMTQSliding(EcalLogicID &id)
Definition: LMFLaserPulseDat.h:50
SiStripCommissioningClient_cfg.conn
conn
Definition: SiStripCommissioningClient_cfg.py:5
LMFLaserPulseDat::getFitMethod
int getFitMethod(EcalLogicID &id)
Definition: LMFLaserPulseDat.h:43
LMFUnique::m_className
std::string m_className
Definition: LMFUnique.h:99
findQualityFiles.v
v
Definition: findQualityFiles.py:179
LMFColoredTable::setColor
LMFColoredTable & setColor(int color)
Definition: LMFColoredTable.h:32
LMFLaserPulseDat::getMTQFWHM
float getMTQFWHM(EcalLogicID &id)
Definition: LMFLaserPulseDat.h:47
LMFLaserPulseDat::getMTQFW80
float getMTQFW80(EcalLogicID &id)
Definition: LMFLaserPulseDat.h:49
LMFDat::isValid
bool isValid() override
Definition: LMFDat.cc:287
LMFColoredTable::LMFColoredTable
LMFColoredTable()
Definition: LMFColoredTable.cc:3
LMFLaserPulseDat::getMTQTime
float getMTQTime(EcalLogicID &id)
Definition: LMFLaserPulseDat.h:45
LMFLaserPulseDat::init
void init()
Definition: LMFLaserPulseDat.cc:28
LMFDat::setData
LMFDat & setData(int logic_id, const std::vector< float > &data)
Definition: LMFDat.h:49
web.browse_db.env
env
Definition: browse_db.py:18
LMFDat::m_keys
std::map< std::string, unsigned int > m_keys
Definition: LMFDat.h:145
HltBtagPostValidation_cff.c
c
Definition: HltBtagPostValidation_cff.py:31
LMFColoredTable::m_color
int m_color
Definition: LMFColoredTable.h:70
LMFLaserPulseDat::getMTQFW20
float getMTQFW20(EcalLogicID &id)
Definition: LMFLaserPulseDat.h:48
LMFColoredTable::getColor
std::string getColor() const
Definition: LMFColoredTable.cc:39
LMFLaserPulseDat::getMTQAmplification
float getMTQAmplification(EcalLogicID &id)
Definition: LMFLaserPulseDat.h:44
LMFDat::m_type
std::vector< std::string > m_type
Definition: LMFDat.h:140
LMFDat::m_Error
std::string m_Error
Definition: LMFDat.h:147