11 const std::vector<VolumeSide>& faces,
13 :
MagVolume(pos,rot,shape,mfp), theFaces(faces), theInnerR(0)
18 for (std::vector<VolumeSide>::const_iterator
i=faces.begin();
i!= faces.end(); ++
i) {
37 if (def != faces.size()) {
38 throw MagGeometryError(
"MagCylinder constructed with wrong number/type of faces");
GloballyPositioned< float >::GlobalPoint GlobalPoint
GloballyPositioned< float >::LocalPoint LocalPoint
Scalar radius() const
Radius of the cylinder.
LocalPoint toLocal(const GlobalPoint &gp) const
virtual bool inside(const GlobalPoint &gp, double tolerance=0.) const
MagCylinder(const PositionType &pos, const RotationType &rot, DDSolidShape shape, const std::vector< VolumeSide > &faces, const MagneticFieldProvider< float > *mfp)