Back to home page

Project CMSSW displayed by LXR

 
 

    


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

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