#include "MockRun.h"
#include "boost/test/unit_test.hpp"
#include "CLHEP/Matrix/Matrix.h"
#include "CLHEP/Matrix/SymMatrix.h"
#include "CLHEP/Matrix/Vector.h"
#include "CLHEP/Vector/LorentzVector.h"
#include "CLHEP/Vector/ThreeVector.h"
#include "CLHEP/Vector/TwoVector.h"
 
Go to the source code of this file.
      
        
          | #define BOOST_TEST_MODULE   (ClhepProduct aggregation Test) | 
        
      
 
 
      
        
          | BOOST_AUTO_TEST_CASE  | 
          ( | 
          hepvector  | 
           | ) | 
           | 
        
      
 
 
      
        
          | BOOST_AUTO_TEST_CASE  | 
          ( | 
          hep2vector  | 
           | ) | 
           | 
        
      
 
 
      
        
          | BOOST_AUTO_TEST_CASE  | 
          ( | 
          hep3vector  | 
           | ) | 
           | 
        
      
 
Definition at line 58 of file aggregate_clhep_t.cc.
   61   r.
put<Hep3Vector>(0, 3, 19.2);
    62   r.put<Hep3Vector>(3, 5, 1.34);
    63   auto const& 
c = 
r.get<Hep3Vector>();
    64   BOOST_CHECK_CLOSE_FRACTION(
c[0], 3, 
tolerance);
    65   BOOST_CHECK_CLOSE_FRACTION(
c[1], 8, 
tolerance);
    66   BOOST_CHECK_CLOSE_FRACTION(
c[2], 20.54, 
tolerance);
 
 
 
 
      
        
          | BOOST_AUTO_TEST_CASE  | 
          ( | 
          heplorentzvector  | 
           | ) | 
           | 
        
      
 
Definition at line 69 of file aggregate_clhep_t.cc.
   72   r.
put<HepLorentzVector>(0, 3, 19.2, 6);
    73   r.
put<HepLorentzVector>(3, 5, 1.34, 7);
    74   auto const& 
c = r.
get<HepLorentzVector>();
    75   BOOST_CHECK_CLOSE_FRACTION(c[0], 3, 
tolerance);
    76   BOOST_CHECK_CLOSE_FRACTION(c[1], 8, 
tolerance);
    77   BOOST_CHECK_CLOSE_FRACTION(c[2], 20.54, 
tolerance);
    78   BOOST_CHECK_CLOSE_FRACTION(c[3], 13, 
tolerance);
 
 
 
 
      
        
          | BOOST_AUTO_TEST_CASE  | 
          ( | 
          hepmatrix  | 
           | ) | 
           | 
        
      
 
Definition at line 81 of file aggregate_clhep_t.cc.
   83   unsigned constexpr 
nrows{3};
    84   unsigned constexpr ncols{2};
    86   HepMatrix m1(
nrows, ncols);
   103   r.
put<HepMatrix>(m1);
   104   r.
put<HepMatrix>(
m2);
   106   auto const& 
c = r.
get<HepMatrix>();
   107   for (
unsigned i{1}; i <= 2; ++i)
   108     for (
unsigned j{1}; j <= 2; ++j)
   109       BOOST_CHECK_CLOSE_FRACTION((
c(i, j)), 1, 
tolerance);
   110   BOOST_CHECK_CLOSE_FRACTION((
c(3, 1)), 2, 
tolerance);
   111   BOOST_CHECK_CLOSE_FRACTION((
c(3, 2)), 2, 
tolerance);
 
static constexpr double m2
 
unsigned nrows(sqlite3 *db, std::string const &tablename)
 
 
 
 
      
        
          | BOOST_AUTO_TEST_CASE  | 
          ( | 
          hepsymmatrix  | 
           | ) | 
           | 
        
      
 
Definition at line 114 of file aggregate_clhep_t.cc.
  116   unsigned constexpr 
n{2};
   130   r.
put<HepSymMatrix>(m1);
   131   r.
put<HepSymMatrix>(
m2);
   133   auto const& 
c = r.
get<HepSymMatrix>();
   134   for (
unsigned i{1}; i <= 
n; ++i)
   135     for (
unsigned j{1}; j <= 
n; ++j)
   136       BOOST_CHECK_CLOSE_FRACTION((
c(i, j)), 1, 
tolerance);
 
static constexpr double m2