Skip to content

Commit 39824ae

Browse files
authored
ALICE3-TRK: adding macro to check digitization output (#14736)
* ALICE3-TRK: adding macro to check digitization output * Fixing build issues
1 parent fc241f4 commit 39824ae

File tree

8 files changed

+440
-1
lines changed

8 files changed

+440
-1
lines changed

Detectors/Upgrades/ALICE3/TRK/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,6 @@
1010
# or submit itself to any jurisdiction.
1111

1212
add_subdirectory(base)
13+
add_subdirectory(macros)
1314
add_subdirectory(simulation)
1415
add_subdirectory(workflow)

Detectors/Upgrades/ALICE3/TRK/base/include/TRKBase/GeometryTGeo.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
#include <memory>
1616
#include <DetectorsCommonDataFormats/DetMatrixCache.h>
17+
#include "DetectorsCommonDataFormats/DetID.h"
1718

1819
namespace o2
1920
{
@@ -127,10 +128,13 @@ class GeometryTGeo : public o2::detectors::DetMatrixCache
127128

128129
TString getMatrixPath(int index) const;
129130

131+
#ifdef ENABLE_UPGRADES
130132
static const char* composeSymNameTRK(int d)
131133
{
132134
return Form("%s_%d", o2::detectors::DetID(o2::detectors::DetID::TRK).getName(), d);
133135
}
136+
#endif
137+
134138
static const char* composeSymNameLayer(int d, int layer);
135139
static const char* composeSymNameStave(int d, int layer);
136140
static const char* composeSymNameChip(int d, int lr);

Detectors/Upgrades/ALICE3/TRK/base/src/GeometryTGeo.cxx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,10 +367,12 @@ void GeometryTGeo::fillMatrixCache(int mask)
367367

368368
//__________________________________________________________________________
369369

370+
#ifdef ENABLE_UPGRADES
370371
const char* GeometryTGeo::composeSymNameLayer(int d, int lr)
371372
{
372373
return Form("%s/%s%d", composeSymNameTRK(d), getTRKLayerPattern(), lr);
373374
}
375+
#endif
374376

375377
const char* GeometryTGeo::composeSymNameStave(int d, int lr)
376378
{

Detectors/Upgrades/ALICE3/TRK/base/src/TRKBaseLinkDef.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,10 @@
1515
#pragma link off all classes;
1616
#pragma link off all functions;
1717

18+
#pragma link C++ class o2::conf::ConfigurableParamHelper < o2::trk::TRKBaseParam> + ;
19+
1820
#pragma link C++ class o2::trk::GeometryTGeo +
1921
#pragma link C++ class o2::trk::TRKBaseParam + ;
20-
#pragma link C++ class o2::conf::ConfigurableParamHelper < o2::trk::TRKBaseParam> + ;
22+
#pragma link C++ class o2::trk::SegmentationChip + ;
2123

2224
#endif
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
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_subdirectory(test)
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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+
o2_add_test_root_macro(CheckDigits.C
13+
PUBLIC_LINK_LIBRARIES O2::ITSMFTBase
14+
O2::ITSMFTSimulation
15+
O2::TRKBase
16+
O2::TRKSimulation
17+
O2::MathUtils
18+
O2::SimulationDataFormat
19+
O2::DetectorsBase
20+
O2::Steer
21+
LABELS trk COMPILE_ONLY)

0 commit comments

Comments
 (0)