#include <ALFA_RDBAccess.h>
Definition at line 39 of file ALFA_RDBAccess.h.
◆ ALFA_RDBAccess()
| ALFA_RDBAccess::ALFA_RDBAccess |
( |
| ) |
|
◆ ~ALFA_RDBAccess()
| ALFA_RDBAccess::~ALFA_RDBAccess |
( |
| ) |
|
◆ ReadFiberGeometry()
| bool ALFA_RDBAccess::ReadFiberGeometry |
( |
IRDBAccessSvc * | iAccessSvc, |
|
|
const std::string & | element, |
|
|
const std::string & | tag, |
|
|
const std::string & | node ) |
|
private |
Definition at line 42 of file ALFA_RDBAccess.cxx.
43{
44 bool bRes = false;
45
47
48 std::list<FIBERDATA> listFData;
49 listFData.clear();
50
52
54 {
55 bRes = false;
56 LogStream << MSG::FATAL <<
" ERROR: Unable to retrieve " << element <<
" data from database" <<
endmsg;
57 }
58 else
59 {
62
64 {
65 FiberData.
nPotID = (*AccessSvc_iter)->getInt(
"POTID");
66 FiberData.
nLayerID = (*AccessSvc_iter)->getInt(
"COORDID");
67 FiberData.
nFiberID = (*AccessSvc_iter)->getInt(
"FIBREID");
68 FiberData.
fSlope = (*AccessSvc_iter)->getDouble(
"SLOPE");
69 FiberData.
fOffset = (*AccessSvc_iter)->getDouble(
"OFFSET");
70 FiberData.
fZPos = (*AccessSvc_iter)->getDouble(
"ZL");
71
72 listFData.push_back(FiberData);
73 }
74
75 if (!listFData.empty())
76 {
78 bRes = true;
79 }
80 }
81
82 listFData.clear();
83
84 return bRes;
85}
struct _FIBERDATA FIBERDATA
std::list< FIBERDATA > m_ListFiberData
IRDBRecordset_ptr m_fiberGeometry
virtual IRDBRecordset_ptr getRecordsetPtr(const std::string &node, const std::string &tag, const std::string &tag2node="", const std::string &connName="ATLASDD")=0
Provides access to the Recordset object containing HVS-tagged data.
RecordsVector::const_iterator const_iterator
IMessageSvc * getMessageSvc(bool quiet=false)
◆ ReadGeometry()
| bool ALFA_RDBAccess::ReadGeometry |
( |
const eRPotName | eRPName, |
|
|
eFiberType | eFType, |
|
|
const std::string & | element, |
|
|
const std::string & | tag, |
|
|
const std::string & | node ) |
Definition at line 17 of file ALFA_RDBAccess.cxx.
21{
22 bool bRes = false;
23
25
26 SmartIF<IRDBAccessSvc> iAccessSvc(Gaudi::svcLocator()->service("RDBAccessSvc"));
27
28 if (!iAccessSvc)
29 {
30 LogStream << MSG::FATAL <<
" Could not initialize RDBAccessSvc! ((RP no."<<eRPName<<
", Fiber type "<<eFType<<
")"<<
endmsg;
31
32 throw GaudiException(" Could not initalize RDBAccessSvc ", "ALFA_RDBAccess::ReadGeometry", StatusCode::FAILURE);
33 }
34
35
36
38
39 return bRes;
40}
bool ReadFiberGeometry(IRDBAccessSvc *iAccessSvc, const std::string &element, const std::string &tag, const std::string &node)
◆ m_fiberGeometry
◆ m_ListFiberData
| std::list<FIBERDATA> ALFA_RDBAccess::m_ListFiberData |
◆ m_ListODFiberData
| std::list<FIBERDATA> ALFA_RDBAccess::m_ListODFiberData |
The documentation for this class was generated from the following files: