| # Gaudi Framework, version v22r0 |

Home |  | Generated: 9 Feb 2011

# GaudiPython::TupleDecorator Class Reference

Simple class which performs the decoration of the standard N-Tuple. More...

`#include <GaudiPython/TupleDecorator.h>`

List of all members.

## Static Public Member Functions
static INTuple * | nTuple (const Tuples::Tuple &tuple)
| accessors to internal
static NTuple::Tuple * | ntuple (const Tuples::Tuple &tuple)
| accessors to internal
static bool | valid (const Tuples::Tuple &tuple)
| status of the tuple
static StatusCode | write (const Tuples::Tuple &tuple)
| commit the row
static StatusCode | column (const Tuples::Tuple &tuple, const std::string &name, const int value)
| more or less simple columns: int
static StatusCode | column (const Tuples::Tuple &tuple, const std::string &name, const int value, const int minv, const int maxv)
| more or less simple columns: int
static StatusCode | column (const Tuples::Tuple &tuple, const std::string &name, const double value)
| more or less simple columns: double
static StatusCode | column (const Tuples::Tuple &tuple, const std::string &name, const bool value)
| more or less simple columns: bool
static StatusCode | column (const Tuples::Tuple &tuple, const std::string &name, IOpaqueAddress *value)
| more or less simple columns: IOpaqueAddress
static StatusCode | column (const Tuples::Tuple &tuple, IOpaqueAddress *value)
| more or less simple columns: IOpaqueAddress
static StatusCode | column (const Tuples::Tuple &tuple, const std::string &name, const Gaudi::LorentzVector &value)
| Advanced columns: LorentzVector.
static StatusCode | column (const Tuples::Tuple &tuple, const std::string &name, const Gaudi::PtEtaPhiEVector &value)
| Advanced columns: LorentzVector.
static StatusCode | column (const Tuples::Tuple &tuple, const std::string &name, const Gaudi::XYZVector &value)
| Advanced columns: 3D-vector.
static StatusCode | column (const Tuples::Tuple &tuple, const std::string &name, const Gaudi::Polar3DVector &value)
| Advanced columns: 3D-vector.
static StatusCode | column (const Tuples::Tuple &tuple, const std::string &name, const Gaudi::RhoEtaPhiVector &value)
| Advanced columns: 3D-vector.
static StatusCode | column (const Tuples::Tuple &tuple, const std::string &name, const Gaudi::RhoZPhiVector &value)
| Advanced columns: 3D-vector.
static StatusCode | column (const Tuples::Tuple &tuple, const std::string &name, const Gaudi::XYZPoint &value)
| Advanced columns: 3D-points.
static StatusCode | column (const Tuples::Tuple &tuple, const std::string &name, const Gaudi::Polar3DPoint &value)
| Advanced columns: 3D-points.
static StatusCode | column (const Tuples::Tuple &tuple, const std::string &name, const Gaudi::RhoEtaPhiPoint &value)
| Advanced columns: 3D-points.
static StatusCode | column (const Tuples::Tuple &tuple, const std::string &name, const Gaudi::RhoZPhiPoint &value)
| Advanced columns: 3D-points.
static StatusCode | farray (const Tuples::Tuple &tuple, const std::string &name, const std::vector< double > &data, const std::string &length, const size_t maxv)
| Advanced columns: floating-size arrays.
static StatusCode | farray (const Tuples::Tuple &tuple, const std::string &name, const CLHEP::HepVector &data, const std::string &length, const size_t maxv)
| Advanced columns: floating-size arrays.
static StatusCode | fmatrix (const Tuples::Tuple &tuple, const std::string &name, const GaudiPython::Matrix &data, const Tuples::TupleObj::MIndex cols, const std::string &length, const size_t maxv)
| Advanced columns: floating-size matrices.
static StatusCode | fmatrix (const Tuples::Tuple &tuple, const std::string &name, const CLHEP::HepGenMatrix &data, const Tuples::TupleObj::MIndex cols, const std::string &length, const size_t maxv)
| Advanced columns: floating-size matrices.
static StatusCode | fmatrix (const Tuples::Tuple &tuple, const std::string &name, const GaudiUtils::VectorMap< int, double > &info, const std::string &length, const size_t maxv)
| Advanced columns: floating-size matrices.
static StatusCode | array (const Tuples::Tuple &tuple, const std::string &name, const std::vector< double > &data)
| Advanced columns: fixed size arrays.
static StatusCode | array (const Tuples::Tuple &tuple, const std::string &name, const CLHEP::HepVector &data)
| Advanced columns: fixed size arrays.
static StatusCode | array (const Tuples::Tuple &tuple, const std::string &name, const Gaudi::Vector2 &data)
| Advanced columns: fixed size arrays.
static StatusCode | array (const Tuples::Tuple &tuple, const std::string &name, const Gaudi::Vector3 &data)
| Advanced columns: fixed size arrays.
static StatusCode | array (const Tuples::Tuple &tuple, const std::string &name, const Gaudi::Vector4 &data)
| Advanced columns: fixed size arrays.
static StatusCode | array (const Tuples::Tuple &tuple, const std::string &name, const Gaudi::Vector5 &data)
| Advanced columns: fixed size arrays.
static StatusCode | array (const Tuples::Tuple &tuple, const std::string &name, const Gaudi::Vector6 &data)
| Advanced columns: fixed size arrays.
static StatusCode | array (const Tuples::Tuple &tuple, const std::string &name, const Gaudi::Vector7 &data)
| Advanced columns: fixed size arrays.
static StatusCode | array (const Tuples::Tuple &tuple, const std::string &name, const Gaudi::Vector8 &data)
| Advanced columns: fixed size arrays.
static StatusCode | array (const Tuples::Tuple &tuple, const std::string &name, const Gaudi::Vector9 &data)
| Advanced columns: fixed size arrays.
static StatusCode | array (const Tuples::Tuple &tuple, const std::string &name, const Gaudi::Vector1 &data)
| Advanced columns: fixed size arrays.
static StatusCode | matrix (const Tuples::Tuple &tuple, const std::string &name, const GaudiPython::Matrix &data, const Tuples::TupleObj::MIndex cols)
| Advanced columns: fixed size matrices.
static StatusCode | matrix (const Tuples::Tuple &tuple, const std::string &name, const CLHEP::HepGenMatrix &data)
| Advanced columns: fixed size matrices.
static StatusCode | matrix (const Tuples::Tuple &tuple, const std::string &name, const Gaudi::Matrix2x2 &value)
| Advanced columns: fixed size matrices: square matrices.
static StatusCode | matrix (const Tuples::Tuple &tuple, const std::string &name, const Gaudi::Matrix3x3 &value)
| Advanced columns: fixed size matrices: square matrices.
static StatusCode | matrix (const Tuples::Tuple &tuple, const std::string &name, const Gaudi::Matrix4x4 &value)
| Advanced columns: fixed size matrices: square matrices.
static StatusCode | matrix (const Tuples::Tuple &tuple, const std::string &name, const Gaudi::Matrix5x5 &value)
| Advanced columns: fixed size matrices: square matrices.
static StatusCode | matrix (const Tuples::Tuple &tuple, const std::string &name, const Gaudi::Matrix6x6 &value)
| Advanced columns: fixed size matrices: square matrices.
static StatusCode | matrix (const Tuples::Tuple &tuple, const std::string &name, const Gaudi::Matrix7x7 &value)
| Advanced columns: fixed size matrices: square matrices.
static StatusCode | matrix (const Tuples::Tuple &tuple, const std::string &name, const Gaudi::Matrix8x8 &value)
| Advanced columns: fixed size matrices: square matrices.
static StatusCode | matrix (const Tuples::Tuple &tuple, const std::string &name, const Gaudi::Matrix9x9 &value)
| Advanced columns: fixed size matrices: square matrices.
static StatusCode | matrix (const Tuples::Tuple &tuple, const std::string &name, const Gaudi::Matrix1x1 &value)
| Advanced columns: fixed size matrices: square matrices.
static StatusCode | matrix (const Tuples::Tuple &tuple, const std::string &name, const Gaudi::Matrix1x3 &value)
| Advanced columns: fixed size matrices: non-square matrices.
static StatusCode | matrix (const Tuples::Tuple &tuple, const std::string &name, const Gaudi::Matrix1x5 &value)
| Advanced columns: fixed size matrices: non-square matrices.
static StatusCode | matrix (const Tuples::Tuple &tuple, const std::string &name, const Gaudi::Matrix1x6 &value)
| Advanced columns: fixed size matrices: non-square matrices.
static StatusCode | matrix (const Tuples::Tuple &tuple, const std::string &name, const Gaudi::Matrix4x3 &value)
| Advanced columns: fixed size matrices: non-square matrices.
static StatusCode | matrix (const Tuples::Tuple &tuple, const std::string &name, const Gaudi::Matrix3x4 &value)
| Advanced columns: fixed size matrices: non-square matrices.
static StatusCode | matrix (const Tuples::Tuple &tuple, const std::string &name, const Gaudi::Matrix3x5 &value)
| Advanced columns: fixed size matrices: non-square matrices.
static StatusCode | matrix (const Tuples::Tuple &tuple, const std::string &name, const Gaudi::Matrix3x6 &value)
| Advanced columns: fixed size matrices: non-square matrices.
static StatusCode | matrix (const Tuples::Tuple &tuple, const std::string &name, const Gaudi::Matrix2x3 &value)
| Advanced columns: fixed size matrices: non-square matrices.
static StatusCode | matrix (const Tuples::Tuple &tuple, const std::string &name, const Gaudi::Matrix3x2 &value)
| Advanced columns: fixed size matrices: non-square matrices.
static StatusCode | matrix (const Tuples::Tuple &tuple, const std::string &name, const Gaudi::SymMatrix1x1 &value)
| Advanced columns: fixed size matrices: symmetric matrices.
static StatusCode | matrix (const Tuples::Tuple &tuple, const std::string &name, const Gaudi::SymMatrix3x3 &value)
| Advanced columns: fixed size matrices: symmetric matrices.
static StatusCode | matrix (const Tuples::Tuple &tuple, const std::string &name, const Gaudi::SymMatrix4x4 &value)
| Advanced columns: fixed size matrices: symmetric matrices.
static StatusCode | matrix (const Tuples::Tuple &tuple, const std::string &name, const Gaudi::SymMatrix5x5 &value)
| Advanced columns: fixed size matrices: symmetric matrices.
static StatusCode | matrix (const Tuples::Tuple &tuple, const std::string &name, const Gaudi::SymMatrix6x6 &value)
| Advanced columns: fixed size matrices: symmetric matrices.
static StatusCode | matrix (const Tuples::Tuple &tuple, const std::string &name, const Gaudi::SymMatrix7x7 &value)
| Advanced columns: fixed size matrices: symmetric matrices.
static StatusCode | matrix (const Tuples::Tuple &tuple, const std::string &name, const Gaudi::SymMatrix8x8 &value)
| Advanced columns: fixed size matrices: symmetric matrices.
static StatusCode | matrix (const Tuples::Tuple &tuple, const std::string &name, const Gaudi::SymMatrix9x9 &value)
| Advanced columns: fixed size matrices: symmetric matrices.
static StatusCode | matrix (const Tuples::Tuple &tuple, const std::string &name, const Gaudi::SymMatrix2x2 &value)
| Advanced columns: fixed size matrices: symmetric matrices.

## Detailed Description

Simple class which performs the decoration of the standard N-Tuple.

See also:
  Tuples::Tuple

Author:
  Vanya BELYAEV ibelyaev@physics.syr.edu

Date:
  2005-08-04

Definition at line 47 of file TupleDecorator.h.

## Member Function Documentation

StatusCode GaudiPython::TupleDecorator::array | ( | const Tuples::Tuple & | tuple,
|  | const std::string & | name,
|  | const Gaudi::Vector1 & | data |
| ) |  |  | `[static]`

Advanced columns: fixed size arrays.

Definition at line 254 of file TupleDecorator.cpp.

    00257 {
    00258   if ( !tuple.valid() ) { return StatusCode::FAILURE ; }
    00259   return tuple->array( name , data ) ;
    00260 }

StatusCode GaudiPython::TupleDecorator::array | ( | const Tuples::Tuple & | tuple,
|  | const std::string & | name,
|  | const Gaudi::Vector9 & | data |
| ) |  |  | `[static]`

Advanced columns: fixed size arrays.

Definition at line 327 of file TupleDecorator.cpp.

    00330 {
    00331   if ( !tuple.valid() ) { return StatusCode::FAILURE ; }
    00332   return tuple->array( name , data ) ;
    00333 }

StatusCode GaudiPython::TupleDecorator::array | ( | const Tuples::Tuple & | tuple,
|  | const std::string & | name,
|  | const Gaudi::Vector8 & | data |
| ) |  |  | `[static]`

Advanced columns: fixed size arrays.

Definition at line 318 of file TupleDecorator.cpp.

    00321 {
    00322   if ( !tuple.valid() ) { return StatusCode::FAILURE ; }
    00323   return tuple->array( name , data ) ;
    00324 }

StatusCode GaudiPython::TupleDecorator::array | ( | const Tuples::Tuple & | tuple,
|  | const std::string & | name,
|  | const Gaudi::Vector7 & | data |
| ) |  |  | `[static]`

Advanced columns: fixed size arrays.

Definition at line 309 of file TupleDecorator.cpp.

    00312 {
    00313   if ( !tuple.valid() ) { return StatusCode::FAILURE ; }
    00314   return tuple->array( name , data ) ;
    00315 }

StatusCode GaudiPython::TupleDecorator::array | ( | const Tuples::Tuple & | tuple,
|  | const std::string & | name,
|  | const Gaudi::Vector6 & | data |
| ) |  |  | `[static]`

Advanced columns: fixed size arrays.

Definition at line 300 of file TupleDecorator.cpp.

    00303 {
    00304   if ( !tuple.valid() ) { return StatusCode::FAILURE ; }
    00305   return tuple->array( name , data ) ;
    00306 }

StatusCode GaudiPython::TupleDecorator::array | ( | const Tuples::Tuple & | tuple,
|  | const std::string & | name,
|  | const Gaudi::Vector5 & | data |
| ) |  |  | `[static]`

Advanced columns: fixed size arrays.

Definition at line 291 of file TupleDecorator.cpp.

    00294 {
    00295   if ( !tuple.valid() ) { return StatusCode::FAILURE ; }
    00296   return tuple->array( name , data ) ;
    00297 }

StatusCode GaudiPython::TupleDecorator::array | ( | const Tuples::Tuple & | tuple,
|  | const std::string & | name,
|  | const Gaudi::Vector4 & | data |
| ) |  |  | `[static]`

Advanced columns: fixed size arrays.

Definition at line 281 of file TupleDecorator.cpp.

    00284 {
    00285   if ( !tuple.valid() ) { return StatusCode::FAILURE ; }
    00286   // return tuple->array( name , data ) ;
    00287   return tuple->array( name , data.begin() , data.begin()+4 ) ;
    00288 }

StatusCode GaudiPython::TupleDecorator::array | ( | const Tuples::Tuple & | tuple,
|  | const std::string & | name,
|  | const Gaudi::Vector3 & | data |
| ) |  |  | `[static]`

Advanced columns: fixed size arrays.

Definition at line 272 of file TupleDecorator.cpp.

    00275 {
    00276   if ( !tuple.valid() ) { return StatusCode::FAILURE ; }
    00277   return tuple->array( name , data.begin() , data.begin() + 3  ) ;
    00278 }

StatusCode GaudiPython::TupleDecorator::array | ( | const Tuples::Tuple & | tuple,
|  | const std::string & | name,
|  | const Gaudi::Vector2 & | data |
| ) |  |  | `[static]`

Advanced columns: fixed size arrays.

Definition at line 263 of file TupleDecorator.cpp.

    00266 {
    00267   if ( !tuple.valid() ) { return StatusCode::FAILURE ; }
    00268   return tuple->array( name , data ) ;
    00269 }

StatusCode GaudiPython::TupleDecorator::array | ( | const Tuples::Tuple & | tuple,
|  | const std::string & | name,
|  | const CLHEP::HepVector & | data |
| ) |  |  | `[static]`

Advanced columns: fixed size arrays.

Definition at line 245 of file TupleDecorator.cpp.

    00248 {
    00249   if ( !tuple.valid() ) { return StatusCode::FAILURE ; }
    00250   return tuple->array( name , data , data.num_row() ) ;
    00251 }

StatusCode GaudiPython::TupleDecorator::array | ( | const Tuples::Tuple & | tuple,
|  | const std::string & | name,
|  | const std::vector< double > & | data |
| ) |  |  | `[static]`

Advanced columns: fixed size arrays.

Definition at line 236 of file TupleDecorator.cpp.

    00239 {
    00240   if ( !tuple.valid() ) { return StatusCode::FAILURE ; }
    00241   return tuple->array ( name , data.begin() , data.end() ) ;
    00242 }

StatusCode GaudiPython::TupleDecorator::column | ( | const Tuples::Tuple & | tuple,
|  | const std::string & | name,
|  | const Gaudi::RhoZPhiPoint & | value |
| ) |  |  | `[static]`

Advanced columns: 3D-points.

Definition at line 164 of file TupleDecorator.cpp.

    00167 { return _fill ( tuple , name , value ) ; }

StatusCode GaudiPython::TupleDecorator::column | ( | const Tuples::Tuple & | tuple,
|  | const std::string & | name,
|  | const Gaudi::RhoEtaPhiPoint & | value |
| ) |  |  | `[static]`

Advanced columns: 3D-points.

Definition at line 158 of file TupleDecorator.cpp.

    00161 { return _fill ( tuple , name , value ) ; }

StatusCode GaudiPython::TupleDecorator::column | ( | const Tuples::Tuple & | tuple,
|  | const std::string & | name,
|  | const Gaudi::Polar3DPoint & | value |
| ) |  |  | `[static]`

Advanced columns: 3D-points.

Definition at line 152 of file TupleDecorator.cpp.

    00155 { return _fill ( tuple , name , value ) ; }

StatusCode GaudiPython::TupleDecorator::column | ( | const Tuples::Tuple & | tuple,
|  | const std::string & | name,
|  | const Gaudi::XYZPoint & | value |
| ) |  |  | `[static]`

Advanced columns: 3D-points.

Definition at line 146 of file TupleDecorator.cpp.

    00149 { return _fill ( tuple , name , value ) ; }

StatusCode GaudiPython::TupleDecorator::column | ( | const Tuples::Tuple & | tuple,
|  | const std::string & | name,
|  | const Gaudi::RhoZPhiVector & | value |
| ) |  |  | `[static]`

Advanced columns: 3D-vector.

Definition at line 140 of file TupleDecorator.cpp.

    00143 { return _fill ( tuple , name , value ) ; }

StatusCode GaudiPython::TupleDecorator::column | ( | const Tuples::Tuple & | tuple,
|  | const std::string & | name,
|  | const Gaudi::RhoEtaPhiVector & | value |
| ) |  |  | `[static]`

Advanced columns: 3D-vector.

Definition at line 134 of file TupleDecorator.cpp.

    00137 { return _fill ( tuple , name , value ) ; }

StatusCode GaudiPython::TupleDecorator::column | ( | const Tuples::Tuple & | tuple,
|  | const std::string & | name,
|  | const Gaudi::Polar3DVector & | value |
| ) |  |  | `[static]`

Advanced columns: 3D-vector.

Definition at line 128 of file TupleDecorator.cpp.

    00131 { return _fill ( tuple , name , value ) ; }

StatusCode GaudiPython::TupleDecorator::column | ( | const Tuples::Tuple & | tuple,
|  | const std::string & | name,
|  | const Gaudi::XYZVector & | value |
| ) |  |  | `[static]`

Advanced columns: 3D-vector.

Definition at line 122 of file TupleDecorator.cpp.

    00125 { return _fill ( tuple , name , value ) ; }

StatusCode GaudiPython::TupleDecorator::column | ( | const Tuples::Tuple & | tuple,
|  | const std::string & | name,
|  | const Gaudi::PtEtaPhiEVector & | value |
| ) |  |  | `[static]`

Advanced columns: LorentzVector.

Definition at line 116 of file TupleDecorator.cpp.

    00119 { return _fill ( tuple , name , value ) ; }

StatusCode GaudiPython::TupleDecorator::column | ( | const Tuples::Tuple & | tuple,
|  | const std::string & | name,
|  | const Gaudi::LorentzVector & | value |
| ) |  |  | `[static]`

Advanced columns: LorentzVector.

Definition at line 110 of file TupleDecorator.cpp.

    00113 { return _fill ( tuple , name , value ) ; }

static StatusCode GaudiPython::TupleDecorator::column | ( | const Tuples::Tuple & | tuple,
|  | IOpaqueAddress * | value |
| ) |  |  | `[inline, static]`

more or less simple columns: IOpaqueAddress

Definition at line 97 of file TupleDecorator.h.

    00099     { return column ( tuple , "Address" , value ) ; }

StatusCode GaudiPython::TupleDecorator::column | ( | const Tuples::Tuple & | tuple,
|  | const std::string & | name,
|  | IOpaqueAddress * | value |
| ) |  |  | `[static]`

more or less simple columns: IOpaqueAddress

Definition at line 101 of file TupleDecorator.cpp.

    00104 {
    00105   if ( !tuple.valid() ) { return StatusCode::FAILURE ; }
    00106   return tuple->column( name , value ) ;
    00107 }

StatusCode GaudiPython::TupleDecorator::column | ( | const Tuples::Tuple & | tuple,
|  | const std::string & | name,
|  | const bool | value |
| ) |  |  | `[static]`

more or less simple columns: bool

Definition at line 95 of file TupleDecorator.cpp.

    00098 { return _fill ( tuple , name , value ) ; }

StatusCode GaudiPython::TupleDecorator::column | ( | const Tuples::Tuple & | tuple,
|  | const std::string & | name,
|  | const double | value |
| ) |  |  | `[static]`

more or less simple columns: double

Definition at line 89 of file TupleDecorator.cpp.

    00092 { return _fill ( tuple , name , value ) ; }

StatusCode GaudiPython::TupleDecorator::column | ( | const Tuples::Tuple & | tuple,
|  | const std::string & | name,
|  | const int | value,
|  | const int | minv,
|  | const int | maxv |
| ) |  |  | `[static]`

more or less simple columns: int

Definition at line 78 of file TupleDecorator.cpp.

    00083 {
    00084   if ( !tuple.valid() ) { return StatusCode::FAILURE ; }
    00085   return tuple -> column ( name , value , minv , maxv ) ;
    00086 }

StatusCode GaudiPython::TupleDecorator::column | ( | const Tuples::Tuple & | tuple,
|  | const std::string & | name,
|  | const int | value |
| ) |  |  | `[static]`

more or less simple columns: int

Definition at line 72 of file TupleDecorator.cpp.

    00075 { return _fill ( tuple , name , value ) ; }

StatusCode GaudiPython::TupleDecorator::farray | ( | const Tuples::Tuple & | tuple,
|  | const std::string & | name,
|  | const CLHEP::HepVector & | data,
|  | const std::string & | length,
|  | const size_t | maxv |
| ) |  |  | `[static]`

Advanced columns: floating-size arrays.

Definition at line 181 of file TupleDecorator.cpp.

    00186 {
    00187   if ( !tuple.valid() ) { return StatusCode::FAILURE ; }
    00188   // use the trick!
    00189   const double* begin = &(data[0]);
    00190   const double* end   =   begin + data.num_row() ;
    00191   return tuple->farray ( name , begin , end , length , maxv ) ;
    00192 }

StatusCode GaudiPython::TupleDecorator::farray | ( | const Tuples::Tuple & | tuple,
|  | const std::string & | name,
|  | const std::vector< double > & | data,
|  | const std::string & | length,
|  | const size_t | maxv |
| ) |  |  | `[static]`

Advanced columns: floating-size arrays.

Definition at line 170 of file TupleDecorator.cpp.

    00175 {
    00176   if ( !tuple.valid() ) { return StatusCode::FAILURE ; }
    00177   return tuple->farray( name , data.begin() , data.end() , length , maxv ) ;
    00178 }

StatusCode GaudiPython::TupleDecorator::fmatrix | ( | const Tuples::Tuple & | tuple,
|  | const std::string & | name,
|  | const GaudiUtils::VectorMap< int, double > & | info,
|  | const std::string & | length,
|  | const size_t | maxv |
| ) |  |  | `[static]`

Advanced columns: floating-size matrices.

Definition at line 225 of file TupleDecorator.cpp.

    00230 {
    00231   if ( !tuple.valid() ) { return StatusCode::FAILURE ; }
    00232   return tuple->fmatrix ( name , info , length , maxv ) ;
    00233 }

StatusCode GaudiPython::TupleDecorator::fmatrix | ( | const Tuples::Tuple & | tuple,
|  | const std::string & | name,
|  | const CLHEP::HepGenMatrix & | data,
|  | const Tuples::TupleObj::MIndex | cols,
|  | const std::string & | length,
|  | const size_t | maxv |
| ) |  |  | `[static]`

Advanced columns: floating-size matrices.

Definition at line 210 of file TupleDecorator.cpp.

    00216 {
    00217   if ( !tuple.valid() ) { return StatusCode::FAILURE ; }
    00218   if ( cols != data.num_col() )
    00219   { return tuple ->
    00220       Error  ("GP:fmatrix(2): mismatch in matrix dimensions!" ) ; }
    00221   return tuple->fmatrix( name , data , data.num_row() , cols , length , maxv ) ;
    00222 }

StatusCode GaudiPython::TupleDecorator::fmatrix | ( | const Tuples::Tuple & | tuple,
|  | const std::string & | name,
|  | const GaudiPython::Matrix & | data,
|  | const Tuples::TupleObj::MIndex | cols,
|  | const std::string & | length,
|  | const size_t | maxv |
| ) |  |  | `[static]`

Advanced columns: floating-size matrices.

Definition at line 195 of file TupleDecorator.cpp.

    00201 {
    00202   if ( !tuple.valid() ) { return StatusCode::FAILURE ; }
    00203   if ( !data.empty() && cols != data.front().size() )
    00204   { return tuple ->
    00205       Error  ("GP:fmatrix(1): mismatch in matrix dimensions!" ) ; }
    00206   return tuple->fmatrix( name , data , data.size() , cols , length , maxv ) ;
    00207 }

StatusCode GaudiPython::TupleDecorator::matrix | ( | const Tuples::Tuple & | tuple,
|  | const std::string & | name,
|  | const Gaudi::SymMatrix2x2 & | value |
| ) |  |  | `[static]`

Advanced columns: fixed size matrices: symmetric matrices.

Definition at line 538 of file TupleDecorator.cpp.

    00541 {
    00542   if ( !tuple.valid() ) { return StatusCode::FAILURE ; }
    00543   return tuple->matrix ( name , data ) ;
    00544 }

StatusCode GaudiPython::TupleDecorator::matrix | ( | const Tuples::Tuple & | tuple,
|  | const std::string & | name,
|  | const Gaudi::SymMatrix9x9 & | value |
| ) |  |  | `[static]`

Advanced columns: fixed size matrices: symmetric matrices.

Definition at line 601 of file TupleDecorator.cpp.

    00604 {
    00605   if ( !tuple.valid() ) { return StatusCode::FAILURE ; }
    00606   return tuple->matrix ( name , data ) ;
    00607 }

StatusCode GaudiPython::TupleDecorator::matrix | ( | const Tuples::Tuple & | tuple,
|  | const std::string & | name,
|  | const Gaudi::SymMatrix8x8 & | value |
| ) |  |  | `[static]`

Advanced columns: fixed size matrices: symmetric matrices.

Definition at line 592 of file TupleDecorator.cpp.

    00595 {
    00596   if ( !tuple.valid() ) { return StatusCode::FAILURE ; }
    00597   return tuple->matrix ( name , data ) ;
    00598 }

StatusCode GaudiPython::TupleDecorator::matrix | ( | const Tuples::Tuple & | tuple,
|  | const std::string & | name,
|  | const Gaudi::SymMatrix7x7 & | value |
| ) |  |  | `[static]`

Advanced columns: fixed size matrices: symmetric matrices.

Definition at line 583 of file TupleDecorator.cpp.

    00586 {
    00587   if ( !tuple.valid() ) { return StatusCode::FAILURE ; }
    00588   return tuple->matrix ( name , data ) ;
    00589 }

StatusCode GaudiPython::TupleDecorator::matrix | ( | const Tuples::Tuple & | tuple,
|  | const std::string & | name,
|  | const Gaudi::SymMatrix6x6 & | value |
| ) |  |  | `[static]`

Advanced columns: fixed size matrices: symmetric matrices.

Definition at line 574 of file TupleDecorator.cpp.

    00577 {
    00578   if ( !tuple.valid() ) { return StatusCode::FAILURE ; }
    00579   return tuple->matrix ( name , data ) ;
    00580 }

StatusCode GaudiPython::TupleDecorator::matrix | ( | const Tuples::Tuple & | tuple,
|  | const std::string & | name,
|  | const Gaudi::SymMatrix5x5 & | value |
| ) |  |  | `[static]`

Advanced columns: fixed size matrices: symmetric matrices.

Definition at line 565 of file TupleDecorator.cpp.

    00568 {
    00569   if ( !tuple.valid() ) { return StatusCode::FAILURE ; }
    00570   return tuple->matrix ( name , data ) ;
    00571 }

StatusCode GaudiPython::TupleDecorator::matrix | ( | const Tuples::Tuple & | tuple,
|  | const std::string & | name,
|  | const Gaudi::SymMatrix4x4 & | value |
| ) |  |  | `[static]`

Advanced columns: fixed size matrices: symmetric matrices.

Definition at line 556 of file TupleDecorator.cpp.

    00559 {
    00560   if ( !tuple.valid() ) { return StatusCode::FAILURE ; }
    00561   return tuple->matrix ( name , data ) ;
    00562 }

StatusCode GaudiPython::TupleDecorator::matrix | ( | const Tuples::Tuple & | tuple,
|  | const std::string & | name,
|  | const Gaudi::SymMatrix3x3 & | value |
| ) |  |  | `[static]`

Advanced columns: fixed size matrices: symmetric matrices.

Definition at line 547 of file TupleDecorator.cpp.

    00550 {
    00551   if ( !tuple.valid() ) { return StatusCode::FAILURE ; }
    00552   return tuple->matrix ( name , data ) ;
    00553 }

StatusCode GaudiPython::TupleDecorator::matrix | ( | const Tuples::Tuple & | tuple,
|  | const std::string & | name,
|  | const Gaudi::SymMatrix1x1 & | value |
| ) |  |  | `[static]`

Advanced columns: fixed size matrices: symmetric matrices.

Definition at line 529 of file TupleDecorator.cpp.

    00532 {
    00533   if ( !tuple.valid() ) { return StatusCode::FAILURE ; }
    00534   return tuple->matrix ( name , data ) ;
    00535 }

StatusCode GaudiPython::TupleDecorator::matrix | ( | const Tuples::Tuple & | tuple,
|  | const std::string & | name,
|  | const Gaudi::Matrix3x2 & | value |
| ) |  |  | `[static]`

Advanced columns: fixed size matrices: non-square matrices.

Definition at line 520 of file TupleDecorator.cpp.

    00523 {
    00524   if ( !tuple.valid() ) { return StatusCode::FAILURE ; }
    00525   return tuple->matrix ( name , data ) ;
    00526 }

StatusCode GaudiPython::TupleDecorator::matrix | ( | const Tuples::Tuple & | tuple,
|  | const std::string & | name,
|  | const Gaudi::Matrix2x3 & | value |
| ) |  |  | `[static]`

Advanced columns: fixed size matrices: non-square matrices.

Definition at line 511 of file TupleDecorator.cpp.

    00514 {
    00515   if ( !tuple.valid() ) { return StatusCode::FAILURE ; }
    00516   return tuple->matrix ( name , data ) ;
    00517 }

StatusCode GaudiPython::TupleDecorator::matrix | ( | const Tuples::Tuple & | tuple,
|  | const std::string & | name,
|  | const Gaudi::Matrix3x6 & | value |
| ) |  |  | `[static]`

Advanced columns: fixed size matrices: non-square matrices.

Definition at line 502 of file TupleDecorator.cpp.

    00505 {
    00506   if ( !tuple.valid() ) { return StatusCode::FAILURE ; }
    00507   return tuple->matrix ( name , data ) ;
    00508 }

StatusCode GaudiPython::TupleDecorator::matrix | ( | const Tuples::Tuple & | tuple,
|  | const std::string & | name,
|  | const Gaudi::Matrix3x5 & | value |
| ) |  |  | `[static]`

Advanced columns: fixed size matrices: non-square matrices.

Definition at line 493 of file TupleDecorator.cpp.

    00496 {
    00497   if ( !tuple.valid() ) { return StatusCode::FAILURE ; }
    00498   return tuple->matrix ( name , data ) ;
    00499 }

StatusCode GaudiPython::TupleDecorator::matrix | ( | const Tuples::Tuple & | tuple,
|  | const std::string & | name,
|  | const Gaudi::Matrix3x4 & | value |
| ) |  |  | `[static]`

Advanced columns: fixed size matrices: non-square matrices.

Definition at line 484 of file TupleDecorator.cpp.

    00487 {
    00488   if ( !tuple.valid() ) { return StatusCode::FAILURE ; }
    00489   return tuple->matrix ( name , data ) ;
    00490 }

StatusCode GaudiPython::TupleDecorator::matrix | ( | const Tuples::Tuple & | tuple,
|  | const std::string & | name,
|  | const Gaudi::Matrix4x3 & | value |
| ) |  |  | `[static]`

Advanced columns: fixed size matrices: non-square matrices.

Definition at line 475 of file TupleDecorator.cpp.

    00478 {
    00479   if ( !tuple.valid() ) { return StatusCode::FAILURE ; }
    00480   return tuple->matrix ( name , data ) ;
    00481 }

StatusCode GaudiPython::TupleDecorator::matrix | ( | const Tuples::Tuple & | tuple,
|  | const std::string & | name,
|  | const Gaudi::Matrix1x6 & | value |
| ) |  |  | `[static]`

Advanced columns: fixed size matrices: non-square matrices.

Definition at line 466 of file TupleDecorator.cpp.

    00469 {
    00470   if ( !tuple.valid() ) { return StatusCode::FAILURE ; }
    00471   return tuple->matrix ( name , data ) ;
    00472 }

StatusCode GaudiPython::TupleDecorator::matrix | ( | const Tuples::Tuple & | tuple,
|  | const std::string & | name,
|  | const Gaudi::Matrix1x5 & | value |
| ) |  |  | `[static]`

Advanced columns: fixed size matrices: non-square matrices.

Definition at line 457 of file TupleDecorator.cpp.

    00460 {
    00461   if ( !tuple.valid() ) { return StatusCode::FAILURE ; }
    00462   return tuple->matrix ( name , data ) ;
    00463 }

StatusCode GaudiPython::TupleDecorator::matrix | ( | const Tuples::Tuple & | tuple,
|  | const std::string & | name,
|  | const Gaudi::Matrix1x3 & | value |
| ) |  |  | `[static]`

Advanced columns: fixed size matrices: non-square matrices.

Definition at line 448 of file TupleDecorator.cpp.

    00451 {
    00452   if ( !tuple.valid() ) { return StatusCode::FAILURE ; }
    00453   return tuple->matrix ( name , data ) ;
    00454 }

StatusCode GaudiPython::TupleDecorator::matrix | ( | const Tuples::Tuple & | tuple,
|  | const std::string & | name,
|  | const Gaudi::Matrix1x1 & | value |
| ) |  |  | `[static]`

Advanced columns: fixed size matrices: square matrices.

Definition at line 367 of file TupleDecorator.cpp.

    00370 {
    00371   if ( !tuple.valid() ) { return StatusCode::FAILURE ; }
    00372   return tuple->matrix ( name , data ) ;
    00373 }

StatusCode GaudiPython::TupleDecorator::matrix | ( | const Tuples::Tuple & | tuple,
|  | const std::string & | name,
|  | const Gaudi::Matrix9x9 & | value |
| ) |  |  | `[static]`

Advanced columns: fixed size matrices: square matrices.

Definition at line 439 of file TupleDecorator.cpp.

    00442 {
    00443   if ( !tuple.valid() ) { return StatusCode::FAILURE ; }
    00444   return tuple->matrix ( name , data ) ;
    00445 }

StatusCode GaudiPython::TupleDecorator::matrix | ( | const Tuples::Tuple & | tuple,
|  | const std::string & | name,
|  | const Gaudi::Matrix8x8 & | value |
| ) |  |  | `[static]`

Advanced columns: fixed size matrices: square matrices.

Definition at line 430 of file TupleDecorator.cpp.

    00433 {
    00434   if ( !tuple.valid() ) { return StatusCode::FAILURE ; }
    00435   return tuple->matrix ( name , data ) ;
    00436 }

StatusCode GaudiPython::TupleDecorator::matrix | ( | const Tuples::Tuple & | tuple,
|  | const std::string & | name,
|  | const Gaudi::Matrix7x7 & | value |
| ) |  |  | `[static]`

Advanced columns: fixed size matrices: square matrices.

Definition at line 421 of file TupleDecorator.cpp.

    00424 {
    00425   if ( !tuple.valid() ) { return StatusCode::FAILURE ; }
    00426   return tuple->matrix ( name , data ) ;
    00427 }

StatusCode GaudiPython::TupleDecorator::matrix | ( | const Tuples::Tuple & | tuple,
|  | const std::string & | name,
|  | const Gaudi::Matrix6x6 & | value |
| ) |  |  | `[static]`

Advanced columns: fixed size matrices: square matrices.

Definition at line 412 of file TupleDecorator.cpp.

    00415 {
    00416   if ( !tuple.valid() ) { return StatusCode::FAILURE ; }
    00417   return tuple->matrix ( name , data ) ;
    00418 }

StatusCode GaudiPython::TupleDecorator::matrix | ( | const Tuples::Tuple & | tuple,
|  | const std::string & | name,
|  | const Gaudi::Matrix5x5 & | value |
| ) |  |  | `[static]`

Advanced columns: fixed size matrices: square matrices.

Definition at line 403 of file TupleDecorator.cpp.

    00406 {
    00407   if ( !tuple.valid() ) { return StatusCode::FAILURE ; }
    00408   return tuple->matrix ( name , data ) ;
    00409 }

StatusCode GaudiPython::TupleDecorator::matrix | ( | const Tuples::Tuple & | tuple,
|  | const std::string & | name,
|  | const Gaudi::Matrix4x4 & | value |
| ) |  |  | `[static]`

Advanced columns: fixed size matrices: square matrices.

Definition at line 394 of file TupleDecorator.cpp.

    00397 {
    00398   if ( !tuple.valid() ) { return StatusCode::FAILURE ; }
    00399   return tuple->matrix ( name , data ) ;
    00400 }

StatusCode GaudiPython::TupleDecorator::matrix | ( | const Tuples::Tuple & | tuple,
|  | const std::string & | name,
|  | const Gaudi::Matrix3x3 & | value |
| ) |  |  | `[static]`

Advanced columns: fixed size matrices: square matrices.

Definition at line 385 of file TupleDecorator.cpp.

    00388 {
    00389   if ( !tuple.valid() ) { return StatusCode::FAILURE ; }
    00390   return tuple->matrix ( name , data ) ;
    00391 }

StatusCode GaudiPython::TupleDecorator::matrix | ( | const Tuples::Tuple & | tuple,
|  | const std::string & | name,
|  | const Gaudi::Matrix2x2 & | value |
| ) |  |  | `[static]`

Advanced columns: fixed size matrices: square matrices.

Definition at line 376 of file TupleDecorator.cpp.

    00379 {
    00380   if ( !tuple.valid() ) { return StatusCode::FAILURE ; }
    00381   return tuple->matrix ( name , data ) ;
    00382 }

StatusCode GaudiPython::TupleDecorator::matrix | ( | const Tuples::Tuple & | tuple,
|  | const std::string & | name,
|  | const CLHEP::HepGenMatrix & | data |
| ) |  |  | `[static]`

Advanced columns: fixed size matrices.

Definition at line 352 of file TupleDecorator.cpp.

    00355 {
    00356   if ( !tuple.valid() ) { return StatusCode::FAILURE ; }
    00357   if ( 1 > data.num_col()   )
    00358   { return tuple ->
    00359       Error  ("GP:matrix(2): illegal fixed matrix num_col" ) ; }
    00360   if ( 1 > data.num_row()   )
    00361   { return tuple ->
    00362       Error  ("GP:matrix(2): illegal fixed matrix num_row" ) ; }
    00363   return tuple->matrix( name , data , data.num_row() , data.num_col() ) ;
    00364 }

StatusCode GaudiPython::TupleDecorator::matrix | ( | const Tuples::Tuple & | tuple,
|  | const std::string & | name,
|  | const GaudiPython::Matrix & | data,
|  | const Tuples::TupleObj::MIndex | cols |
| ) |  |  | `[static]`

Advanced columns: fixed size matrices.

Definition at line 336 of file TupleDecorator.cpp.

    00340 {
    00341   if ( !tuple.valid() ) { return StatusCode::FAILURE ; }
    00342   if ( data.empty()   )
    00343   { return tuple ->
    00344       Warning ("GP:matrix(1): empty fixed matrix, skip matrix "    ) ; }
    00345   if ( cols != data.front().size() )
    00346   { return tuple ->
    00347       Error  ("GP:matrix(1): mismatch in fixed matrix dimensions!" ) ; }
    00348   return tuple -> matrix ( name , data , data.size() , cols  ) ;
    00349 }

NTuple::Tuple * GaudiPython::TupleDecorator::ntuple | ( | const Tuples::Tuple & | tuple | ) | `[static]`

accessors to internal

Definition at line 55 of file TupleDecorator.cpp.

    00056 {
    00057   if ( !tuple.valid() ) { return 0 ; }
    00058   return tuple->tuple() ;
    00059 }

INTuple * GaudiPython::TupleDecorator::nTuple | ( | const Tuples::Tuple & | tuple | ) | `[static]`

accessors to internal

Definition at line 48 of file TupleDecorator.cpp.

    00049 {
    00050   if ( !tuple.valid() ) { return 0 ; }
    00051   return tuple->tuple() ;
    00052 }

bool GaudiPython::TupleDecorator::valid | ( | const Tuples::Tuple & | tuple | ) | `[static]`

status of the tuple

Definition at line 62 of file TupleDecorator.cpp.

    00062 { return tuple.valid() ; }

StatusCode GaudiPython::TupleDecorator::write | ( | const Tuples::Tuple & | tuple | ) | `[static]`

commit the row

Definition at line 65 of file TupleDecorator.cpp.

    00066 {
    00067   if ( !tuple.valid() ) { return StatusCode::FAILURE ; }
    00068   return tuple->write();
    00069 }

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

- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v22r0/GaudiPython/GaudiPython/TupleDecorator.h
- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v22r0/GaudiPython/src/Lib/TupleDecorator.cpp

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines