4 #define IMPORT_PAYLOAD_CASE(TYPENAME) \ 5 if (inputTypeName == #TYPENAME) { \ 7 const TYPENAME& obj = *static_cast<const TYPENAME*>(inputPtr); \ 8 payloadId = destination.storePayload(obj, boost::posix_time::microsec_clock::universal_time()); \ 23 namespace persistency {
28 std::shared_ptr<void> payloadPtr;
34 return fetchOne(payloadTypeName,
data, streamerInfo, payloadPtr);
36 return std::make_pair(
std::string(
""), std::shared_ptr<void>());
45 bool newInsert =
false;
262 if (inputTypeName ==
"L1TriggerKeyList") {
264 throwException(
"Import of \"L1TriggerKeyList\" type payloads is not supported.",
"import");
355 if (inputTypeName ==
"PhysicsTools::Calibration::Histogram3D<double,double,double,double>") {
359 payloadId =
destination.storePayload(
obj, boost::posix_time::microsec_clock::universal_time());
361 if (inputTypeName ==
"PhysicsTools::Calibration::Histogram2D<double,double,double>") {
365 payloadId =
destination.storePayload(
obj, boost::posix_time::microsec_clock::universal_time());
367 if (inputTypeName ==
"std::vector<unsignedlonglong,std::allocator<unsignedlonglong>>") {
369 const std::vector<unsigned long long>&
obj = *
static_cast<const std::vector<unsigned long long>*
>(inputPtr);
370 payloadId =
destination.storePayload(
obj, boost::posix_time::microsec_clock::universal_time());
374 throwException(
"Payload type \"" + inputTypeName +
"\" is unknown.",
"import");
std::pair< std::string, std::shared_ptr< void > > fetchOne(const std::string &payloadTypeName, const cond::Binary &data, const cond::Binary &streamerInfo, std::shared_ptr< void > payloadPtr)
std::pair< std::string, std::shared_ptr< void > > fetchIfExists(const cond::Hash &payloadId, Session &session, bool &exists)
QGLikelihoodObject containing valid range and entries with category and histogram (mean is not used a...
The mapping between FramePosition and VFATInfo.
#define IMPORT_PAYLOAD_CASE(TYPENAME)
bool fetchPayloadData(const cond::Hash &payloadHash, std::string &payloadType, cond::Binary &payloadData, cond::Binary &streamerInfoData)
Category structure: ranges associated with QGLikelihood histograms.
Contains cabling info at the device level, including DetId, APV pair numbers, hardware addresses...
Container for CTPPS RP alignment corrections. The corrections are stored on two levels - RP and senso...
char data[epos_bytes_allocation]
QGLikelihoodSystematicsObject containing the parameters for the systematic smearing.
Collection of optical functions for two crossing angle values and various scoring planes...
static std::string const source
void throwException(const std::string &message, const std::string &methodName)
The mapping between FramePosition and ROCInfo.