Updates for CA tests to work
This MR adds relevant code for the following files to now successfully run:
Simulation/Tests/SimCoreTests/test/test_AtlasG4_CavernBg_TR2HITS_CGvsCA.sh
Simulation/Tests/SimCoreTests/test/test_AtlasG4_WriteCalHitsTest_CGvsCA.sh
Simulation/Tests/SimCoreTests/test/test_AtlasG4_HeavyIonSim_CGvsCA.sh
Simulation/Tests/SimCoreTests/test/test_AtlasG4_NeutronCutTest_CGvsCA.sh