The scientific payload on-board the HERMES-TP and HERMES-SP CubeSat missions