#include <iostream>
#include "AtlfastAlgs/ISmearer.h"
#include "AtlfastAlgs/CellSmearer.h"
#include "AtlfastAlgs/ElectronSmearer.h"
#include "AtlfastAlgs/PhotonSmearer.h"
#include "AtlfastAlgs/MuonSmearer.h"
#include "AtlfastAlgs/JetSmearer.h"
#include "CLHEP/Vector/LorentzVector.h"
#include <boost/test/included/unit_test_framework.hpp>
#include <boost/test/unit_test.hpp>
Include dependency graph for UnitTesterBoost.cxx:
Go to the source code of this file.
Functions | |
void | CellSmearerTest1 () |
void | ElectronSmearerTest1 () |
void | MuonSmearerTest1 () |
void | PhotonSmearerTest1 () |
void | JetSmearerTest1 () |
test_suite * | init_unit_test_suite (int argc, char *argv[]) |
void CellSmearerTest1 | ( | ) |
Definition at line 34 of file UnitTesterBoost.cxx.
00034 { 00035 ISmearer* is = new CellSmearer(1234, 3.2); 00036 HepLorentzVector v(10., 10., 10., sqrt(300)); 00037 HepLorentzVector sv = is->smear(v); 00038 00039 BOOST_CHECK(v.isParallel(sv) ); 00040 BOOST_CHECK(v.t() != sv.t() ); 00041 }
void ElectronSmearerTest1 | ( | ) |
Definition at line 43 of file UnitTesterBoost.cxx.
00043 { 00044 ISmearer* is = new ElectronSmearer(1234, 0); 00045 HepLorentzVector v(10., 10., 10., sqrt(300)); 00046 HepLorentzVector sv = is->smear(v); 00047 00048 BOOST_CHECK(v.isParallel(sv) ); 00049 BOOST_CHECK(v.t() != sv.t() ); 00050 }
void MuonSmearerTest1 | ( | ) |
Definition at line 53 of file UnitTesterBoost.cxx.
00053 { 00054 ISmearer* is = new MuonSmearer(1234, 0, 1); 00055 HepLorentzVector v(10., 10., 10., sqrt(300)); 00056 HepLorentzVector sv = is->smear(v); 00057 00058 BOOST_CHECK(v.isParallel(sv) ); 00059 BOOST_CHECK(v.t() != sv.t() ); 00060 }
void PhotonSmearerTest1 | ( | ) |
Definition at line 63 of file UnitTesterBoost.cxx.
00063 { 00064 ISmearer* is = new PhotonSmearer(1234, 0); 00065 HepLorentzVector v(10., 10., 10., sqrt(300)); 00066 HepLorentzVector sv = is->smear(v); 00067 00068 BOOST_CHECK(v.isParallel(sv) ); 00069 BOOST_CHECK(v.t() != sv.t() ); 00070 }
void JetSmearerTest1 | ( | ) |
Definition at line 72 of file UnitTesterBoost.cxx.
00072 { 00073 00074 00075 ISmearer* is = new JetSmearer(1234, 0, 0.4, 0.4, 3.2); 00076 00077 HepLorentzVector v(10., 10., 10., sqrt(300)); 00078 HepLorentzVector sv = is->smear(v); 00079 00080 BOOST_CHECK(v.isParallel(sv) ); 00081 BOOST_CHECK(v.t() != sv.t() ); 00082 00083 }
test_suite* init_unit_test_suite | ( | int | argc, | |
char * | argv[] | |||
) |
Definition at line 85 of file UnitTesterBoost.cxx.
00085 { 00086 test_suite* test = BOOST_TEST_SUITE("Smearerer Tests"); 00087 test->add(BOOST_TEST_CASE(&CellSmearerTest1) ); 00088 test->add(BOOST_TEST_CASE(&ElectronSmearerTest1) ); 00089 // test->add(BOOST_TEST_CASE(&PhotonSmearerTest1) ); 00090 test->add(BOOST_TEST_CASE(&MuonSmearerTest1) ); 00091 test->add(BOOST_TEST_CASE(&JetSmearerTest1) ); 00092 // test->add(BOOST_TEST_CASE(&ResMuoTest1) ); 00093 return test; 00094 }