File tree Expand file tree Collapse file tree 2 files changed +71
-77
lines changed
Expand file tree Collapse file tree 2 files changed +71
-77
lines changed Original file line number Diff line number Diff line change @@ -17,26 +17,20 @@ namespace pwgmm::mult
1717{
1818using namespace o2 ;
1919
20- // helper function to determine if collision/mccollison type contains centrality
20+ // clang-format off
2121template <typename T>
22- static constexpr bool hasSimCent ()
22+ concept hasSimCent = (T*) // NOLINT
2323{
24- if constexpr (!soa::is_soa_join_v<T>) {
25- return false ;
26- } else {
27- return T::template contains<aod::HepMCHeavyIons>();
28- }
29- }
24+ requires {T::template contains<aod::HepMCHeavyIons>();}
25+ };
3026
3127template <typename T>
32- static constexpr bool hasRecoCent ()
28+ concept hasRecoCent = (T*) // NOLINT
3329{
34- if constexpr (!soa::is_soa_join_v<T>) {
35- return false ;
36- } else {
37- return T::template contains<aod::CentFT0Cs>() || T::template contains<aod::CentFT0Ms>();
38- }
39- }
30+ requires {T::template contains<aod::CentFT0Cs>() || T::template contains<aod::CentFT0Ms>();}
31+ };
32+
33+ // clang-format on
4034} // namespace pwgmm::mult
4135
4236#endif // PWGMM_MULT_CORE_INCLUDE_FUNCTIONS_H_
You can’t perform that action at this time.
0 commit comments