1 #ifndef PandaTree_Interface_IOUtils_h 2 #define PandaTree_Interface_IOUtils_h 31 template<
class InputIterator>
BranchName(InputIterator begin, InputIterator end,
bool isVeto) : std::vector<TString>(begin, end), isVeto_(isVeto) {}
33 operator TString()
const;
35 TString
fullName(TString
const& objName =
"")
const;
37 bool isVeto()
const {
return isVeto_; }
67 BranchList(std::initializer_list<value_type> il,
const allocator_type& alloc = allocator_type()) : std::vector<BranchName>(il, alloc) {}
69 BranchList subList(TString
const& objName)
const;
77 BranchList fullNames(TString
const& objName =
"")
const;
101 Int_t checkStatus(TTree&, TString
const&
fullName, Bool_t status);
124 Int_t setAddress(TTree&, TString
const& objName,
BranchName const& bName,
void* bPtr,
BranchList const&, Bool_t setStatus);
132 Int_t book(TTree&, TString
const& objName,
BranchName const& bName, TString
const& size,
char lType,
void* bPtr,
BranchList const&);
133 Int_t resetAddress(TTree&, TString
const& objName,
BranchName const& bName);
137 book(TTree& _tree, TString
const& _objName,
BranchName const& _bName, TString
const& _objType, O** _bPtr,
BranchList const& _bList)
143 if (!_bName.
in(_bList))
146 _tree.Branch(_bName.
fullName(_objName), _objType, _bPtr);
156 makeDocTree(TString
const& treeName, TString names[], UInt_t size);
169 Bool_t Notify()
override;
186 char const* GetName()
const override;
187 Bool_t Notify()
override;
202 Bool_t removeBranchArrayUpdator(
ReaderObject& obj, TTree& tree);
TString fullName(TString const &objName="") const
Prepend the branch name with <objName.>.
Definition: IOUtils.cc:50
bool in(BranchList const &) const
Is the name included and not vetoed?
Definition: IOUtils.cc:96
List of branch names.
Definition: IOUtils.h:64
void setVerbosity(int i)
Set the verbosity level.
Definition: IOUtils.h:87
bool match(BranchName const &) const
Does the name match with the given name?
Definition: IOUtils.cc:72
bool vetoed(BranchList const &) const
Is the name included and vetoed?
Definition: IOUtils.cc:108
Automated branch list update for ReaderObjects.
Definition: IOUtils.h:181
bool isVeto() const
Did the name start with a '!'?
Definition: IOUtils.h:37
int getVerbosity() const
Get the verbosity level.
Definition: IOUtils.h:89
Tokenized branch name.
Definition: IOUtils.h:24
Base class for objects that can be linked to an input tree directly.
Definition: ReaderObject.h:10
One big Notify() manager for all objects.
Definition: IOUtils.h:165