BDSParallelWorldCurvilinear (BDSBeamline) element missing index

Issue #182 resolved
Stewart Boogert created an issue

elements in BDSAcceleratorModel::Instance()->GetCurvilinearBeamline() do not have a valid index, always -1 opposed to >= 0

Noticed in BDSParallelWorldCurvilinear.cc (77:80)

BDSPhysicalVolumeInfo* theinfo = new BDSPhysicalVolumeInfo(name, clPVName, element->GetSPositionMiddle(), element->GetIndex());

Comments (4)

  1. Stewart Boogert reporter

    It eventually gets stored in the Eloss tree. Most of the time the tree does not write out this branch but identifying which element the deposit occurs in essential for the event viewer and advanced analyses

  2. Laurie Nevay

    Ok, note this only works if we have a 1:1 curvilinear / accelerator beam line. I've put this back for other reasons so it'll work for now. I'll push once I fix failing tests locally and I have to merge the other recent changes into develop.

  3. Log in to comment