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 (oracle::occi::Environment *env, oracle::occi::Connection *conn)
 
 LMFLaserPulseDat (EcalDBConnection *c)
 
 LMFLaserPulseDat (std::string color)
 
 LMFLaserPulseDat (int color)
 
 LMFLaserPulseDat (oracle::occi::Environment *env, oracle::occi::Connection *conn, std::string color)
 
 LMFLaserPulseDat (oracle::occi::Environment *env, oracle::occi::Connection *conn, int color)
 
 LMFLaserPulseDat (EcalDBConnection *c, std::string color)
 
 LMFLaserPulseDat (EcalDBConnection *c, 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 () 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 (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)
 
void fetch (const EcalLogicID &id, const Tm &tm) noexcept(false)
 
void fetch (const EcalLogicID &id, const Tm &tm, int dir) noexcept(false)
 
void fetch (const EcalLogicID &id) noexcept(false)
 
std::map< int, std::vector< float > > fetchData () noexcept(false)
 
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) 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 (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 () 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 (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) 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 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 () 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.

References init().

◆ LMFLaserPulseDat() [2/9]

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

Definition at line 5 of file LMFLaserPulseDat.cc.

References init().

◆ LMFLaserPulseDat() [3/9]

LMFLaserPulseDat::LMFLaserPulseDat ( EcalDBConnection c)

Definition at line 10 of file LMFLaserPulseDat.cc.

References init().

◆ LMFLaserPulseDat() [4/9]

LMFLaserPulseDat::LMFLaserPulseDat ( std::string  color)

Definition at line 12 of file LMFLaserPulseDat.cc.

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

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

◆ 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.

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

19  init();
20  setColor(color);
21 }
LMFColoredTable & setColor(int color)
conn
Definition: getInfo.py:9

◆ 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.

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

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

◆ 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.

References getFitMethod().

Referenced by getFitMethod().

43 { return getFitMethod(id.getLogicID()); }
int getFitMethod(EcalLogicID &id)

◆ getFitMethod() [2/2]

int LMFLaserPulseDat::getFitMethod ( int  id)

Definition at line 97 of file LMFLaserPulseDat.cc.

References LMFDat::getData().

97 { return getData(id, "FIT_METHOD"); }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:559

◆ getMTQAmplification() [1/2]

float LMFLaserPulseDat::getMTQAmplification ( EcalLogicID id)
inline

Definition at line 44 of file LMFLaserPulseDat.h.

References getMTQAmplification().

Referenced by getMTQAmplification().

44 { return getMTQAmplification(id.getLogicID()); }
float getMTQAmplification(EcalLogicID &id)

◆ getMTQAmplification() [2/2]

float LMFLaserPulseDat::getMTQAmplification ( int  id)

Definition at line 99 of file LMFLaserPulseDat.cc.

References LMFDat::getData().

99 { return getData(id, "MTQ_AMPL"); }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:559

◆ getMTQFW20() [1/2]

float LMFLaserPulseDat::getMTQFW20 ( EcalLogicID id)
inline

Definition at line 48 of file LMFLaserPulseDat.h.

References getMTQFW20().

Referenced by getMTQFW20().

48 { return getMTQFW20(id.getLogicID()); }
float getMTQFW20(EcalLogicID &id)

◆ getMTQFW20() [2/2]

float LMFLaserPulseDat::getMTQFW20 ( int  id)

Definition at line 107 of file LMFLaserPulseDat.cc.

References LMFDat::getData().

107 { return getData(id, "MTQ_FW20"); }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:559

◆ getMTQFW80() [1/2]

float LMFLaserPulseDat::getMTQFW80 ( EcalLogicID id)
inline

Definition at line 49 of file LMFLaserPulseDat.h.

References getMTQFW80().

Referenced by getMTQFW80().

49 { return getMTQFW80(id.getLogicID()); }
float getMTQFW80(EcalLogicID &id)

◆ getMTQFW80() [2/2]

float LMFLaserPulseDat::getMTQFW80 ( int  id)

Definition at line 109 of file LMFLaserPulseDat.cc.

References LMFDat::getData().

109 { return getData(id, "MTQ_FW80"); }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:559

◆ getMTQFWHM() [1/2]

float LMFLaserPulseDat::getMTQFWHM ( EcalLogicID id)
inline

Definition at line 47 of file LMFLaserPulseDat.h.

References getMTQFWHM().

Referenced by getMTQFWHM().

47 { return getMTQFWHM(id.getLogicID()); }
float getMTQFWHM(EcalLogicID &id)

◆ getMTQFWHM() [2/2]

float LMFLaserPulseDat::getMTQFWHM ( int  id)

Definition at line 105 of file LMFLaserPulseDat.cc.

References LMFDat::getData().

105 { return getData(id, "MTQ_FWHM"); }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:559

◆ getMTQRise() [1/2]

float LMFLaserPulseDat::getMTQRise ( EcalLogicID id)
inline

Definition at line 46 of file LMFLaserPulseDat.h.

References getMTQRise().

Referenced by getMTQRise().

46 { return getMTQRise(id.getLogicID()); }
float getMTQRise(EcalLogicID &id)

◆ getMTQRise() [2/2]

float LMFLaserPulseDat::getMTQRise ( int  id)

Definition at line 103 of file LMFLaserPulseDat.cc.

References LMFDat::getData().

103 { return getData(id, "MTQ_RISE"); }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:559

◆ getMTQSliding() [1/2]

float LMFLaserPulseDat::getMTQSliding ( EcalLogicID id)
inline

Definition at line 50 of file LMFLaserPulseDat.h.

References getMTQSliding().

Referenced by getMTQSliding().

50 { return getMTQSliding(id.getLogicID()); }
float getMTQSliding(EcalLogicID &id)

◆ getMTQSliding() [2/2]

float LMFLaserPulseDat::getMTQSliding ( int  id)

Definition at line 111 of file LMFLaserPulseDat.cc.

References LMFDat::getData().

111 { return getData(id, "MTQ_SLIDING"); }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:559

◆ getMTQTime() [1/2]

float LMFLaserPulseDat::getMTQTime ( EcalLogicID id)
inline

Definition at line 45 of file LMFLaserPulseDat.h.

References getMTQTime().

Referenced by getMTQTime().

45 { return getMTQTime(id.getLogicID()); }
float getMTQTime(EcalLogicID &id)

◆ getMTQTime() [2/2]

float LMFLaserPulseDat::getMTQTime ( int  id)

Definition at line 101 of file LMFLaserPulseDat.cc.

References LMFDat::getData().

101 { return getData(id, "MTQ_TIME"); }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:559

◆ getTableName()

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

Implements LMFColoredTable.

Definition at line 32 of file LMFLaserPulseDat.h.

References LMFColoredTable::getColor().

32 { return "LMF_LASER_" + getColor() + "_PULSE_DAT"; }
std::string getColor() const

◆ init()

void LMFLaserPulseDat::init ( void  )
private

Definition at line 28 of file LMFLaserPulseDat.cc.

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

Referenced by LMFLaserPulseDat().

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 }
std::string m_className
Definition: LMFUnique.h:99
std::vector< std::string > m_type
Definition: LMFDat.h:140
virtual LMFColoredTable & setSystem(int system)
std::map< std::string, unsigned int > m_keys
Definition: LMFDat.h:145

◆ isValid()

bool LMFLaserPulseDat::isValid ( void  )
overridevirtual

Reimplemented from LMFDat.

Definition at line 47 of file LMFLaserPulseDat.cc.

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

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

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 }
bool isValid() override
Definition: LMFDat.cc:287
ret
prodAgent to be discontinued
std::string getColor() const
std::string m_Error
Definition: LMFDat.h:147

◆ setFitMethod()

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

Definition at line 57 of file LMFLaserPulseDat.cc.

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

57  {
58  LMFDat::setData(id, "FIT_METHOD", v);
59  return *this;
60 }
LMFDat & setData(int logic_id, const std::vector< float > &data)
Definition: LMFDat.h:49

◆ setMTQAmplification()

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

Definition at line 62 of file LMFLaserPulseDat.cc.

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

62  {
63  LMFDat::setData(id, "MTQ_AMPL", v);
64  return *this;
65 }
LMFDat & setData(int logic_id, const std::vector< float > &data)
Definition: LMFDat.h:49

◆ setMTQFW20()

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

Definition at line 82 of file LMFLaserPulseDat.cc.

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

82  {
83  LMFDat::setData(id, "MTQ_FW20", v);
84  return *this;
85 }
LMFDat & setData(int logic_id, const std::vector< float > &data)
Definition: LMFDat.h:49

◆ setMTQFW80()

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

Definition at line 87 of file LMFLaserPulseDat.cc.

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

87  {
88  LMFDat::setData(id, "MTQ_FW80", v);
89  return *this;
90 }
LMFDat & setData(int logic_id, const std::vector< float > &data)
Definition: LMFDat.h:49

◆ setMTQFWHM()

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

Definition at line 77 of file LMFLaserPulseDat.cc.

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

77  {
78  LMFDat::setData(id, "MTQ_FWHM", v);
79  return *this;
80 }
LMFDat & setData(int logic_id, const std::vector< float > &data)
Definition: LMFDat.h:49

◆ setMTQRise()

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

Definition at line 72 of file LMFLaserPulseDat.cc.

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

72  {
73  LMFDat::setData(id, "MTQ_RISE", v);
74  return *this;
75 }
LMFDat & setData(int logic_id, const std::vector< float > &data)
Definition: LMFDat.h:49

◆ setMTQSliding()

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

Definition at line 92 of file LMFLaserPulseDat.cc.

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

92  {
93  LMFDat::setData(id, "MTQ_SLIDING", v);
94  return *this;
95 }
LMFDat & setData(int logic_id, const std::vector< float > &data)
Definition: LMFDat.h:49

◆ setMTQTime()

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

Definition at line 67 of file LMFLaserPulseDat.cc.

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

67  {
68  LMFDat::setData(id, "MTQ_TIME", v);
69  return *this;
70 }
LMFDat & setData(int logic_id, const std::vector< float > &data)
Definition: LMFDat.h:49