Skip to content

Commit 1e6cbdd

Browse files
committed
ITS3: build APTS response function
Signed-off-by: Felix Schlepper <felix.schlepper@cern.ch>
1 parent fa75019 commit 1e6cbdd

File tree

3 files changed

+27
-2
lines changed

3 files changed

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

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)