Skip to content

Commit

Permalink
Common: add fatal if tracksExtra converter has no process enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
ddobrigk authored Dec 21, 2024
1 parent 52fcea8 commit 3af8ea1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Common/TableProducer/Converters/tracksExtraV002Converter.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@ using namespace o2::framework;
struct TracksExtraV002Converter {
Produces<aod::StoredTracksExtra_002> tracksExtra_002;

void init(InitContext& context)
{
if (doprocess000 == false && doprocess001 == false) {
LOGF(fatal, "Neither process000 nor process001 is enabled. Please choose one!");
}
}

void processV000ToV002(aod::TracksExtra_000 const& tracksExtra_000)
{

Expand Down

0 comments on commit 3af8ea1

Please sign in to comment.