Skip to content

Commit be92efc

Browse files
committed
Guard ALICE3 test macros by ENABLE_UPGRADES ifdef
1 parent e3f8dd2 commit be92efc

2 files changed

Lines changed: 34 additions & 0 deletions

File tree

Detectors/Upgrades/ALICE3/GlobalReconstruction/macros/CheckTracksALICE3.C

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,20 @@
1212
/// \file CheckTracksALICE3.C
1313
/// \brief Quality assurance macro for TRK tracking
1414

15+
#ifndef ENABLE_UPGRADES
16+
#include <iostream>
17+
#include <string>
18+
19+
void CheckTracksALICE3(std::string = "o2trac_trk.root",
20+
std::string = "o2sim",
21+
std::string = "o2clus_trk.root",
22+
std::string = "trk_qa_output.root")
23+
{
24+
std::cerr << "CheckTracksALICE3 requires a build with ENABLE_UPGRADES" << std::endl;
25+
}
26+
27+
#else
28+
1529
#if !defined(__CLING__) || defined(__ROOTCLING__)
1630
#include <array>
1731
#include <cmath>
@@ -617,3 +631,5 @@ void CheckTracksALICE3(std::string tracfile = "o2trac_trk.root",
617631
delete clustersFile;
618632
delete tracFile;
619633
}
634+
635+
#endif

Detectors/Upgrades/ALICE3/TRKFT3/TRK/macros/test/CheckClusters.C

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,22 @@
1212
/// \file CheckClusters.C
1313
/// \brief Macro to check TRK clusters and compare cluster positions to MC hit positions
1414

15+
#ifndef ENABLE_UPGRADES
16+
#include <iostream>
17+
#include <string>
18+
19+
void CheckClusters(const std::string& = "o2clus_trk.root",
20+
const std::string& = "o2sim_HitsTRK.root",
21+
const std::string& = "o2sim_geometry.root",
22+
const std::string& = "http://alice-ccdb.cern.ch",
23+
long = -1,
24+
bool = false)
25+
{
26+
std::cerr << "CheckClusters requires a build with ENABLE_UPGRADES" << std::endl;
27+
}
28+
29+
#else
30+
1531
#if !defined(__CLING__) || defined(__ROOTCLING__)
1632
#include <TCanvas.h>
1733
#include <TFile.h>
@@ -523,3 +539,5 @@ void CheckClusters(const std::string& clusfile = "o2clus_trk.root",
523539

524540
LOGP(info, "Output saved to CheckClusters.root and PNG files");
525541
}
542+
543+
#endif

0 commit comments

Comments
 (0)