Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

CellTester.h

Go to the documentation of this file.
00001 // ================================================
00002 // CellTester.h
00003 // Test harness for Atlfast::Cell 
00004 // ================================================
00005 #ifndef TESTATLFAST_CELLTESTER_H
00006 #define TESTATLFAST_CELLTESTER_H
00007 
00008 #ifndef TESTATLFAST_TESTSTAT_H
00009 #include "TestAtlfast/TestStat.h"
00010 #endif
00011 
00012 #ifndef STD_VECTOR_H
00013 #include <vector>
00014 #define STD_VECTOR_H
00015 #endif
00016 
00017 #ifndef STD_STRING_H
00018 #include <string>
00019 #define STD_STRING_H
00020 #endif
00021 
00022 #ifndef GAUDIKERNEL_CONTAINEDOBJECT_H
00023 #include "GaudiKernel/ContainedObject.h"
00024 #define GAUDIKERNEL_CONTAINEDOBJECT_H
00025 #endif
00026 namespace Atlfast{
00027   class Cell;
00028 }
00029 
00030 namespace TestAtlfast{
00031   using Atlfast::Cell;
00032   typedef std::vector<const Cell*>  CellCollection;
00033   class CellTester{
00034   public:
00035     CellTester();
00036     CellTester(bool verbose);
00037     TestStat test() const;
00038   private:
00039     void initialise();
00040     TestStat classIdTest(CLID) const;
00041     TestStat noCellDescriptor() const;
00042     TestStat manyCellTest() const;
00043     TestStat cellCollectionTest(const CellCollection&) const;
00044     TestStat locationTest(const Cell* c, double eta, double phi) const;
00045     bool m_verbose;
00046     std::string m_vbString;
00047     CellCollection m_cells;
00048     CellCollection m_copiedCells;
00049     CellCollection m_assignedCells;
00050     std::vector<double> m_etas;
00051     std::vector<double> m_phis;
00052   };
00053 }//namespace
00054 #endif
00055 
00056 
00057 
00058 
00059 
00060 

Generated on Thu Apr 18 12:04:30 2002 for TestAtlfast by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001