You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
auto deadpixelsback = api.retrieveFromTFileAny<o2::FOO::DeadPixelMap>("FOO/DeadPixels", metadata);
41
41
// read like this to get the headers as well, and thus the metadata attached to the object
42
-
map<string, string> headers;
42
+
std::map<std::string, std::string> headers;
43
43
auto deadpixelsback = api.retrieveFromTFileAny<o2::FOO::DeadPixelMap>("FOO/DeadPixels", metadata /* constraint the objects retrieved to those matching the metadata */, -1/* timestamp */, &headers /* the headers attached to the returned object */);
44
44
// finally, use this method to retrieve only the headers (and thus the metadata)
// TODO: add some error info/handling when failing
114
114
mMetaData = metaData;
115
-
return getForTimeStamp<T>(path, timestamp);
115
+
auto obj = getForTimeStamp<T>(path, timestamp);
116
+
if (headers) {
117
+
*headers = mHeaders;
118
+
}
119
+
return obj;
116
120
}
117
121
118
122
/// retrieve an object of type T from CCDB as stored under path and using the timestamp in the middle of the run + metadata. The run number is provided separately to conform to typical analysis use (in which case metadata does not include runNumber)
119
123
template <typename T>
120
-
T* getSpecificForRun(std::string const& path, int runNumber, MD metaData = MD());
0 commit comments