PandaRoot
PndInputContainerI< T > Class Template Referenceabstract

#include <BSEmcIdealDigitizationProcess.h>

Inheritance diagram for PndInputContainerI< T >:
PndContainerI< T > PndInputContainer< T > PndSTDInputContainer< T > PndTCAInputContainer< T >

Public Member Functions

 PndInputContainerI ()
 Construct a new PndInputContainerI object. More...
 
virtual T const * GetElement (Int_t t_index) const =0
 Get the Element object at t_index. More...
 
virtual T const * GetConstElementPtr (Int_t t_index) const
 Get the Element object at t_index. More...
 
std::vector< T const * > GetVector () const
 return vector of ptrs pointing at internal data, to be used to access data independent of underlying data container More...
 
- Public Member Functions inherited from PndContainerI< T >
 PndContainerI ()
 Construct a new PndContainerI object. More...
 
virtual ~PndContainerI ()
 Destroy the PndContainerI object. More...
 
virtual Bool_t Init (const TString &t_branchname)=0
 Init internal data. More...
 
virtual ssize_t GetSize () const =0
 Get the number of members in internal data. 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...
 

Additional Inherited Members

- Protected Attributes inherited from PndContainerI< T >
TString fBranchName {""}
 

Detailed Description

template<class T>
class PndInputContainerI< T >

Definition at line 24 of file BSEmcIdealDigitizationProcess.h.

Constructor & Destructor Documentation

◆ PndInputContainerI()

template<class T>
PndInputContainerI< T >::PndInputContainerI ( )
inline

Construct a new PndInputContainerI object.

Definition at line 13 of file PndInputContainerI.h.

Member Function Documentation

◆ GetConstElementPtr()

template<class T>
virtual T const* PndInputContainerI< T >::GetConstElementPtr ( Int_t  t_index) const
inlinevirtual

Get the Element object at t_index.

Parameters
t_index
Returns
T const *

Implements PndContainerI< T >.

Definition at line 34 of file PndInputContainerI.h.

Referenced by TestInTask::Exec(), TestPeekTask::Exec(), and BSEmcMCHitToTimebasedWaveforms< BSEmcBwEndcapDigiPar >::Exec().

34 { return this->GetElement(t_index); }
virtual T const * GetElement(Int_t t_index) const =0
Get the Element object at t_index.

◆ GetElement()

◆ GetVector()

template<class T>
std::vector<T const *> PndInputContainerI< T >::GetVector ( ) const
inline

return vector of ptrs pointing at internal data, to be used to access data independent of underlying data container

Returns
std::vector<T *>

Definition at line 41 of file PndInputContainerI.h.

42  {
43  std::vector<T const *> result{};
44  result.reserve(this->GetSize());
45  for (Int_t i = 0; i < this->GetSize(); ++i) {
46  result.push_back(this->GetElement(i));
47  }
48  return result;
49  }
virtual T const * GetElement(Int_t t_index) const =0
Get the Element object at t_index.
unsigned int i
Definition: P4_F32vec4.h:21
virtual ssize_t GetSize() const =0
Get the number of members in internal data.

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