Skip to content

Commit acd47bc

Browse files
committed
ITS3: build APTS response function
Signed-off-by: Felix Schlepper <[email protected]>
1 parent 7ad18a7 commit acd47bc

File tree

3 files changed

+28
-2
lines changed

3 files changed

+28
-2
lines changed

Detectors/Upgrades/ITS3/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@
1111

1212
#add_compile_options(-O0 -g -fPIC)
1313

14-
add_subdirectory(macros)
14+
add_subdirectory(data)
1515
add_subdirectory(simulation)
1616
add_subdirectory(alignment)
1717
add_subdirectory(base)
1818
add_subdirectory(workflow)
1919
add_subdirectory(reconstruction)
20+
add_subdirectory(macros)
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Copyright 2019-2020 CERN and copyright holders of ALICE O2.
2+
# See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
3+
# All rights not expressly granted are reserved.
4+
#
5+
# This software is distributed under the terms of the GNU General Public
6+
# License v3 (GPL Version 3), copied verbatim in the file "COPYING".
7+
#
8+
# In applying this license CERN does not waive the privileges and immunities
9+
# granted to it by virtue of its status as an Intergovernmental Organization
10+
# or submit itself to any jurisdiction.
11+
12+
add_custom_target(
13+
GenerateAPTSResponse ALL
14+
COMMAND
15+
${CMAKE_BINARY_DIR}/stage/bin/o2-alpide-response-generator -c APTS -i
16+
${ITSRESPONSE_DIR}/response/ITS3ChipResponseData/AptsResponseData/ -o
17+
${CMAKE_CURRENT_BINARY_DIR}/
18+
BYPRODUCTS ${CMAKE_CURRENT_BINARY_DIR}/APTSResponseData.root
19+
DEPENDS GenerateAlpideResponse
20+
COMMENT "Generating APTSResponseData.root")
21+
install(
22+
FILES "${CMAKE_CURRENT_BINARY_DIR}/APTSResponseData.root"
23+
DESTINATION
24+
"${CMAKE_INSTALL_PREFIX}/share/Detectors/Upgrades/ITS3/data/ITS3ChipResponseData/"
25+
)

Detectors/Upgrades/ITS3/simulation/src/Digitizer.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ void Digitizer::init()
6969
mSimRespIBShift = mSimRespIB->getDepthMax() - SegmentationSuperAlpide::mSensorLayerThickness / 2.f;
7070
mSimRespOBShift = mSimRespOB->getDepthMax() - Segmentation::SensorLayerThickness / 2.f;
7171
} else if (func == "APTS") {
72-
constexpr const char* responseFileIB = "$(O2_ROOT)/share/Detectors/Upgrades/ITS3/data/ITS3ChipResponseData/APTSResponseData.root";
72+
constexpr const char* responseFileIB = "$(O2_ROOT)/share/Detectors/Upgrades/ITS3/data/ITS3ChipResponseData/";
7373
constexpr const char* responseFileOB = "$(O2_ROOT)/share/Detectors/ITSMFT/data/AlpideResponseData/AlpideResponseData.root";
7474
loadSetResponseFunc(responseFileIB, responseFileOB, "APTS");
7575
mSimRespIBShift = mSimRespIB->getDepthMax() - 10.e-4f;

0 commit comments

Comments
 (0)