EnergyMode class question

Sep 16, 2014 at 6:58 PM
Hi, I'm trying to figure out whether a beam/plan is Photon/Electron using ESAPI, and I think this piece of information is in the EnergyMode class; however, it seems that no other class has an instance of this class. What am I missing here? Thanks.
Sep 16, 2014 at 7:13 PM
You are right; EnergyMode is not used anywhere. The class has been removed in 13.0 version of the API.

Instead, you can use Beam.EnergyModeDisplayName
Sep 17, 2014 at 2:39 PM
Thus, how do I know whether a plan uses Photon/Electron?
Sep 17, 2014 at 3:27 PM
A plan can have both photon/electron beams. The Beam.EnergyModeDisplayName includes the energy and the mode, like "6X" or "15E".