Skip to content

Commit 3af8ea1

Browse files
authored
Common: add fatal if tracksExtra converter has no process enabled
1 parent 52fcea8 commit 3af8ea1

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Common/TableProducer/Converters/tracksExtraV002Converter.cxx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,13 @@ using namespace o2::framework;
1919
struct TracksExtraV002Converter {
2020
Produces<aod::StoredTracksExtra_002> tracksExtra_002;
2121

22+
void init(InitContext& context)
23+
{
24+
if (doprocess000 == false && doprocess001 == false) {
25+
LOGF(fatal, "Neither process000 nor process001 is enabled. Please choose one!");
26+
}
27+
}
28+
2229
void processV000ToV002(aod::TracksExtra_000 const& tracksExtra_000)
2330
{
2431

0 commit comments

Comments
 (0)