Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-06-06 07:38:15

0001 //
0002 
0003 #define FETCH_PAYLOAD_CASE(TYPENAME)                                         \
0004   if (payloadTypeName == #TYPENAME) {                                        \
0005     payloadPtr = deserialize<TYPENAME>(payloadTypeName, data, streamerInfo); \
0006     match = true;                                                            \
0007   }
0008 
0009 #include "CondCore/CondDB/interface/Serialization.h"
0010 
0011 #include "CondCore/Utilities/interface/CondDBImport.h"
0012 #include "CondCore/CondDB/interface/Exception.h"
0013 #include "CondFormats.h"
0014 
0015 //
0016 #include <memory>
0017 #include <sstream>
0018 
0019 namespace cond {
0020 
0021   namespace persistency {
0022 
0023     std::pair<std::string, std::shared_ptr<void> > fetchOne(const std::string &payloadTypeName,
0024                                                             const cond::Binary &data,
0025                                                             const cond::Binary &streamerInfo,
0026                                                             std::shared_ptr<void> payloadPtr) {
0027       bool match = false;
0028       FETCH_PAYLOAD_CASE(std::string)
0029       FETCH_PAYLOAD_CASE(std::vector<unsigned long long>)
0030       FETCH_PAYLOAD_CASE(AlCaRecoTriggerBits)
0031       FETCH_PAYLOAD_CASE(AlignmentErrors)
0032       FETCH_PAYLOAD_CASE(AlignmentErrorsExtended)
0033       FETCH_PAYLOAD_CASE(AlignmentSurfaceDeformations)
0034       FETCH_PAYLOAD_CASE(Alignments)
0035       FETCH_PAYLOAD_CASE(AlignPCLThresholds)
0036       FETCH_PAYLOAD_CASE(AlignPCLThresholdsHG)
0037       FETCH_PAYLOAD_CASE(BeamSpotObjects)
0038       FETCH_PAYLOAD_CASE(BeamSpotOnlineObjects)
0039       FETCH_PAYLOAD_CASE(CSCBadChambers)
0040       FETCH_PAYLOAD_CASE(CSCBadStrips)
0041       FETCH_PAYLOAD_CASE(CSCBadWires)
0042       FETCH_PAYLOAD_CASE(CSCChamberIndex)
0043       FETCH_PAYLOAD_CASE(CSCChamberMap)
0044       FETCH_PAYLOAD_CASE(CSCChamberTimeCorrections)
0045       FETCH_PAYLOAD_CASE(CSCCrateMap)
0046       FETCH_PAYLOAD_CASE(CSCDBChipSpeedCorrection)
0047       FETCH_PAYLOAD_CASE(CSCDBCrosstalk)
0048       FETCH_PAYLOAD_CASE(CSCDBGains)
0049       FETCH_PAYLOAD_CASE(CSCDBGasGainCorrection)
0050       FETCH_PAYLOAD_CASE(CSCDBL1TPParameters)
0051       FETCH_PAYLOAD_CASE(CSCDBNoiseMatrix)
0052       FETCH_PAYLOAD_CASE(CSCDBPedestals)
0053       FETCH_PAYLOAD_CASE(CSCDDUMap)
0054       FETCH_PAYLOAD_CASE(CSCL1TPParameters)
0055       FETCH_PAYLOAD_CASE(CSCRecoDigiParameters)
0056       FETCH_PAYLOAD_CASE(CTPPSPixelDAQMapping)
0057       FETCH_PAYLOAD_CASE(CTPPSPixelAnalysisMask)
0058       FETCH_PAYLOAD_CASE(CTPPSPixelGainCalibrations)
0059       FETCH_PAYLOAD_CASE(CTPPSRPAlignmentCorrectionsData)
0060       FETCH_PAYLOAD_CASE(PPSAlignmentConfiguration)
0061       FETCH_PAYLOAD_CASE(PPSAssociationCuts)
0062       FETCH_PAYLOAD_CASE(LHCOpticalFunctionsSetCollection)
0063       FETCH_PAYLOAD_CASE(CastorChannelQuality)
0064       FETCH_PAYLOAD_CASE(CastorElectronicsMap)
0065       FETCH_PAYLOAD_CASE(CastorGainWidths)
0066       FETCH_PAYLOAD_CASE(CastorGains)
0067       FETCH_PAYLOAD_CASE(CastorPedestalWidths)
0068       FETCH_PAYLOAD_CASE(CastorPedestals)
0069       FETCH_PAYLOAD_CASE(CastorQIEData)
0070       FETCH_PAYLOAD_CASE(CastorRecoParams)
0071       FETCH_PAYLOAD_CASE(CastorSaturationCorrs)
0072       FETCH_PAYLOAD_CASE(CentralityTable)
0073       FETCH_PAYLOAD_CASE(DTCCBConfig)
0074       FETCH_PAYLOAD_CASE(DTDeadFlag)
0075       FETCH_PAYLOAD_CASE(DTHVStatus)
0076       FETCH_PAYLOAD_CASE(DTKeyedConfig)
0077       FETCH_PAYLOAD_CASE(DTLVStatus)
0078       FETCH_PAYLOAD_CASE(DTMtime)
0079       FETCH_PAYLOAD_CASE(DTReadOutMapping)
0080       FETCH_PAYLOAD_CASE(DTRecoConditions)
0081       FETCH_PAYLOAD_CASE(DTRecoUncertainties)
0082       FETCH_PAYLOAD_CASE(DTStatusFlag)
0083       FETCH_PAYLOAD_CASE(DTT0)
0084       FETCH_PAYLOAD_CASE(DTTPGParameters)
0085       FETCH_PAYLOAD_CASE(DTTtrig)
0086       FETCH_PAYLOAD_CASE(DropBoxMetadata)
0087       FETCH_PAYLOAD_CASE(ESChannelStatus)
0088       FETCH_PAYLOAD_CASE(ESEEIntercalibConstants)
0089       FETCH_PAYLOAD_CASE(ESFloatCondObjectContainer)
0090       FETCH_PAYLOAD_CASE(ESGain)
0091       FETCH_PAYLOAD_CASE(ESMIPToGeVConstant)
0092       FETCH_PAYLOAD_CASE(ESMissingEnergyCalibration)
0093       FETCH_PAYLOAD_CASE(ESPedestals)
0094       FETCH_PAYLOAD_CASE(ESRecHitRatioCuts)
0095       FETCH_PAYLOAD_CASE(ESThresholds)
0096       FETCH_PAYLOAD_CASE(ESTimeSampleWeights)
0097       FETCH_PAYLOAD_CASE(EcalADCToGeVConstant)
0098       FETCH_PAYLOAD_CASE(EcalChannelStatus)
0099       FETCH_PAYLOAD_CASE(EcalClusterEnergyCorrectionObjectSpecificParameters)
0100       FETCH_PAYLOAD_CASE(EcalDAQTowerStatus)
0101       FETCH_PAYLOAD_CASE(EcalDCSTowerStatus)
0102       FETCH_PAYLOAD_CASE(EcalDQMChannelStatus)
0103       FETCH_PAYLOAD_CASE(EcalDQMTowerStatus)
0104       FETCH_PAYLOAD_CASE(EcalFloatCondObjectContainer)
0105       FETCH_PAYLOAD_CASE(EcalFunParams)
0106       FETCH_PAYLOAD_CASE(EcalGainRatios)
0107       FETCH_PAYLOAD_CASE(EcalLaserAPDPNRatios)
0108       FETCH_PAYLOAD_CASE(EcalMappingElectronics)
0109       FETCH_PAYLOAD_CASE(EcalCondObjectContainer<EcalMappingElement>)
0110       FETCH_PAYLOAD_CASE(EcalCondObjectContainer<EcalPedestal>)
0111       FETCH_PAYLOAD_CASE(EcalCondObjectContainer<EcalTPGLinearizationConstant>)
0112       FETCH_PAYLOAD_CASE(EcalCondObjectContainer<EcalDQMStatusCode>)
0113       FETCH_PAYLOAD_CASE(EcalCondObjectContainer<EcalTPGCrystalStatusCode>)
0114       FETCH_PAYLOAD_CASE(EcalCondTowerObjectContainer<EcalDAQStatusCode>)
0115       FETCH_PAYLOAD_CASE(EcalCondTowerObjectContainer<EcalChannelStatusCode>)
0116       FETCH_PAYLOAD_CASE(EcalCondTowerObjectContainer<EcalDQMStatusCode>)
0117       FETCH_PAYLOAD_CASE(EcalPedestals)
0118       FETCH_PAYLOAD_CASE(EcalSRSettings)
0119       FETCH_PAYLOAD_CASE(EcalSampleMask)
0120       FETCH_PAYLOAD_CASE(EcalTBWeights)
0121       FETCH_PAYLOAD_CASE(EcalTimeBiasCorrections)
0122       FETCH_PAYLOAD_CASE(EcalTimeDependentCorrections)
0123       FETCH_PAYLOAD_CASE(EcalTPGCrystalStatus)
0124       FETCH_PAYLOAD_CASE(EcalTPGFineGrainEBGroup)
0125       FETCH_PAYLOAD_CASE(EcalTPGFineGrainEBIdMap)
0126       FETCH_PAYLOAD_CASE(EcalTPGFineGrainStripEE)
0127       FETCH_PAYLOAD_CASE(EcalTPGFineGrainTowerEE)
0128       FETCH_PAYLOAD_CASE(EcalTPGLinearizationConst)
0129       FETCH_PAYLOAD_CASE(EcalTPGLutGroup)
0130       FETCH_PAYLOAD_CASE(EcalTPGLutIdMap)
0131       FETCH_PAYLOAD_CASE(EcalTPGPedestals)
0132       FETCH_PAYLOAD_CASE(EcalTPGPhysicsConst)
0133       FETCH_PAYLOAD_CASE(EcalTPGSlidingWindow)
0134       FETCH_PAYLOAD_CASE(EcalTPGSpike)
0135       FETCH_PAYLOAD_CASE(EcalTPGStripStatus)
0136       FETCH_PAYLOAD_CASE(EcalTPGTowerStatus)
0137       FETCH_PAYLOAD_CASE(EcalTPGWeightGroup)
0138       FETCH_PAYLOAD_CASE(EcalTPGWeightIdMap)
0139       FETCH_PAYLOAD_CASE(EcalTimeOffsetConstant)
0140       FETCH_PAYLOAD_CASE(EcalWeightXtalGroups)
0141       FETCH_PAYLOAD_CASE(EcalSamplesCorrelation)
0142       FETCH_PAYLOAD_CASE(EcalCondObjectContainer<EcalPulseShape>)
0143       FETCH_PAYLOAD_CASE(EcalPulseShape)
0144       FETCH_PAYLOAD_CASE(EcalCondObjectContainer<EcalPulseCovariance>)
0145       FETCH_PAYLOAD_CASE(EcalPulseCovariance)
0146       FETCH_PAYLOAD_CASE(EcalCondObjectContainer<EcalPulseSymmCovariance>)
0147       FETCH_PAYLOAD_CASE(EcalPulseSymmCovariance)
0148       FETCH_PAYLOAD_CASE(FileBlob)
0149       FETCH_PAYLOAD_CASE(GBRForest)
0150       FETCH_PAYLOAD_CASE(GBRForestD)
0151       FETCH_PAYLOAD_CASE(HBHENegativeEFilter)
0152       FETCH_PAYLOAD_CASE(HFPhase1PMTParams)
0153       FETCH_PAYLOAD_CASE(HcalChannelQuality)
0154       FETCH_PAYLOAD_CASE(HcalDcsValues)
0155       FETCH_PAYLOAD_CASE(HcalElectronicsMap)
0156       FETCH_PAYLOAD_CASE(HcalFlagHFDigiTimeParams)
0157       FETCH_PAYLOAD_CASE(HcalFrontEndMap)
0158       FETCH_PAYLOAD_CASE(HcalGains)
0159       FETCH_PAYLOAD_CASE(HcalGainWidths)
0160       FETCH_PAYLOAD_CASE(HcalL1TriggerObjects)
0161       FETCH_PAYLOAD_CASE(HcalLUTCorrs)
0162       FETCH_PAYLOAD_CASE(HcalLongRecoParams)
0163       FETCH_PAYLOAD_CASE(HcalZDCLowGainFractions)
0164       FETCH_PAYLOAD_CASE(HcalLutMetadata)
0165       FETCH_PAYLOAD_CASE(HcalMCParams)
0166       FETCH_PAYLOAD_CASE(HcalPFCorrs)
0167       FETCH_PAYLOAD_CASE(HcalPedestalWidths)
0168       FETCH_PAYLOAD_CASE(HcalPedestals)
0169       FETCH_PAYLOAD_CASE(HcalQIEData)
0170       FETCH_PAYLOAD_CASE(HcalSiPMCharacteristics)
0171       FETCH_PAYLOAD_CASE(HcalSiPMParameters)
0172       FETCH_PAYLOAD_CASE(HcalRecoParams)
0173       FETCH_PAYLOAD_CASE(HcalRespCorrs)
0174       FETCH_PAYLOAD_CASE(HcalTimeCorrs)
0175       FETCH_PAYLOAD_CASE(HcalTPChannelParameters)
0176       FETCH_PAYLOAD_CASE(HcalTPParameters)
0177       FETCH_PAYLOAD_CASE(HcalZSThresholds)
0178       FETCH_PAYLOAD_CASE(HcalInterpolatedPulseColl)
0179       FETCH_PAYLOAD_CASE(OOTPileupCorrectionBuffer)
0180       FETCH_PAYLOAD_CASE(StorableDoubleMap<AbsOOTPileupCorrection>)
0181       FETCH_PAYLOAD_CASE(JetCorrectorParametersCollection)
0182       FETCH_PAYLOAD_CASE(JME::JetResolutionObject)
0183       FETCH_PAYLOAD_CASE(METCorrectorParametersCollection)
0184       FETCH_PAYLOAD_CASE(MEtXYcorrectParametersCollection)
0185       FETCH_PAYLOAD_CASE(L1CaloEcalScale)
0186       FETCH_PAYLOAD_CASE(L1CaloEtScale)
0187       FETCH_PAYLOAD_CASE(L1CaloGeometry)
0188       FETCH_PAYLOAD_CASE(L1CaloHcalScale)
0189       FETCH_PAYLOAD_CASE(L1GctChannelMask)
0190       FETCH_PAYLOAD_CASE(L1GctJetFinderParams)
0191       FETCH_PAYLOAD_CASE(L1GtBoardMaps)
0192       FETCH_PAYLOAD_CASE(L1GtParameters)
0193       FETCH_PAYLOAD_CASE(L1GtPrescaleFactors)
0194       FETCH_PAYLOAD_CASE(L1GtPsbSetup)
0195       FETCH_PAYLOAD_CASE(L1GtStableParameters)
0196       FETCH_PAYLOAD_CASE(L1GtTriggerMask)
0197       FETCH_PAYLOAD_CASE(L1GtTriggerMenu)
0198       FETCH_PAYLOAD_CASE(L1MuCSCPtLut)
0199       FETCH_PAYLOAD_CASE(L1MuCSCTFAlignment)
0200       FETCH_PAYLOAD_CASE(L1MuCSCTFConfiguration)
0201       FETCH_PAYLOAD_CASE(L1MuDTEtaPatternLut)
0202       FETCH_PAYLOAD_CASE(L1MuDTExtLut)
0203       FETCH_PAYLOAD_CASE(L1MuDTPhiLut)
0204       FETCH_PAYLOAD_CASE(L1MuDTPtaLut)
0205       FETCH_PAYLOAD_CASE(L1MuDTQualPatternLut)
0206       FETCH_PAYLOAD_CASE(L1MuDTTFMasks)
0207       FETCH_PAYLOAD_CASE(L1MuDTTFParameters)
0208       FETCH_PAYLOAD_CASE(L1MuGMTChannelMask)
0209       FETCH_PAYLOAD_CASE(L1MuGMTParameters)
0210       FETCH_PAYLOAD_CASE(L1MuGMTScales)
0211       FETCH_PAYLOAD_CASE(L1MuTriggerPtScale)
0212       FETCH_PAYLOAD_CASE(L1MuTriggerScales)
0213       FETCH_PAYLOAD_CASE(L1RCTChannelMask)
0214       FETCH_PAYLOAD_CASE(L1RCTNoisyChannelMask)
0215       FETCH_PAYLOAD_CASE(L1RCTParameters)
0216       FETCH_PAYLOAD_CASE(L1RPCBxOrConfig)
0217       FETCH_PAYLOAD_CASE(L1RPCConeDefinition)
0218       FETCH_PAYLOAD_CASE(L1RPCConfig)
0219       FETCH_PAYLOAD_CASE(L1RPCHsbConfig)
0220       FETCH_PAYLOAD_CASE(L1RPCHwConfig)
0221       FETCH_PAYLOAD_CASE(l1t::CaloParams)
0222       FETCH_PAYLOAD_CASE(l1t::CaloConfig)
0223       FETCH_PAYLOAD_CASE(L1TMuonBarrelParams)
0224       FETCH_PAYLOAD_CASE(L1TMuonGlobalParams)
0225       FETCH_PAYLOAD_CASE(L1TMuonOverlapParams)
0226       FETCH_PAYLOAD_CASE(L1TUtmAlgorithm)
0227       FETCH_PAYLOAD_CASE(L1TUtmBin)
0228       FETCH_PAYLOAD_CASE(L1TUtmCondition)
0229       FETCH_PAYLOAD_CASE(L1TUtmCut)
0230       FETCH_PAYLOAD_CASE(L1TUtmCutValue)
0231       FETCH_PAYLOAD_CASE(L1TUtmObject)
0232       FETCH_PAYLOAD_CASE(L1TUtmScale)
0233       FETCH_PAYLOAD_CASE(L1TUtmTriggerMenu)
0234       FETCH_PAYLOAD_CASE(L1TGlobalParameters)
0235       FETCH_PAYLOAD_CASE(L1TriggerKey)
0236       FETCH_PAYLOAD_CASE(L1TriggerKeyList)
0237       FETCH_PAYLOAD_CASE(lumi::LumiSectionData)
0238       FETCH_PAYLOAD_CASE(MixingModuleConfig)
0239       FETCH_PAYLOAD_CASE(MuScleFitDBobject)
0240       FETCH_PAYLOAD_CASE(DYTThrObject)
0241       FETCH_PAYLOAD_CASE(DYTParamObject)
0242       FETCH_PAYLOAD_CASE(PhysicsTools::Calibration::MVAComputerContainer)
0243       FETCH_PAYLOAD_CASE(PhysicsTGraphPayload)
0244       FETCH_PAYLOAD_CASE(PhysicsTFormulaPayload)
0245       FETCH_PAYLOAD_CASE(PCaloGeometry)
0246       FETCH_PAYLOAD_CASE(HcalParameters)
0247       FETCH_PAYLOAD_CASE(PGeometricDet)
0248       FETCH_PAYLOAD_CASE(PTrackerParameters)
0249       FETCH_PAYLOAD_CASE(PTrackerAdditionalParametersPerDet)
0250       FETCH_PAYLOAD_CASE(PHGCalParameters)
0251       //FETCH_PAYLOAD_CASE( PerformancePayload )
0252       FETCH_PAYLOAD_CASE(PerformancePayloadFromTable)
0253       FETCH_PAYLOAD_CASE(PerformancePayloadFromTFormula)
0254       FETCH_PAYLOAD_CASE(PerformancePayloadFromBinnedTFormula)
0255       FETCH_PAYLOAD_CASE(PerformanceWorkingPoint)
0256       FETCH_PAYLOAD_CASE(PhysicsTools::Calibration::HistogramD3D)
0257       FETCH_PAYLOAD_CASE(QGLikelihoodCategory)
0258       FETCH_PAYLOAD_CASE(QGLikelihoodObject)
0259       FETCH_PAYLOAD_CASE(QGLikelihoodSystematicsObject)
0260       FETCH_PAYLOAD_CASE(RPCEMap)
0261       FETCH_PAYLOAD_CASE(RPCClusterSize)
0262       FETCH_PAYLOAD_CASE(RPCStripNoises)
0263       FETCH_PAYLOAD_CASE(RPCObFebmap)
0264       FETCH_PAYLOAD_CASE(RPCObGas)
0265       FETCH_PAYLOAD_CASE(RPCObImon)
0266       FETCH_PAYLOAD_CASE(RPCObGasMix)
0267       FETCH_PAYLOAD_CASE(RPCObPVSSmap)
0268       FETCH_PAYLOAD_CASE(RPCObStatus)
0269       FETCH_PAYLOAD_CASE(RPCObTemp)
0270       FETCH_PAYLOAD_CASE(RPCObUXC)
0271       FETCH_PAYLOAD_CASE(RPCObVmon)
0272       FETCH_PAYLOAD_CASE(RPCLBLinkMap)
0273       FETCH_PAYLOAD_CASE(RPCDCCLinkMap)
0274       FETCH_PAYLOAD_CASE(RPCAMCLinkMap)
0275       FETCH_PAYLOAD_CASE(RPFlatParams)
0276       FETCH_PAYLOAD_CASE(RecoIdealGeometry)
0277       FETCH_PAYLOAD_CASE(RunInfo)
0278       FETCH_PAYLOAD_CASE(SiPhase2OuterTrackerLorentzAngle)
0279       FETCH_PAYLOAD_CASE(SiPixelCalibConfiguration)
0280       FETCH_PAYLOAD_CASE(SiPixelCPEGenericErrorParm)
0281       FETCH_PAYLOAD_CASE(SiPixelFedCablingMap)
0282       FETCH_PAYLOAD_CASE(SiPixelGainCalibrationForHLT)
0283       FETCH_PAYLOAD_CASE(SiPixelGainCalibrationOffline)
0284       FETCH_PAYLOAD_CASE(SiPixelGenErrorDBObject)
0285       FETCH_PAYLOAD_CASE(SiPixelLorentzAngle)
0286       FETCH_PAYLOAD_CASE(SiPixelDynamicInefficiency)
0287       FETCH_PAYLOAD_CASE(SiPixelQuality)
0288       FETCH_PAYLOAD_CASE(SiPixelFEDChannelContainer)
0289       FETCH_PAYLOAD_CASE(SiPixelQualityProbabilities)
0290       FETCH_PAYLOAD_CASE(SiPixelTemplateDBObject)
0291       FETCH_PAYLOAD_CASE(SiPixel2DTemplateDBObject)
0292       FETCH_PAYLOAD_CASE(SiPixelVCal)
0293       FETCH_PAYLOAD_CASE(SiStripApvGain)
0294       FETCH_PAYLOAD_CASE(SiStripApvSimulationParameters)
0295       FETCH_PAYLOAD_CASE(SiStripBackPlaneCorrection)
0296       FETCH_PAYLOAD_CASE(SiStripBadStrip)
0297       FETCH_PAYLOAD_CASE(SiStripConfObject)
0298       FETCH_PAYLOAD_CASE(SiStripDetVOff)
0299       FETCH_PAYLOAD_CASE(SiStripFedCabling)
0300       FETCH_PAYLOAD_CASE(SiStripLatency)
0301       FETCH_PAYLOAD_CASE(SiStripLorentzAngle)
0302       FETCH_PAYLOAD_CASE(SiStripNoises)
0303       FETCH_PAYLOAD_CASE(SiStripPedestals)
0304       FETCH_PAYLOAD_CASE(SiStripThreshold)
0305       FETCH_PAYLOAD_CASE(DTCELinkId)
0306       FETCH_PAYLOAD_CASE(TrackerDetToDTCELinkCablingMap)
0307       FETCH_PAYLOAD_CASE(TrackProbabilityCalibration)
0308       FETCH_PAYLOAD_CASE(cond::BaseKeyed)
0309       FETCH_PAYLOAD_CASE(ESCondObjectContainer<ESChannelStatusCode>)
0310       FETCH_PAYLOAD_CASE(ESCondObjectContainer<ESPedestal>)
0311       FETCH_PAYLOAD_CASE(ESCondObjectContainer<float>)
0312       FETCH_PAYLOAD_CASE(EcalCondObjectContainer<EcalChannelStatusCode>)
0313       FETCH_PAYLOAD_CASE(EcalCondObjectContainer<EcalMGPAGainRatio>)
0314       FETCH_PAYLOAD_CASE(EcalCondObjectContainer<EcalTPGPedestal>)
0315       FETCH_PAYLOAD_CASE(EcalCondObjectContainer<EcalXtalGroupId>)
0316       FETCH_PAYLOAD_CASE(EcalCondObjectContainer<float>)
0317       FETCH_PAYLOAD_CASE(MagFieldConfig)
0318       FETCH_PAYLOAD_CASE(L1TGlobalPrescalesVetos)
0319       FETCH_PAYLOAD_CASE(L1TGlobalPrescalesVetosFract)
0320 
0321       //
0322       if (payloadTypeName == "PhysicsTools::Calibration::Histogram3D<double,double,double,double>") {
0323         payloadPtr = deserialize<PhysicsTools::Calibration::Histogram3D<double, double, double, double> >(
0324             payloadTypeName, data, streamerInfo);
0325         match = true;
0326       }
0327       if (payloadTypeName == "PhysicsTools::Calibration::Histogram2D<double,double,double>") {
0328         payloadPtr = deserialize<PhysicsTools::Calibration::Histogram2D<double, double, double> >(
0329             payloadTypeName, data, streamerInfo);
0330         match = true;
0331       }
0332       if (payloadTypeName == "std::vector<unsignedlonglong,std::allocator<unsignedlonglong>>") {
0333         payloadPtr = deserialize<std::vector<unsigned long long> >(payloadTypeName, data, streamerInfo);
0334         match = true;
0335       }
0336 
0337       if (!match)
0338         throwException("Payload type \"" + payloadTypeName + "\" is unknown.", "fetch");
0339       return std::make_pair(payloadTypeName, payloadPtr);
0340     }
0341 
0342     std::pair<std::string, std::shared_ptr<void> > fetch(const cond::Hash &payloadId, Session &session) {
0343       std::shared_ptr<void> payloadPtr;
0344       cond::Binary data;
0345       cond::Binary streamerInfo;
0346       std::string payloadTypeName;
0347       bool found = session.fetchPayloadData(payloadId, payloadTypeName, data, streamerInfo);
0348       if (!found)
0349         throwException("Payload with id " + payloadId + " has not been found in the database.", "fetch");
0350       return fetchOne(payloadTypeName, data, streamerInfo, payloadPtr);
0351     }
0352 
0353   }  // namespace persistency
0354 }  // namespace cond