diff --git a/Detectors/EMCAL/base/include/EMCALBase/ClusterFactory.h b/Detectors/EMCAL/base/include/EMCALBase/ClusterFactory.h index 3ce7003fe9814..a7e81d38838a3 100644 --- a/Detectors/EMCAL/base/include/EMCALBase/ClusterFactory.h +++ b/Detectors/EMCAL/base/include/EMCALBase/ClusterFactory.h @@ -12,7 +12,6 @@ #define ALICEO2_EMCAL_CLUSTERFACTORY_H_ #include #include -#include #include #include #include "Rtypes.h" @@ -336,7 +335,7 @@ class ClusterFactory bool getUseWeightExotic() const { return mUseWeightExotic; } void setUseWeightExotic(float useWeightExotic) { mUseWeightExotic = useWeightExotic; } - void setContainer(gsl::span clusterContainer, gsl::span cellContainer, gsl::span indicesContainer, std::optional> cellLabelContainer = std::nullopt) + void setContainer(gsl::span clusterContainer, gsl::span cellContainer, gsl::span indicesContainer, gsl::span cellLabelContainer = {}) { mClustersContainer = clusterContainer; mInputsContainer = cellContainer; @@ -344,8 +343,8 @@ class ClusterFactory if (!getLookUpInit()) { setLookUpTable(); } - if (cellLabelContainer) { - mCellLabelContainer = cellLabelContainer.value(); + if (!cellLabelContainer.empty()) { + mCellLabelContainer = cellLabelContainer; } }