The Gaudi Framework  v36r9p1 (5c15b2bb)
NTuple::_MatrixImp< TYP > Class Template Reference

Concrete class discribing a matrix column in a N tuple. More...

#include </builds/gaudi/Gaudi/GaudiKernel/include/GaudiKernel/NTupleItems.h>

Public Types

typedef Range< TYP > ItemRange
 Set type definition to make life more easy easy. More...
 

Public Member Functions

 _MatrixImp (INTuple *tup, const std::string &name, const std::type_info &typ, const std::string &index, long ncol, long nrow, TYP min, TYP max, TYP def)
 Standard Constructor. More...
 
void setDefault (const TYP val) override
 Compiler type ID. More...
 
const ItemRangerange () const override
 Access the range if specified. More...
 
long size () const override
 Size of entire object. More...
 
long ndim () const override
 Dimension. More...
 
long dim (long i) const override
 Access individual dimensions. More...
 

Detailed Description

template<class TYP>
class NTuple::_MatrixImp< TYP >

Concrete class discribing a matrix column in a N tuple.

Definition at line 49 of file NTupleItems.h.

Member Typedef Documentation

◆ ItemRange

template<class TYP >
typedef Range<TYP> NTuple::_MatrixImp< TYP >::ItemRange

Set type definition to make life more easy easy.

Definition at line 214 of file NTupleItems.h.

Constructor & Destructor Documentation

◆ _MatrixImp()

template<class TYP >
NTuple::_MatrixImp< TYP >::_MatrixImp ( INTuple tup,
const std::string name,
const std::type_info typ,
const std::string index,
long  ncol,
long  nrow,
TYP  min,
TYP  max,
TYP  def 
)
inline

Standard Constructor.

Definition at line 216 of file NTupleItems.h.

218  : _DataImp<TYP>( tup, name, typ, index, nrow * ncol, min, max, def ) {
219  this->m_rows = nrow;
220  }

Member Function Documentation

◆ dim()

template<class TYP >
long NTuple::_MatrixImp< TYP >::dim ( long  i) const
inlineoverride

Access individual dimensions.

Definition at line 232 of file NTupleItems.h.

232  {
233  return ( this->hasIndex() ) ? ( ( i == 0 ) ? this->m_rows : this->m_length / this->m_rows )
234  : ( ( i == 1 ) ? this->m_length / this->m_rows : this->m_rows );
235  }

◆ ndim()

template<class TYP >
long NTuple::_MatrixImp< TYP >::ndim ( ) const
inlineoverride

Dimension.

Definition at line 230 of file NTupleItems.h.

230 { return 2; }

◆ range()

template<class TYP >
const ItemRange& NTuple::_MatrixImp< TYP >::range ( ) const
inlineoverride

Access the range if specified.

Definition at line 226 of file NTupleItems.h.

226 { return this->m_range; }

◆ setDefault()

template<class TYP >
void NTuple::_MatrixImp< TYP >::setDefault ( const TYP  val)
inlineoverride

Compiler type ID.

Set default value

Definition at line 224 of file NTupleItems.h.

224 { this->m_def = val; }

◆ size()

template<class TYP >
long NTuple::_MatrixImp< TYP >::size ( ) const
inlineoverride

Size of entire object.

Definition at line 228 of file NTupleItems.h.

228 { return this->m_length * sizeof( TYP ); }

The documentation for this class was generated from the following file:
max
EventIDBase max(const EventIDBase &lhs, const EventIDBase &rhs)
Definition: EventIDBase.h:225
TimingHistograms.name
name
Definition: TimingHistograms.py:25
min
EventIDBase min(const EventIDBase &lhs, const EventIDBase &rhs)
Definition: EventIDBase.h:212