26Bool_t isInSelection(
const TGeoShape *shape,
const std::set<TGeoShape::EShapeType> &selection)
28 for (
auto element : selection) {
32 if (
typeid(*shape) ==
typeid(
TGeoBBox)) {
93 while ((node = next.
Next())) {
102 Info(
"ConvertGeometry",
"# Shape type %s is not selected for conversion\n",
111 Info(
"ConvertGeometry",
"# Shape type %s is excluded from conversion\n", vol->
GetShape()->
IsA()->
GetName());
124 Info(
"ConvertGeometry",
"# Converted %d shapes to VecGeom ones\n", nconverted);
int Int_t
Signed integer 4 bytes (int).
bool Bool_t
Boolean (0=false, 1=true) (bool).
externTGeoManager * gGeoManager
TGeoNode * Next()
Returns next node.
The manager class for any TGeo geometry.
A node represent a volume positioned inside another.They store links to both volumes and to the TGeoM...
TGeoVolume * GetVolume() const
Base abstract class for all shapes.
virtual Bool_t IsVecGeom() const
TClass * IsA() const override
Bool_t TestShapeBit(UInt_t f) const
std::set< TGeoShape::EShapeType > fExcludedShapeTypes
void SelectShapeType(TGeoShape::EShapeType) override
Select shape(s) for conversion.
TGeoVGConverter(TGeoManager *manager)
Default constructor.
void ConvertGeometry() override
Main geometry conversion method.
void ExcludeShapeType(TGeoShape::EShapeType) override
Exclude shape(s) from conversion.
~TGeoVGConverter() override
Default destructor.
std::set< TGeoShape::EShapeType > fSelectedShapeTypes
Bridge class for using a VecGeom solid as TGeoShape.
static TGeoVGShape * Create(TGeoShape *shape)
Factory creating TGeoVGShape from a Root shape.
TGeoVolume, TGeoVolumeMulti, TGeoVolumeAssembly are the volume classes.
void SetShape(const TGeoShape *shape)
set the shape associated with this volume
TGeoShape * GetShape() const
const char * GetName() const override
Returns name of object.
virtual void Info(const char *method, const char *msgfmt,...) const
Issue info message.
TVirtualGeoConverter(TGeoManager *geom)
Geometry converter default constructor.
static void SetConverter(const TVirtualGeoConverter *conv)
Static function to set an alternative converter.