![]() |
PandaRoot
|
PndTCAMutableContainer implementation of PndMutableContainerI<T> for FairRootManager and TClonesArray. More...
#include <PndTCAMutableContainer.h>
Public Member Functions | |
PndTCAMutableContainer (const TString &t_foldername="", Bool_t t_persistency=kTRUE) | |
Construct a new PndTCAMutableContainer object. More... | |
virtual | ~PndTCAMutableContainer () |
Destroy the PndTCAOutput Container object. More... | |
virtual void | Reset () final |
Delete all elements. More... | |
virtual T * | CreateCopy (const T &t_element) |
Create a copy of t_element in the TClonesArray and return a pointer to it. More... | |
virtual void | RemoveAt (Int_t t_index) |
remove the t_index-th element More... | |
virtual void | Compress () |
Compress. More... | |
virtual T * | GetElement (Int_t t_idx) const final |
Get pointer to the t_idx-th element. More... | |
virtual ssize_t | GetSize () const final |
Get the number of elements. More... | |
void | SetTCA (TClonesArray *t_tca) |
Set the TClonesArray address. More... | |
TClonesArray * | GetTCA () |
Get the TClonesArray address. More... | |
![]() | |
PndMutableContainerI (const TString &t_foldername="", Bool_t t_persistency=kTRUE) | |
Construct a new PndMutableContainerI object. More... | |
fFolderName (t_foldername) | |
fPersistency (t_persistency) | |
virtual | ~PndMutableContainerI () |
Destroy the PndMutableContainerI object. More... | |
virtual T const * | GetConstElementPtr (Int_t t_index) const |
Get the Element object at t_index. More... | |
std::vector< T * > | GetVector () const |
return vector of ptrs pointing at internal data, to be used to access data independent of underlying data container More... | |
void | SetFolderName (const TString &t_foldername) |
Set the FolderName. More... | |
void | SetPersistency (Bool_t t_persistency) |
Set the Persistency of the data. More... | |
const TString & | GetFolderName () const |
Get the Folder Name. More... | |
Bool_t | GetPersistency () const |
Get the Persistency of the data. More... | |
![]() | |
PndContainerI () | |
Construct a new PndContainerI object. More... | |
virtual | ~PndContainerI () |
Destroy the PndContainerI object. More... | |
std::vector< T const * > | GetVectorOfPtrToConst () const |
return vector of const ptrs pointing at internal data, to be used to access data independent of underlying data container More... | |
TString | GetClassName () const |
![]() | |
PndContainerBaseI () | |
Construct a new PndContainerBaseI object. More... | |
virtual | ~PndContainerBaseI () |
Destroy the PndContainerBaseI object. More... | |
const TString & | GetBranchName () const |
Get the BranchName. More... | |
void | SetBranchName (const TString &t_branchname) |
Set the Branch Name. More... | |
Protected Attributes | |
TClonesArray * | fTCA {nullptr} |
![]() | |
TString | fFolderName {""} |
Bool_t | fPersistency {kFALSE} |
![]() | |
TString | fBranchName {""} |
PndTCAMutableContainer implementation of PndMutableContainerI<T> for FairRootManager and TClonesArray.
Output data registered with FairRootManager as (TClonesArray *)
T |
Definition at line 38 of file PndTCAMutableContainer.h.
|
inline |
Construct a new PndTCAMutableContainer object.
const | TString &t_foldername = "" |
Bool_t | t_persistency = kTRUE |
Definition at line 46 of file PndTCAMutableContainer.h.
|
inlinevirtual |
Destroy the PndTCAOutput Container object.
Definition at line 52 of file PndTCAMutableContainer.h.
|
inlinevirtual |
Compress.
Reimplemented from PndMutableContainerI< T >.
Definition at line 97 of file PndTCAMutableContainer.h.
|
inlinevirtual |
Create a copy of t_element in the TClonesArray and return a pointer to it.
const | T &t_element |
Implements PndMutableContainerI< T >.
Definition at line 70 of file PndTCAMutableContainer.h.
Referenced by TestOutTask::Exec(), BSEmcExtractDigisFromWaveforms< BSEmcFwEndcapDigiPar >::Exec(), and TestOutWithTCATask::Exec().
|
inlinefinalvirtual |
Get pointer to the t_idx-th element.
Int_t | t_idx |
Implements PndMutableContainerI< T >.
Definition at line 110 of file PndTCAMutableContainer.h.
Referenced by PndTCAMutableContainer< BSEmcDigi >::CreateCopy().
|
inlinefinalvirtual |
Get the number of elements.
Implements PndContainerBaseI.
Definition at line 123 of file PndTCAMutableContainer.h.
Referenced by PndTCAMutableContainer< BSEmcDigi >::CreateCopy().
|
inline |
Get the TClonesArray address.
Definition at line 143 of file PndTCAMutableContainer.h.
|
inlinevirtual |
remove the t_index-th element
Int_t | t_index |
Implements PndMutableContainerI< T >.
Definition at line 86 of file PndTCAMutableContainer.h.
|
inlinefinalvirtual |
Delete all elements.
Implements PndMutableContainerI< T >.
Definition at line 58 of file PndTCAMutableContainer.h.
Referenced by TestOutTask::Exec(), BSEmcExtractDigisFromWaveforms< BSEmcFwEndcapDigiPar >::Exec(), and TestOutWithTCATask::Exec().
|
inline |
Set the TClonesArray address.
TClonesArray | *t_tca |
Definition at line 136 of file PndTCAMutableContainer.h.
Referenced by PndProcessTask::HandledRequest(), BSEmcExtractDigisFromWaveforms< BSEmcFwEndcapDigiPar >::Init(), TestOutTask::Init(), and TestOutWithTCATask::Init().
|
protected |
Definition at line 146 of file PndTCAMutableContainer.h.
Referenced by PndTCAMutableContainer< BSEmcDigi >::Compress(), PndTCAMutableContainer< BSEmcDigi >::CreateCopy(), PndTCAMutableContainer< BSEmcDigi >::GetElement(), PndTCAMutableContainer< BSEmcDigi >::GetSize(), PndTCAMutableContainer< BSEmcDigi >::GetTCA(), PndTCAMutableContainer< BSEmcDigi >::RemoveAt(), PndTCAMutableContainer< BSEmcDigi >::Reset(), and PndTCAMutableContainer< BSEmcDigi >::SetTCA().