10#ifndef CBMDIGIBRANCHBASE_H
11#define CBMDIGIBRANCHBASE_H 1
15#include <boost/any.hpp>
54 virtual boost::any
GetDigi(uint32_t index) = 0;
79 virtual std::string
ToString()
const {
return ""; }
Abstract base class for CBM digi branches.
virtual std::size_t GetNofDigis() const =0
Get the number of digis in the branch.
TString GetName() const
Name of branch.
TString fName
Branch name.
virtual ~CbmDigiBranchBase()
Destructor.
virtual const CbmMatch * GetDigiMatch(uint32_t index)=0
Get a digi from the branch.
CbmDigiBranchBase(const char *name="unknown")
Constructor.
virtual bool HasMatches()=0
Presence of match branch.
virtual boost::any GetDigi(uint32_t index)=0
Get a digi from the branch.
virtual std::string ToString() const
String output.
virtual bool ConnectToTree()=0
Connect the branch to the ROOT tree.
virtual boost::any GetBranchContainer() const
Get branch pointer.