Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-12-20 03:21:41

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(EcalEBPhase2TPGAmplWeightIdMap)
0149       FETCH_PAYLOAD_CASE(EcalEBPhase2TPGAmplWeights)
0150       FETCH_PAYLOAD_CASE(EcalEBPhase2TPGTimeWeightIdMap)
0151       FETCH_PAYLOAD_CASE(EcalEBPhase2TPGTimeWeights)
0152       FETCH_PAYLOAD_CASE(EcalEBPhase2TPGLinearizationConstant)
0153       FETCH_PAYLOAD_CASE(EcalEBPhase2TPGPedestal)
0154       FETCH_PAYLOAD_CASE(FileBlob)
0155       FETCH_PAYLOAD_CASE(GBRForest)
0156       FETCH_PAYLOAD_CASE(GBRForestD)
0157       FETCH_PAYLOAD_CASE(HBHENegativeEFilter)
0158       FETCH_PAYLOAD_CASE(HFPhase1PMTParams)
0159       FETCH_PAYLOAD_CASE(HcalChannelQuality)
0160       FETCH_PAYLOAD_CASE(HcalDcsValues)
0161       FETCH_PAYLOAD_CASE(HcalElectronicsMap)
0162       FETCH_PAYLOAD_CASE(HcalFlagHFDigiTimeParams)
0163       FETCH_PAYLOAD_CASE(HcalFrontEndMap)
0164       FETCH_PAYLOAD_CASE(HcalGains)
0165       FETCH_PAYLOAD_CASE(HcalGainWidths)
0166       FETCH_PAYLOAD_CASE(HcalL1TriggerObjects)
0167       FETCH_PAYLOAD_CASE(HcalLUTCorrs)
0168       FETCH_PAYLOAD_CASE(HcalLongRecoParams)
0169       FETCH_PAYLOAD_CASE(HcalZDCLowGainFractions)
0170       FETCH_PAYLOAD_CASE(HcalLutMetadata)
0171       FETCH_PAYLOAD_CASE(HcalMCParams)
0172       FETCH_PAYLOAD_CASE(HcalPFCorrs)
0173       FETCH_PAYLOAD_CASE(HcalPFCuts)
0174       FETCH_PAYLOAD_CASE(HcalPedestalWidths)
0175       FETCH_PAYLOAD_CASE(HcalPedestals)
0176       FETCH_PAYLOAD_CASE(HcalQIEData)
0177       FETCH_PAYLOAD_CASE(HcalSiPMCharacteristics)
0178       FETCH_PAYLOAD_CASE(HcalSiPMParameters)
0179       FETCH_PAYLOAD_CASE(HcalRecoParams)
0180       FETCH_PAYLOAD_CASE(HcalRespCorrs)
0181       FETCH_PAYLOAD_CASE(HcalTimeCorrs)
0182       FETCH_PAYLOAD_CASE(HcalTPChannelParameters)
0183       FETCH_PAYLOAD_CASE(HcalTPParameters)
0184       FETCH_PAYLOAD_CASE(HcalZSThresholds)
0185       FETCH_PAYLOAD_CASE(HcalInterpolatedPulseColl)
0186       FETCH_PAYLOAD_CASE(OOTPileupCorrectionBuffer)
0187       FETCH_PAYLOAD_CASE(StorableDoubleMap<AbsOOTPileupCorrection>)
0188       FETCH_PAYLOAD_CASE(JetCorrectorParametersCollection)
0189       FETCH_PAYLOAD_CASE(JME::JetResolutionObject)
0190       FETCH_PAYLOAD_CASE(METCorrectorParametersCollection)
0191       FETCH_PAYLOAD_CASE(MEtXYcorrectParametersCollection)
0192       FETCH_PAYLOAD_CASE(L1CaloEcalScale)
0193       FETCH_PAYLOAD_CASE(L1CaloEtScale)
0194       FETCH_PAYLOAD_CASE(L1CaloGeometry)
0195       FETCH_PAYLOAD_CASE(L1CaloHcalScale)
0196       FETCH_PAYLOAD_CASE(L1GctChannelMask)
0197       FETCH_PAYLOAD_CASE(L1GctJetFinderParams)
0198       FETCH_PAYLOAD_CASE(L1GtBoardMaps)
0199       FETCH_PAYLOAD_CASE(L1GtParameters)
0200       FETCH_PAYLOAD_CASE(L1GtPrescaleFactors)
0201       FETCH_PAYLOAD_CASE(L1GtPsbSetup)
0202       FETCH_PAYLOAD_CASE(L1GtStableParameters)
0203       FETCH_PAYLOAD_CASE(L1GtTriggerMask)
0204       FETCH_PAYLOAD_CASE(L1GtTriggerMenu)
0205       FETCH_PAYLOAD_CASE(L1MuCSCPtLut)
0206       FETCH_PAYLOAD_CASE(L1MuCSCTFAlignment)
0207       FETCH_PAYLOAD_CASE(L1MuCSCTFConfiguration)
0208       FETCH_PAYLOAD_CASE(L1MuDTEtaPatternLut)
0209       FETCH_PAYLOAD_CASE(L1MuDTExtLut)
0210       FETCH_PAYLOAD_CASE(L1MuDTPhiLut)
0211       FETCH_PAYLOAD_CASE(L1MuDTPtaLut)
0212       FETCH_PAYLOAD_CASE(L1MuDTQualPatternLut)
0213       FETCH_PAYLOAD_CASE(L1MuDTTFMasks)
0214       FETCH_PAYLOAD_CASE(L1MuDTTFParameters)
0215       FETCH_PAYLOAD_CASE(L1MuGMTChannelMask)
0216       FETCH_PAYLOAD_CASE(L1MuGMTParameters)
0217       FETCH_PAYLOAD_CASE(L1MuGMTScales)
0218       FETCH_PAYLOAD_CASE(L1MuTriggerPtScale)
0219       FETCH_PAYLOAD_CASE(L1MuTriggerScales)
0220       FETCH_PAYLOAD_CASE(L1RCTChannelMask)
0221       FETCH_PAYLOAD_CASE(L1RCTNoisyChannelMask)
0222       FETCH_PAYLOAD_CASE(L1RCTParameters)
0223       FETCH_PAYLOAD_CASE(L1RPCBxOrConfig)
0224       FETCH_PAYLOAD_CASE(L1RPCConeDefinition)
0225       FETCH_PAYLOAD_CASE(L1RPCConfig)
0226       FETCH_PAYLOAD_CASE(L1RPCHsbConfig)
0227       FETCH_PAYLOAD_CASE(L1RPCHwConfig)
0228       FETCH_PAYLOAD_CASE(l1t::CaloParams)
0229       FETCH_PAYLOAD_CASE(l1t::CaloConfig)
0230       FETCH_PAYLOAD_CASE(L1TMuonBarrelParams)
0231       FETCH_PAYLOAD_CASE(L1TMuonGlobalParams)
0232       FETCH_PAYLOAD_CASE(L1TMuonOverlapParams)
0233       FETCH_PAYLOAD_CASE(L1TUtmAlgorithm)
0234       FETCH_PAYLOAD_CASE(L1TUtmBin)
0235       FETCH_PAYLOAD_CASE(L1TUtmCondition)
0236       FETCH_PAYLOAD_CASE(L1TUtmCut)
0237       FETCH_PAYLOAD_CASE(L1TUtmCutValue)
0238       FETCH_PAYLOAD_CASE(L1TUtmObject)
0239       FETCH_PAYLOAD_CASE(L1TUtmScale)
0240       FETCH_PAYLOAD_CASE(L1TUtmTriggerMenu)
0241       FETCH_PAYLOAD_CASE(L1TGlobalParameters)
0242       FETCH_PAYLOAD_CASE(L1TriggerKey)
0243       FETCH_PAYLOAD_CASE(L1TriggerKeyList)
0244       FETCH_PAYLOAD_CASE(lumi::LumiSectionData)
0245       FETCH_PAYLOAD_CASE(MixingModuleConfig)
0246       FETCH_PAYLOAD_CASE(MuScleFitDBobject)
0247       FETCH_PAYLOAD_CASE(DYTThrObject)
0248       FETCH_PAYLOAD_CASE(DYTParamObject)
0249       FETCH_PAYLOAD_CASE(PhysicsTools::Calibration::MVAComputerContainer)
0250       FETCH_PAYLOAD_CASE(PhysicsTGraphPayload)
0251       FETCH_PAYLOAD_CASE(PhysicsTFormulaPayload)
0252       FETCH_PAYLOAD_CASE(PCaloGeometry)
0253       FETCH_PAYLOAD_CASE(HcalParameters)
0254       FETCH_PAYLOAD_CASE(PGeometricDet)
0255       FETCH_PAYLOAD_CASE(PTrackerParameters)
0256       FETCH_PAYLOAD_CASE(PTrackerAdditionalParametersPerDet)
0257       FETCH_PAYLOAD_CASE(PHGCalParameters)
0258       //FETCH_PAYLOAD_CASE( PerformancePayload )
0259       FETCH_PAYLOAD_CASE(PerformancePayloadFromTable)
0260       FETCH_PAYLOAD_CASE(PerformancePayloadFromTFormula)
0261       FETCH_PAYLOAD_CASE(PerformancePayloadFromBinnedTFormula)
0262       FETCH_PAYLOAD_CASE(PerformanceWorkingPoint)
0263       FETCH_PAYLOAD_CASE(PhysicsTools::Calibration::HistogramD3D)
0264       FETCH_PAYLOAD_CASE(QGLikelihoodCategory)
0265       FETCH_PAYLOAD_CASE(QGLikelihoodObject)
0266       FETCH_PAYLOAD_CASE(QGLikelihoodSystematicsObject)
0267       FETCH_PAYLOAD_CASE(RPCEMap)
0268       FETCH_PAYLOAD_CASE(RPCClusterSize)
0269       FETCH_PAYLOAD_CASE(RPCStripNoises)
0270       FETCH_PAYLOAD_CASE(RPCObFebmap)
0271       FETCH_PAYLOAD_CASE(RPCObGas)
0272       FETCH_PAYLOAD_CASE(RPCObImon)
0273       FETCH_PAYLOAD_CASE(RPCObGasMix)
0274       FETCH_PAYLOAD_CASE(RPCObPVSSmap)
0275       FETCH_PAYLOAD_CASE(RPCObStatus)
0276       FETCH_PAYLOAD_CASE(RPCObTemp)
0277       FETCH_PAYLOAD_CASE(RPCObUXC)
0278       FETCH_PAYLOAD_CASE(RPCObVmon)
0279       FETCH_PAYLOAD_CASE(RPCLBLinkMap)
0280       FETCH_PAYLOAD_CASE(RPCDCCLinkMap)
0281       FETCH_PAYLOAD_CASE(RPCAMCLinkMap)
0282       FETCH_PAYLOAD_CASE(RPFlatParams)
0283       FETCH_PAYLOAD_CASE(RecoIdealGeometry)
0284       FETCH_PAYLOAD_CASE(RunInfo)
0285       FETCH_PAYLOAD_CASE(SimBeamSpotObjects)
0286       FETCH_PAYLOAD_CASE(SiPhase2OuterTrackerLorentzAngle)
0287       FETCH_PAYLOAD_CASE(SiPixelCalibConfiguration)
0288       FETCH_PAYLOAD_CASE(SiPixelCPEGenericErrorParm)
0289       FETCH_PAYLOAD_CASE(SiPixelFedCablingMap)
0290       FETCH_PAYLOAD_CASE(SiPixelGainCalibrationForHLT)
0291       FETCH_PAYLOAD_CASE(SiPixelGainCalibrationOffline)
0292       FETCH_PAYLOAD_CASE(SiPixelGenErrorDBObject)
0293       FETCH_PAYLOAD_CASE(SiPixelLorentzAngle)
0294       FETCH_PAYLOAD_CASE(SiPixelDynamicInefficiency)
0295       FETCH_PAYLOAD_CASE(SiPixelQuality)
0296       FETCH_PAYLOAD_CASE(SiPixelFEDChannelContainer)
0297       FETCH_PAYLOAD_CASE(SiPixelQualityProbabilities)
0298       FETCH_PAYLOAD_CASE(SiPixelTemplateDBObject)
0299       FETCH_PAYLOAD_CASE(SiPixel2DTemplateDBObject)
0300       FETCH_PAYLOAD_CASE(SiPixelVCal)
0301       FETCH_PAYLOAD_CASE(SiStripApvGain)
0302       FETCH_PAYLOAD_CASE(SiStripApvSimulationParameters)
0303       FETCH_PAYLOAD_CASE(SiStripBackPlaneCorrection)
0304       FETCH_PAYLOAD_CASE(SiStripBadStrip)
0305       FETCH_PAYLOAD_CASE(SiStripConfObject)
0306       FETCH_PAYLOAD_CASE(SiStripDetVOff)
0307       FETCH_PAYLOAD_CASE(SiStripFedCabling)
0308       FETCH_PAYLOAD_CASE(SiStripLatency)
0309       FETCH_PAYLOAD_CASE(SiStripLorentzAngle)
0310       FETCH_PAYLOAD_CASE(SiStripNoises)
0311       FETCH_PAYLOAD_CASE(SiStripPedestals)
0312       FETCH_PAYLOAD_CASE(SiStripThreshold)
0313       FETCH_PAYLOAD_CASE(DTCELinkId)
0314       FETCH_PAYLOAD_CASE(TotemAnalysisMask)
0315       FETCH_PAYLOAD_CASE(TotemDAQMapping)
0316       FETCH_PAYLOAD_CASE(TrackerDetToDTCELinkCablingMap)
0317       FETCH_PAYLOAD_CASE(TrackProbabilityCalibration)
0318       FETCH_PAYLOAD_CASE(cond::BaseKeyed)
0319       FETCH_PAYLOAD_CASE(ESCondObjectContainer<ESChannelStatusCode>)
0320       FETCH_PAYLOAD_CASE(ESCondObjectContainer<ESPedestal>)
0321       FETCH_PAYLOAD_CASE(ESCondObjectContainer<float>)
0322       FETCH_PAYLOAD_CASE(EcalCondObjectContainer<EcalChannelStatusCode>)
0323       FETCH_PAYLOAD_CASE(EcalCondObjectContainer<EcalMGPAGainRatio>)
0324       FETCH_PAYLOAD_CASE(EcalCondObjectContainer<EcalTPGPedestal>)
0325       FETCH_PAYLOAD_CASE(EcalCondObjectContainer<EcalXtalGroupId>)
0326       FETCH_PAYLOAD_CASE(EcalCondObjectContainer<float>)
0327       FETCH_PAYLOAD_CASE(MagFieldConfig)
0328       FETCH_PAYLOAD_CASE(L1TGlobalPrescalesVetos)
0329       FETCH_PAYLOAD_CASE(L1TGlobalPrescalesVetosFract)
0330 
0331       //
0332       if (payloadTypeName == "PhysicsTools::Calibration::Histogram3D<double,double,double,double>") {
0333         payloadPtr = deserialize<PhysicsTools::Calibration::Histogram3D<double, double, double, double> >(
0334             payloadTypeName, data, streamerInfo);
0335         match = true;
0336       }
0337       if (payloadTypeName == "PhysicsTools::Calibration::Histogram2D<double,double,double>") {
0338         payloadPtr = deserialize<PhysicsTools::Calibration::Histogram2D<double, double, double> >(
0339             payloadTypeName, data, streamerInfo);
0340         match = true;
0341       }
0342       if (payloadTypeName == "std::vector<unsignedlonglong,std::allocator<unsignedlonglong>>") {
0343         payloadPtr = deserialize<std::vector<unsigned long long> >(payloadTypeName, data, streamerInfo);
0344         match = true;
0345       }
0346 
0347       if (!match)
0348         throwException("Payload type \"" + payloadTypeName + "\" is unknown.", "fetch");
0349       return std::make_pair(payloadTypeName, payloadPtr);
0350     }
0351 
0352     std::pair<std::string, std::shared_ptr<void> > fetch(const cond::Hash &payloadId, Session &session) {
0353       std::shared_ptr<void> payloadPtr;
0354       cond::Binary data;
0355       cond::Binary streamerInfo;
0356       std::string payloadTypeName;
0357       bool found = session.fetchPayloadData(payloadId, payloadTypeName, data, streamerInfo);
0358       if (!found)
0359         throwException("Payload with id " + payloadId + " has not been found in the database.", "fetch");
0360       return fetchOne(payloadTypeName, data, streamerInfo, payloadPtr);
0361     }
0362 
0363   }  // namespace persistency
0364 }  // namespace cond