Skip to content

Commit 8c988d3

Browse files
karabowidennisklein
authored andcommitted
Fix the PostInitConfig flag in FairYamlVMCConfig
By mistake, the flag was set to true in the constructor. Added log output in the file for the auto tests. Move EGPythia6 requirement to fairtools MCConfigurator directory. Setting property PIC for example MQ pixel.
1 parent 966aea4 commit 8c988d3

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

examples/MQ/pixelDetector/src/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ list(APPEND headers
5757
add_library(${target} SHARED ${sources} ${no_dict_sources} ${headers} ${no_dict_headers})
5858
add_library(FairRoot::${target} ALIAS ${target})
5959
set_target_properties(${target} PROPERTIES ${PROJECT_LIBRARY_PROPERTIES})
60+
set_property(TARGET ${target} PROPERTY POSITION_INDEPENDENT_CODE ON)
6061

6162
target_include_directories(${target} PUBLIC
6263
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>

fairtools/MCConfigurator/FairYamlVMCConfig.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ FairYamlVMCConfig::FairYamlVMCConfig()
3535
: FairGenericVMCConfig()
3636
, fMCEngine("")
3737
{
38-
UsePostInitConfig();
3938
}
4039

4140
void FairYamlVMCConfig::Setup(const char* mcEngine)
@@ -69,6 +68,7 @@ void FairYamlVMCConfig::SetupPostInit(const char* mcEngine)
6968
if (!((strcmp(mcEngine, "TGeant4") == 0))) {
7069
LOG(fatal) << "FairYamlVMCConfig::SetupPostInit() only valid for TGeant4.";
7170
}
71+
LOG(info) << "Loading Geant4 PostInit Config." << endl;
7272

7373
TString work = getenv("VMCWORKDIR");
7474
TString work_config = work + "/gconfig/";

0 commit comments

Comments
 (0)