![]() |
PandaRoot
|
PndTCAOutputContainer implementation of PndOutputContainerI<T> for FairRootManager and TClonesArray. More...
#include <PndTCAOutputContainer.h>
Public Member Functions | |
PndTCAOutputContainer (const TString &t_foldername="", Bool_t t_persistency=kTRUE) | |
Construct a new PndTCAOutputContainer object. More... | |
virtual | ~PndTCAOutputContainer () |
Destroy the PndTCAOutput Container object. More... | |
virtual Bool_t | Init (const TString &t_branchname) final |
Register the data t_branchname in form of TClonesArray * with the FairRootManager. 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... | |
![]() | |
PndOutputContainerI (const TString &t_foldername="", Bool_t t_persistency=kTRUE) | |
Construct a new PndOutputContainerI object. More... | |
fFolderName (t_foldername) | |
fPersistency (t_persistency) | |
virtual | ~PndOutputContainerI () |
Destroy the PndOutputContainerI 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... | |
const TString & | GetBranchName () const |
Get the BranchName. More... | |
Protected Attributes | |
TClonesArray * | fTCA {nullptr} |
![]() | |
TString | fFolderName {""} |
Bool_t | fPersistency {kFALSE} |
![]() | |
TString | fBranchName {""} |
PndTCAOutputContainer implementation of PndOutputContainerI<T> for FairRootManager and TClonesArray.
Output data registered with FairRootManager as (TClonesArray *)
T |
Definition at line 36 of file PndTCAOutputContainer.h.
|
inline |
Construct a new PndTCAOutputContainer object.
const | TString &t_foldername = "" |
Bool_t | t_persistency = kTRUE |
Definition at line 44 of file PndTCAOutputContainer.h.
|
inlinevirtual |
Destroy the PndTCAOutput Container object.
Definition at line 50 of file PndTCAOutputContainer.h.
|
inlinevirtual |
Compress.
Reimplemented from PndOutputContainerI< T >.
Definition at line 128 of file PndTCAOutputContainer.h.
|
inlinevirtual |
Create a copy of t_element in the TClonesArray and return a pointer to it.
const | T &t_element |
Implements PndOutputContainerI< T >.
Definition at line 101 of file PndTCAOutputContainer.h.
Referenced by TestOutWithTCATask::Exec(), and BSEmcExtractDigisFromWaveforms< BSEmcFwEndcapDigiPar >::Exec().
|
inlinefinalvirtual |
Get pointer to the t_idx-th element.
Int_t | t_idx |
Implements PndOutputContainerI< T >.
Definition at line 141 of file PndTCAOutputContainer.h.
Referenced by PndTCAOutputContainer< BSEmcDigi >::CreateCopy().
|
inlinefinalvirtual |
Get the number of elements.
Implements PndContainerI< T >.
Definition at line 154 of file PndTCAOutputContainer.h.
Referenced by PndTCAOutputContainer< BSEmcDigi >::CreateCopy().
|
inline |
Get the TClonesArray address.
Definition at line 174 of file PndTCAOutputContainer.h.
|
inlinefinalvirtual |
Register the data t_branchname in form of TClonesArray * with the FairRootManager.
const | TString &t_branchname |
Implements PndContainerI< T >.
Definition at line 57 of file PndTCAOutputContainer.h.
Referenced by BSEmcExtractDigisFromWaveforms< BSEmcFwEndcapDigiPar >::Init(), and TestOutWithTCATask::Init().
|
inlinevirtual |
remove the t_index-th element
Int_t | t_index |
Implements PndOutputContainerI< T >.
Definition at line 117 of file PndTCAOutputContainer.h.
|
inlinefinalvirtual |
Delete all elements.
Implements PndOutputContainerI< T >.
Definition at line 89 of file PndTCAOutputContainer.h.
Referenced by TestOutWithTCATask::Exec(), and BSEmcExtractDigisFromWaveforms< BSEmcFwEndcapDigiPar >::Exec().
|
inline |
Set the TClonesArray address.
TClonesArray | *t_tca |
Definition at line 167 of file PndTCAOutputContainer.h.
|
protected |
Definition at line 177 of file PndTCAOutputContainer.h.
Referenced by PndTCAOutputContainer< BSEmcDigi >::Compress(), PndTCAOutputContainer< BSEmcDigi >::CreateCopy(), PndTCAOutputContainer< BSEmcDigi >::GetElement(), PndTCAOutputContainer< BSEmcDigi >::GetSize(), PndTCAOutputContainer< BSEmcDigi >::GetTCA(), PndTCAOutputContainer< BSEmcDigi >::Init(), PndTCAOutputContainer< BSEmcDigi >::RemoveAt(), PndTCAOutputContainer< BSEmcDigi >::Reset(), and PndTCAOutputContainer< BSEmcDigi >::SetTCA().