Skip to content

Commit 035888c

Browse files
Benedikt Volkelsawenzel
Benedikt Volkel
authored andcommitted
Sim evalmat for Run5 modules
1 parent 147a200 commit 035888c

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

Common/SimConfig/src/SimConfig.cxx

+3-2
Original file line numberDiff line numberDiff line change
@@ -74,14 +74,14 @@ void SimConfig::determineActiveModules(std::vector<std::string> const& inputargs
7474
if (activeModules[0] != "all") {
7575
if (mIsRun5) {
7676
for (int i = 0; i < activeModules.size(); ++i) {
77-
if (activeModules[i] != "IT3" && activeModules[i] != "TRK" && activeModules[i] != "FT3" && activeModules[i] != "FCT") {
77+
if (activeModules[i] != "IT3" && activeModules[i] != "TRK" && activeModules[i] != "FT3" && activeModules[i] != "FCT" && activeModules[i] != "A3IP") {
7878
LOGP(fatal, "List of active modules contains {}, which is not a run 5 module", activeModules[i]);
7979
}
8080
}
8181
}
8282
if (!mIsRun5) {
8383
for (int i = 0; i < activeModules.size(); ++i) {
84-
if (activeModules[i] == "TRK" || activeModules[i] == "FT3" || activeModules[i] == "FCT") {
84+
if (activeModules[i] == "TRK" || activeModules[i] == "FT3" || activeModules[i] == "FCT" || activeModules[i] == "A3IP") {
8585
LOGP(fatal, "List of active modules contains {}, which is not a run 3 module", activeModules[i]);
8686
}
8787
}
@@ -97,6 +97,7 @@ void SimConfig::determineActiveModules(std::vector<std::string> const& inputargs
9797
activeModules.emplace_back(DetID::getName(d));
9898
}
9999
}
100+
activeModules.emplace_back("A3IP");
100101
} else {
101102
#endif
102103
// add passive components manually (make a PassiveDetID for them!)

run/CMakeLists.txt

+7
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,11 @@ o2_add_executable(sim-run5
8181
SOURCES o2sim_parallel.cxx
8282
PUBLIC_LINK_LIBRARIES internal::allsim O2::Version
8383
TARGETVARNAME simdriverrun5)
84+
85+
o2_add_executable(evalmat-run5
86+
COMPONENT_NAME sim
87+
SOURCES o2sim_evalmat.cxx
88+
PUBLIC_LINK_LIBRARIES internal::allsim)
8489
endif()
8590
if(NOT APPLE)
8691
set_property(TARGET ${simexe} PROPERTY LINK_WHAT_YOU_USE ON)
@@ -122,9 +127,11 @@ o2_name_target(sim-serial NAME o2simSerialExecutable IS_EXE)
122127
if(ENABLE_UPGRADES)
123128
o2_name_target(sim-serial-run5 NAME o2simSerialRun5Executable IS_EXE)
124129
o2_name_target(sim-run5 NAME o2simRun5Executable IS_EXE)
130+
o2_name_target(sim-evalmat-run5 NAME o2simEvalmatRun5Executable IS_EXE)
125131

126132
target_compile_definitions(${o2simSerialRun5Executable} PUBLIC SIM_RUN5)
127133
target_compile_definitions(${o2simRun5Executable} PUBLIC SIM_RUN5)
134+
target_compile_definitions(${o2simEvalmatRun5Executable} PUBLIC SIM_RUN5)
128135
endif()
129136
if (BUILD_TESTING)
130137
o2_add_test_command(NAME o2sim_G4

run/o2sim_evalmat.cxx

+4
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,11 @@ int main(int argc, char* argv[])
1919
{
2020
TStopwatch timer;
2121
timer.Start();
22+
2223
auto& conf = o2::conf::SimConfig::Instance();
24+
#ifdef SIM_RUN5
25+
conf.setRun5();
26+
#endif
2327
auto& matmapP = o2::conf::MatMapParams::Instance();
2428
if (!conf.resetFromArguments(argc, argv)) {
2529
return 1;

0 commit comments

Comments
 (0)