CbmRoot
Loading...
Searching...
No Matches
CbmDigiBranchBase Class Referenceabstract

Abstract base class for CBM digi branches. More...

#include <CbmDigiBranchBase.h>

Inheritance diagram for CbmDigiBranchBase:
[legend]

Public Member Functions

 CbmDigiBranchBase (const char *name="unknown")
 Constructor.
 
virtual ~CbmDigiBranchBase ()
 Destructor.
 
virtual bool ConnectToTree ()=0
 Connect the branch to the ROOT tree.
 
virtual boost::any GetDigi (uint32_t index)=0
 Get a digi from the branch.
 
virtual const CbmMatchGetDigiMatch (uint32_t index)=0
 Get a digi from the branch.
 
virtual bool HasMatches ()=0
 Presence of match branch.
 
TString GetName () const
 Name of branch.
 
virtual std::size_t GetNofDigis () const =0
 Get the number of digis in the branch.
 
virtual std::string ToString () const
 String output.
 
virtual boost::any GetBranchContainer () const
 Get branch pointer.
 

Protected Attributes

TString fName
 Branch name.
 

Detailed Description

Abstract base class for CBM digi branches.

Author
V. Friese v.fri.nosp@m.ese@.nosp@m.gsi.d.nosp@m.e
Since
4 June 2019

Abstract interface to branches holding digi objects.

Definition at line 29 of file CbmDigiBranchBase.h.

Constructor & Destructor Documentation

◆ CbmDigiBranchBase()

CbmDigiBranchBase::CbmDigiBranchBase ( const char * name = "unknown")
inline

Constructor.

Parameters
systemSystem identifier (ECbmModuleId)
nameBranch name

Definition at line 36 of file CbmDigiBranchBase.h.

◆ ~CbmDigiBranchBase()

virtual CbmDigiBranchBase::~CbmDigiBranchBase ( )
inlinevirtual

Destructor.

Definition at line 40 of file CbmDigiBranchBase.h.

Member Function Documentation

◆ ConnectToTree()

virtual bool CbmDigiBranchBase::ConnectToTree ( )
pure virtual

Connect the branch to the ROOT tree.

Parameters
ioManPointer to FairRootManager singleton instance
Returns
true if branch was found

Implemented in CbmDigiBranch< Digi >.

Referenced by CbmDigiManager::SetBranch().

◆ GetBranchContainer()

virtual boost::any CbmDigiBranchBase::GetBranchContainer ( ) const
inlinevirtual

Get branch pointer.

Reimplemented in CbmDigiBranch< Digi >.

Definition at line 82 of file CbmDigiBranchBase.h.

Referenced by CbmTaskBuildEvents::FillTimeSlice(), and CbmTaskTriggerDigi::GetDigiTimes().

◆ GetDigi()

virtual boost::any CbmDigiBranchBase::GetDigi ( uint32_t index)
pure virtual

Get a digi from the branch.

Parameters
indexIndex of digi in branch
Returns
Pointer to constant digi object

Implemented in CbmDigiBranch< Digi >.

◆ GetDigiMatch()

virtual const CbmMatch * CbmDigiBranchBase::GetDigiMatch ( uint32_t index)
pure virtual

Get a digi from the branch.

Parameters
indexIndex of digi in branch
Returns
Pointer to constant digi object

Implemented in CbmDigiBranch< Digi >.

◆ GetName()

TString CbmDigiBranchBase::GetName ( ) const
inline

Name of branch.

Definition at line 71 of file CbmDigiBranchBase.h.

References fName.

◆ GetNofDigis()

virtual std::size_t CbmDigiBranchBase::GetNofDigis ( ) const
pure virtual

Get the number of digis in the branch.

Implemented in CbmDigiBranch< Digi >.

◆ HasMatches()

virtual bool CbmDigiBranchBase::HasMatches ( )
pure virtual

Presence of match branch.

Returns
true if a match branch is connected

Implemented in CbmDigiBranch< Digi >.

◆ ToString()

virtual std::string CbmDigiBranchBase::ToString ( ) const
inlinevirtual

String output.

Reimplemented in CbmDigiBranch< Digi >.

Definition at line 79 of file CbmDigiBranchBase.h.

Member Data Documentation

◆ fName

TString CbmDigiBranchBase::fName
protected

Branch name.

Definition at line 85 of file CbmDigiBranchBase.h.

Referenced by CbmDigiBranch< Digi >::ConnectToTree(), GetName(), and CbmDigiBranch< Digi >::ToString().


The documentation for this class was generated from the following file: