Skip to content

Commit cd087a8

Browse files
tklemenzshahor02
authored andcommitted
TPC CDBInterface: enable fetching CalPad from any path in CCDB
1 parent 6f41c51 commit cd087a8

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

Detectors/TPC/base/include/TPCBase/CDBInterface.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,12 @@ class CDBInterface
119119
/// \return gain map object
120120
const CalPad& getGainMap();
121121

122+
/// Return any CalPad object
123+
///
124+
/// The function returns the CalPad object stored at the given path in the CCDB
125+
/// \return CalPad object
126+
const CalPad& getCalPad(const std::string_view path);
127+
122128
/// Return the Detector parameters
123129
///
124130
/// The function checks if the object is already loaded and returns it

Detectors/TPC/base/src/CDBInterface.cxx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,12 @@ const CalPad& CDBInterface::getGainMap()
115115
return *mGainMap;
116116
}
117117

118+
//______________________________________________________________________________
119+
const CalPad& CDBInterface::getCalPad(const std::string_view path)
120+
{
121+
return getObjectFromCDB<CalPad>(path.data());
122+
}
123+
118124
//______________________________________________________________________________
119125
const ParameterDetector& CDBInterface::getParameterDetector()
120126
{

0 commit comments

Comments
 (0)