Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-07-05 03:36:28

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(DeDxCalibration)
0074       FETCH_PAYLOAD_CASE(DTCCBConfig)
0075       FETCH_PAYLOAD_CASE(DTDeadFlag)
0076       FETCH_PAYLOAD_CASE(DTHVStatus)
0077       FETCH_PAYLOAD_CASE(DTKeyedConfig)
0078       FETCH_PAYLOAD_CASE(DTLVStatus)
0079       FETCH_PAYLOAD_CASE(DTMtime)
0080       FETCH_PAYLOAD_CASE(DTReadOutMapping)
0081       FETCH_PAYLOAD_CASE(DTRecoConditions)
0082       FETCH_PAYLOAD_CASE(DTRecoUncertainties)
0083       FETCH_PAYLOAD_CASE(DTStatusFlag)
0084       FETCH_PAYLOAD_CASE(DTT0)
0085       FETCH_PAYLOAD_CASE(DTTPGParameters)
0086       FETCH_PAYLOAD_CASE(DTTtrig)
0087       FETCH_PAYLOAD_CASE(DropBoxMetadata)
0088       FETCH_PAYLOAD_CASE(ESChannelStatus)
0089       FETCH_PAYLOAD_CASE(ESEEIntercalibConstants)
0090       FETCH_PAYLOAD_CASE(ESFloatCondObjectContainer)
0091       FETCH_PAYLOAD_CASE(ESGain)
0092       FETCH_PAYLOAD_CASE(ESMIPToGeVConstant)
0093       FETCH_PAYLOAD_CASE(ESMissingEnergyCalibration)
0094       FETCH_PAYLOAD_CASE(ESPedestals)
0095       FETCH_PAYLOAD_CASE(ESRecHitRatioCuts)
0096       FETCH_PAYLOAD_CASE(ESThresholds)
0097       FETCH_PAYLOAD_CASE(ESTimeSampleWeights)
0098       FETCH_PAYLOAD_CASE(EcalADCToGeVConstant)
0099       FETCH_PAYLOAD_CASE(EcalChannelStatus)
0100       FETCH_PAYLOAD_CASE(EcalClusterEnergyCorrectionObjectSpecificParameters)
0101       FETCH_PAYLOAD_CASE(EcalDAQTowerStatus)
0102       FETCH_PAYLOAD_CASE(EcalDCSTowerStatus)
0103       FETCH_PAYLOAD_CASE(EcalDQMChannelStatus)
0104       FETCH_PAYLOAD_CASE(EcalDQMTowerStatus)
0105       FETCH_PAYLOAD_CASE(EcalFloatCondObjectContainer)
0106       FETCH_PAYLOAD_CASE(EcalFunParams)
0107       FETCH_PAYLOAD_CASE(EcalGainRatios)
0108       FETCH_PAYLOAD_CASE(EcalLaserAPDPNRatios)
0109       FETCH_PAYLOAD_CASE(EcalMappingElectronics)
0110       FETCH_PAYLOAD_CASE(EcalCondObjectContainer<EcalMappingElement>)
0111       FETCH_PAYLOAD_CASE(EcalCondObjectContainer<EcalPedestal>)
0112       FETCH_PAYLOAD_CASE(EcalCondObjectContainer<EcalTPGLinearizationConstant>)
0113       FETCH_PAYLOAD_CASE(EcalCondObjectContainer<EcalDQMStatusCode>)
0114       FETCH_PAYLOAD_CASE(EcalCondObjectContainer<EcalTPGCrystalStatusCode>)
0115       FETCH_PAYLOAD_CASE(EcalCondTowerObjectContainer<EcalDAQStatusCode>)
0116       FETCH_PAYLOAD_CASE(EcalCondTowerObjectContainer<EcalChannelStatusCode>)
0117       FETCH_PAYLOAD_CASE(EcalCondTowerObjectContainer<EcalDQMStatusCode>)
0118       FETCH_PAYLOAD_CASE(EcalPedestals)
0119       FETCH_PAYLOAD_CASE(EcalSRSettings)
0120       FETCH_PAYLOAD_CASE(EcalSampleMask)
0121       FETCH_PAYLOAD_CASE(EcalTBWeights)
0122       FETCH_PAYLOAD_CASE(EcalTimeBiasCorrections)
0123       FETCH_PAYLOAD_CASE(EcalTimeDependentCorrections)
0124       FETCH_PAYLOAD_CASE(EcalTPGCrystalStatus)
0125       FETCH_PAYLOAD_CASE(EcalTPGFineGrainEBGroup)
0126       FETCH_PAYLOAD_CASE(EcalTPGFineGrainEBIdMap)
0127       FETCH_PAYLOAD_CASE(EcalTPGFineGrainStripEE)
0128       FETCH_PAYLOAD_CASE(EcalTPGFineGrainTowerEE)
0129       FETCH_PAYLOAD_CASE(EcalTPGLinearizationConst)
0130       FETCH_PAYLOAD_CASE(EcalTPGLutGroup)
0131       FETCH_PAYLOAD_CASE(EcalTPGLutIdMap)
0132       FETCH_PAYLOAD_CASE(EcalTPGPedestals)
0133       FETCH_PAYLOAD_CASE(EcalTPGPhysicsConst)
0134       FETCH_PAYLOAD_CASE(EcalTPGSlidingWindow)
0135       FETCH_PAYLOAD_CASE(EcalTPGSpike)
0136       FETCH_PAYLOAD_CASE(EcalTPGStripStatus)
0137       FETCH_PAYLOAD_CASE(EcalTPGTowerStatus)
0138       FETCH_PAYLOAD_CASE(EcalTPGWeightGroup)
0139       FETCH_PAYLOAD_CASE(EcalTPGWeightIdMap)
0140       FETCH_PAYLOAD_CASE(EcalTimeOffsetConstant)
0141       FETCH_PAYLOAD_CASE(EcalWeightXtalGroups)
0142       FETCH_PAYLOAD_CASE(EcalSamplesCorrelation)
0143       FETCH_PAYLOAD_CASE(EcalCondObjectContainer<EcalPulseShape>)
0144       FETCH_PAYLOAD_CASE(EcalPulseShape)
0145       FETCH_PAYLOAD_CASE(EcalCondObjectContainer<EcalPulseCovariance>)
0146       FETCH_PAYLOAD_CASE(EcalPulseCovariance)
0147       FETCH_PAYLOAD_CASE(EcalCondObjectContainer<EcalPulseSymmCovariance>)
0148       FETCH_PAYLOAD_CASE(EcalPulseSymmCovariance)
0149       FETCH_PAYLOAD_CASE(EcalEBPhase2TPGAmplWeightIdMap)
0150       FETCH_PAYLOAD_CASE(EcalEBPhase2TPGAmplWeights)
0151       FETCH_PAYLOAD_CASE(EcalEBPhase2TPGTimeWeightIdMap)
0152       FETCH_PAYLOAD_CASE(EcalEBPhase2TPGTimeWeights)
0153       FETCH_PAYLOAD_CASE(EcalEBPhase2TPGLinearizationConstant)
0154       FETCH_PAYLOAD_CASE(EcalEBPhase2TPGPedestal)
0155       FETCH_PAYLOAD_CASE(FileBlob)
0156       FETCH_PAYLOAD_CASE(GBRForest)
0157       FETCH_PAYLOAD_CASE(GBRForestD)
0158       FETCH_PAYLOAD_CASE(GEMChMap)
0159       FETCH_PAYLOAD_CASE(GEMMaskedStrips)
0160       FETCH_PAYLOAD_CASE(GEMDeadStrips)
0161       FETCH_PAYLOAD_CASE(HBHENegativeEFilter)
0162       FETCH_PAYLOAD_CASE(HFPhase1PMTParams)
0163       FETCH_PAYLOAD_CASE(HcalChannelQuality)
0164       FETCH_PAYLOAD_CASE(HcalDcsValues)
0165       FETCH_PAYLOAD_CASE(HcalElectronicsMap)
0166       FETCH_PAYLOAD_CASE(HcalFlagHFDigiTimeParams)
0167       FETCH_PAYLOAD_CASE(HcalFrontEndMap)
0168       FETCH_PAYLOAD_CASE(HcalGains)
0169       FETCH_PAYLOAD_CASE(HcalGainWidths)
0170       FETCH_PAYLOAD_CASE(HcalL1TriggerObjects)
0171       FETCH_PAYLOAD_CASE(HcalLUTCorrs)
0172       FETCH_PAYLOAD_CASE(HcalLongRecoParams)
0173       FETCH_PAYLOAD_CASE(HcalZDCLowGainFractions)
0174       FETCH_PAYLOAD_CASE(HcalLutMetadata)
0175       FETCH_PAYLOAD_CASE(HcalMCParams)
0176       FETCH_PAYLOAD_CASE(HcalPFCorrs)
0177       FETCH_PAYLOAD_CASE(HcalPFCuts)
0178       FETCH_PAYLOAD_CASE(HcalPedestalWidths)
0179       FETCH_PAYLOAD_CASE(HcalPedestals)
0180       FETCH_PAYLOAD_CASE(HcalQIEData)
0181       FETCH_PAYLOAD_CASE(HcalSiPMCharacteristics)
0182       FETCH_PAYLOAD_CASE(HcalSiPMParameters)
0183       FETCH_PAYLOAD_CASE(HcalRecoParams)
0184       FETCH_PAYLOAD_CASE(HcalRespCorrs)
0185       FETCH_PAYLOAD_CASE(HcalTimeCorrs)
0186       FETCH_PAYLOAD_CASE(HcalTPChannelParameters)
0187       FETCH_PAYLOAD_CASE(HcalTPParameters)
0188       FETCH_PAYLOAD_CASE(HcalZSThresholds)
0189       FETCH_PAYLOAD_CASE(HcalInterpolatedPulseColl)
0190       FETCH_PAYLOAD_CASE(OOTPileupCorrectionBuffer)
0191       FETCH_PAYLOAD_CASE(StorableDoubleMap<AbsOOTPileupCorrection>)
0192       FETCH_PAYLOAD_CASE(JetCorrectorParametersCollection)
0193       FETCH_PAYLOAD_CASE(JME::JetResolutionObject)
0194       FETCH_PAYLOAD_CASE(METCorrectorParametersCollection)
0195       FETCH_PAYLOAD_CASE(MEtXYcorrectParametersCollection)
0196       FETCH_PAYLOAD_CASE(L1CaloEcalScale)
0197       FETCH_PAYLOAD_CASE(L1CaloEtScale)
0198       FETCH_PAYLOAD_CASE(L1CaloGeometry)
0199       FETCH_PAYLOAD_CASE(L1CaloHcalScale)
0200       FETCH_PAYLOAD_CASE(L1GctChannelMask)
0201       FETCH_PAYLOAD_CASE(L1GctJetFinderParams)
0202       FETCH_PAYLOAD_CASE(L1GtBoardMaps)
0203       FETCH_PAYLOAD_CASE(L1GtParameters)
0204       FETCH_PAYLOAD_CASE(L1GtPrescaleFactors)
0205       FETCH_PAYLOAD_CASE(L1GtPsbSetup)
0206       FETCH_PAYLOAD_CASE(L1GtStableParameters)
0207       FETCH_PAYLOAD_CASE(L1GtTriggerMask)
0208       FETCH_PAYLOAD_CASE(L1GtTriggerMenu)
0209       FETCH_PAYLOAD_CASE(L1MuCSCPtLut)
0210       FETCH_PAYLOAD_CASE(L1MuCSCTFAlignment)
0211       FETCH_PAYLOAD_CASE(L1MuCSCTFConfiguration)
0212       FETCH_PAYLOAD_CASE(L1MuDTEtaPatternLut)
0213       FETCH_PAYLOAD_CASE(L1MuDTExtLut)
0214       FETCH_PAYLOAD_CASE(L1MuDTPhiLut)
0215       FETCH_PAYLOAD_CASE(L1MuDTPtaLut)
0216       FETCH_PAYLOAD_CASE(L1MuDTQualPatternLut)
0217       FETCH_PAYLOAD_CASE(L1MuDTTFMasks)
0218       FETCH_PAYLOAD_CASE(L1MuDTTFParameters)
0219       FETCH_PAYLOAD_CASE(L1MuGMTChannelMask)
0220       FETCH_PAYLOAD_CASE(L1MuGMTParameters)
0221       FETCH_PAYLOAD_CASE(L1MuGMTScales)
0222       FETCH_PAYLOAD_CASE(L1MuTriggerPtScale)
0223       FETCH_PAYLOAD_CASE(L1MuTriggerScales)
0224       FETCH_PAYLOAD_CASE(L1RCTChannelMask)
0225       FETCH_PAYLOAD_CASE(L1RCTNoisyChannelMask)
0226       FETCH_PAYLOAD_CASE(L1RCTParameters)
0227       FETCH_PAYLOAD_CASE(L1RPCBxOrConfig)
0228       FETCH_PAYLOAD_CASE(L1RPCConeDefinition)
0229       FETCH_PAYLOAD_CASE(L1RPCConfig)
0230       FETCH_PAYLOAD_CASE(L1RPCHsbConfig)
0231       FETCH_PAYLOAD_CASE(L1RPCHwConfig)
0232       FETCH_PAYLOAD_CASE(l1t::CaloParams)
0233       FETCH_PAYLOAD_CASE(l1t::CaloConfig)
0234       FETCH_PAYLOAD_CASE(L1TMuonBarrelParams)
0235       FETCH_PAYLOAD_CASE(L1TMuonGlobalParams)
0236       FETCH_PAYLOAD_CASE(L1TMuonOverlapParams)
0237       FETCH_PAYLOAD_CASE(L1TUtmAlgorithm)
0238       FETCH_PAYLOAD_CASE(L1TUtmBin)
0239       FETCH_PAYLOAD_CASE(L1TUtmCondition)
0240       FETCH_PAYLOAD_CASE(L1TUtmCut)
0241       FETCH_PAYLOAD_CASE(L1TUtmCutValue)
0242       FETCH_PAYLOAD_CASE(L1TUtmObject)
0243       FETCH_PAYLOAD_CASE(L1TUtmScale)
0244       FETCH_PAYLOAD_CASE(L1TUtmTriggerMenu)
0245       FETCH_PAYLOAD_CASE(L1TGlobalParameters)
0246       FETCH_PAYLOAD_CASE(L1TriggerKey)
0247       FETCH_PAYLOAD_CASE(L1TriggerKeyList)
0248       FETCH_PAYLOAD_CASE(lumi::LumiSectionData)
0249       FETCH_PAYLOAD_CASE(MixingModuleConfig)
0250       FETCH_PAYLOAD_CASE(MuScleFitDBobject)
0251       FETCH_PAYLOAD_CASE(DYTThrObject)
0252       FETCH_PAYLOAD_CASE(DYTParamObject)
0253       FETCH_PAYLOAD_CASE(PhysicsTools::Calibration::MVAComputerContainer)
0254       FETCH_PAYLOAD_CASE(PhysicsTGraphPayload)
0255       FETCH_PAYLOAD_CASE(PhysicsTFormulaPayload)
0256       FETCH_PAYLOAD_CASE(PCaloGeometry)
0257       FETCH_PAYLOAD_CASE(HcalParameters)
0258       FETCH_PAYLOAD_CASE(PGeometricDet)
0259       FETCH_PAYLOAD_CASE(PTrackerParameters)
0260       FETCH_PAYLOAD_CASE(PTrackerAdditionalParametersPerDet)
0261       FETCH_PAYLOAD_CASE(PHGCalParameters)
0262       //FETCH_PAYLOAD_CASE( PerformancePayload )
0263       FETCH_PAYLOAD_CASE(PerformancePayloadFromTable)
0264       FETCH_PAYLOAD_CASE(PerformancePayloadFromTFormula)
0265       FETCH_PAYLOAD_CASE(PerformancePayloadFromBinnedTFormula)
0266       FETCH_PAYLOAD_CASE(PerformanceWorkingPoint)
0267       FETCH_PAYLOAD_CASE(PhysicsTools::Calibration::HistogramD3D)
0268       FETCH_PAYLOAD_CASE(QGLikelihoodCategory)
0269       FETCH_PAYLOAD_CASE(QGLikelihoodObject)
0270       FETCH_PAYLOAD_CASE(QGLikelihoodSystematicsObject)
0271       FETCH_PAYLOAD_CASE(RPCEMap)
0272       FETCH_PAYLOAD_CASE(RPCClusterSize)
0273       FETCH_PAYLOAD_CASE(RPCStripNoises)
0274       FETCH_PAYLOAD_CASE(RPCObFebmap)
0275       FETCH_PAYLOAD_CASE(RPCObGas)
0276       FETCH_PAYLOAD_CASE(RPCObImon)
0277       FETCH_PAYLOAD_CASE(RPCObGasMix)
0278       FETCH_PAYLOAD_CASE(RPCObPVSSmap)
0279       FETCH_PAYLOAD_CASE(RPCObStatus)
0280       FETCH_PAYLOAD_CASE(RPCObTemp)
0281       FETCH_PAYLOAD_CASE(RPCObUXC)
0282       FETCH_PAYLOAD_CASE(RPCObVmon)
0283       FETCH_PAYLOAD_CASE(RPCLBLinkMap)
0284       FETCH_PAYLOAD_CASE(RPCDCCLinkMap)
0285       FETCH_PAYLOAD_CASE(RPCAMCLinkMap)
0286       FETCH_PAYLOAD_CASE(RPFlatParams)
0287       FETCH_PAYLOAD_CASE(RecoIdealGeometry)
0288       FETCH_PAYLOAD_CASE(RunInfo)
0289       FETCH_PAYLOAD_CASE(SimBeamSpotObjects)
0290       FETCH_PAYLOAD_CASE(SimBeamSpotHLLHCObjects)
0291       FETCH_PAYLOAD_CASE(SiPhase2OuterTrackerLorentzAngle)
0292       FETCH_PAYLOAD_CASE(SiPixelCalibConfiguration)
0293       FETCH_PAYLOAD_CASE(SiPixelCPEGenericErrorParm)
0294       FETCH_PAYLOAD_CASE(SiPixelFedCablingMap)
0295       FETCH_PAYLOAD_CASE(SiPixelGainCalibrationForHLT)
0296       FETCH_PAYLOAD_CASE(SiPixelGainCalibrationOffline)
0297       FETCH_PAYLOAD_CASE(SiPixelGenErrorDBObject)
0298       FETCH_PAYLOAD_CASE(SiPixelLorentzAngle)
0299       FETCH_PAYLOAD_CASE(SiPixelDynamicInefficiency)
0300       FETCH_PAYLOAD_CASE(SiPixelQuality)
0301       FETCH_PAYLOAD_CASE(SiPixelFEDChannelContainer)
0302       FETCH_PAYLOAD_CASE(SiPixelQualityProbabilities)
0303       FETCH_PAYLOAD_CASE(SiPixelTemplateDBObject)
0304       FETCH_PAYLOAD_CASE(SiPixel2DTemplateDBObject)
0305       FETCH_PAYLOAD_CASE(SiPixelVCal)
0306       FETCH_PAYLOAD_CASE(SiStripApvGain)
0307       FETCH_PAYLOAD_CASE(SiStripApvSimulationParameters)
0308       FETCH_PAYLOAD_CASE(SiStripBackPlaneCorrection)
0309       FETCH_PAYLOAD_CASE(SiStripBadStrip)
0310       FETCH_PAYLOAD_CASE(SiStripConfObject)
0311       FETCH_PAYLOAD_CASE(SiStripDetVOff)
0312       FETCH_PAYLOAD_CASE(SiStripFedCabling)
0313       FETCH_PAYLOAD_CASE(SiStripLatency)
0314       FETCH_PAYLOAD_CASE(SiStripLorentzAngle)
0315       FETCH_PAYLOAD_CASE(SiStripNoises)
0316       FETCH_PAYLOAD_CASE(SiStripPedestals)
0317       FETCH_PAYLOAD_CASE(SiStripThreshold)
0318       FETCH_PAYLOAD_CASE(DTCELinkId)
0319       FETCH_PAYLOAD_CASE(TotemAnalysisMask)
0320       FETCH_PAYLOAD_CASE(TotemDAQMapping)
0321       FETCH_PAYLOAD_CASE(TrackerDetToDTCELinkCablingMap)
0322       FETCH_PAYLOAD_CASE(TrackProbabilityCalibration)
0323       FETCH_PAYLOAD_CASE(cond::BaseKeyed)
0324       FETCH_PAYLOAD_CASE(ESCondObjectContainer<ESChannelStatusCode>)
0325       FETCH_PAYLOAD_CASE(ESCondObjectContainer<ESPedestal>)
0326       FETCH_PAYLOAD_CASE(ESCondObjectContainer<float>)
0327       FETCH_PAYLOAD_CASE(EcalCondObjectContainer<EcalChannelStatusCode>)
0328       FETCH_PAYLOAD_CASE(EcalCondObjectContainer<EcalMGPAGainRatio>)
0329       FETCH_PAYLOAD_CASE(EcalCondObjectContainer<EcalTPGPedestal>)
0330       FETCH_PAYLOAD_CASE(EcalCondObjectContainer<EcalXtalGroupId>)
0331       FETCH_PAYLOAD_CASE(EcalCondObjectContainer<float>)
0332       FETCH_PAYLOAD_CASE(MagFieldConfig)
0333       FETCH_PAYLOAD_CASE(L1TGlobalPrescalesVetos)
0334       FETCH_PAYLOAD_CASE(L1TGlobalPrescalesVetosFract)
0335 
0336       //
0337       if (payloadTypeName == "PhysicsTools::Calibration::Histogram3D<double,double,double,double>") {
0338         payloadPtr = deserialize<PhysicsTools::Calibration::Histogram3D<double, double, double, double> >(
0339             payloadTypeName, data, streamerInfo);
0340         match = true;
0341       }
0342       if (payloadTypeName == "PhysicsTools::Calibration::Histogram2D<double,double,double>") {
0343         payloadPtr = deserialize<PhysicsTools::Calibration::Histogram2D<double, double, double> >(
0344             payloadTypeName, data, streamerInfo);
0345         match = true;
0346       }
0347       if (payloadTypeName == "std::vector<unsignedlonglong,std::allocator<unsignedlonglong>>") {
0348         payloadPtr = deserialize<std::vector<unsigned long long> >(payloadTypeName, data, streamerInfo);
0349         match = true;
0350       }
0351 
0352       if (!match)
0353         throwException("Payload type \"" + payloadTypeName + "\" is unknown.", "fetch");
0354       return std::make_pair(payloadTypeName, payloadPtr);
0355     }
0356 
0357     std::pair<std::string, std::shared_ptr<void> > fetch(const cond::Hash &payloadId, Session &session) {
0358       std::shared_ptr<void> payloadPtr;
0359       cond::Binary data;
0360       cond::Binary streamerInfo;
0361       std::string payloadTypeName;
0362       bool found = session.fetchPayloadData(payloadId, payloadTypeName, data, streamerInfo);
0363       if (!found)
0364         throwException("Payload with id " + payloadId + " has not been found in the database.", "fetch");
0365       return fetchOne(payloadTypeName, data, streamerInfo, payloadPtr);
0366     }
0367 
0368   }  // namespace persistency
0369 }  // namespace cond