Fast multi-scale galaxy cluster detection with weak lensing: Towards a mass-selected sample

The sensitivity and wide area reached by ongoing and future wide-ﬁeld optical surveys allows for the detection of an increasing number of galaxy clusters uniquely through their weak lensing signal. This motivates the development of new methods for analysing the unprecedented volume of data faster and more e ﬃ ciently. Here we introduce a new multi-scale weak lensing detection method based on the application of wavelet ﬁlters to convergence maps. We compare our results to those obtained from four commonly used single-scale approaches based on the application of aperture mass ﬁlters to the shear in real and Fourier space. The method was tested and validated on Euclid -like mocks from the DUSTGRAIN-pathﬁnder simulations. We introduce a new matching procedure that takes into account the theoretical signal-to-noise of detection by weak lensing and the size of the ﬁlter under consideration. We performed a qualitative and quantitative analysis of the methods, including a complete analysis of the ﬁlters and a comparison of the purity and the completeness of the resulting catalogues. We show explicitly that equivalent results are obtained when the detection is undertaken in real and Fourier space, and when the algorithms are applied to the shear and the convergence. We show that the multi-scale method applied to the convergence is faster and more e ﬃ cient at detecting clusters than single-scale methods applied to the shear. In particular, we obtain an increase of 25% in the number of detections while maintaining the same purity compared to the most up-to-date aperture mass ﬁlter. We analysed the detected catalogues and quantiﬁed the e ﬃ ciency of the matching procedure, showing in particular that fewer than 5% of the detections from the multi-scale method can be ascribed to line-of-sight alignments. The method is well adapted to the more sensitive, wider-area optical surveys that will become available in the near future, and paves the way to cluster samples that are as near as possible to being selected by total matter content.


Introduction
Modern cosmological models show that gravitational collapse drives cosmic structure formation through a hierarchical assembly process in which objects merge into larger and larger structures.Clusters of galaxies sit at the endpoint of this process, so the formation and evolution of the cluster population directly traces the growth of cosmic structure over time.This information can be used to constrain cosmological models.For example, the number of clusters as a function of mass and redshift is highly sensitive to the underlying cosmological parameters (e.g.White & Rees 1978;Perrenod 1980;Voit 2005;Allen et al. 2011).
The matter content of clusters -composed of dark matter (DM; 85%), ionised hot gas in the intracluster medium (12%), and stars (∼ 3%) -reflects that of the Universe.Clusters are typically detected through their baryonic components.Studies based on samples from X-ray and Sunyaev-Zeldovich (SZ) surveys have been very successful at providing cosmological constraints (e.g.Pacaud et al. 2006;Vikhlinin et al. 2009;Hasselfield et al. 2013;Bocquet et al. 2019;Salvati et al. 2021), and increasinglywide-field optical surveys have become competitive in recent years (e.g.Rozo et al. 2010;Hamana et al. 2015;Lesci et al. 2022).However, leveraging the data from these surveys requires linking the baryonic observables (optical richness, X-ray luminosity, and SZ flux) to the underlying mass.Today, survey sample sizes are sufficiently large that the dominant uncertainties in cosmological parameter estimation with clusters lie in systematic effects in the mass estimates and the selection function (e.g.Pratt et al. 2019, and references therein).
The vast amount of matter contained in clusters bends the light of background galaxies.This coherent deflection of the path of light from background sources by an intervening mass is termed gravitational lensing (e.g.Schneider et al. 1992;Pyne & Birkinshaw 1993).At large scales, the distortion in the shapes of the background galaxies is detectable only statistically, and is consequently termed weak gravitational lensing.The image distortions due to the weak lensing effect can be characterised by the shear (a warping of the background source images) and the convergence (a magnification effect on the same).Both shear and convergence can provide insights into the statistical properties of the weak lensing field, and has been shown that they contain precisely the same information (e.g.Schneider et al. 2002;Pires et al. 2020).The weak lensing effect is directly sensitive to the total projected mass along the line of sight (LOS).As such, it is an attractive method for cluster detection, potentially paving the way towards true mass-selected samples.However, the sensitivity of cluster detection through the weak lensing signal depends critically on the number of background sources that are available to be lensed by the intervening matter.Only recently have deep, wide-field surveys yielded the background source densities needed to detect substantial numbers of objects.
A number of methods have been developed to detect galaxy clusters through their weak lensing shear or convergence signal in optical imaging data.Application of a simple Gaussian filter to the convergence, combined with thresholding, was widely used in early optical surveys (e.g.White et al. 2002;Miyazaki et al. 2002;Hamana et al. 2004;Tang & Fan 2005;Gavazzi & Soucail 2006;Miyazaki et al. 2007;Fan et al. 2010;Shan et al. 2012Shan et al. , 2018)).Such methods demonstrated that it was possible to detect clusters through their weak lensing signal, while motivating the development of new, more efficient, approaches.In the subsequent development of optimal filtering techniques, the filter kernel was adapted to include information on the shape of the expected halo profile, while excluding the shape noise and the contribution of large-scale structure (LSS) to the noise budget (e.g.Hennawi & Spergel 2005;Maturi et al. 2005;Wittman et al. 2006).
The widely used aperture mass (AM) technique, introduced by Schneider (1996), consists of convolving the lensing signal with a filter function of a specific scale.A number of new filters have since been developed to maximise the effectiveness of the AM method; they have been tested on simulations and applied to various optical surveys (e.g.Schneider 1996;Schneider et al. 1998;Jarvis et al. 2004;Schirmer et al. 2004;Hetterscheidt et al. 2005;Hennawi & Spergel 2005;Maturi et al. 2005;Maturi et al. 2007;Pace et al. 2007;Schirmer et al. 2007;Dietrich & Hartlap 2010;Hamana et al. 2012;Lin et al. 2016;Miyazaki et al. 2018;Hamana et al. 2020;Oguri et al. 2021).
The filter function is a key component of the AM method and must be designed to obtain the optimal signal-to-noise ratio (S/N) at a given scale.A defining characteristic of the above approaches is that they all operate on a single scale.As such, their detection efficiency is highly dependent on the filter design and on its relation to the size of the structures we want to detect.While some studies have proposed using multi-scale wavelet filters to de-noise the convergence map (Starck et al. 2006;Lanusse et al. 2016), they were not optimised for cluster detection because they do not take the LSS contribution into account.Nevertheless, such multi-scale de-noising techniques have been shown to be a promising approach for cluster detection (Leonard et al. 2015).
Motivated by the potential of current and upcoming deep wide-field optical surveys with sufficient background source densities, such as the Hyper Supreme-Cam (HSC) survey (Aihara et al. 2018), the Legacy Survey of Space and Time (LSST 1 ;  Closson Ferguson et al. 2009; Ivezić et al. 2019), Euclid2 (Laureijs et al. 2011), and the Roman Space Telescope3 (formerly WFIRST; Spergel et al. 2015), we revisit here the question of cluster detection through the weak lensing effect.We perform a quantitative comparison of existing single-scale detection methods, including a complete analysis of the filters.We introduce a new multi-scale detection approach based on the wavelet transform applied to the convergence.We chose to focus on the convergence because this quantity explicitly traces the total matter distribution integrated along the LOS and is computationally less expensive to analyse, making it ideal for application to upcoming large-scale survey data.We quantify the performance of our new multi-scale approach by applying it to the DUSTGRAINpathfinder simulations detailed in Giocoli et al. (2018), which feature source densities similar to those expected from the Euclid survey.We find that the new multi-scale method operating on the convergence is faster and more efficient at detecting clusters than currently used single-scale methods operating on the shear.
This paper is organised as follows.In Sect. 2 we summarise the key aspects of gravitational lensing.The mock dataset DUSTGRAIN-pathfinder simulations are described in Sect.3. Section 4 introduces the AM formalism and several commonly used AM filters.A description of the wavelet formalism is also provided.Section 5 details the detection procedure that we use to compare the different filters.An analysis of the different options in the implementation of the detection algorithm is provided in Sect.6.In Sect.7 we provide the details of the matching procedure that we developed to allow for a fair comparison of the methods.Finally, the performance of the detection methods is evaluated in Sect.8, and we conclude in Sect.9.

Weak lensing theory
The gravitational field of massive objects affects the path of light in their vicinity.Thus, the light from background galaxies is deflected as it travels towards us and their images appear distorted.These distortions, or (reduced) shear, are a direct observable and are an imprint of the intervening large-scale matter distribution.Different structures, such as clusters of galaxies, filaments, or even individual galaxies, can act as lenses and create this warping effect.
We summarise here the gravitational lens theory that is sufficient for the treatment of lensing by galaxy clusters (see e.g.Bartelmann & Schneider 2001).We consider a lens at angular position θ and at distance D l from the observer.Its surface mass density, Σ(θ), is integrated from its 3D mass density, ρ(θ, z), along the LOS: (1) From the surface mass density, we can define the lensing potential, ψ(θ), according to the position of the background galaxy sources with distance D s from the observer and distance D ls from the lens: When light rays travel close to a lens, they are bent, leading to image distortions and, potentially, to multiple images.These images appear with a deflection angle, α(θ), induced by the lensing potential, ψ(θ): Here α(θ) is the difference between the angular position, β, where the images would be without the lens and the observed position, θ.This is summarised by the lens equation: From Eqs. 2, 3, and 4, the deviation, β, of the observed image with respect to the undistorted image can be derived: (5) Here 2 )ψ and ( 6) correspond to the two components of the shear γ, and corresponds to the convergence that is the shape contraction or dilation of the image.
From the above, we can express the convergence as a function of the critical value of the surface mass density, Σ crit : with Thus, the convergence is a tracer of the total matter distribution integrated along the LOS, weighted by the redshift-dependent factor 1/Σ crit .The direct observable is the reduced shear, g, that is derived from the ellipticities of the observed background galaxies.The reduced shear, g, is defined as follows: In the weak lensing regime (κ ≪ 1), it approximates the shear, γ.

Application
In practice, we observe a distorted image, from which we measure the galaxy ellipticities and estimate the shear components, γ 1 and γ 2 .Kaiser & Squires (1993) introduced the mass inversion technique, which involves the computation of the convergence map κ from the measured shear field.We can consider a complex notation to represent the shear field, γ = γ 1 + iγ 2 , and the convergence field, κ = κ E + iκ B , with κ E and κ B , called E-and B-modes.Then, taking the Fourier transform of Eqs. 6, 7, and 8, we obtain with : P = P1 + i P2 and , (13 where the hat symbol refers to the Fourier transform, and k i is the wave number at the angular position, θ i .
Considering the conjugate P * = P1 − i P2 , we can reconstruct κ E and κ B from the complex shear γ, obtaining Given that ψ is a scalar potential, it can be shown that weak lensing does not in principle produce B-modes.Thus, B-modes can be used to estimate the level of the noise in the data.Figure 1 shows an example of simulated shear and convergence maps without shape noise derived from the DUSTGRAIN-pathfinder simulation (described in Sect.3) covering a field of 5 • × 5 • .The left and middle panels correspond to the two components of the shear, γ 1 and γ 2 and the right panel to the corresponding E-mode convergence map, κ E .Although both the shear and the convergence can be used for cluster detection, the convergence is easier and computationally less expensive to analyse because it is a scalar field that is proportional to the projected matter distribution.

The DUSTGRAIN N-body simulations
We make use of a suite of cosmological N-body simulations called The DUSTGRAIN-pathfinder (see Giocoli et al. 2018, for a detailed description).This DM-only simulation traces the collisionless evolution of 783 3 DM particles with a mass m CDM = 8.1 × 10 10 h −1 M ⊙ , contained within a periodic cosmological box of side 750 h −1 Mpc.In the present work, we use a subset of the full DUSTGRAIN-pathfinder runs consisting of 256 realisations sharing the same standard cosmological parameters in agreement with Planck Collaboration XIII 2016: 6731, and σ 8 = 0.847.The different LOS realisations were obtained by randomising the stacked comoving cosmological boxes through combinations of the following procedures: (i) changing the sign of the Cartesian coordinates, (ii) redefining the position of the observer, and (iii) modifying the order of the axes in the coordinate system.By construction, these variations preserve the clustering properties of the particle distribution at the scale of the comoving simulation snapshot.

Mock dark matter halo catalogues
The mock DM halo catalogues were generated by identifying the DM haloes in the DUSTGRAIN simulation through a friendsof-friends algorithm (Davis et al. 1985) with linking distance λ = 0.16 × d, where d is the mean separation distance between particles.The SUBFIND algorithm (Springel et al. 2001) was then used to evaluate the standard parameters of each friendsof-friends-identified halo: the redshift, z, and the virial mass, M 200c , and radius R 200c , corresponding to the mass and radius of a spherical region around the fiducial centre of each halo enclosing 200 times the critical density of the Universe.Thus, for each of the 256 realisations, the catalogue is composed of the positions (i.e. the right ascension and the declination) of the identified DM haloes, their estimated redshift, z l , and their virial mass, M 200c , and radius, R 200c .This DM halo catalogue is used in our study for the matching procedure to quantify the purity and completeness of each selected sample.

Mock galaxy catalogues
The particles stored in 21 different snapshots were used to construct continuous past light cones from z = 0 to z = 4 using the MAPsim pipeline (Giocoli et al. 2015(Giocoli et al. , 2017)).The routine extracts the positions of each particle to recreate the past light cone and at the same time, the particles are binned to build 27 different lens planes to recompose the projected matter density distribution.Then, the shear of each galaxy is computed by projection, using the Born approximation, which assumes unperturbed light paths to integrate the lensing distortions (Bartelmann & Schneider 2001).The redshift distribution of the galaxies, n(z), was built to follow a realistic distribution approaching the one expected for the Euclid survey (e.g.Cropper et al. 2013).Each realisation contains around 3 million galaxies in a field of view of 5 • × 5 • , with a galaxy distribution extending up to z = 4.This leads to a galaxy density of about n g = 30 gal. arcmin −2 .
Noise was added to the shear to mimic realistic surveys.Uncertainties in the shear (referred to as 'shape noise') arise from a combination of the unavoidable intrinsic shape of the galaxies (referred to as the 'intrinsic shape noise'), and measurement errors that include, among other factors, uncertainties in the galaxy shape measurement and the point spread function correction.The intrinsic shape of the galaxies being the dominant component and the galaxies being randomly distributed, the shape noise can be modelled as an additive noise.This can be well approximated by a Gaussian distribution with a mean of µ = 0 and a standard deviation of σ ϵ = 0.26 (e.g.Leauthaud et al. 2007;Schrabback et al. 2015Schrabback et al. , 2018)).For each galaxy, the shape noise was therefore included in the catalogue by adding Gaussian noise to the two components of the shear.For each of the 256 realisations, the galaxy catalogue is composed of: (i) the positions (i.e. the right ascension and the declination) of the galaxies, (ii) the two components of the shear, and (iii) the red-shift.These noisy galaxy catalogues are then used as the inputs to evaluate the detection algorithms described below.

Filters
In this section we present several different filters that have been used for weak lensing cluster detection in previous studies, and we compare them to the wavelet filters that we use in our new multi-scale detection approach.A complete analysis and comparison of the different filters both in real and Fourier space is also provided.
Although used since the very first weak lensing detection algorithms (e.g.White et al. 2002;Miyazaki et al. 2002;Hamana et al. 2004;Tang & Fan 2005;Gavazzi & Soucail 2006;Miyazaki et al. 2007;Fan et al. 2010;Shan et al. 2012Shan et al. , 2018)), we excluded the Gaussian filter from this analysis because it behaves as a low-pass filter and is thus not optimal for cluster detection.Although low-pass filters appear to be natural tools for reducing the shape noise that dominates at high-frequencies, they are not adapted to diminish the low-frequency signal coming from LSS, which causes many spurious peaks (see e.g.Maturi et al. 2005).Since the use of such low-pass filters is sub-optimal for the current application, we focus our analysis on pass-band filters that are better able to target the signal around a given scale.

The aperture mass formalism
The AM method (Schneider 1996) is commonly used to reconstruct maps of the projected matter distribution at a given scale.The AM map can be evaluated at a position θ o by convolving the convergence field, κ, with a filter, U, such that where U must be compensated; that is, must be fulfilled within the aperture of radius θ ap .Alternatively, the AM map can also be computed from the tangential component of the shear, γ t , which is a quantity that can directly be computed from γ 1 and γ 2 : The performance of the AM technique at finding clusters on a map depends on the exact choice of filter, and on its capacity to isolate the lensing signal from the shape noise and the LSS component.The optimal filters U or Q should be designed to fulfil two properties.In real-space, the filters should be local, that is, decrease smoothly to zero within a finite radius.Ideally, they should fit the shape of the structures of interest.Moreover, they should be local in Fourier space, focusing on a particular angular scale.Ideally, their size should match as closely as possible the size of the structures of interest.
A number of functions or families of functions have been proposed (e.g.Schneider 1996;Schirmer 2004;Schirmer et al. 2007;Jarvis et al. 2004;Hamana et al. 2012;Miyazaki et al. 2018).In the present study, we consider the following four wellknown AM filters.
The first is the original AM family of filters defined in the paper by Schneider (1996, hereafter S96): where parameters α, b, and c ensure that the filter is compensated and continuous in real space.The parameters ν 1 , ν 2 , and R define the angular extent of the filter and must be adapted to the size and shape of the clusters we want to detect.We implemented the different parameterisations presented in Schneider (1996) and we use ν 1 = 0.1, ν 2 = 0.9, R = 9 ′ , α = 0.8531, b = −329.8,and c = 0.2415, which we found to maximise the purity and completeness.The corresponding Q S96 can be calculated analytically with Eq. 22.
The second is the filter developed by Schirmer (2004, hereafter TANH): with θ s being defined as the angular scale of the aperture.In practice, the choice of θ s influences the angular radius of the cluster the filter targets, but the relation is not direct.Following Miyazaki et al. (2018), we use θ s = 1.5 ′ , and U M18 (θ) = 0 if θ > R, with a truncation radius R = 15 ′ .We fixed this value of R to reduce the impact of the truncation on the filter behaviour as it derives from a Gaussian filter.Indeed, the filter U M18 reaches negative values at U M18 (R) and is subsequently forced to 0 by the truncation.This step in the function results in contamination in the signal.As the choice of truncation radius strongly impacts the computation time, there is a clear trade off between the computation time and the filter behaviour.

The wavelet formalism
The wavelet formalism can also be used to reconstruct maps of the projected matter distribution at a given scale (see e.g.Leonard et al. 2012;Pires et al. 2012).In Leonard et al. (2012), the authors showed that wavelet filter functions at a given scale are formally identical to AM filter functions at that scale.Similar to the AM functions, many different wavelet functions exist, including starlet, Mexican hat, Morlet, and biorthogonal (see e.g.Starck et al. 1998;Starck et al. 2006, for reviews).Many wavelet functions have been specifically designed to fulfil the properties of localisation in real and Fourier spaces, which is a distinct advantage compared to the AM approach.
A wavelet map of the convergence κ at position θ and scale a can be computed as where Ψ a is the wavelet filter of scale a.All wavelet filters are defined such that they respect the condition of zero mean.Therefore, they are compensated by definition.
Another advantage of the wavelet formalism is that it can decompose a given image into several complementary scale components.This is possible using the wavelet transform, for which fast algorithms exist.For our study, we use the isotropic undecimated wavelet transform, also called the starlet transform (e.g.Starck et al. 1998;Starck et al. 2006), which is able to simultaneously compute several wavelet maps on dyadic scales.The starlet functions are isotropic, which makes them well suited to extracting galaxy clusters, which appear roughly circular in the convergence maps.As such functions decompose an image into several complementary scales (see Sect. 4.3), they are ideal for undertaking a multi-scale analysis and for targeting structures of different angular sizes.The starlet transform decomposes the convergence as follows: where J is the number of scales of the decomposition, C J is the corresponding smoothed version of the convergence κ, and W i are the wavelet maps targeting clusters with an apparent angular radius of 2 i−1 times the size of the pixel.As a consequence, the wavelet scales are fixed by the pixel size, and, by definition, increase as a power of two.Schneider (1996, S96) with R = 9 ′ ; in red (dash-dotted lines) the AM filter functions defined in Schirmer (2004, TANH) with R = 7 ′ ; in purple (dash-dotted lines) the AM filter functions defined in Jarvis et al. (2004, J04) with σ = 4 ′ ; and in green (dashed lines) the AM filter functions defined by Miyazaki et al. (2018, M18).The filter U M18 is also a compensated filter thanks to the U 0 term, but due to the high truncation radius we used, this is not distinctly visible.Finally, the AM filter functions corresponding to the wavelet filter functions at scale i = 4 are displayed in orange (solid lines).All the filters are normalised to have a maximum amplitude of 1.
In the starlet transform, the wavelet functions are defined as the difference between two B 3 -spline functions at different resolutions.Their application to the convergence map was shown to be equivalent to applying the following AM filter (Leonard et al. 2012): where and x is the pixel size.The new multi-scale detection method that we introduce in Sect.5.3 takes advantage of this multi-scale decomposition, the wavelet transform being able rapidly to decompose the convergence into different scales.

Filter analysis
The performance of each detection method is closely linked to the capacity of the filter functions to reduce the shape noise and the contribution from LSS, while simultaneously minimising the signal loss.In the following, we analyse the properties of the filters described above both in real and Fourier spaces to help in the interpretation of the results presented in Sect.8.In Fig. 2 we compare the different filter functions Q and U, defined in Sects.4.1 and 4.2, in real space.This comparison underlines the differences in filter shape.In particular, we focus our attention on their compensated and local properties.The dotted blue curves correspond to the AM functions defined in Schneider (1996).The filter U S96 is compensated and local by design.The dash-dotted red curves correspond to the AM functions defined in Schirmer (2004).The filter U TANH drops rapidly to zero, but it is not local and is only compensated at infinity.The localisation is imposed by a truncation radius at R = 7 ′ .The dash-dotted purple curves correspond to the AM functions defined in Jarvis et al. (2004).This filter U J04 is also not local, and is also only compensated at infinity since it tends to zero when θ tends to +∞.In practice, the filter is truncated at R=20 ′ to have a local support.The dashed green curves correspond to the AM functions defined in Miyazaki et al. (2018).In the definition of U M18 , U 0 ensures that the filter is compensated within an aperture of radius R.However, the Q M18 function is non-local, which can introduce errors when truncating the aperture.The solid orange curves correspond to the wavelet filter function U W 4 defined in Eq. 32 for i = 4 (hereafter W4).The wavelet filter is shown to be compensated within an aperture radius equal to two times the filter radius.
It is also instructive to study the representation of the filter functions in Fourier space as this allows us to fully understand how the filters are designed to locate structures.In Fourier space, an optimal band-pass filter should be local, in order to select only a specific range of frequencies around the scale of interest, and thus reduce the noise and the contribution from LSS.The design of AM filters can be delicate, and some such filters suffer from oscillations in Fourier space owing to truncations applied in real space that deteriorate the band-pass ability of the filter (see e.g.Leonard et al. 2012, for more details).In contrast, many wavelet functions have been specifically designed to fulfil the properties of localisation in real and Fourier space..17, 2 ′ .32, 4 ′ .68,and 9 ′ .37, respectively.For comparison purposes, the J04 and M18 filters are forced to the same amplitude as the W4 function to illustrate their behaviour in terms of filter radius.
To analyse the filters precisely in Fourier space, we studied their impulse response.For this purpose, we simulated a null convergence map with a single peak at the centre.Then we passed this convergence map through the four AM filters and each of the wavelet functions, and computed the corresponding power spectra in Fourier space.The resulting power spectra are compared in Fig. 3.This representation highlights each characteristic filter radius, corresponding to the characteristic size of the structures the filter targets.The 3 ′ , radius of the S96 filter falls between that of the W3 and W4 wavelet filters.The TANH filter, with a radius of about 2 ′ , matches that of the W3 wavelet filter.The J04 filter, which has a radius of about 4 ′ , matches that of the W4 wavelet filter.Finally, the M18 filter can be compared to a combination of the W3 and W4 wavelet filters.In the Fourier domain, we can clearly see the band-pass behaviour of the different functions.In particular, the S96 and TANH filters show oscillatory behaviour, which can be explained by their design.
This Fourier space representation further shows that the selected scales of the wavelet filter appear to be well defined.In the wavelet formalism, the wavelet filter functions have complementary dyadic scales, defined by the pixel resolution as explained in Sect.4.2.Their comparison with the four AM filters highlights that a wavelet filter at a given scale can directly be compared to an AM filter.However, unlike AM filters, which focus essentially on one scale, the wavelet formalism allows us to extract signal at more than one complementary scale.Generally, the standard AM methods target clusters located at relatively low redshift with a large apparent angular size.Thus, typical AM filter radii are taken between 1 ′ and 5 ′ (e.g.Hamana et al. 2012) to maximise the S/N for clusters with a similar angular extent.In contrast, the lensing signal from clusters with different apparent angular sizes can easily be targeted using the wavelet formalism.

Detection algorithms
In this section we discuss the implementation of the detection approach we used to compare the filters.The detection algorithms are all based on the same basic principles.The lensing signal is first convolved with a filter function of a specific scale (described in the previous section) to reconstruct E-and B-mode AM maps.Thresholding is then applied to the E-mode AM map to locate the overdensity peaks corresponding to clusters.

Binning and filtering
In the following, we describe the steps used to produce the Eand B-mode AM maps on which the detection is performed.As explained in Sect.3.3, the noisy galaxy catalogues are the basic inputs for the detection algorithms.These contain the shear at the discrete positions of each of the galaxies.
At this stage the convolution by the filter function can be undertaken in real space, on the shear directly at the position of the galaxies, or in Fourier space, by binning the shear on a regular grid to build a shear map.A third possibility is to reconstruct the convergence from the shear maps and then to perform the filter convolution on the resulting convergence map.A comparison of these approaches is provided in Sects.6.1 and 6.2, where we show that we obtain statistically similar results irrespective of approach.For the following, we use the third approach because it is computationally faster, in particular for wavelet filters, with the use of the wavelet transform.
We first binned the observed galaxy ellipticities on a regular grid to create what we refer to as the noisy shear maps.In our study, the simulated field being 5 • × 5 • , we decided to bin the galaxies in a grid of 512×512 pixels, yielding a pixel size of 0 ′ .58.On average, with a galaxy density of 30 galaxies per arcmin 2 , about 10 galaxies fall into each pixel.The standard method for binning the shear on a regular grid consists of simply calculating the average shear per pixel (see e.g.Kaiser & Squires 1993;van Waerbeke 2000;Pires et al. 2020).In this paper, we introduce a new binning strategy to be closer to the real space approach.This Noisy convergence E Scale W1 Scale W2 Scale W3 Scale W4 Scale W5 consists of summing the shear of all the galaxies that fall into each pixel.Thus, the shear in each pixel is effectively weighted by the number of galaxies in that pixel.This binning strategy is more adapted to weak lensing detection because additional information on the galaxy density is included in each pixel.The resulting shear map can then be normalised by the mean number of galaxies per pixel to facilitate the comparison with other approaches.However, this global normalisation has no impact on the detection because it affects the E-and B-modes in a similar way.The impact of these two different binning approaches is discussed in more detail in Sect.6.1.The disadvantage of this approach is that the weak lensing signal depends significantly on the number of galaxies per pixel, complicating its interpretation in terms of mass.However, such calculations can be undertaken in a second step, after detection.
We then applied the Kaiser & Squires inversion described in Sect.2.2 to the noisy shear maps γ 1 and γ 2 , to reconstruct the Eand B-mode convergence maps.Convolution by the different filters was then performed both on the E-and B-mode convergence maps, to produce the corresponding AM maps.
In the following, we refer to maps of the projected matter distribution at a given scale as AM maps.In practice, these can be obtained by applying AM filters or wavelet filters to the shear or to the convergence.The procedure to detect the haloes on these E-and B-mode AM maps using a single scale is identical, regardless of the method that has been used to produce them.

Single-scale detection procedure
Once the E-and B-mode AM maps at a specific scale are produced, the detection procedure starts by applying a thresholding step.Since the weak lensing effect produces only E-modes, the B-modes are simply due to the noise and can therefore be used to evaluate the level of the noise in the E-mode AM map.As proposed by Miyazaki et al. (2018), we used the maximum pixel value in the B-modes to define the threshold that is then applied to the E-mode AM map.We then only keep the pixels in the Emode AM map that are greater than this threshold, setting the other pixels to zero.
In their study of the HSC data, Miyazaki et al. (2018) find that this threshold corresponds to 4.7 times the standard deviation of the noise.The standard deviation depends on the filter under consideration and is computed from the B-mode AM map.For the DUSTGRAIN-pathfinder simulation we use here, the equivalent average thresholds for the 256 realisations correspond to 4. 09, 4.37, 4.01, 4.35, 4.57, 4.35, and 4.04 times the standard deviation for the S96, TANH, J04, M18, W2, W3, and W4 filters, respectively.
The final detection step is to identify the peaks in each of the thresholded E-mode AM maps.A peak is defined as a pixel whose value is greater than its eight nearest neighbours.The peaks at the border of the map over a width equal to the filter radius are discarded to avoid contamination due to boundary effects introduced by the convolution step.Following this procedure, we obtain a list of detections and associated peak coordinates.While this procedure is sufficient for single-scale methods, it needs to be further developed in the multi-scale case to deal with multiple detections, as we describe below.

Multi-scale detection procedure
In the detection method based on the wavelet transform, we chose to decompose the lensing signal into J = 5 scales (see Eq. 31), as this will encompass a maximum of possible galaxy cluster apparent angular sizes.Figure 4 shows the result of such a decomposition applied to the noisy convergence map of a 5 • × 5 • simulated field.The top left panel shows a noisy version of the E-mode convergence map displayed on the right panel of Fig. 1, and the other panels show the wavelet maps corresponding to scales i = 1 to 5 (W1-W5).Each wavelet map gives details of the original convergence map at different scales.The first scale (W1) is mostly dominated by the noise.In contrast, the scales from W2 to W5 shed light on different signals within the input E-mode convergence map.In our analysis, we decide to only keep the scales W2, W3 and W4.We remove scale W1 because it is dominated by noise.Scales W5 and above have also been removed because these filter sizes greatly exceed the expected angular size of the clusters we want to detect.
On the remaining scales W2, W3, and W4, we apply the single-scale detection procedure described above to extract the local maxima at each individual scale (hereafter W234).We now have to deal with an issue that is specific to the multi-scale approach.A signal from a given object can be detected at several scales, and with a position that varies slightly from one scale to another.We refer to these henceforth as multiple detections.Once we have obtained a peak candidate list for each scale, it is important to identify such multiple detections and to recombine them.This is achieved by computing the separation distance between all the pairs of detections on consecutive scales.If two peaks on different scales have a separation distance smaller than the larger of the two filter radii, we consider them to be a multiple detection.These are then recombined, and the position of the recombined peak is set by the position of the detection at the finest scale.If there are more than two peaks, we repeat this procedure for all the detection peaks and all the scales consecutively.We keep track of the index i of the finest scale where the recombined detection appears, as this will be considered as the scale at which the signal was detected for the matching procedure described below in Sect.7. We also saved the detections at each individual wavelet scale to study their complementarity before combination and to allow a comparison of their performance with respect to the corresponding AM filters.

Analysis of implementation options for the detection algorithms
In practice, the detection is undertaken on a catalogue of galaxies, for each of which a noisy shear measurement is available.As described above, this is typically undertaken through the convolution of the shear with a compensated filter.This convolution can be performed in real space, directly at the position of the galaxies (e.g.Maturi et al. 2005;Wittman et al. 2006;Miyazaki et al. 2018;Hamana et al. 2020), or in Fourier space, binning the shear on a regular grid (e.g.Hennawi & Spergel 2005;Leonard et al. 2015;Oguri et al. 2021).Moreover, some cluster weak lensing detection algorithms are based on the convolution of the convergence (derived from the shear and also defined on a regular grid) by a compensated filter (e.g.White et al. 2002;Hamana et al. 2004;Tang & Fan 2005;Miyazaki et al. 2007).In this section we explore how binning impacts the signal, and whether the choice to use the shear or the convergence has any effect on the detection efficiency.
6.1.Detection in real space versus Fourier space In the limit of a perfectly homogeneous distribution of background sources, the detection of convergence peaks, whether in real space or in Fourier space, depends only on the number density of these sources.However, as the background sources are not homogeneously distributed, an additional uncertainty is introduced into the method by the binning.This can impact the position and the S/N of the detections.This point has not been fully studied here because the distribution of the background sources is homogeneous in the simulations.However, as the number of background sources per pixel varies slightly for statistical reasons, our study already provides some insights on the impact of the background source distribution.

Binning strategy
The computation time for AM-based detection algorithms is considerable for the real space approach.Computation time is significantly reduced for AM-based detection algorithms when using the Fourier approach.However, there is a loss of resolution compared to the real space approach because the galaxies must be binned on a shear map before performing the Fourier transform, instead of using their exact position.This loss of resolution introduces a loss of power for the high S/N pixels in the shear map, affecting the efficiency of the detection method.An additional disadvantage of the Fourier approach is that there are artefacts at the border of the field due to the periodic assumption of the discrete Fourier transform.Such effects can be significantly mitigated by removing the image boundaries or by dealing correctly with borders during the mass inversion, as proposed in Pires et al. (2020).
The impact of the loss of resolution when working in Fourier space depends on the map resolution (i.e. the number of pixels of the map), and can be mitigated by using an appropriate value.Indeed, there is a trade-off to be made on the map resolution.Decreasing the resolution too much leads to power leakage, which can affect the detection method.On the other hand, finer binning can oversample the underlying data, and can introduce missing data into the map.
Both real space and Fourier space approaches can be found in the literature (e.g.Hennawi & Spergel 2005;Gavazzi & Soucail 2006;Miyazaki et al. 2018;Hamana et al. 2020;Oguri et al. 2021).In this paper we have introduced an additional Fourier space approach with a different binning strategy as explained in Sect.5.1.

Impact on the signal
We first assessed the impact of the choice of a real or Fourier space approach on the signal conservation, when using an appropriate map resolution.We considered three different implementations: (i) application of an AM filter to the shear at the positions of the galaxies, directly in real space; (ii) application of an AM filter in Fourier space to the binned shear obtained by averaging the signal from the galaxies that fall in each pixel  × 5 • AM map with 512 × 512 pixels obtained using the real space implementation (blue) and using the Fourier space implementations (orange and green lines for summed and averaged pixel binning, respectively).Compared to the real space implementation, there is a 1.2% and 1.5% loss of power for the Fourier space implementation with summed and averaged pixel binning, respectively.Right: Detections obtained on the same field when the computation is undertaken in real space (blue circles) or in Fourier space using either the summed pixel binning (golden circles) or the averaged pixel binning (green circles).The Fourier space implementation with summed pixel binning is very close to the real space implementation in terms of detections.When the binning is performed by averaging the shear values, there are fewer detections, and about 30% of these detections are different from those obtained with the real space implementation.(averaged pixel binning); and (iii) application of an AM filter in Fourier space to the binned shear obtained by summing the signal from the galaxies that fall in each pixel (summed pixel binning).
First, we studied the differences between the three implementations through their spectra in the Fourier domain.For this test, we used the filter proposed by Jarvis et al. (2004) because it can be easily applied to the shear, either at the position of the galaxies or binned on a regular grid.From the shear catalogue of a 5 • × 5 • field without noise, we computed the E-mode AM maps for the three different implementations and derived the corresponding power spectrum.
The results are presented in the left-hand panel of Fig. 5, with the power spectra shown for implementations 1, 2, and 3.The power spectra are very similar, showing that on average the signal is equally well preserved by all three approaches.To quantitatively compare the implementations, we computed the integral of the power spectra.Compared to the real space approach, we find that the power spectrum integral of the Fourier space implementation suffers from a 1.2% loss for summed pixel binning, and a 1.5% loss for averaged pixel binning.

Impact on the detections
We now analyse the impact of the three implementation choices discussed above on the detection efficiency.For each of the three implementations, we built the E-and B-mode AM map and applied the detection procedure described in Sect.5.2 using the Jarvis et al. ( 2004) AM filter.This was undertaken on all 256 realisations.The right-hand panel of Fig. 5 compares the detections obtained with the three different implementations for one of the realisations.
When averaging these results over the 256 realisations, we found that the mean number of detections using the real space approach (49.2 ± 0.6) is very close to that from the Fourier space approach with summed pixel binning (47.9 ± 0.5).In contrast, the Fourier space approach with averaged pixel binning gives a smaller mean number of detections (43.4 ± 0.5).Moreover, a closer look on the detections made by the different approaches reveals noticeable differences.We found that 28.2%±2.1% of the detections obtained from the averaged pixel binning approach differ from those made by the real space approach.In contrast, with the summed pixel binning approach only 7.6% ± 1.3% of the detections are different.
These results show that the binning strategy has a nonnegligible impact on the detection efficiency, both in terms of number and distribution of the detections.In light of these results, we conclude that the Fourier space approach with summed pixel binning strategy agrees very well with the real space approach, producing results that are statistically similar.In the following, we decided to perform all tests and comparisons using the third implementation (i.e. the Fourier space approach using a summed pixel binning strategy) because it is computationally less demanding.It has the additional advantage of providing a substantial speed increase with respect to detection in real space: for our applications, we find a speed increase of two orders of magnitude, in agreement with the study by Leonard et al. (2012).

Detection using shear map versus convergence map
Both shear and convergence can give insights into the statistical properties of the weak lensing field, and indeed, it can be shown that they contain precisely the same information (e.g.Schneider et al. 2002;Pires et al. 2020).The (reduced) shear is a direct observable and is usually preferred for reasons of simplicity.However, the convergence has the key advantage that κ E encapsulates all the lensing signal, while it is inevitably shared between γ 1 and γ 2 in the shear.In this connection, the convergence is more adapted for galaxy cluster detection because it explicitly traces the total matter distribution integrated along the LOS.A further advantage of using the convergence is that it is computationally less expensive to analyse.
Although the reconstruction of the convergence field from survey data is a difficult task, Pires et al. (2020) show that the lensing signal is preserved in the convergence maps provided the mass inversion is performed without noise regularisation, and systematic effects such as irregular sampling and complex survey geometries are well controlled.
The AM formalism can be expressed either on the shear or on the convergence maps.We now assess the difference between these two approaches.We first compared them in Fourier space.For each realisation of the noisy shear catalogue, we produced the E-and B-mode AM maps using the J04 AM filter applied to either the shear or the convergence maps.Then, we computed and compared the power spectra.The result of this comparison for one realisation is shown in the left-hand panel of Fig. 6, where we see that the power spectra obtained from the shear aperture map and the convergence aperture map are in good agreement.Averaging over all 256 realisations, we measure a discrepancy of 0.03% in the power spectrum integral between the shear and the convergence approaches.This difference can be explained by residual border effects that are not totally suppressed when removing the image boundaries.
We then compared the two approaches in terms of detections, applying the detection procedure described in Sect.5.2.The results, shown in the right-hand panel of Fig. 6, highlight the perfect agreement between the approaches.This result remains valid for wavelet filters that are formally identical to AM filters (see Leonard et al. 2012 for more details).However, while the AM formalism can be applied to either the shear or the convergence, the wavelet transform is not designed to process spin-2 fields (i.e. with two independent components) such as the shear field.So, the shear and convergence approaches being equivalent, we decided to perform all the tests and comparisons applying the AM and Wavelet filters to the convergence maps, to be able to use the wavelet transform.

Matching
Once the peaks are detected in the E-mode AM maps, they must be cross-matched with the position of the haloes in the DM halo catalogue.This matching procedure is essential to characterise the performance of the different methods, and the results can be biased if not undertaken correctly.This is particularly true when the filter characteristics differ significantly between methods.We first identify two main points in the matching procedure that can significantly increase the number of false detections.
The first concerns the characteristics of the halo catalogue used for matching.The DM halo catalogue contains objects down to a mass of M 200c = 10 12 h −1 M ⊙ and up to a redshift of z = 3.6.For the cosmology under consideration, a halo catalogue with these characteristics contains about 15, 000 haloes in a field of 5 • × 5 • .Obviously, only a small fraction of these haloes will be detectable through the weak lensing effect, which is only sensitive to the most massive clusters with sufficient galaxy sources behind them to trace their mass distribution.Changing the characteristics of the halo catalogue, such as imposing limits in mass and/or redshift, changes the performance of the methods with respect to a number of key points (e.g.matching, false associations).
The second is the association distance.Typically, the matching is performed within a fixed physical, comoving, or angular radius centred on the candidate peak, the association distance of which is usually optimised for a given filter (e.g.The light blue dots correspond to all the haloes in the field, and the dark blue dots are the selected haloes with S/N> 2. Hamana et al. 2020;Oguri et al. 2021).However, when comparing different filters, this association distance must be adapted for each detection method to allow a fair comparison.
In the following, we address the first issue by applying a preselection to the halo catalogue based on the theoretical S/N of the detection of an NFW halo profile by weak lensing.Regarding the second issue, we developed a method that allows us to adapt the matching distance to the filter characteristics used in the detection method.

Halo catalogue pre-selection by S/N
Imposing a pre-selection on the DM halo catalogue, by removing those haloes that are unlikely to be detected through weak lensing, reduces significantly the number of false associations.We defined our pre-selection by deriving a measure of the halo detectability in the form of the theoretical S/N of the detection by weak lensing (e.g.Hamana et al. 2004;Hetterscheidt et al. 2005;Bergé et al. 2010;Andreon & Bergé 2012).We followed the approach proposed by Bergé et al. (2010).Assuming the filter perfectly represents the signal κ, the S/N of an halo of mass M 200c and redshift z l can be expressed as where σ ϵ is the mean intrinsic shape noise of the source galaxies and n g the mean density of background sources.Assuming the mass of the cluster follows an NFW distribution (Navarro et al. 1996) its density profile is given by where ρ s is the characteristic density and r s = R 200c /c is the scale radius.The surface mass density Σ, projected along the LOS, can be written as (see Bartelmann & Schneider 2001) where x = r/r s is a dimensionless radius.The function g is defined with respect to the distance to the halo centre and the concentration, c.If c > 1, it can be written as (Wright & Brainerd 2000) g The concentration parameter c is derived using the semianalytical model introduced by Diemer & Joyce (2019), as implemented in COLOSSUS (Diemer 2018).The S/N of the halo can then be written as (Bergé et al. 2010) The weight parameter Z is designed to take into account the impact of the distribution of the sources (e.g.Seitz & Schneider 1997).the angular-diameter distance to the lens is described by D d , and Σ ∞ is the value of Σ crit for a source at a redshift of infinity.For each halo in the catalogue, we computed its theoretical S/N (ν) assuming a Euclid-like redshift source distribution p z s (derived from the simulation), a galaxy density of n g = 30 gal.arcmin −2 and a shape noise of σ ϵ = 0.26.The left-hand panel of Fig. 7 shows the resulting ideal weak lensing detection selection function in the mass-redshift plane for the characteristics of the simulation.The figure is obtained by generating a grid in the mass-redshift plane and computing the S/N value for each point of the grid using Eq.38.The colour map highlights the increase in S/N towards the upper-left corner, corresponding to the detection of massive clusters at low redshift.The solid white lines correspond to S/N contours of level S/N =[0, 1,2,3,4,5,6,7,10,12,15,20,25,30,35], which have been interpolated from the (z, M) grid points.
However, the above only yields an average value for the S/N of detection assuming a mean source distribution and an optimal filter.In practice, the filters are never perfectly adapted to the cluster shape as assumed in the theoretical S/N estimation.Furthermore, the detection S/N depends on the redshift distribution of the sources that are behind the cluster.The galaxies behind the cluster being few in number, small variations in their redshift can artificially boost or decrease the weak lensing signal.
We applied a conservative threshold to the 256 DM halo catalogues by keeping all the haloes with S/N> 2. Although a halo with S/N = 2 is unlikely to be detected, we applied this value to take into account the variance in the detection due to the distribution of the sources, and the use of an ideal filter.Below this value we do not expect to detect many clusters.We discuss this choice of pre-selection threshold further in Sect 8.3.2.With this pre-selection, in practice, from a typical 5 • × 5 • field, only 2-3% of the 15, 000 haloes in the catalogue are kept.The remaining 300 − 400 haloes are then the basis for the matching procedure.The right-hand panel of Fig. 7 shows the selected haloes in the mass-redshift plane for one 5 • × 5 • field.

Matching procedure
The matching procedure between the catalogue haloes and the peak candidates is a complex task.The typical approach consists of evaluating the distance between the candidate peak positions and the closest halo, and to consider these matched if the distance is below a given maximum matching distance (MMD).
In practice, most matching methods simply draw a circle of a given apparent angular radius around the candidate peak and match the closest halo that falls in the circle (e.g.Hamana et al. 2004;Gavazzi & Soucail 2006;Hamana et al. 2015;Hamana et al. 2020).However, in some procedures the matching is more refined, drawing a circle of a given comoving distance (in Mpc) around the halo and then matching the detection with highest S/N within this radius (e.g.Miyazaki et al. 2018;Oguri et al. 2021).The latter is more precise, but requires access to the redshift of the haloes in the catalogue.
Our study is further complicated by the characteristics of the different filter functions, and the inherent multi-scale nature of the wavelet approach.We therefore used a different method, drawing on SZ cluster survey matching procedures (see e.g.Planck Collaboration et al. 2014).In our study, the matching is undertaken by computing the apparent angular distance D (hereafter the association distance) between each candidate peak and each halo in the DM halo catalogue, after S/N pre-selection.This association distance is then normalised by the apparent halo radius θ 200c .This normalised distance D/θ 200c , together with the MMD defined below, are our matching criteria.Together, they take into account the filter size and have the effect of favouring the closest and most massive clusters in the matching.
The matching procedure is implemented iteratively.For N detections and M haloes, we obtain an array of N × M measured distances.We start the iterative process for a given candidate peak by selecting the minimum normalised distance D/θ 200c among all the measured normalised distances.The detection and halo corresponding to this minimum normalised distance are considered as matched and the corresponding row and column are removed from the array.The procedure is repeated until we reach the defined MMD.This procedure is perfectly suited to cross-match detections with simulated halo catalogues, yielding excellent results compared to typical methods.However, for application to cross-matching with real cluster catalogues (e.g.optical, X-ray, etc.) access to an estimate of the R 200c (or M 200c ) of the haloes is required.

Maximum matching distance
The choice of the MMD is critical, and must take the positional precision of the detection method into account, as larger filter sizes will lead to a loss of precision on the coordinates of the peak centre.At the same time, if the chosen MMD is too large, false associations may be introduced even after pre-selecting the halo catalogue, while associations may be missed if the MMD is too small.Therefore, the MMD must be optimised and adapted to the detection method in question.
For this study, we developed an empirical method that is able to adapt the MMD to the detection method.Our approach derives the MMD from the uncertainty in the position of the detection introduced by the size of the filter.In practice, this is undertaken by performing an association procedure on all the 256 fields, which corresponds to applying the matching procedure without any limit in the matching distance.
Figure 8 shows an example of the distribution of the corresponding association distances for all the 256 realisations (about 75, 000 haloes after catalogue pre-selection) for the filter W3, for which the filter radius equals 2 ′ .32.Each blue dot corresponds to a pairing between a peak detection and its closest halo.The upper-left panel shows the absolute association distance D, expressed in arcminutes, as a function of the association distance D normalised by the angular halo radius θ 200c .We clearly distinguish two distinct groups of associations.In the upper group, the detections are outside the characteristic halo radius.Therefore, we can consider this group to be false associations.The lower group is composed of associations for which the peak position is within the θ 200c radius of the halo and can thus be considered as true associations.To isolate the correct associations and define a correct MMD, we use a different visualisation of the results.In the lower-right panel of Fig. 8, the blue dots represent a unique peak detection-halo pair whose association distance D has been decomposed in terms of RA and Dec (we show only the central 20×20 arcminutes).The high-density central region corresponds to peak detections that have been correctly matched to an underlying halo.The dispersion in this high-density central region in the RA-Dec plane highlights the uncertainties in the position of the peak detection introduced by the size of the filter.
To highlight the properties of the dispersion, we projected the distribution on both RA and Dec axes, displayed for the W3 filter in the upper-right and lower-left panels of Fig. 8, respectively.The positional uncertainty is well approximated by a Gaussian distribution.In practice, we obtain the same parameters if we fit a 2D Gaussian distribution to the RA-Dec plane or a 1D Gaussian distribution separately to the RA and Dec components.From the fit we extracted the standard deviation σ, which corresponds to the dispersion of the positional uncertainty of the detection with respect to the true halo position.The Gaussian fit shows a y-offset that can be explained by randomly matched haloes.The Gaussian fit also shows an x-offset corresponding, to the mean of the Gaussian distribution µ, which is due to the pixelisation.From these parameters, we defined the MMD to be 5σ + |µ|.We then applied this procedure to all the filters, and the resulting MMDs for each detection method are shown in Table 1.Comparing these values with the values of the filter radii shown in Fig. 3, we see that the MMD is directly proportional to the filter radius, as expected.
Once the MMDs are defined, we can apply the matching procedure defined in Sect.7.2.Figure 9 shows the results of the matching for the W3 filter.The blue dots still refer to the associations from all the detections and their closest halo.The orange dots correspond to the detections that have been successfully matched.Considering only the pairs for which the association distance is lower than the MMD allows us to separate the two groups of associations distinctly.This further allows us to build   Notes.The completeness is computed on each field of 5 • × 5 • using different S/N halo pre-selection in the matching procedure, with S/N > 2, 5, 7 and 10.The results give the mean and associated uncertainty in the completeness (in percent), estimated from the 256 realisations.
two catalogues: one of matched detections, and another of unmatched detections.

Multi-scale matching procedure
In the multi-scale approach, a same cluster can be detected on several successive scales, complicating the matching analysis.
To assess the performance of the multi-scale approach, it is important to recombine the multiple detections and to associate them with one single scale (the finest scale), as explained in Sect.5.3.In practice, the multi-scale matching procedure works as follows.Starting with the finest scale, the matching procedure is performed using the appropriate matching distance defined in Table 1.Associations at that scale are considered to be unique, and these haloes are removed from the catalogue that is used on subsequent scales.This procedure is repeated for each subsequent scale.
The final result is a catalogue of associated and nonassociated detections for each wavelet scale.These are important to measure the individual performance of each wavelet scale, and to compare their overall contribution in terms of detections and associations.The final catalogues of associated and nonassociated detections are then obtained by concatenation of the individual single-scale catalogues.

Results and performance
We now assess and compare the performance of the detection methods.We start by quantifying the completeness and purity of each sample, as commonly done by other studies (e.g.Miyazaki et al. 2018;Euclid Collaboration et al. 2019;Hamana et al. 2020).Then we analyse in more detail our detections by performing an analysis of the distribution of the matched detections in terms of redshift, mass and scale.We then quantify the number of false detections due to the shape noise for each method.Finally, we undertake a characterisation and a classification of the matched and unmatched detections.For the wavelet filters, we undertake the above both on one single scale (W4), and using the full multi-scale approach (W234).

Completeness
To quantify the performance of the different methods and to compare them, we used the completeness, C, defined as follows: We note that the completeness depends on the characteristics of the halo catalogue used for matching.Changing the pre-selection S/N in the halo catalogue will change the values of the completeness for each method.However, this does not affect the comparison between the methods.
To further develop our analysis, we computed the completeness for each detection method using different S/N thresholds in the halo catalogue.For each method, we computed the completeness of the 256 realisations considering only the haloes in the catalogue whose theoretical S/N is above a given value.We repeated this operation for different S/N limits.The results, averaged over the 256 realisations, are shown in Table 2.We see that considering the haloes with S/N> 2 results in a completeness below 25% for all the detection methods.As expected, the completeness increases with the halo pre-selection S/N threshold, and almost all of the highest S/N clusters are detected by the different detection methods.Even if the overall behaviour is comparable, this quantification shows that the detection methods based on the W234 and M18 filters outperform those based on the S96, TANH, and J04 filters in terms of completeness.

Purity
Although the completeness for a given S/N halo selection is a good indicator of the performance of the different detection methods, it does not provide any information on the proportion of unmatched detections.That is why a measure of the purity of the sample is also needed to refine the comparison.The purity, P, is defined as This quantity measures the proportion of matched detections in the sample (e.g.Euclid Collaboration et al. 2019) and can be used to evaluate the false detection rate.We computed the purity of the samples obtained from each detection method for a fixed catalogue pre-selection threshold of S/N> 2. This threshold was chosen so as to not decrease the purity artificially as explained in Sect.7.1.The results for the different detection methods, averaged over the 256 realisations, are summarised in Table 3.The estimated purity for all detection methods is comparable, at around 85%.This is somewhat lower than the expected number from the false detections estimated in Sect.8.2.1.This led us to perform a case-by-case analysis of the unmatched detections, as detailed in Sect.8.3.2.In particular, we observed that for some detections the matching procedure has failed or is too conservative.Although this obviously has an impact on the estimated purity, it does not affect the comparison between the methods because it affects all of them to the same extent.

Purity versus completeness
Comparing the results in Table 3, we see that the detection methods based on the S96, TANH, J04, and W4 filters lead to higher purity and lower completeness.Although the completeness is not directly linked to the number of detections, but rather to the number of matched detections, the lower completeness for these filters is consistent with their lower mean number of detections compared to the two other methods, and also with their Fourier space representation, whose band-pass width is narrower.We note that the wavelet filter W4 alone attains similar performance to the single-scale filters S96, TANH and J04.Conversely, the completeness is higher and the purity is lower for the M18 and W234 filters, which use larger band-pass filters.However, the multi-scale approach spans a wider range of possible cluster scales, and therefore allows us to reach a higher completeness.As a consequence, the multi-scale approach results in a higher mean number of detections for the same purity.Compared to the M18 AM filter, for instance, the multi-scale approach yields 25% more detections at a purity of ∼ 85%.
Table 3 also shows that some detection methods are more efficient in terms of completeness, while others are more efficient in terms of purity.Since the purity and completeness cannot be compared separately, a fair comparison between the detection methods requires an analysis of the evolution of the completeness as a function of the purity.We therefore computed this for each detection method using the pre-selected S/N> 2 catalogue for the matching.In practice, we varied the threshold in the detection procedure described in Sect.5.2 in steps of 5% and obtained new values of the completeness and purity for each new detection threshold value.
The results, averaged over the 256 realisations, are shown in Fig. 10.We see that the multi-scale approach outperforms the other detection methods at all values of purity.Compared to the detection method based on the TANH filter, there is an increase in the completeness of up to 65% at low purity.The increase in completeness is less for the detection method based on the M18 filter, but it remains significant in the range of purities studied.We also note that the performance of the wavelet filter W4 alone and the single-scale filter J04 are comparable.

Analysis of the detections
Here we estimate the number of false detections due to the shape noise, and characterise the matched detections in terms of mass, redshift and scale.

False detections
In the following we define false detections as those detections not related to any lensing signal (i.e.overdensity), and therefore due only to the noise.Then, we quantify the number of false detections due to the shape noise for each detection method.For Notes.For each detection method, the detections are obtained applying the detection procedure described in Sect. 5.The purity and the completeness are measured using the matching described in Sect.7 using a S/N> 2 pre-selection in the halo catalogue.The results correspond to the mean and its uncertainties (in percent) estimated from the 256 realisations.this purpose, we randomised the orientation of the sources in the noisy galaxy catalogues to suppress the lensing signal and to generate pure noise galaxy catalogues.We then derived the associated convergence maps as described in Sect. 5 and applied the various detection methods.For each method, we then computed the mean false detection rate averaged over the 256 realisations.This was obtained from the ratio of the number of detections due purely to the shape noise to the number of detections obtained when the signal is not suppressed.The resulting false detection rate due to the shape noise is given, for each detection method, in the second column of Table 4.
The false detection rate due to shape noise is 1.1% for the J04 detection method, 1.8% for the detection methods based on the S96, TANH and W234 filters, and 3% for the M18 detection method.The impact of the shape noise depends on the filter.The noise level is lower at large scales compared to smaller scales, which explains why the J04 detection method is less sensitive to the noise compared to the other methods.In contrast, the M18 detection method is the most sensitive because it includes small scales.Similarly, the oscillation behaviour of the S96 and TANH filters increases their sensitivity to the noise, by integrating smaller scales.The W234 detection method also includes small scales, but the impact of the shape noise is reduced owing to its multi-scale detection procedure.Despite these differences, the number of false detections due to the shape noise is small, irrespective of detection method.

Characterisation of the matched detections
Once the matching is completed, we characterise the matched detections by plotting their distribution in the redshift-mass plane.Figure 11 shows the distribution of the clusters detected by the five different detection methods in the redshift-mass plane.The figure is obtained from one single realisation, but is representative of the full 256 realisation sample.The matching is performed using only the haloes with S/N> 2.
As expected, all the detection methods are most sensitive to the signal from high mass clusters lying at low redshift.Comparison shows that the multi-scale detection method W234 has more matched detections than the others, in agreement with the completeness results presented in Table 2.In addition, almost all the clusters detected by the S96, TANH, J04, and M18 detection methods are also detected by the multi-scale detection procedure.Compared to the four other detection methods, the multiscale approach generally detects more clusters at lower masses, and up to higher redshifts.In Appendix A we further analyse the multi-scale approach by investigating the contribution of each wavelet scale to the total number of matched detections.
A striking aspect of Fig. 11 is that some haloes with a very high predicted S/N are not detected, regardless of the method used.We performed a case-by-case analysis of these haloes and we found several explanations for this.In some cases, the detection is missed because of the shape noise.In other cases, the detection is missed because the lensing signal is decreased by the redshift distribution of the sources behind the cluster (through Eqs. 9 and 10).In some other cases, the cluster is detected but the matching procedure fails because the normalised distance is not always the best criterion.

Classification of the detections
We now undertake a further analysis of the matched and unmatched detections by classifying them into different categories.In particular, Fig. 12 summarises these categories and the results for the W234 method, after detection and matching of all 256 realisations.Notes.The detections have been classified in the categories described in Sect.8.3.1 and 8.3.2, for each detection method and averaged on each field of size 5 • × 5 • .The first column gives the proportion of matched detection using a S/N>2 pre-selected halo catalogue in the matching procedure described in Sect.7.Then, the unmatched detections have been classified in the categories described in Sect.8.3.2.The false detections due to shape noise are in the second column.The unmatched detections due to haloes whose lensing signal has been boosted are in the third column.The unmatched detections due to blended lensing signal from LOS alignments or the merging of two haloes of S/N>1.5 are in the fourth column.The last column gives the proportion of unmatched detections that remain unclassified.These results correspond to the mean and associated uncertainty of the detections that fall into these categories.The numbers in parentheses correspond to the average number of detections in each category in a 5 • × 5 • realisation (rounded up to an integer number).
inevitable that some true detections can be correctly matched but should in fact be associated with two (or possibly more) haloes whose lensing signal is merged.This may occur when two haloes are aligned in the LOS or when their apparent angular distance is small compared to the size of the filter.In this case, the matching procedure does not differentiate and the association is undertaken simply with the closest halo.We estimate that about 5% of the matched detections fall in this category by searching for multiple haloes in the vicinity of the matched detections ('Multiple Matched (LOS)' in Fig. 12).These imperfect associations can slightly reduce the estimated completeness, but all the methods are impacted in the same way by this effect.
False detections incorrectly matched.Among the matched detections, a small fraction are in fact randomly-matched false detections.These are detections due to the shape noise that are matched owing to being close to a halo in the catalogue.Their number depends both on the number of false detections (see Sect. 8.2.1) and on the false association rate (given in Table 5).In this study, we intentionally keep this number very small for all the detection methods (less than 0.3 %).However, one must be careful because both the detection and matching procedures can make this number become large.Thus, it is essential to always compute this number to fully assess the performance of the detection methods.

Classification of the unmatched detections
Here we focus on the detections that are not matched with a halo, to fully complete the analysis of the different detection methods.These unmatched detections can be classified into several categories.
False detections unmatched correctly.The most intuitive class for of unmatched detections is that composed of those due to the shape noise (see Sect. 8.2.1.)Beyond the small fraction that is incorrectly matched owing to being located close to a halo in the catalogue (see above), almost all of these false detections are not matched.Their number thus corresponds approximately to the false detection rate, and is given in the second column of Table 4.This number is very small compared to the estimated purity in Sect.8.1, and other explanations need to be found to explain the remaining ∼ 15% of the unmatched detections.Boosted lensing signal unmatched incorrectly.One possible explanation for the remaining unmatched detections is that some of these detections should be associated with haloes that have been removed from the halo catalogue after the S/N preselection.This could happen because the S/N estimated for each halo in the catalogue to perform the selection is theoretical.It is computed assuming an average theoretical source density and a theoretical distribution, p z s , for the redshift of the sources.In practice the sources behind a cluster are few in number.As a consequence their number and their redshift distribution can deviate significantly from the theoretical values, and can in some cases boost the lensing signal of a cluster, regardless of its mass and redshift.At the same time, selecting haloes with a much lower S/N in the halo catalogue serves to increase the false association rate, and so the number of false detections matched incorrectly (see Sect 8.3.1).Table 5 gives the false association rate when using a S/N> 2 pre-selection in the halo catalogue.This remains below 15% for all detection methods.Thus, the choice of imposing a S/N> 2 pre-selection in the halo catalogue is a tradeoff between the false association rate and the missed association rate.
We estimated the fraction of unmatched detections due to a boosted lensing signal by undertaking the matching procedure a second time for all 256 realisations, but with a halo pre-selection of S/N> 1.5.The results for each method is given in the third column of Table 4. Blended lensing signal unmatched incorrectly.A further explanation for the remaining unmatched detections is the case of two haloes contributing to the same detection: 1. Blended LOS: The blended lensing signal can be caused by LOS alignments (e.g.filamentary structures).This means that the detection is coming from two haloes with S/N< 2 that are aligned along the LOS and whose lensing signals cannot be separated without considering the redshift distribution of the background galaxies in the detection step.2. Blended haloes: The blended lensing signal can also be linked to the size of the filter.Indeed, some unmatched detections can come from two haloes whose apparent distance is small compared to the filter radius.The lensing signal of these two haloes being merged within the AM map, there is a single detection associated with the two haloes, the position of which depends on the mass and redshift of the two haloes.
In this case, the detection is unmatched when the theoretical S/N of the two haloes is less than 2, or when the position of the detection is too far away from the centre of the two haloes.
We estimated the proportion of blended lensing signal falling in the two categories by searching for multiple haloes with S/N > 1.5 in the vicinity of the unmatched detections.The proportion of unmatched detections due to the blending of the signal coming from two (or possibly more) haloes is given in the fourth column of Table 4.In this class of unmatched detections, we found that about a third of them are due to intrinsic LOS alignments.
A small fraction of unmatched detections do not fall into the above three categories.The fraction for each method is listed as 'others' in the last column of Table 4.Most of these remaining detections can be matched with haloes with S/N< 1.5.But further decreasing the halo pre-selection threshold increases the false association rate, making this classification very uncertain.

Summary and conclusions
The sensitivity of wide-field optical surveys now allows for the blind detection of galaxy clusters through their weak lensing signal.This situation will vastly improve with the launch of Euclid and the Roman Space Telescope.However, the construction of weak-lensing-selected galaxy cluster catalogues requires the improvement or development of new galaxy cluster detection algorithms able to cope with the increasingly large volume of data.
In this paper we have introduced a new, fast, multi-scale approach, based on wavelet filters operating on complementary scales, for detecting galaxy clusters through their weak lensing signal.This new method, W234, was compared to four commonly used approaches (S96, TANH, J04, and M18) based on AM filters.The comparison was performed on the same set of Euclid-like mocks obtained from the DUSTGRAIN-pathfinder simulations, composed of 256 realisations of a field of 5 • × 5 • , corresponding to a total area of 6 400 deg 2 .
We first undertook a thorough examination of the filter characteristics in real and Fourier space.This allowed us to demonstrate the equivalence between some of the commonly used AM filters (S96, TANH, J04, and M18) and wavelet filters at individual scales; moreover, we show that the M18 AM filter is comparable to a combination of two wavelet filters.We then investigated different options for implementing the detection methods.Applying the detection methods to the 256 realisations, we find: -Similar results are obtained when applying the detection algorithms to the shear directly at the galaxy positions in real space or to the binned shear in Fourier space.Binning a 5 • × 5 • field into 512 × 512 bins, the power spectrum integral of the AM map suffers a maximum 1.5% loss when passing from real to Fourier space.-The binning scheme that is adopted can have an impact on the detection efficiency in terms of the number and distribution of detections.In particular, binning by averaging the shear in each pixel yields a smaller number of detections than binning by summing the shear, and a significant fraction of these detections (∼ 28%) are different from those detected in the real space approach.In contrast, the summed pixel binning yields very similar results, in terms of both number and distribution, to application to the shear in real space.-Application of the detection methods to the shear or the convergence yields similar results.In particular, the power spectrum loss on the AM map is negligible when passing from the shear to the convergence, and the number and distribution of detections agree exactly.
To quantitatively compare the results obtained from the different filters, each having different characteristic radii, we developed a new adaptive matching procedure to match the detections to the haloes in the simulations.We find: -The characteristics of the halo catalogue used for the matching can have a dramatic effect on the number of false associations.We thus applied a pre-selection to the halo catalogue based on the theoretical weak lensing S/N expected for an NFW halo, and kept only haloes with S/N> 2 for the subsequent matching step.-The association distance is a critical parameter when dealing with filters that have different characteristic radii.It must take both the spatial resolution of the filter and the angular size of the haloes into account.We obtained an optimal matching distance for the detections from each filter by considering the absolute association distance, D, of all haloes as a function of the association distance normalised by the characteristic radius of each halo, D/θ 200c .Then, decomposing the distribution of the absolute association distance in terms of RA and Dec and fitting with a Gaussian, we obtained an optimal MMD for each filter.-For the multi-scale wavelet detections, a halo might be detected on more than one successive scale.We thus carried out a special matching procedure for the detections from the wavelet filters, building a cumulative catalogue from the finest to the coarsest scales.
We then compared the performance of the detection methods, after running them on the 256 simulations and using the matching procedure developed in this paper.We find: -The completeness is a strong function of the halo catalogue pre-selection threshold.However, irrespective of the exact S/N pre-selection threshold, the S96, TANH, and J04 filters exhibit a lower completeness than the M18 and W234 filters.
In contrast, the J04 filter exhibits slightly higher purity at the expense of completeness.-The evolution of the completeness as a function of purity shows that the multi-scale approach outperforms the methods based on AM filters at all values of purity.-The multi-scale method detects practically all the detections from the individual AM approaches, with the addition of supplemental detections, particularly at lower masses and higher redshifts.
Finally, we performed an exhaustive analysis of the matched and unmatched detections for each method, using a S/N> 2 preselection on the halo catalogue.We found similar results for all methods.For the W234 method, we find: -More than 82% of the detections are correctly matched, and of these, the overwhelming majority (95%) are due to a single halo.For our matching procedure, correctly matched detections due to multiple haloes along the LOS account for less than 5% of the total.Furthermore, because our detection and matching methods aim at high purity, the number of incorrectly matched haloes is negligible (< 1%).-About 17% of the detections are unmatched.Only a small fraction of these (10%) are due to false detections.The remainder can be explained mostly by haloes below the S/N threshold whose signal has been boosted because of a fortuitous redshift distribution of background sources (37%), or a blended lensing signal from LOS alignments, or angular separation distances smaller than the filter size (32%).The final 20% of the unmatched detections can likely be associated with haloes with S/N< 1.5 that do not appear in the catalogue due to the pre-selection.
In this work we have shown that a multi-scale approach is faster and gives better results, in terms of purity and completeness, than the currently used AM methods.We have also introduced a new adaptative matching procedure that allows a fair comparison between detection methods that operate on different scales.A significant advantage of our method is its computational speed.Compared to methods that apply single-scale AM filters to the shear directly at the galaxy positions, our multi-scale method applied to the convergence yields a gain of two to three orders of magnitude in speed.
Based on these results, we aim to apply our multi-scale approach to current and future large-area survey data, which will allow the construction of large catalogues of clusters selected through their weak lensing signal.This next step also involves new challenges.As detailed in Hamana et al. (2020), the presence of foreground galaxies that are not part of the cluster can dilute the lensing signal.This dilution effect contaminates the weak lensing dataset and analyses.One way to tackle this issue is to use photometric redshifts to select sources and minimise contamination.By taking the redshift distribution within the dataset into account, the tomographic approach reduces the impact of the dilution effect.This solution has already shown promising results for the detection of galaxy clusters in the HSC survey (e.g.Hamana et al. 2020;Oguri et al. 2021).The tomographic approach may also yield coarse information on the redshift of the detected sources.We are confident that a multi-scale approach combined with tomography will improve on the results shown here.Application to upcoming deep, large-area surveys will allow us to develop our method further.

Fig. 1 .
Fig. 1.Simulated shear maps covering a field of 5 • × 5 • (left and middle panels) and the corresponding E-mode convergence map (right).The E-mode convergence map directly traces the projected matter distribution, the overdensities appearing as bright structures.

Fig. 2 .
Fig. 2. Comparison of different filter functions, U (left) and Q (right), for AM map reconstruction.The figure shows in blue (dotted lines) the AM filter functions defined bySchneider (1996, S96)  with R = 9 ′ ; in red (dash-dotted lines) the AM filter functions defined inSchirmer (2004, TANH)   with R = 7 ′ ; in purple (dash-dotted lines) the AM filter functions defined inJarvis et al. (2004, J04)  with σ = 4 ′ ; and in green (dashed lines) the AM filter functions defined byMiyazaki et al. (2018, M18).The filter U M18 is also a compensated filter thanks to the U 0 term, but due to the high truncation radius we used, this is not distinctly visible.Finally, the AM filter functions corresponding to the wavelet filter functions at scale i = 4 are displayed in orange (solid lines).All the filters are normalised to have a maximum amplitude of 1.

Fig. 3 .
Fig.3.Fourier space comparison of several AM filters and wavelet filters, expressed as a function of wave number k in arcmin −1 and filter radius in arcmin.The dotted blue line (upper panel) represents the S96 filter, the dash-dotted red and purple lines (middle panels) represent the TANH and J04 filters, and the dashed green line (lower panel) corresponds to the M18 filter.The solid lines show the different wavelet filters: the teal, green, orange, and red light lines correspond to the W2, W3, W4, and W5 wavelet filters with radii of 1 ′ .17, 2 ′ .32, 4 ′ .68,and 9 ′.37, respectively.For comparison purposes, the J04 and M18 filters are forced to the same amplitude as the W4 function to illustrate their behaviour in terms of filter radius.

Fig. 4 .
Fig. 4. Wavelet decomposition of an E-mode convergence map (including shape noise), covering a simulated field of 5 • × 5 • .The upper-left panel corresponds to the E-mode convergence map to be decomposed.The other panels correspond to the wavelet maps at scale W1 = 1 ′ .17(upper-middle panel), scale W2 = 2 ′ .32(upper-right panel), scale W3 = 4 ′ .68(lower-left panel), scale W4 = 9 ′ .37 (lower-middle panel), and scale W5 = 18 ′ .75(lower-right panel).The wavelet maps are sensitive to structures of different apparent angular sizes.The W1 map (upper-middle panel) appears to be dominated by the shape noise.The wavelet decomposition also includes the smoothed version, which we excluded from this representation.

Fig. 5 .
Fig. 5. Comparison of the real and Fourier space implementations.Left: Power spectra of a 5• × 5 • AM map with 512 × 512 pixels obtained using the real space implementation (blue) and using the Fourier space implementations (orange and green lines for summed and averaged pixel binning, respectively).Compared to the real space implementation, there is a 1.2% and 1.5% loss of power for the Fourier space implementation with summed and averaged pixel binning, respectively.Right: Detections obtained on the same field when the computation is undertaken in real space (blue circles) or in Fourier space using either the summed pixel binning (golden circles) or the averaged pixel binning (green circles).The Fourier space implementation with summed pixel binning is very close to the real space implementation in terms of detections.When the binning is performed by averaging the shear values, there are fewer detections, and about 30% of these detections are different from those obtained with the real space implementation.

Fig. 6 .
Fig. 6.Comparison of the shear and convergence approaches.Left: Power spectra of a 5• × 5 • AM map with 512 × 512 pixels obtained by applying the AM J04 filter to the shear maps (blue line) and to the E-mode convergence map (orange dots) computed from the same data as in Fig.5.The power spectra agree perfectly.Right: Detections obtained on the same field when the convolution by the J04 AM filter is performed on the shear map (blue circles) and on the convergence map (golden circles).There is a one-to-one correspondence between the detections.

Fig. 7 .
Fig. 7. Application of a theoretical S/N pre-selection to the halo catalogue.Left: Weak-lensing selection function for clusters of galaxies, in the redshift-mass plane.The selection function has been computed assuming a Euclid-like redshift distribution with n g = 30 gal.arcmin −2 and σ ϵ = 0.26.Contours denote the theoretical S/N for an NFW profile.Right: Example of halo catalogue pre-selection using the theoretical S/N, for one 5 • × 5 • field.The light blue dots correspond to all the haloes in the field, and the dark blue dots are the selected haloes with S/N> 2.

Fig. 8 .
Fig.8.Dispersion of the association distance (without maximum association distance) for the W3 wavelet filter, considering all 256 realisations.In all the panels, the blue dots correspond to an association between a peak detection and its closest halo.Upper left: Absolute association distance, D, as a function of its normalised expression with respect to the characteristic halo radius, θ 200c .Lower right: Zoomed-in view of the central 20×20 arcminute distribution of absolute association distances expressed in RA and Dec, to highlight their dispersion.The two remaining panels show the projection of the absolute association distance distribution onto the RA and Dec axes: the projection onto the Dec axis (lower-left panel) and the projection onto the RA axis (upper-right panel).The RA and Dec axes are zoomed around the central area.On these two panels, the dashed orange line shows the result of a fit by a Gaussian function whose parameters (µ, σ) are labelled 'Mean' and 'Stddev'.

Fig. 9 .
Fig.9.Matched detections for the W3 filter.The two panels are similar to Fig.8.The blue dots correspond to an association between a peak detection and its closest halo.The orange dots correspond to the detections with an absolute association distance lower than the defined MMD.

Fig. 10 .
Fig.10.Completeness as a function of purity for the detection methods based on the S96 (blue), TANH (red), J04 (purple), and M18 (green) AM filters, the W4 wavelet filter (light blue), and the W234 wavelet filter (orange).The cross markers represent precisely where the methods are evaluated in terms of purity and completeness.The purity and the completeness are computed using a S/N> 2 halo pre-selection and averaging over the 256 realisations.

Table 1 .
Estimated maximum matching distance (MMD) for different filter functions, evaluated using the procedure described in Sect.7.3.

Table 2 .
Completeness of the different detection methods for different S/N halo pre-selections, in percent.

Table 4 .
Classification of the detections.

Table 5 .
False association rate for different filter functions.
Characterisation of the detections from the W234 method.The matched detections (blue segments) are categorised as correctly matched with single or multiple haloes, or incorrectly matched as defined in Sect.8.3.1.The unmatched detections are sub-categorised as blended signal, boosted signal from the source distribution, false detections, or others, as defined in Sect.8.3.2.The results are averaged over the 256 realisations.