Skip to content

Commit 2cfeb53

Browse files
committed
Fixing build issues
1 parent 7117c17 commit 2cfeb53

File tree

5 files changed

+16
-6
lines changed

5 files changed

+16
-6
lines changed

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

Detectors/Upgrades/ALICE3/TRK/macros/test/CMakeLists.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,12 @@
1010
# or submit itself to any jurisdiction.
1111

1212
o2_add_test_root_macro(CheckDigits.C
13-
PUBLIC_LINK_LIBRARIES O2::ITSMFTSimulation
13+
PUBLIC_LINK_LIBRARIES O2::ITSMFTBase
14+
O2::ITSMFTSimulation
1415
O2::TRKBase
1516
O2::TRKSimulation
1617
O2::MathUtils
1718
O2::SimulationDataFormat
1819
O2::DetectorsBase
19-
LABELS its COMPILE_ONLY)
20+
O2::Steer
21+
LABELS trk COMPILE_ONLY)

Detectors/Upgrades/ALICE3/TRK/macros/test/CheckDigits.C

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,9 @@
2020
#include <TString.h>
2121
#include <TTree.h>
2222

23-
#include <vector>
24-
#define ENABLE_UPGRADES
23+
#include "TRKBase/SegmentationChip.h"
2524
#include "TRKBase/GeometryTGeo.h"
2625
#include "DataFormatsITSMFT/Digit.h"
27-
#include "TRKBase/SegmentationChip.h"
2826
#include "ITSMFTSimulation/Hit.h"
2927
#include "MathUtils/Utils.h"
3028
#include "SimulationDataFormat/ConstMCTruthContainer.h"
@@ -36,6 +34,8 @@
3634

3735
#endif
3836

37+
#define ENABLE_UPGRADES
38+
3939
void CheckDigits(std::string digifile = "trkdigits.root", std::string hitfile = "o2sim_HitsTRK.root", std::string inputGeom = "", std::string paramfile = "o2sim_par.root")
4040
{
4141

0 commit comments

Comments
 (0)