CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes | Friends
DCSPTMTemp Class Reference

#include <DCSPTMTemp.h>

Inheritance diagram for DCSPTMTemp:
IDBObject

Public Member Functions

 DCSPTMTemp ()
 
EcalLogicID getEcalLogicID () const
 
Tm getEnd () const
 
Tm getStart () const
 
std::string getTable ()
 
float getTemperature ()
 
void setEcalLogicID (const EcalLogicID &ecid)
 
void setEnd (const Tm &end)
 
void setStart (const Tm &start)
 
void setTemperature (float temp)
 
 ~DCSPTMTemp () 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 Attributes

EcalLogicID m_ecid
 
int m_ID
 
Tm m_runEnd
 
Tm m_runStart
 
float m_temp
 

Friends

class EcalCondDBInterface
 

Additional Inherited Members

- Static Public Attributes inherited from IDBObject
static int const ECALDB_NROWS = 1024
 
- Protected Member Functions inherited from IDBObject
void checkConnection () const noexcept(false)
 
- Protected Attributes inherited from IDBObject
oracle::occi::Connection * m_conn
 
oracle::occi::Environment * m_env
 

Detailed Description

Definition at line 14 of file DCSPTMTemp.h.

Constructor & Destructor Documentation

DCSPTMTemp::DCSPTMTemp ( )

Definition at line 13 of file DCSPTMTemp.cc.

13  {
14  m_conn = nullptr;
15 
16  m_runStart = Tm();
17  m_runEnd = Tm();
18  m_temp = 0.;
19 }
oracle::occi::Connection * m_conn
Definition: IDBObject.h:34
float m_temp
Definition: DCSPTMTemp.h:38
Tm m_runStart
Definition: DCSPTMTemp.h:39
Definition: Tm.h:13
DCSPTMTemp::~DCSPTMTemp ( )
override

Definition at line 21 of file DCSPTMTemp.cc.

21 {}

Member Function Documentation

EcalLogicID DCSPTMTemp::getEcalLogicID ( ) const

Definition at line 45 of file DCSPTMTemp.cc.

Referenced by getTable().

45 { return m_ecid; }
EcalLogicID m_ecid
Definition: DCSPTMTemp.h:37
Tm DCSPTMTemp::getEnd ( ) const

Definition at line 39 of file DCSPTMTemp.cc.

Referenced by getTable().

39 { return m_runEnd; }
Tm DCSPTMTemp::getStart ( ) const

Definition at line 30 of file DCSPTMTemp.cc.

Referenced by getTable().

30 { return m_runStart; }
Tm m_runStart
Definition: DCSPTMTemp.h:39
std::string DCSPTMTemp::getTable ( )
inline
float DCSPTMTemp::getTemperature ( )

Definition at line 41 of file DCSPTMTemp.cc.

Referenced by getTable().

41 { return m_temp; }
float m_temp
Definition: DCSPTMTemp.h:38
void DCSPTMTemp::setEcalLogicID ( const EcalLogicID ecid)

Definition at line 47 of file DCSPTMTemp.cc.

Referenced by DCSPTMTempList::fetchValuesForECID(), DCSPTMTempList::fetchValuesForECIDAndTime(), and getTable().

47 { m_ecid = ecid; }
EcalLogicID m_ecid
Definition: DCSPTMTemp.h:37
void DCSPTMTemp::setEnd ( const Tm end)

Definition at line 32 of file DCSPTMTemp.cc.

References end.

Referenced by DCSPTMTempList::fetchValuesForECID(), DCSPTMTempList::fetchValuesForECIDAndTime(), and getTable().

32  {
33  if (end != m_runEnd) {
34  m_ID = 0;
35  m_runEnd = end;
36  }
37 }
#define end
Definition: vmac.h:39
void DCSPTMTemp::setStart ( const Tm start)

Definition at line 23 of file DCSPTMTemp.cc.

References command_line::start.

Referenced by DCSPTMTempList::fetchValuesForECID(), DCSPTMTempList::fetchValuesForECIDAndTime(), and getTable().

23  {
24  if (start != m_runStart) {
25  m_ID = 0;
26  m_runStart = start;
27  }
28 }
Tm m_runStart
Definition: DCSPTMTemp.h:39
void DCSPTMTemp::setTemperature ( float  temp)

Friends And Related Function Documentation

friend class EcalCondDBInterface
friend

Definition at line 16 of file DCSPTMTemp.h.

Member Data Documentation

EcalLogicID DCSPTMTemp::m_ecid
private

Definition at line 37 of file DCSPTMTemp.h.

int DCSPTMTemp::m_ID
private

Definition at line 36 of file DCSPTMTemp.h.

Tm DCSPTMTemp::m_runEnd
private

Definition at line 40 of file DCSPTMTemp.h.

Tm DCSPTMTemp::m_runStart
private

Definition at line 39 of file DCSPTMTemp.h.

float DCSPTMTemp::m_temp
private

Definition at line 38 of file DCSPTMTemp.h.