Commit 3e3e6034 authored by Håkan Wennlöf's avatar Håkan Wennlöf
Browse files

Removed Event tree from the "reading messages" part of the ROOTObjectWriter.

Also updated test for the writer.
parent 495850b6
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -135,12 +135,19 @@ void ROOTObjectReaderModule::initialize() {
        if(std::string(key.GetClassName()) == "TTree") {
            auto* tree = static_cast<TTree*>(key.ReadObjectAny(nullptr));

            // Exclude the Event tree
            if(strcmp(tree->GetName(), "Event") == 0) {
                LOG(TRACE) << "Skipping Event tree in reading";
                continue;
            }

            // Check if a version of this tree has already been read
            if(tree_names.find(tree->GetName()) != tree_names.end()) {
                LOG(TRACE) << "Skipping copy of tree with name " << tree->GetName()
                           << " because one with identical name has already been processed";
                continue;
            }

            tree_names.insert(tree->GetName());

            // Check if this tree should be used
+1 −1
Original line number Diff line number Diff line
@@ -28,4 +28,4 @@ propagate_holes = true

[ROOTObjectWriter]

#PASS Wrote 25 objects to 4 branches in file:
#PASS Wrote 25 objects to 6 branches in file: