Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
/// \file AltroSyncSignal.h
/// \brief Definition of the timebin from which syncronization starts

#ifndef ALICEO2_DATAFORMATSTPC_ALTROSYNCSIGNAL_H
#define ALICEO2_DATAFORMATSTPC_ALTROSYNCSIGNAL_H

#include "GPUCommonRtypes.h"

namespace o2::tpc
Expand All @@ -28,3 +31,5 @@ struct AltroSyncSignal {
ClassDefNV(AltroSyncSignal, 1);
};
} // namespace o2::tpc

#endif // ALICEO2_DATAFORMATSTPC_ALTROSYNCSIGNAL_H
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
// In applying this license CERN does not waive the privileges and immunities
// granted to it by virtue of its status as an Intergovernmental Organization
// or submit itself to any jurisdiction.
#ifndef ALICEO2_EMCAL_TRIGGERSTUERRORCOUNTER_H
#define ALICEO2_EMCAL_TRIGGERSTUERRORCOUNTER_H

#include <iosfwd>
#include <array>
#include <Rtypes.h>
Expand Down Expand Up @@ -80,3 +83,5 @@ class TriggerSTUErrorCounter
} // namespace emcal

} // namespace o2

#endif // ALICEO2_EMCAL_TRIGGERSTUERRORCOUNTER_H
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
/// \brief Infrastructure to simulate ALPIDE chip data.
/// \author knaumov@cern.ch

#ifndef ALICEO2_ITSSIMULATION_ITSDATASIMULATOR_H
#define ALICEO2_ITSSIMULATION_ITSDATASIMULATOR_H

#include "ITSMFTBase/SegmentationAlpide.h"
#include "ITSMFTReconstruction/PixelData.h"

Expand Down Expand Up @@ -52,3 +55,5 @@ class ITSDataSimulator

} // namespace itsmft
} // namespace o2

#endif // ALICEO2_ITSSIMULATION_ITSDATASIMULATOR_H
1 change: 1 addition & 0 deletions Detectors/TPC/qc/include/TPCQC/Tracks.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#include "TH1.h"
#include "TH1F.h"
#include "TH2F.h"
#include "MathUtils/Cartesian.h"

namespace o2
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
// In applying this license CERN does not waive the privileges and immunities
// granted to it by virtue of its status as an Intergovernmental Organization
// or submit itself to any jurisdiction.
#ifndef ALICEO2_ITS3RECONSTRUCTION_IOUTILS_H
#define ALICEO2_ITS3RECONSTRUCTION_IOUTILS_H

#include <gsl/gsl>
#include "SimulationDataFormat/MCTruthContainer.h"
#include "ReconstructionDataFormats/BaseCluster.h"
Expand Down Expand Up @@ -87,3 +90,5 @@ int loadROFrameDataITS3(its::TimeFrame<7>* tf,
const dataformats::MCTruthContainer<MCCompLabel>* mcLabels = nullptr);
} // namespace its3::ioutils
} // namespace o2

#endif // ALICEO2_ITS3RECONSTRUCTION_IOUTILS_H
2 changes: 1 addition & 1 deletion Detectors/ZDC/macro/CreateSimCondition.C
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
// granted to it by virtue of its status as an Intergovernmental Organization
// or submit itself to any jurisdiction.

#if !defined(__CLING__) || defined(__ROOTCLING__)
#include "Framework/Logger.h"
#if !defined(__CLING__) || defined(__ROOTCLING__)
#include "CCDB/CcdbApi.h"
#include <string>
#include <TH1.h>
Expand Down
2 changes: 1 addition & 1 deletion Detectors/ZDC/macro/CreateSimCondition_pp.C
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
// granted to it by virtue of its status as an Intergovernmental Organization
// or submit itself to any jurisdiction.

#if !defined(__CLING__) || defined(__ROOTCLING__)
#include "Framework/Logger.h"
#if !defined(__CLING__) || defined(__ROOTCLING__)
#include "CCDB/CcdbApi.h"
#include <string>
#include <TH1.h>
Expand Down
2 changes: 2 additions & 0 deletions Generators/include/Generators/Generator.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
#define ALICEO2_EVENTGEN_GENERATOR_H_

#include "FairGenerator.h"
// Needed inclusion for the many external generators using LOG after FairRoot was included in O2 (07/2026)
#include <fairlogger/Logger.h>
#include "TParticle.h"
#include "Generators/Trigger.h"
#include <functional>
Expand Down
15 changes: 15 additions & 0 deletions cmake/AddRootDictionary.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,19 @@ function(add_root_dictionary target)
set(pcmDeps)
endif()

# Public headers of this dictionary. rootcling writes rootmap entries only for a few of them
# so RunRootcling.cmake adds the missing ones. Without this
# a ROOT macro including the header makes cling parse automatically the
# whole dictionary payload from inside the half-parsed header, failing with
# "unknown type name" / "incomplete type" errors and this can cause the interpreter to crash
set(rootmapHeaders)
foreach(h IN LISTS A_HEADERS)
if(h MATCHES "(^|/)include/(.+)$")
list(APPEND rootmapHeaders ${CMAKE_MATCH_2})
endif()
endforeach()
string(REPLACE ";" "|" rootmapHeaders "${rootmapHeaders}")

if(A_EXTRA_PATCH)
set(extraPatch -DPATCH=${CMAKE_CURRENT_LIST_DIR}/${A_EXTRA_PATCH})
else()
Expand All @@ -163,6 +176,8 @@ function(add_root_dictionary target)
"-DLD_LIBRARY_PATH=${LD_LIBRARY_PATH}"
${extraPatch}
"-DARGS=${rootclingArgs}"
"-DROOTMAP=${rootmapFile}"
"-DROOTMAP_HEADERS=${rootmapHeaders}"
-P ${O2_RUN_ROOTCLING_SCRIPT}
COMMAND
${CMAKE_COMMAND} -E copy_if_different ${CMAKE_CURRENT_BINARY_DIR}/${pcmBase} ${pcmFile}
Expand Down
21 changes: 19 additions & 2 deletions cmake/RunRootcling.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@
# granted to it by virtue of its status as an Intergovernmental Organization
# or submit itself to any jurisdiction.

# Runs rootcling, optionally appends PATCH to the generated dictionary, and
# turns the "Unused class rule" warning into an error.
# Runs rootcling, optionally appends PATCH to the generated dictionary, turns
# the "Unused class rule" warning into an error, and completes the rootmap with
# a "header" entry for each of ROOTMAP_HEADERS (see AddRootDictionary.cmake).
#
# rootcling only offers -failOnWarnings, which is all or nothing, so the
# output still has to be inspected to single out that one warning.
Expand Down Expand Up @@ -55,3 +56,19 @@ if(PATCH)
file(READ ${PATCH} patchContent)
file(APPEND ${DICTIONARY} "${patchContent}")
endif()

if(ROOTMAP AND ROOTMAP_HEADERS AND EXISTS ${ROOTMAP})
cmake_policy(SET CMP0007 NEW) # keep empty rootmap lines as list elements
file(STRINGS ${ROOTMAP} rootmapLines)
string(REPLACE "|" ";" rootmapHeaders "${ROOTMAP_HEADERS}")
set(missing "")
foreach(h IN LISTS rootmapHeaders)
list(FIND rootmapLines "header ${h}" index)
if(index EQUAL -1)
string(APPEND missing "header ${h}\n")
endif()
endforeach()
if(missing)
file(APPEND ${ROOTMAP} "# Public headers of this dictionary not listed by rootcling\n${missing}")
endif()
endif()