StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StppAnaParsTest.C
1 // Copyright (C) 2008 Tai Sakuma <sakuma@bnl.gov>
2 #include "StppAnaParsTest.hh"
3 
4 #include <StppAnaPars.h>
5 
6 using namespace std;
7 
8 // Registers the fixture into the 'registry'
9 CPPUNIT_TEST_SUITE_REGISTRATION( StppAnaParsTest );
10 
11 void StppAnaParsTest::setUp()
12 {
13 
14 }
15 
16 void StppAnaParsTest::tearDown()
17 {
18 
19 }
20 
21 void StppAnaParsTest::testDefaultValues()
22 {
23  StppAnaPars* anapars = new StppAnaPars();
24  CPPUNIT_ASSERT_EQUAL( 0.2, anapars->ptMin() );
25  CPPUNIT_ASSERT_EQUAL( 100.0, anapars->etaMax() );
26  CPPUNIT_ASSERT_EQUAL( 3.5, anapars->jetPtMin() );
27  CPPUNIT_ASSERT_EQUAL( 100.0, anapars->jetEtaMax() );
28  CPPUNIT_ASSERT_EQUAL( 0.0, anapars->jetEtaMin() );
29  CPPUNIT_ASSERT_EQUAL( 0, anapars->jetNmin() );
30  CPPUNIT_ASSERT_EQUAL( 12, anapars->nHits() );
31  CPPUNIT_ASSERT_EQUAL( 0, anapars->flagMin() );
32 
33  delete anapars;
34 }
35