Skip to content

npdet_to_step cannot handle TGeoTessellation #21

@wdconinc

Description

@wdconinc

Environment: (where does this bug occur, have you tried other environments)

  • Which branch (often main for latest released):
  • Which version (or HEAD for the most recent on git):
  • Any specific OS or system where the issue occurs? eic-shell
  • Any special versions of ROOT or Geant4?

Steps to reproduce: (give a step by step account of how to trigger the bug)

  1. In eic-shell, with /opt/detector/setup.sh
  2. npdet_to_step part -l 4 HcalBarrel -o bhcal $DETECTOR_PATH/epic_bhcal.xml

Expected Result: (what do you expect when you execute the steps above)

Should export STEP file.

Actual Result: (what do you get when you execute the steps above)

nightly> wdconinc@menelaos:~/git/npsim$ npdet_to_step part -l 4 HcalBarrel -o bhcal $DETECTOR_PATH/epic_bhcal.xml 
Error in cling::AutoLoadingVisitor::InsertIntoAutoLoadingState:
   Missing FileEntry for include/TGeoToStep.h
   requested to autoload type TGeoToStep
terminate called after throwing an instance of 'std::domain_error'
  what():  Unknown Shape
Aborted (core dumped)

Due to

throw std::domain_error("Unknown Shape");
.

Two step resolution:

  1. catch exception in
    fShape = fRootShape.OCC_SimpleShape(currentVolume->GetShape());
    and/or
    Mothershape = fRootShape.OCC_SimpleShape(motherVol->GetShape());
    (depending on which one causes it), and just bypass trying to convert and include it,
  2. add support for conversion in
    TopoDS_Shape TGeoToOCC::OCC_SimpleShape(TGeoShape *TG_Shape)
    .

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions