/DetectorDescription/Parser/src/DDLPolyGenerator.h

https://github.com/aivanov-cern/cmssw · C Header · 40 lines · 13 code · 9 blank · 18 comment · 0 complexity · 057423adbfaacbde63b90974e465c9ad MD5 · raw file

  1. #ifndef DDL_PolyGenerator_H
  2. #define DDL_PolyGenerator_H
  3. #include "DDLSolid.h"
  4. #include <string>
  5. /// DDLPolyGenerator processes DDL XML Polycone and DDL XML Polyhedra elements.
  6. /** @class DDLPolyGenerator
  7. * @author Michael Case
  8. *
  9. * DDLPolyGenerator.h - description
  10. * -------------------
  11. * begin: Mon Aug 5 2002
  12. * email: case@ucdhep.ucdavis.edu
  13. *
  14. * The PolyGenerator element uses RZPoint elements. The DDLRZPoint
  15. * can return the r and z std::vectors with the points needed to form the
  16. * polycone. The RZPoint "accumulator" is also used by the Polyhedra
  17. * and Polycone elements, and could be used anywhere a pair of std::vectors
  18. * of r and z values are needed.
  19. *
  20. */
  21. class DDLPolyGenerator : public DDLSolid
  22. {
  23. public:
  24. /// Constructor
  25. DDLPolyGenerator( DDLElementRegistry* myreg );
  26. /// Destructor
  27. ~DDLPolyGenerator( void );
  28. void processElement( const std::string& name, const std::string& nmspace, DDCompactView& cpv );
  29. void preProcessElement( const std::string& name, const std::string& nmspace, DDCompactView& cpv );
  30. };
  31. #endif