Energy structure of hybrid Semiconductor-superconductor nanowire Based devices