CbmRoot
|
Abstract container for digis in CBM. More...
#include <CbmDigiContainer.h>
Public Member Functions | |
CbmDigiContainer (const char *name="") | |
Constructor. More... | |
virtual | ~CbmDigiContainer () |
Destructor. More... | |
virtual void | AddDigi (boost::any, const CbmMatch *) |
virtual Bool_t | ConnectToTree () |
Connect the container to ROOT tree branch. More... | |
virtual boost::any | GetDigi (UInt_t index)=0 |
Get a digi from the container. More... | |
virtual const CbmMatch * | GetDigiMatch (UInt_t index)=0 |
Get a match object from the container. More... | |
virtual Bool_t | HasMatches () const =0 |
Presence of match branch. More... | |
virtual const char * | GetName () const |
Name of container. More... | |
virtual ULong64_t | GetNofDigis () const =0 |
Get the number of digis in the container. More... | |
virtual std::string | ToString () const |
String output. More... | |
ClassDef (CbmDigiContainer, 1) | |
Abstract container for digis in CBM.
This abstract base class provides the access interface to containers of digi objects and their MC match objects. The choice of the actual container format (e.g. std::vector or TClonesArray) is left to the implementation of the concrete class.
Definition at line 30 of file CbmDigiContainer.h.
|
inline |
Constructor.
Definition at line 34 of file CbmDigiContainer.h.
|
inlinevirtual |
Destructor.
Definition at line 38 of file CbmDigiContainer.h.
|
inlinevirtual |
@Add data to the digi container
digi | Pointer to digi object |
match | Pointer to corresponding match object |
Reimplemented in CbmDigiVector< Digi >.
Definition at line 45 of file CbmDigiContainer.h.
CbmDigiContainer::ClassDef | ( | CbmDigiContainer | , |
1 | |||
) |
|
inlinevirtual |
Connect the container to ROOT tree branch.
Reimplemented in CbmDigiVector< Digi >.
Definition at line 51 of file CbmDigiContainer.h.
|
pure virtual |
Get a digi from the container.
index | Index of digi |
The return value has to be cast to the digi class using boost::any_cast. It is in the responsibility of the implementation of the derived classes to ensure the correct data type.
Implemented in CbmDigiVector< Digi >.
|
pure virtual |
Get a match object from the container.
index | Index of digi |
Implemented in CbmDigiVector< Digi >.
|
inlinevirtual |
Name of container.
Definition at line 79 of file CbmDigiContainer.h.
Referenced by CbmDigiVector< Digi >::AddDigi(), ToString(), and CbmDigiVector< Digi >::ToString().
|
pure virtual |
Get the number of digis in the container.
Implemented in CbmDigiVector< Digi >.
Referenced by CbmEventStore::GetNofDigis(), and CbmEventStore::IsEmpty().
|
pure virtual |
Presence of match branch.
Implemented in CbmDigiVector< Digi >.
|
inlinevirtual |
String output.
Reimplemented in CbmDigiVector< Digi >.
Definition at line 87 of file CbmDigiContainer.h.
References GetName().