// // ******************************************************************** // * DISCLAIMER * // * * // * The following disclaimer summarizes all the specific disclaimers * // * of contributors to this software. The specific disclaimers,which * // * govern, are listed with their locations in: * // * http://cern.ch/geant4/license * // * * // * Neither the authors of this software system, nor their employing * // * institutes,nor the agencies providing financial support for this * // * work make any representation or warranty, express or implied, * // * regarding this software system or assume any liability for its * // * use. * // * * // * This code implementation is the intellectual property of the * // * GEANT4 collaboration. * // * By copying, distributing or modifying the Program (or any work * // * based on the Program) you indicate your acceptance of this * // * statement, and all its terms. * // ******************************************************************** // // // $Id: SolidAnalyser.hh,v 1.2 2003/06/16 16:49:23 gunter Exp $ // GEANT4 tag $Name: geant4-06-00 $ // // // -------------------------------------------------------------- // SolidAnalyser // // Sigleton providing Geant4 solids specifications in a generic way. // // Author: Martin Liendl - Martin.Liendl@cern.ch // // -------------------------------------------------------------- // #ifndef SolidAnalyser_h #define SolidAnalyser_h #include #include #include "globals.hh" // supported Geant4 solids: class G4VSolid; class G4Box; class G4Cons; class G4Polycone; class G4Polyhedra; class G4Trap; class G4Trd; class G4Tubs; class SolidAnalyser { public: static SolidAnalyser * GetSolidAnalyser(); //void Reset(); // user method to retrieve information G4int GetParam(const G4VSolid *, std::vector > & ) const; ~SolidAnalyser(); protected: G4int GetParam(const G4Box *, std::vector > & ) const; G4int GetParam(const G4Cons *, std::vector > & ) const; G4int GetParam(const G4Polycone *, std::vector > & ) const; G4int GetParam(const G4Polyhedra *, std::vector > & ) const; G4int GetParam(const G4Trap *, std::vector > & ) const; G4int GetParam(const G4Trd *, std::vector > & ) const; G4int GetParam(const G4Tubs *, std::vector > & ) const; private: SolidAnalyser(); G4int NotImplemented(const G4VSolid *, std::vector > & ) const; static SolidAnalyser * theInstance; }; std::ostream & operator<<(std::ostream& flux, std::vector >& v); #endif