5 #pragma warning(disable:1572)
12 #include "CLHEP/Matrix/GenMatrix.h"
13 #include "CLHEP/Matrix/Matrix.h"
14 #include "CLHEP/Matrix/Vector.h"
17 using namespace CLHEP;
51 if ( !tuple.
valid() ) {
return 0 ; }
52 return tuple->
tuple() ;
58 if ( !tuple.
valid() ) {
return 0 ; }
59 return tuple->
tuple() ;
69 return tuple->
write();
76 {
return _fill ( tuple , name , value ) ; }
86 return tuple -> column ( name , value , minv , maxv ) ;
93 {
return _fill ( tuple , name , value ) ; }
98 const long long value )
99 {
return _fill ( tuple , name , value ) ; }
104 const unsigned long long value )
105 {
return _fill ( tuple , name , value ) ; }
111 {
return _fill ( tuple , name , value ) ; }
119 return tuple->
column( name , value ) ;
125 {
return column ( tuple ,
"Address" , value ) ; }
131 {
return _fill ( tuple , name , value ) ; }
137 {
return _fill ( tuple , name , value ) ; }
143 {
return _fill ( tuple , name , value ) ; }
153 return tuple->
farray( name , data.
begin() , data.
end() , length , maxv ) ;
165 if ( !data.
empty() && cols != data.
front().size() )
167 Error (
"GP:fmatrix(1): mismatch in matrix dimensions!" ) ; }
168 return tuple->
fmatrix( name , data , data.
size() , cols , length , maxv ) ;
179 return tuple->
fmatrix ( name , info , length , maxv ) ;
197 return tuple->
array( name , data ) ;
206 return tuple->
array( name , data ) ;
215 return tuple->
array( name , data.begin() , data.begin() + 3 ) ;
225 return tuple->
array( name , data.begin() , data.begin()+4 ) ;
234 return tuple->
array( name , data ) ;
243 return tuple->
array( name , data ) ;
252 return tuple->
array( name , data ) ;
261 return tuple->
array( name , data ) ;
270 return tuple->
array( name , data ) ;
282 Warning (
"GP:matrix(1): empty fixed matrix, skip matrix " ) ; }
283 if ( cols != data.
front().size() )
285 Error (
"GP:matrix(1): mismatch in fixed matrix dimensions!" ) ; }
286 return tuple -> matrix ( name , data , data.
size() , cols ) ;
295 return tuple->
matrix ( name , data ) ;
304 return tuple->
matrix ( name , data ) ;
313 return tuple->
matrix ( name , data ) ;
322 return tuple->
matrix ( name , data ) ;
331 return tuple->
matrix ( name , data ) ;
340 return tuple->
matrix ( name , data ) ;
349 return tuple->
matrix ( name , data ) ;
358 return tuple->
matrix ( name , data ) ;
367 return tuple->
matrix ( name , data ) ;
376 return tuple->
matrix ( name , data ) ;
385 return tuple->
matrix ( name , data ) ;
394 return tuple->
matrix ( name , data ) ;
403 return tuple->
matrix ( name , data ) ;
412 return tuple->
matrix ( name , data ) ;
421 return tuple->
matrix ( name , data ) ;
430 return tuple->
matrix ( name , data ) ;
439 return tuple->
matrix ( name , data ) ;
448 return tuple->
matrix ( name , data ) ;
457 return tuple->
matrix ( name , data ) ;
466 return tuple->
matrix ( name , data ) ;
475 return tuple->
matrix ( name , data ) ;
484 return tuple->
matrix ( name , data ) ;
493 return tuple->
matrix ( name , data ) ;
502 return tuple->
matrix ( name , data ) ;
511 return tuple->
matrix ( name , data ) ;
520 return tuple->
matrix ( name , data ) ;
529 return tuple->
matrix ( name , data ) ;
536 const Gaudi::Time& value )
537 {
return column ( tuple ,
"" , value ) ; }
544 const Gaudi::Time& value )
549 sc = tuple->
column ( name +
"year" , value.year (
true ) , 1970 , 2070 ) ;
551 sc = tuple->
column ( name +
"month" , value.month (
true ) + 1 , 1 , 16 ) ;
553 sc = tuple->
column ( name +
"day" , value.day (
true ) , 0 , 32 ) ;
555 sc = tuple->
column ( name +
"hour" , value.hour (
true ) , 0 , 25 ) ;
557 sc = tuple->
column ( name +
"minute" , value.minute (
true ) , 0 , 61 ) ;
559 sc = tuple->
column ( name +
"second" , value.second (
true ) , 0 , 61 ) ;
561 sc = tuple->
column ( name +
"nsecond" , value.nsecond () ) ;
574 const CLHEP::HepVector& data )
577 return tuple->
array( name , data , data.num_row() ) ;
583 const CLHEP::HepVector& data ,
589 const double* begin = &(data[0]);
590 const double*
end = begin + data.num_row() ;
591 return tuple->
farray ( name , begin , end , length , maxv ) ;
597 const CLHEP::HepGenMatrix& data )
600 if ( 1 > data.num_col() )
602 Error (
"GP:matrix(2): illegal fixed matrix num_col" ) ; }
603 if ( 1 > data.num_row() )
605 Error (
"GP:matrix(2): illegal fixed matrix num_row" ) ; }
606 return tuple->
matrix( name , data , data.num_row() , data.num_col() ) ;
612 const CLHEP::HepGenMatrix& data ,
618 if ( cols != data.num_col() )
620 Error (
"GP:fmatrix(2): mismatch in matrix dimensions!" ) ; }
621 return tuple->
fmatrix( name , data , data.num_row() , cols , length , maxv ) ;
636 return algo.
nTuple ( title , clid ) ;
645 return algo.
nTuple ( ID , title , clid ) ;
654 return algo.
nTuple ( ID , title , clid ) ;
663 return algo.
nTuple ( ID , title , clid ) ;
671 return algo.
evtCol ( title , clid ) ;
680 return algo.
evtCol ( ID , title , clid ) ;
689 return algo.
evtCol ( ID , title , clid ) ;
698 return algo.
evtCol ( ID , title , clid ) ;