3 #define FETCH_PAYLOAD_CASE(TYPENAME) \ 4 if (payloadTypeName == #TYPENAME) { \ 5 payloadPtr = deserialize<TYPENAME>(payloadTypeName, data, streamerInfo); \ 21 namespace persistency {
26 std::shared_ptr<void> payloadPtr) {
326 if (payloadTypeName ==
"PhysicsTools::Calibration::Histogram3D<double,double,double,double>") {
327 payloadPtr = deserialize<PhysicsTools::Calibration::Histogram3D<double, double, double, double> >(
328 payloadTypeName,
data, streamerInfo);
331 if (payloadTypeName ==
"PhysicsTools::Calibration::Histogram2D<double,double,double>") {
332 payloadPtr = deserialize<PhysicsTools::Calibration::Histogram2D<double, double, double> >(
333 payloadTypeName,
data, streamerInfo);
336 if (payloadTypeName ==
"std::vector<unsignedlonglong,std::allocator<unsignedlonglong>>") {
337 payloadPtr = deserialize<std::vector<unsigned long long> >(payloadTypeName,
data, streamerInfo);
342 throwException(
"Payload type \"" + payloadTypeName +
"\" is unknown.",
"fetch");
343 return std::make_pair(payloadTypeName, payloadPtr);
347 std::shared_ptr<void> payloadPtr;
353 throwException(
"Payload with id " + payloadId +
" has not been found in the database.",
"fetch");
354 return fetchOne(payloadTypeName,
data, streamerInfo, payloadPtr);
std::pair< std::string, std::shared_ptr< void > > fetchOne(const std::string &payloadTypeName, const cond::Binary &data, const cond::Binary &streamerInfo, std::shared_ptr< void > payloadPtr)
#define FETCH_PAYLOAD_CASE(TYPENAME)
QGLikelihoodObject containing valid range and entries with category and histogram (mean is not used a...
The mapping between FramePosition and VFATInfo.
bool fetchPayloadData(const cond::Hash &payloadHash, std::string &payloadType, cond::Binary &payloadData, cond::Binary &streamerInfoData)
Category structure: ranges associated with QGLikelihood histograms.
Contains cabling info at the device level, including DetId, APV pair numbers, hardware addresses...
Container for CTPPS RP alignment corrections. The corrections are stored on two levels - RP and senso...
char data[epos_bytes_allocation]
QGLikelihoodSystematicsObject containing the parameters for the systematic smearing.
Collection of optical functions for two crossing angle values and various scoring planes...
std::pair< std::string, std::shared_ptr< void > > fetch(const cond::Hash &payloadId, Session &session)
void throwException(const std::string &message, const std::string &methodName)
The mapping between FramePosition and ROCInfo.