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