Пример #1
0
// ============================================================================
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   )
{
  if ( !tuple.valid() ) { return StatusCode::FAILURE ; }
  return tuple->fmatrix ( name , info , length , maxv ) ;
}
Пример #2
0
// ============================================================================
StatusCode GaudiPython::TupleDecorator::fmatrix
( const Tuples::Tuple&           tuple  ,
  const std::string&             name   ,
  const CLHEP::HepGenMatrix&     data   ,
  const Tuples::TupleObj::MIndex cols   , // fixed !!!
  const std::string&             length ,
  const size_t                   maxv   )
{
  if ( !tuple.valid() ) { return StatusCode::FAILURE ; }
  if ( cols != data.num_col() )
  { return tuple ->
      Error  ("GP:fmatrix(2): mismatch in matrix dimensions!" ) ; }
  return tuple->fmatrix( name , data , data.num_row() , cols , length , maxv ) ;
}
Пример #3
0
// ============================================================================
StatusCode GaudiPython::TupleDecorator::fmatrix
( const Tuples::Tuple&           tuple  ,
  const std::string&             name   ,
  const GaudiPython::Matrix&     data   ,
  const Tuples::TupleObj::MIndex cols   , // fixed !!!
  const std::string&             length ,
  const size_t                   maxv   )
{
  if ( !tuple.valid() ) { return StatusCode::FAILURE ; }
  if ( !data.empty() && cols != data.front().size() )
  { return tuple ->
      Error  ("GP:fmatrix(1): mismatch in matrix dimensions!" ) ; }
  return tuple->fmatrix( name , data , data.size() , cols , length , maxv ) ;
}