When building the example the configure script reports: -- G4 Examples: AIDA package not found. --> CompositeCalorimeter example disabled -- G4 Examples: AIDA found. --> gammaray_telescope example with AIDA enabled. I checked the differences. The gammaray_telescope uses: set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake ${CMAKE_MODULE_PATH}) find_package(AIDA QUIET) if(AIDA_FOUND) message(STATUS "G4 Examples: AIDA found. --> gammaray_telescope example with AIDA enabled.")~ add_definitions(-DG4ANALYSIS_USE)~~ else() message(STATUS "G4 Example: AIDA not found --> gammaray_telescope example with AIDA disabled.") endif() while composite_calorimeter uses just include(${Geant4_USE_FILE}) if(NOT AIDA_FOUND) message(STATUS "G4 Examples: AIDA package not found. --> CompositeCalorimeter example disabled") return() else() add_definitions(-DG4ANALYSIS_USE) endif() Which probably explains the difference.
Thanks for reporting. I will fix this. Andrea