Report problems to ATLAS LXR Team (with time and IP address indicated)

The LXR Cross Referencer

source navigation ]
diff markup ]
identifier search ]
general search ]
 
 
Architecture: linux ]
Version: head ] [ nightly ] [ GaudiDev ]
  Links to LXR source navigation pages for stable releases [ 12.*.* ]   [ 13.*.* ]   [ 14.*.* ]   [ 15.*.* ] 

001 #include<iostream>
002 #include"AtlfastAlgs/CalSectionReject.h"
003 #include"AtlfastEvent/ITransportedParticle.h"
004 
005 #include "CLHEP/Vector/LorentzVector.h"
006 
007 
008 
009 #include <boost/test/included/unit_test_framework.hpp>
010 #include <boost/test/unit_test.hpp>
011 
012 using namespace boost::unit_test_framework;
013 
014 using Atlfast::CalSectionReject;
015 using Atlfast::ITransportedParticle;
016 
017 void CalSectionReject1(){
018   CalSectionReject csr(-10., 10., 0., 2.0); // make a rejector eta +-19, phi[0,2]
019   
020   // I don't understand what this test is doing - won't these declarations
021   // give conflicting values for phi? SJHD - 12/7/2005
022 
023   typedef HepMC::GenParticle Gp;
024   Gp* gp = new HepMC::GenParticle(HepLorentzVector(10., 10., 0, 10.), 11, 1);
025   
026   
027 
028   TransportedParticle* tp1 = new TransportedParticle(-0.01, gp);
029   TransportedParticle* tp2 = new TransportedParticle( 0.00, gp);
030   TransportedParticle* tp3 = new TransportedParticle( 0.01, gp);
031 
032   TransportedParticle* tp4 = new TransportedParticle( 0.00, gp);
033 
034   TransportedParticle* tp5 = new TransportedParticle( 1.99, gp);
035   TransportedParticle* tp6 = new TransportedParticle( 2.00, gp);
036   TransportedParticle* tp7 = new TransportedParticle( 2.01, gp);
037 
038   BOOST_CHECK(csr(tp1));
039   BOOST_CHECK(csr(tp1));
040   BOOST_CHECK(csr(tp2));
041   BOOST_CHECK(csr(tp3));
042   BOOST_CHECK(csr(tp4));
043   BOOST_CHECK(csr(tp5));
044   BOOST_CHECK(csr(tp6));
045   BOOST_CHECK(csr(tp7));
046 
047 }
048 
049 
050   
051   
052 
053 
054 test_suite* init_unit_test_suite(int argc, char* argv[]){
055   test_suite* test =  BOOST_TEST_SUITE("CalSectionReject Tests");
056   test->add(BOOST_TEST_CASE(&CalSectionReject1) );
057   return test;
058 }
059     

source navigation ] diff markup ] identifier search ] general search ]

Due to the LXR bug, the updates fail sometimes to remove references to deleted files. The Saturday's full rebuilds fix these problems
This page was automatically generated by the LXR engine. Valid HTML 4.01!