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 boost::ptr_list< LMFUniquefetchAll () 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::LMFLaserPulseDat ( )

Definition at line 3 of file LMFLaserPulseDat.cc.

References init().

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

Definition at line 7 of file LMFLaserPulseDat.cc.

References init().

8  :
9  LMFColoredTable(env, conn) {
10  init();
11 }
LMFLaserPulseDat::LMFLaserPulseDat ( EcalDBConnection c)

Definition at line 13 of file LMFLaserPulseDat.cc.

References init().

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

Definition at line 17 of file LMFLaserPulseDat.cc.

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

17  :
18  LMFColoredTable() {
19  init();
20  setColor(color);
21 }
LMFColoredTable & setColor(int 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().

25  :
26  LMFColoredTable(env, conn) {
27  init();
28  setColor(color);
29 }
LMFColoredTable & setColor(int 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().

31  :
32  LMFColoredTable(c) {
33  init();
34  setColor(color);
35 }
LMFColoredTable & setColor(int color)
LMFLaserPulseDat::LMFLaserPulseDat ( EcalDBConnection c,
int  color 
)
LMFLaserPulseDat::~LMFLaserPulseDat ( )
inlineoverride

Definition at line 33 of file LMFLaserPulseDat.h.

33 {}

Member Function Documentation

int LMFLaserPulseDat::getFitMethod ( EcalLogicID id)
inline

Definition at line 48 of file LMFLaserPulseDat.h.

References getFitMethod().

Referenced by getFitMethod(), and getMTQSliding().

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

Definition at line 106 of file LMFLaserPulseDat.cc.

References LMFDat::getData().

106  {
107  return getData(id, "FIT_METHOD");
108 }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:636
float LMFLaserPulseDat::getMTQAmplification ( EcalLogicID id)
inline

Definition at line 49 of file LMFLaserPulseDat.h.

Referenced by getMTQSliding().

49  {
50  return getMTQAmplification(id.getLogicID());
51  }
float getMTQAmplification(EcalLogicID &id)
float LMFLaserPulseDat::getMTQAmplification ( int  id)

Definition at line 110 of file LMFLaserPulseDat.cc.

References LMFDat::getData().

110  {
111  return getData(id, "MTQ_AMPL");
112 }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:636
float LMFLaserPulseDat::getMTQFW20 ( EcalLogicID id)
inline

Definition at line 55 of file LMFLaserPulseDat.h.

References getMTQFW20().

Referenced by getMTQFW20(), and getMTQSliding().

55 { return getMTQFW20(id.getLogicID()); }
float getMTQFW20(EcalLogicID &id)
float LMFLaserPulseDat::getMTQFW20 ( int  id)

Definition at line 126 of file LMFLaserPulseDat.cc.

References LMFDat::getData().

126  {
127  return getData(id, "MTQ_FW20");
128 }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:636
float LMFLaserPulseDat::getMTQFW80 ( EcalLogicID id)
inline

Definition at line 56 of file LMFLaserPulseDat.h.

References getMTQFW80().

Referenced by getMTQFW80(), and getMTQSliding().

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

Definition at line 130 of file LMFLaserPulseDat.cc.

References LMFDat::getData().

130  {
131  return getData(id, "MTQ_FW80");
132 }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:636
float LMFLaserPulseDat::getMTQFWHM ( EcalLogicID id)
inline

Definition at line 54 of file LMFLaserPulseDat.h.

References getMTQFWHM().

Referenced by getMTQFWHM(), and getMTQSliding().

54 { return getMTQFWHM(id.getLogicID()); }
float getMTQFWHM(EcalLogicID &id)
float LMFLaserPulseDat::getMTQFWHM ( int  id)

Definition at line 122 of file LMFLaserPulseDat.cc.

References LMFDat::getData().

122  {
123  return getData(id, "MTQ_FWHM");
124 }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:636
float LMFLaserPulseDat::getMTQRise ( EcalLogicID id)
inline

Definition at line 53 of file LMFLaserPulseDat.h.

References getMTQRise().

Referenced by getMTQRise(), and getMTQSliding().

53 { return getMTQRise(id.getLogicID()); }
float getMTQRise(EcalLogicID &id)
float LMFLaserPulseDat::getMTQRise ( int  id)

Definition at line 118 of file LMFLaserPulseDat.cc.

References LMFDat::getData().

118  {
119  return getData(id, "MTQ_RISE");
120 }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:636
float LMFLaserPulseDat::getMTQSliding ( EcalLogicID id)
inline

Definition at line 57 of file LMFLaserPulseDat.h.

References getFitMethod(), getMTQAmplification(), getMTQFW20(), getMTQFW80(), getMTQFWHM(), getMTQRise(), getMTQTime(), init(), and isValid().

57  {
58  return getMTQSliding(id.getLogicID());
59  }
float getMTQSliding(EcalLogicID &id)
float LMFLaserPulseDat::getMTQSliding ( int  id)

Definition at line 134 of file LMFLaserPulseDat.cc.

References LMFDat::getData().

134  {
135  return getData(id, "MTQ_SLIDING");
136 }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:636
float LMFLaserPulseDat::getMTQTime ( EcalLogicID id)
inline

Definition at line 52 of file LMFLaserPulseDat.h.

References getMTQTime().

Referenced by getMTQSliding(), and getMTQTime().

52 { return getMTQTime(id.getLogicID()); }
float getMTQTime(EcalLogicID &id)
float LMFLaserPulseDat::getMTQTime ( int  id)

Definition at line 114 of file LMFLaserPulseDat.cc.

References LMFDat::getData().

114  {
115  return getData(id, "MTQ_TIME");
116 }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:636
std::string LMFLaserPulseDat::getTableName ( ) const
inlineoverridevirtual

Implements LMFColoredTable.

Definition at line 35 of file LMFLaserPulseDat.h.

References LMFColoredTable::getColor(), setFitMethod(), setMTQAmplification(), setMTQFW20(), setMTQFW80(), setMTQFWHM(), setMTQRise(), setMTQSliding(), setMTQTime(), and findQualityFiles::v.

35  {
36  return "LMF_LASER_" + getColor() + "_PULSE_DAT";
37  }
std::string getColor() const
void LMFLaserPulseDat::init ( void  )
private

Definition at line 37 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 getMTQSliding(), and LMFLaserPulseDat().

37  {
38  m_className = "LMFLaserPulseDat";
39  m_keys["FIT_METHOD"] = 0;
40  m_keys["MTQ_AMPL"] = 1;
41  m_keys["MTQ_TIME"] = 2;
42  m_keys["MTQ_RISE"] = 3;
43  m_keys["MTQ_FWHM"] = 4;
44  m_keys["MTQ_FW20"] = 5;
45  m_keys["MTQ_FW80"] = 6;
46  m_keys["MTQ_SLIDING"]= 7;
47  m_keys["VMIN"] = 8;
48  m_keys["VMAX"] = 9;
49  for (int i = 0; i < 10; i++) {
50  m_type.push_back("NUMBER");
51  }
52  setSystem("LASER");
53  m_color = 0;
54 }
std::string m_className
Definition: LMFUnique.h:98
std::vector< std::string > m_type
Definition: LMFDat.h:149
virtual LMFColoredTable & setSystem(int system)
std::map< std::string, unsigned int > m_keys
Definition: LMFDat.h:154
bool LMFLaserPulseDat::isValid ( void  )
overridevirtual

Reimplemented from LMFDat.

Definition at line 56 of file LMFLaserPulseDat.cc.

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

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

56  {
57  bool ret = true;
58  ret = LMFDat::isValid();
59  if ((getColor() != "BLUE") && (getColor() != "IR")) {
60  m_Error += " Color not properly set [" + getColor() + "]";
61  ret = false;
62  }
63  return ret;
64 }
bool isValid() override
Definition: LMFDat.cc:339
std::string getColor() const
std::string m_Error
Definition: LMFDat.h:156
LMFLaserPulseDat & LMFLaserPulseDat::setFitMethod ( EcalLogicID id,
int  v 
)

Definition at line 66 of file LMFLaserPulseDat.cc.

References LMFDat::setData().

Referenced by getTableName().

66  {
67  LMFDat::setData(id, "FIT_METHOD", v);
68  return *this;
69 }
LMFDat & setData(int logic_id, const std::vector< float > &data)
Definition: LMFDat.h:55
LMFLaserPulseDat & LMFLaserPulseDat::setMTQAmplification ( EcalLogicID id,
float  v 
)

Definition at line 71 of file LMFLaserPulseDat.cc.

References LMFDat::setData().

Referenced by getTableName().

71  {
72  LMFDat::setData(id, "MTQ_AMPL", v);
73  return *this;
74 }
LMFDat & setData(int logic_id, const std::vector< float > &data)
Definition: LMFDat.h:55
LMFLaserPulseDat & LMFLaserPulseDat::setMTQFW20 ( EcalLogicID id,
float  v 
)

Definition at line 91 of file LMFLaserPulseDat.cc.

References LMFDat::setData().

Referenced by getTableName().

91  {
92  LMFDat::setData(id, "MTQ_FW20", v);
93  return *this;
94 }
LMFDat & setData(int logic_id, const std::vector< float > &data)
Definition: LMFDat.h:55
LMFLaserPulseDat & LMFLaserPulseDat::setMTQFW80 ( EcalLogicID id,
float  v 
)

Definition at line 96 of file LMFLaserPulseDat.cc.

References LMFDat::setData().

Referenced by getTableName().

96  {
97  LMFDat::setData(id, "MTQ_FW80", v);
98  return *this;
99 }
LMFDat & setData(int logic_id, const std::vector< float > &data)
Definition: LMFDat.h:55
LMFLaserPulseDat & LMFLaserPulseDat::setMTQFWHM ( EcalLogicID id,
float  v 
)

Definition at line 86 of file LMFLaserPulseDat.cc.

References LMFDat::setData().

Referenced by getTableName().

86  {
87  LMFDat::setData(id, "MTQ_FWHM", v);
88  return *this;
89 }
LMFDat & setData(int logic_id, const std::vector< float > &data)
Definition: LMFDat.h:55
LMFLaserPulseDat & LMFLaserPulseDat::setMTQRise ( EcalLogicID id,
float  v 
)

Definition at line 81 of file LMFLaserPulseDat.cc.

References LMFDat::setData().

Referenced by getTableName().

81  {
82  LMFDat::setData(id, "MTQ_RISE", v);
83  return *this;
84 }
LMFDat & setData(int logic_id, const std::vector< float > &data)
Definition: LMFDat.h:55
LMFLaserPulseDat & LMFLaserPulseDat::setMTQSliding ( EcalLogicID id,
float  v 
)

Definition at line 101 of file LMFLaserPulseDat.cc.

References LMFDat::setData().

Referenced by getTableName().

101  {
102  LMFDat::setData(id, "MTQ_SLIDING", v);
103  return *this;
104 }
LMFDat & setData(int logic_id, const std::vector< float > &data)
Definition: LMFDat.h:55
LMFLaserPulseDat & LMFLaserPulseDat::setMTQTime ( EcalLogicID id,
float  v 
)

Definition at line 76 of file LMFLaserPulseDat.cc.

References LMFDat::setData().

Referenced by getTableName().

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