The Gaudi Framework  master (37c0b60a)
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 52 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 217 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 219 of file NTupleItems.h.

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

Member Function Documentation

◆ dim()

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

Access individual dimensions.

Definition at line 235 of file NTupleItems.h.

235  {
236  return ( this->hasIndex() ) ? ( ( i == 0 ) ? this->m_rows : this->m_length / this->m_rows )
237  : ( ( i == 1 ) ? this->m_length / this->m_rows : this->m_rows );
238  }

◆ ndim()

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

Dimension.

Definition at line 233 of file NTupleItems.h.

233 { return 2; }

◆ range()

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

Access the range if specified.

Definition at line 229 of file NTupleItems.h.

229 { 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 227 of file NTupleItems.h.

227 { this->m_def = val; }

◆ size()

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

Size of entire object.

Definition at line 231 of file NTupleItems.h.

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

The documentation for this class was generated from the following file:
ConditionsStallTest.name
name
Definition: ConditionsStallTest.py:77
Gaudi::ParticleProperties::index
size_t index(const Gaudi::ParticleProperty *property, const Gaudi::Interfaces::IParticlePropertySvc *service)
helper utility for mapping of Gaudi::ParticleProperty object into non-negative integral sequential id...
Definition: IParticlePropertySvc.cpp:39