Commit 84118b25 authored by Wouter Deconinck's avatar Wouter Deconinck Committed by Wouter Deconinck
Browse files

podio: changing interfaces in patch releases...

parent 1288b64d
......@@ -33,7 +33,7 @@ StatusCode PodioOutput::initialize() {
void PodioOutput::resetBranches(const std::vector<std::pair<std::string, podio::CollectionBase*>>& collections) {
for (auto& [collName, collBuffers] : collections) {
#if podio_VERSION_MAJOR == 0 && podio_VERSION_MINOR < 14
#if podio_VERSION_MAJOR == 0 && (podio_VERSION_MINOR < 13 || (podio_VERSION_MINOR == 13 && podio_VERSION_PATCH < 2))
auto data = collBuffers->getBufferAddress();
auto references = collBuffers->referenceCollections();
auto vecmembers = collBuffers->vectorMembers();
......@@ -72,7 +72,7 @@ void PodioOutput::resetBranches(const std::vector<std::pair<std::string, podio::
void PodioOutput::createBranches(const std::vector<std::pair<std::string, podio::CollectionBase*>>& collections) {
for (auto& [collName, collBuffers] : collections) {
#if podio_VERSION_MAJOR == 0 && podio_VERSION_MINOR < 14
#if podio_VERSION_MAJOR == 0 && (podio_VERSION_MINOR < 13 || (podio_VERSION_MINOR == 13 && podio_VERSION_PATCH < 2))
auto data = collBuffers->getBufferAddress();
auto references = collBuffers->referenceCollections();
auto vecmembers = collBuffers->vectorMembers();
......
......@@ -29,7 +29,7 @@ inline std::string vecBranch(const std::string& name, size_t index) {
inline void setCollectionAddresses(podio::CollectionBase* collection, const CollectionBranches& branches) {
#if podio_VERSION_MAJOR == 0 && podio_VERSION_MINOR < 14
#if podio_VERSION_MAJOR == 0 && (podio_VERSION_MINOR < 13 || (podio_VERSION_MINOR == 13 && podio_VERSION_PATCH < 2))
auto data = collection->getBufferAddress();
auto references = collection->referenceCollections();
auto vecmembers = collection->vectorMembers();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment