1#ifndef PODIO_ROOTWRITER_H
2#define PODIO_ROOTWRITER_H
32 bool registerForWrite(
const std::string& name);
37 using StoreCollection = std::pair<const std::string&, podio::CollectionBase*>;
38 void createBranches(
const std::vector<StoreCollection>& collections);
39 void setBranches(
const std::vector<StoreCollection>& collections);
42 std::string m_filename;
46 TTree* m_metadatatree;
50 std::vector<std::string> m_collectionsToWrite{};
56 std::vector<root_utils::CollectionBranches> m_collectionBranches{};
58 bool m_firstEvent{
true};
ROOTWriter & operator=(const ROOTWriter &)=delete
ROOTWriter(const ROOTWriter &)=delete