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
8
namespace
podio::root_utils
{
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
*/
14
struct
CollectionBranches
{
15
TBranch*
data
{
nullptr
};
16
std::vector<TBranch*>
refs
{};
17
std::vector<TBranch*>
vecs
{};
18
};
19
20
}
// namespace podio::root_utils
21
22
#endif
podio::root_utils
Definition:
CollectionBranches.h:8
podio::root_utils::CollectionBranches
Definition:
CollectionBranches.h:14
podio::root_utils::CollectionBranches::data
TBranch * data
Definition:
CollectionBranches.h:15
podio::root_utils::CollectionBranches::vecs
std::vector< TBranch * > vecs
Definition:
CollectionBranches.h:17
podio::root_utils::CollectionBranches::refs
std::vector< TBranch * > refs
Definition:
CollectionBranches.h:16
podio-00-16-03
include
podio
CollectionBranches.h
Generated by
1.9.6