Abstract class for DDPolycone and DDPolyhedra. Basically a common member function. More...
#include <DDSolid.h>
Public Member Functions | |
DDPolySolid (const DDSolid &s) | |
Protected Member Functions | |
DDPolySolid (void) | |
virtual std::vector< double > | getVec (const size_t &which, const size_t &offset=0, const size_t &nVecs=1) const |
note defaults please. |
Abstract class for DDPolycone and DDPolyhedra. Basically a common member function.
DDPolySolid::DDPolySolid | ( | const DDSolid & | s | ) |
Definition at line 329 of file DDSolid.cc.
: DDSolid(s) { }
DDPolySolid::DDPolySolid | ( | void | ) | [protected] |
std::vector< double > DDPolySolid::getVec | ( | const size_t & | which, |
const size_t & | offset = 0 , |
||
const size_t & | nVecs = 1 |
||
) | const [protected, virtual] |
note defaults please.
Definition at line 333 of file DDSolid.cc.
References i, DDSolid::parameters(), DDBase< DDName, DDI::Solid * >::rep(), DDBase< DDName, DDI::Solid * >::size(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by DDPolyhedra::rMaxVec(), DDPolycone::rMaxVec(), DDPolycone::rMinVec(), DDPolyhedra::rMinVec(), DDPolyhedra::rVec(), DDPolycone::rVec(), DDPolyhedra::zVec(), and DDPolycone::zVec().
{ // which: first second or third std::vector // offset: number of non-std::vector components before std::vectors start std::string locErr; // size_t szVec = 0; std::vector<double> tvec; // = new std::vector<double>; if ( (rep().parameters().size() - offset) % numVecs != 0 ) { // / 2 != (rep().parameters().size() - 2) \ 2) { locErr = std::string("Could not find equal sized components of std::vectors in a PolySolid description."); edm::LogError ("DDSolid") << "rep().parameters().size()=" << rep().parameters().size() << " numVecs=" << numVecs << " offset=" << offset << std::endl; } // else { // szVec = (rep().parameters().size() - offset)/ numVecs; // } for (size_t i = offset + which; i < rep().parameters().size(); i = i + numVecs) { tvec.push_back(rep().parameters()[i]); } return tvec; }