PODIO v00-16-03
An Event-Data-Model Toolkit for High Energy Physics Experiments
Loading...
Searching...
No Matches
CollectionBranches.h
Go to the documentation of this file.
1#ifndef PODIO_COLLECTIONBRANCHES_H
2#define PODIO_COLLECTIONBRANCHES_H
3
4#include "TBranch.h"
5
6#include <vector>
7
9/**
10 * Small helper struct to collect all branches that are necessary to read or
11 * write a collection. Needed to cache the branch pointers and avoid having to
12 * get them from a TTree/TChain for every event.
13 */
15 TBranch* data{nullptr};
16 std::vector<TBranch*> refs{};
17 std::vector<TBranch*> vecs{};
18};
19
20} // namespace podio::root_utils
21
22#endif