Skip to content

Commit 18a95a6

Browse files
committed
improve is_spawnable
1 parent 40d0dfb commit 18a95a6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Framework/Core/include/Framework/ASoA.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -390,8 +390,8 @@ concept is_metadata_trait = framework::specialization_of_template<aod::MetadataT
390390
template <typename T>
391391
concept has_metadata = is_metadata_trait<T> && not_void<typename T::metadata>;
392392

393-
// template <typename T>
394-
// concept has_sources = is_metadata<T> && not_void<typename T::sources>;
393+
template <typename T>
394+
concept has_extension = is_metadata<T> && not_void<typename T::extension_table_t>;
395395

396396
template <typename T>
397397
concept is_spawnable_column = std::same_as<typename T::spawnable_t, std::true_type>;

Framework/Core/include/Framework/AnalysisHelpers.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ struct TableTransform {
229229
/// This helper struct allows you to declare extended tables which should be
230230
/// created by the task (as opposed to those pre-defined by data model)
231231
template <typename T>
232-
concept is_spawnable = soa::is_table<T> && soa::has_metadata<aod::MetadataTrait<T>> && !soa::is_index_table<T>;
232+
concept is_spawnable = soa::has_metadata<aod::MetadataTrait<o2::aod::Hash<T::ref.desc_hash>>> && soa::has_extension<typename aod::MetadataTrait<o2::aod::Hash<T::ref.desc_hash>>::metadata>;
233233

234234
template <is_spawnable T>
235235
constexpr auto transformBase()

0 commit comments

Comments
 (0)