6#include "GaudiKernel/ServiceHandle.h"
7#include "GaudiKernel/PathResolver.h"
21 : base_class(name,svc),
54 StatusCode
result = AthService::initialize();
77 std::string versionTag{}, versionNode{};
80 versionTag = detectorKey.
tag();
81 versionNode = detectorKey.
node();
84 SmartIF<IRDBAccessSvc> rdbAccess{Gaudi::svcLocator()->service(
m_geoDbTagSvc->getParamSvcName())};
87 return StatusCode::FAILURE;
89 IRDBRecordset_ptr switchSet = rdbAccess->getRecordsetPtr(
"PixelSwitches", versionTag, versionNode);
90 const IRDBRecord *switchTable = (*switchSet)[0];
91 std::string versionName(
"");
95 if (versionName==
"IBL") {
106 IRDBRecordset_ptr PixelReadout = rdbAccess->getRecordsetPtr(
"PixelReadout", versionTag, versionNode);
107 IRDBRecordset_ptr PixelStave = rdbAccess->getRecordsetPtr(
"PixelStave", versionTag, versionNode);
108 const IRDBRecord *IBLreadout = (*PixelReadout)[1];
112 if ((*PixelReadout).size()>2) {
113 const IRDBRecord *IBL3Dreadout = (*PixelReadout)[2];
116 const IRDBRecord *IBLstave = (*PixelStave)[1];
125 return StatusCode::SUCCESS;
130 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_VERBOSE(x)
Definition of the abstract IRDBAccessSvc interface.
std::shared_ptr< IRDBRecordset > IRDBRecordset_ptr
Definition of the abstract IRDBRecord interface.
Definition of the abstract IRDBRecordset interface.
This is a helper class to query the version tags from GeoModelSvc and determine the appropriate tag a...
const std::string & tag() const
Return version tag.
const std::string & node() const
Return the version node.
StatusCode setIblParameters()
ServiceHandle< IGeoDbTagSvc > m_geoDbTagSvc
bool m_disablePixMapCondDB
virtual StatusCode initialize() override
Initialize Service.
bool m_disableAllClusterSplitting
int m_LayerFEsPerHalfModule_3d
int m_LayerFEsPerHalfModule_planar
virtual StatusCode finalize() override
bool m_disableSpecialPixels
IBLParameterSvc(const std::string &name, ISvcLocator *svc)
Constructor(s)
virtual ~IBLParameterSvc()
std::vector< int > m_LayerFEsPerHalfModule
IRDBRecord is one record in the IRDBRecordset object.
virtual const std::string & getString(const std::string &fieldName) const =0
Get string field value.
virtual bool isFieldNull(const std::string &fieldName) const =0
Check if the field value is NULL.
virtual int getInt(const std::string &fieldName) const =0
Get int field value.