Skip to content

Commit eb1bfa2

Browse files
committed
[tut] Run ntpl014 with ACLiC to generate the dictionaries
of the classes which are written in the example, therewith removing a warning prompted.
1 parent a8b2b6e commit eb1bfa2

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

tutorials/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -705,6 +705,9 @@ set(analysis-dataframe-df015_LazyDataSource-depends tutorial-analysis-dataframe-
705705
# Download the input root file only once from a python tutorial, the C++ one depends on it
706706
set(hist-hist039_TH2Poly_usa-depends tutorial-hist-hist039_TH2Poly_usa-py)
707707

708+
# Specify which tutorials should be run with ACLiC, e.g. because they contain classes instances of which are written
709+
set(io-ntuple-ntpl014_framework-aclic "+")
710+
708711
#---Loop over all tutorials and define the corresponding test---------
709712
foreach(t ${tutorials})
710713
list(FIND returncode_1 ${t} index)

tutorials/io/ntuple/ntpl014_framework.C

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@
3636
#include <ROOT/RNTupleWriter.hxx>
3737
#include <ROOT/RNTupleWriteOptions.hxx>
3838

39+
#include <TFile.h>
40+
3941
#include <cassert>
4042
#include <cstddef> // for std::size_t
4143
#include <cstdint> // for std::uint32_t
@@ -148,6 +150,8 @@ public:
148150
}
149151
}
150152
}
153+
// Version 0 signals to ROOT's typesystem that this instances of this class will never be written
154+
ClassDef(ParallelOutputter,0)
151155
};
152156

153157
// A SerializingOutputter uses a sequential RNTupleWriter to append an RNTuple to a TFile and a std::mutex to
@@ -215,6 +219,8 @@ public:
215219
}
216220
}
217221
}
222+
// Version 0 signals to ROOT's typesystem that this instances of this class will never be written
223+
ClassDef(SerializingOutputter,0)
218224
};
219225

220226
// === END OF TUTORIAL FRAMEWORK CODE ===

0 commit comments

Comments
 (0)