Weak lensing in the Horizon-AGN simulation lightcone. Small scale baryonic effects

Context. Accurate model predictions including the physics of baryons are required to make the most of the upcoming large cosmological surveys devoted to gravitational lensing. The advent of hydrodynamical cosmological simulations enables such predictions on sufficiently sizeable volumes. Aims. Lensing quantities (deflection, shear, convergence) and their statistics (convergence power spectrum, shear correlation functions, galaxy-galaxy lensing) are computed in the past lightcone built in the Horizon-AGN hydrodynamical cosmological simulation, which implements our best knowledge on baryonic physics at the galaxy scale in order to mimic galaxy populations over cosmic time. Methods. Lensing quantities are generated over a one square degree field of view by performing multiple-lens plane ray-tracing through the lightcone, taking full advantage of the 1 kpc resolution and splitting the line of sight over 500 planes all the way to redshift z~7. Two methods are explored (standard projection of particles with adaptive smoothing, and integration of the acceleration field) to assert a good implementation. The focus is on small scales where baryons matter most. Results. Standard cosmic shear statistics are impacted at the 10% level by the baryonic component for angular scales below a few arcmin. The galaxy-galaxy lensing signal, or galaxy-shear correlation function, is consistent with measurements for the redshift z~0.5 massive galaxy population. At higher redshift z>1, the impact of magnification bias on this correlation is relevant for separations greater than 1 Mpc. Conclusions. This work is pivotal for all current and upcoming weak lensing surveys and represents a first step towards building a full end-to-end generation of lensed mock images from large cosmological hydrodynamical simulations.


Introduction
Gravitational lensing has become a versatile tool to probe the cosmological model and scenarios of galaxy evolution. From the coherent distorsions, generated by the intervening matter along the line of sight, of the last scattering surface (eg Planck Collaboration et al. 2018) or intermediate redshift galaxies (Bartelmann & Schneider 2001;Kilbinger 2015), to the inner parts of massive galaxies (Treu 2010), lensing directly measures the fractional energy density in matter of the Universe. Since it does not rely on assumptions about the relative distribution between the galaxies and the underlying Dark Matter (DM), which drives the dynamical evolution of cosmological structures, weak lensing plays a key role in recent, ongoing or upcoming ground-based imaging surveys (CFHTLenS, DES, KiDS, HSC, LSST, Heymans et al. 2012;The Dark Energy Survey Collaboration 2005;Abbott et al. 2016;Kuijken et al. 2015;Miyazaki et al. 2012; The LSST Science Collaboration 2009). It is also at the center of the planned Euclid and WFIRST satellites (Laureijs et al. 2012;Spergel et al. 2015).
The statistical power of these experiments dramatically increases and drives on its way enormous efforts for the control of E-mail: celine.gouin@ias.u-psud.fr systematic effects. One of them concerns the accuracy to which theoretical predictions on the statistical properties of the matter distribution when it has evolved into the non-linear regime can be made on small scale. Arguably, cosmological N-body numerical simulations have been playing a key role in solving the complex dynamical evolution of DM on scales smaller than a few Mpc (eg Springel et al. 2006). The upcoming Euclid or LSST missions require an extreme accuracy on the matter density power spectrum and the associated covariances which may enter a likelihood analysis of these data. The effort is currently culminating with the Flagship simulation, for instance (Potter et al. 2017). But it also motivated earlier very large simulations like Horizon-4π (Teyssier et al. 2009;Pichon et al. 2010), DEUS (Rasera et al. 2010) or MICE (Fosalba et al. 2015a). It has early been envisioned to propagate light rays through such dark matter simulations in order to reproduce the deflection and distorsions of light bundles in a lumpy universe. The motivation is to derive lensing observables like convergence maps and 1-point PDFs of this field or its topological properties (peaks, voids...) or 2-point shear correlation functions (eg Jain et al. 2000;Pichon et al. 2010;Hamana & Mellier 2001;Vale & White 2003;Hennawi & Spergel 2005;Hilbert et al. 2007Hilbert et al. , 2009Sato et al. 2009). Since, much progress has been made on large and mildly Article number, page 1 of 14 arXiv:1904.07905v1 [astro-ph.CO] 16 Apr 2019 A&A proofs: manuscript no. hagn_lc_lens non linear scales with the production of full sky maps with a few arc minutes angular resolution (eg Fosalba et al. 2015b;Giocoli et al. 2016;Takahashi et al. 2017).
In order to make the most of the upcoming surveys, the matter distribution for Fourier modes as large as k ∼ 10h Mpc −1 must be predicted to the percent accuracy, which nowadays still represents a challenge (Schneider et al. 2016). Furthermore, at those scales, the physics of baryons can differ from the dynamics of DM and, even though, it amounts for ∼ 17% of the total cosmological matter budget, it has to be taken into account (OWLS simulation van Daalen et al. 2011). For weak lensing statistics, Semboloni et al. (2011) showed that the modelling of the 2-point shear correlation function can be significantly biased, should the baryons be simply treated like the collision-less DM. Even the number of convergence peaks itself is altered by baryons but to a lesser extent than the power-spectrum (Yang et al. 2013).
Recently, significant progress has been made on hydrodynamical simulations which are now able to reproduce a morphological mix of galaxies in a cosmological context, by considering baryonic physics such as radiative cooling, star formation, and feedback from supernovae and Active Galactic Nuclei (AGN). Despite the tension between the high resolution needs to properly describe the galaxies formed at the center of DM halos and the necessity to simulate sizeable cosmological volumes, recent simulations, such as Horizon-AGN (Dubois et al. 2014), Illustris/Illustris-TNG (Vogelsberger et al. 2014;Pillepich et al. 2018), or EAGLE (Schaye et al. 2015), have now reached volumes of order 100 Mpc on a side and resolution of order 1 kpc. This opens the possibility to quantifying the effect of baryons (experiencing adiabatic pressure support, dissipative cooling, star formation, feedback...) on the total matter distribution and its impact on lensing cosmological observables (see e.g. van Daalen et al. 2011;Tenneti et al. 2015;Hellwing et al. 2016;Springel et al. 2018;Chisari et al. 2018). Prescriptions to account for this effect (eg Semboloni et al. 2013;Schneider & Teyssier 2015;Mead et al. 2015;Rabold & Teyssier 2017) have been explored and some start to be incorporated in cosmic shear studies (KIDS: Hildebrandt et al. 2017).
In this paper, we further investigate the impact of baryons on lensing observables in the Horizon-AGN simulation. By taking advantage of the lightcone generated during the simulation run, we are able to fully account for projection effects (mixing physical scales) and small scale non-linearities occurring in the propagation of light rays (eg, Born approximation, lens-lens coupling, shear -reduced shear corrections) which may be boosted by the steepening of the gravitational potential wells due to cooled gas sinking at the bottom of DM halos. Hence, this extends the analysis of Chisari et al. (2018) who mostly focused on the effect of baryons on the three-dimensional matter power spectrum, compared the Horizon-AGN results with those of Illustris, OWLS, EAGLE and Illustris-TNG, found a broad qualitative agreement. The common picture is that hot baryons which are prevented from sinking into halos like DM, induce a deficit of power inside halos (in a proportion of order Ω b /Ω M ) and, at yet smaller scales (k 30h Mpc −1 ), baryons in the form of stars (and to a lesser extent cooled gas) dramatically boost the amplitude of density fluctuations. However, even though those results seem to converge from one simulation to another, they substantially depend on the assumptions about sub-grid physics, and in particular about AGN feedback.
Beside those encouraging successes at quantifying the nuisance of baryons on cosmological studies, hydrodynamical simulations entail a wealth of information on the relation between galaxies or galaxy properties and the halo they live in. It is, thereby, a way to understand the large scale biasing of these galaxies with respect to the overall total matter density field. We also explore the small scale relation between galaxies and their surrounding gravitational potential sourcing the lensing deflection field. In particular, the correlation between galaxies and the tangential distortion of background sources (so-called Galaxy-Galaxy Lensing signal, GGL) has proven being a way to constrain the galaxy-mass correlation function (eg Brainerd et al. 1996;Guzik & Seljak 2001;Mandelbaum et al. 2006Mandelbaum et al. , 2013Leauthaud et al. 2012;Velander et al. 2014;Hudson et al. 2015;Coupon et al. 2015). In this vein, Velliscig et al. (2017) recently showed that the GGL around z ∼ 0.18 galaxies in the EAGLE simulation is consistent with the GAMA+KiDS data (Dvornik et al. 2017).
Finally, subtle observational effects entering GGL by high redshift deflectors (z 0.8) are investigated from the lensing information over the full past lightcone of the Horizon-AGN simulation. The magnification bias affecting the selection of deflectors (Ziour & Hui 2008) complicates the interpretation of GGL substantially. Currently, no such high-z lens sample has been studied because of the scarcity of even higher faint lensed sources carrying the shear signal but the situation may change with Euclid. Its slit-less grism spectroscopy will provide a large sample of Hα emitters in the 0.9 ≤ z ≤ 1.8 redshift range. A thorough understanding of the clustering properties of this sample may be achieved with the GGL measurement of this sample by using the high-z tail of the shape catalogue obtained with the VIS imager. Some raytracing through cosmological simulations (Hilbert et al. 2009;Fosalba et al. 2015b) had briefly mentioned some aspects of the problem of magnification bias raised by Ziour & Hui (2008). The Horizon-AGN lightcone is a good opportunity to quantify those effects in order to correctly interpret upcoming GGLs. In this paper, cosmic shear or GGL quantities are directly measured from the lensing quantities obtained by ray-tracing methods. They are not inferred from the shape of galaxies as is done in observations. A forthcoming paper will present the generation of mock wide-field images including lensing distortions from the full view of Horizon-AGN lightcone and the light emission predicted for the simulated stars, taking us one step closer to a full end-to-end generation of mock lensing observations.
The paper is organised as follows. Sect. 2 presents the Horizon-AGN hydrodynamical simulation, the structure of its lightcone and some properties of the galaxy population, therein. Sect. 3 describes the implemented methods to generate the deflection field on thin lens planes and to propagate light rays through them. Sect. 4, describes the 1-point and 2-point statistics of the resulting convergence and (reduced-)shear fields. The validity of the raytracing method is quantified by comparing our results with independent methods. Sect. 5 measures the GGL around the galaxies in the Horizon-AGN simulation. A comparison with observations is made for low redshift deflectors. The problem of magnification bias is investigated for future observations of high-z GGL. Sect. 6 wraps up.

Characteristics
The Horizon-AGN simulation is a cosmological hydrodynamical simulation performed with RAMSES (Teyssier 2002). The details of the simulations can be found in Dubois et al. (2014). Let us first briefly summarise the main characteristics. Horizon-AGN contains 1024 3 dark matter particles with a mass reso-lution of 8 × 10 7 h −1 M , in a box of comoving size L box = 100 h −1 Mpc on a side. The gravity and hydrodynamics are treated in RAMSES with a multiscale approach with adaptive mesh refinement (AMR): starting from a uniform 1024 3 grid, cells are then adaptively refined when the mass inside the cell exceeds 8 times the initial mass resolution. Cells are recursively refined (or de-refined according to the refinement criterion) down to a minimum cell size of almost constant 1 proper kpc (an additional level is triggered at each expansion factor a = 0.1, 0.2, 0.4, 0.8). The underlying cosmology is a standard ΛCDM model consistent with the WMAP7 data (Komatsu et al. 2011), with total matter density Ω m = 0.272, dark energy density Ω Λ = 0.728, amplitude of the matter power spectrum σ 8 = 0.81, baryon density Ω b = 0.045, Hubble constant of H 0 = 70.4 km s −1 Mpc −1 , and scalar spectral index n s = 0.967.
The evolution of the gas is solved on the RAMSES grid using a Godunov method with the approximate HLLC Riemann solver on the interpolated conservative hydrodynamical quantities, that are linearly interpolated at cell boundaries from their cell-centered values using a MinMod total variation diminishing scheme. In addition, accurate models of unresolved sub-grid physics have been implemented. The gas heating comes from a uniform UV background which started at the re-ionisation z reion = 10 (Haardt & Madau 1996). The cooling function of the gas follows Sutherland & Dopita (1993), from H and He collision and from the contribution of other metals. Star formation is modelled following the Schmidt law (Kennicutt 1998), with a constant star formation efficiency of 2% per free fall time. It occurs when the density of the gas exceeds the threshold 0.1 H cm −3 . The temperature at gas densities larger than 0.1 H cm −3 is modified by a polytropic equation of state with polytropic index of 4/3 and scaling temperature of 10 4 K (Springel & Hernquist 2003). Stellar evolution is performed assuming a Salpeter (1955) initial stellar mass function. The subgrid physics also includes stellar winds and supernova feedback in the form of heating, metal enrichment of the gas, and kinetic energy transfer to the ambient gas (see Kaviraj et al. 2017, for more details). Finally, black holes (BH) are created when the gas density exceeds 0.1 H cm −3 , and when there is not other BH in the close environment. They grow by direct accretion of gas following an Eddington-limited Bondi-Hoyle-Littleton accretion rate, and merger when BH binaries are sufficiently close. The AGN feedback is treated by either an isotropic injection of thermal energy, or by a jet as a bipolar outflow, depending of the ratio between the Bondi and the Eddington accretion rates (see Dubois et al. 2012;Volonteri et al. 2016, for details).
The past lightcone of the simulation was created on-the-fly as the simulation was running. Its geometry is sketched in Fig. 1. The opening angle of the cone is 2.25 deg out to redshift z = 1 and 1 deg all the way to z = 8. These two values correspond to the angular size of the full simulation box at these redshifts. We can therefore safely work in the flat sky (or infinitely remote observer) approximation. Up to z = 1, the volume of the cone is filled with ∼ 7 replicates of the box. Between z = 0 and z = 4, the narrow cone contains ∼ 14 replicates of the box and the union of the two cones contains about 19 copies. This should be kept in mind when quantifying the statistical robustness of our results.
In order to limit projection effects, a non-canonical direction is chosen for the past lightcone but, in order to preserve periodic boundary conditions between replicates, no random rotation is applied. Projection effects will still be present and induce characteristic spectral distortions on large scales which must be taken into account. Particles and AMR cells were extracted on-the-fly at each coarse simulation time step (when all levels are synchro-nized in time as a factor 2 of subcycling is used between levels) of the simulation according to their proper distance to a fiducial observer located at the origin of the simulation box. The lightcone of the simulation thus consists in 22,000 portions of concentric shells. Each of them contains stellar, black hole, DM particles (with their position and velocity, mass and age) along with AMR Eulerian cells storing the gas properties (position, density, velocity, temperature, chemical composition, and cell size) and the total gravitational acceleration vector.

Properties of galaxies and host halos
The AdaptaHOP halo finder (Aubert et al. 2004) is run on the lightcone to identify galaxies from the stellar particles distribution. Local stellar particle density is computed from the 20 nearest neighbours, and structures are selected with a density threshold equal to 178 times the average matter density at that redshift. Galaxies resulting in less than 50 particles ( 10 8 M ) are not included in the catalogue. Since the identification technique is redshift dependent, AdaptaHOP is run iteratively on thin lightcone slices. Slices are overlapping to avoid edge effects (i.e. cutting galaxies in the extraction) and duplicate are removed. In a second step dark matter haloes have been extracted independently from the dark matter particle distribution, with a density threshold of 80 times the average matter density, and keeping only haloes with more than 100 particles. The centre of the halo is temporarily defined as the densest particle in the halo, where the density is computed from the 20 nearest neighbours. In a subsequent step, a sphere of the size of the virial radius is drawn around it and implement a shrinking sphere method (Power et al. 2003) to recursively find the centre of mass of the halo. In each iteration, the radius of the halo is reduced by 10 %. The search is stopped when a sphere 3 times larger than our spatial resolution is reached. Each galaxy is matched with its closest halo.
The simulation contains about 116, 000 galaxies and halos in the simulation box at z = 0, with a limit of order M * 2×10 9 M . These yields have been extensively studied in previous papers of the Horizon-AGN series. For instance, Kaviraj et al. (2017) compared the statistical properties of the produced galaxies, showing a reasonable agreement with observed stellar mass functions all the way to z ∼ 6. The colour and star formation histories are also well recovered and so are the black hole -bulge relations and duty-cycles of AGNs (Volonteri et al. 2016).
Following up on an earlier work (Dubois et al. 2013) focusing on a handful of zoomed galaxy simulations with RAMSES, Dubois et al. (2016) confirmed with a much greater statistical significance in Horizon-AGN, that the morphological diversity of galaxies is well reproduced (fraction of rotation-versus dispersion-supported objects, and how this dichotomy maps into the star forming versus quiescent dichotomy). Taking advantage of a parallel simulation run with the same initial conditions and in which the AGN feedback is turned off (Horizon-noAGN), the key role of the latter in shaping the galaxy morphology was emphasised. Furthermore, Peirani et al. (2017) studied the effect of AGN feedback on the innermost density profiles (stars, gas, DM, total) and found a good agreement of the density profile, size-mass relation and dark matter fraction inside the effective radius of galaxies with observations. In particular, Peirani et al. (2018) showed that the innermost parts of Horizon-AGN galaxies are consistent with strong lensing observations of Sonnenfeld et al. (2013) and Newman et al. (2013Newman et al. ( , 2015. Populating the lightcone yields a volume limited sample of 1.73 × 10 6 galaxies in the narrow 1 deg cone. However, a large fraction of the low mass high redshift galaxies would not be of much practical use in a flux limited survey as shown in Fig. 2 which plots the redshift dependent limit in stellar mass attained with several i-band apparent limiting magnitudes. This was obtained using the COSMOS2015 photometric catalogue of Laigle et al. (2016).

Raytracing through the lightcone
After briefly describing the basics of the propagation of light rays in a clumpy universe and the numerical transcription of this formalism, let us now describe the the ray-tracing computation in the Horizon-AGN lightcone. Our implementation of the multiple lens plane (but also the Born approximation) builds on similar past efforts (Hilbert et al. 2008;Metcalf & Petkova 2014;Petkova et al. 2014; Barreira et al. 2016). It has been tailored for the post-treatment of the Horizon-AGN past lightcone, but, provided the flat sky approximation holds, our implementation could readily be applied to any other RAMSES lightcone output (Teyssier et al. 2009). As detailed below, two methods are investigated to infer deflection angles from either the distribution of various particlelike matter components or the total gravitational acceleration stored by RAMSES. The light rays are then propagated plane by plane (both within and beyond the Born approximation), for these two different estimates of the deflection field.

The thin lens plane
Let us define β the (un-perturbed and unobservable) source plane angular position and θ the observed angular position of a light ray. Considering a unique, thin, lens plane, the relation between the angular position of the source β, the deflection angle α and the image θ is simply: where D ls and D s , are the angular diameter distance between the source and the lens, and between the observer and the source, respectively. The deflection angle α(θ) is obtained by integrating the gravitational potential Φ(r) along the line of sight (here, radial proper coordinate x 3 ) Hence, across a thin lens plane, the lensing potential φ(θ) is related to the deflection field by the Poisson equation: where the convergence κ is the projected surface mass density Σ(θ) in the lens plane expressed in units of the critical density Σ crit The critical density reads: with D l , the angular diameter distance between the observer and the lens. In the above equations, all distances and transverse gradients are expressed in physical (proper) coordinates. A Taylor expansion of the so-called lens equation (1) yields the Jacobian of the θ → β mapping, which defines the magnification tensor (e.g. Bartelmann & Schneider 2001) where δ i j is the Kronecker symbol, and the two components γ 1/2 of the complex spin-2 shear have been introduced. Note that subscripts following a comma denote partial derivatives along that coordinate. Both shear and convergence are first derivatives of the deflection field α (or second derivatives of the lensing potential) Therefore, starting from pixelised maps of the deflection field α 1/2 (i, j) in a thin slice of the lightcone, one can easily derive γ 1/2 (i, j) and κ(i, j) with finite differences or Fast Fourier Transforms (FFTs), even if α is only known on a finite aperture, without periodic boundary conditions. Conversely, starting from a convergence map κ(i, j), it is impossible to integrate (3) with FFTs to get α (and then differentiate again to get γ) without introducing edge effects, if periodic boundary conditions are not satisfied.
Additionally, we also introduce the scalar magnification µ which is the inverse determinant of the magnification tensor a i, j of Eq. (6).

Propagation of rays in a continuous lumpy Universe
On cosmological scales, light rays cross many over/under-dense extended regions at different locations. Therefore, the thin lens approximation does not hold. The transverse deflection induced by an infinitely thin lens plane is still given by the above equations but one needs to fully integrate the trajectory of rays along their path. Therefore, for a given source plane at comoving distance χ s , the source plane position of a ray, initially observed at position θ is given by the continuous implicit (Voltera) integral equation (Jain & Seljak 1997): To first order, one can evaluate the gravitational potential along an unperturbed path, so that: This is known as the Born approximation, which is common in many diffusion problems of physics. An interesting property of the Born Approximation is that the relation between β and α can be reduced to an effective thin lens identical to (1) allowing the definition of an effective convergence, which is the divergence of the effective (curl-free) deflection field: 2κ eff = ∇.α eff . When the approximation does not hold, the relation between β and α can no longer be reduced to an effective potential and some curl-component may be generated, implying that the magnification tensor is no longer symmetric but requires the addition of a rotation term and so-called B-modes in the shear field. In this more general framework, the magnification tensor should be rewritten with the following definitions of the new lensing rotation term ω (and revised γ 2 ) The image plane positions where ω 0 are closely related to the lines of sight along which some substantial lens-lens coupling may have occurred.

The multiple lens planes approximation
The numerical transcription of equation (10) in the Horizon-AGN past line-cone requires the slicing of the latter into a series of parallel transverse planes, which could simply be the 22,000 slabs dumped by RAMSES at runtime every coarse time step. These are too numerous and can safely be stacked into thicker planes by packing together 40 consecutive slabs 1 . Here 500 slices of varying comoving thickness are produced all the way to redshift z = 7 to compute either the deflection field or the projected surface mass density as described below.
The discrete version of the equation of ray propagation (10) for a fiducial source plane corresponding to the distance of the plane j + 1 reads: where α i is the deflection field in the lens plane i, D j+1 is the angular diameter distance between the observer and the plane j + 1, and D i; j+1 the angular diameter distance between planes i and j + 1. Therefore, as sketched in Fig. 3, rays are recursively deflected one plane after the other, starting from unperturbed positions on a regular grid θ ≡ β 1 . The practical implementation of the recursion in equation (15) is computationally cumbersome and demanding in terms of memory because the computation of the source plane positions β j+1 requires holding all the j previously computed source plane positions. Instead, this paper follows the approach of Hilbert et al. (2009), who showed that equation (15) can be rewritten as a recursion over only three consecutive planes 2 Besides this thorough propagation of light rays source plane positions and associated quantities (convergence κ, shear γ, rotation ω) are additionally computed using the Born approximation, following the discrete version of equation (11): The deflection maps in each lens plane are computed on a very fine grid of pixels of constant angular size. In order to preserve the ∼ 1 kpc spatial resolution allowed by the simulation at high redshift, 36, 000 × 36, 000 deflection maps are built in the narrow 1 deg lightcone. The deflection maps in the low redshift 2.25 sq deg wide cone reaching z = 1 are computed on a coarser 20, 000 × 20, 000 pixels grid since the actual physical resolution of the simulation at low redshift does justify the 0.1 arcsec resolution of the narrow 1 sq deg field-of-view. Even though the image plane positions θ = β 1 are placed on the regular pixel grid, the deflections they experience must be interpolated in between the nodes of the regular deflection map as they progress backward to a given source plane. This is done with a simple bilinear interpolation scheme.

Total deflections from the RAMSES accelerations
Let us now describe how to obtain α to use it in Eqs. (16) and (17). The first method uses the gravitational acceleration field which is registered on each (possibly-refined) grid location inside the lightcone. The very same gravitational field that was used to move particles and evolve Eulerian quantities in RAMSES is interpolated at every cell position and is therefore used to consistently derive the deflection field. The merits of the complex three-dimensional multi-resolution Poisson solver are therefore preserved and the transverse components of the acceleration fields can readily be used to infer the deflection field. By integrating the transverse component of the acceleration along the light of sight, one can compute the deflection field according to equation (2).
To do so, for each light ray, gas cells which intersect the ray are considered, and the intersection length along the lineof-sight l i is computed. Knowing the cell size δ i , and its orientation with respect to the line of sight, l i is deduced with a simple Oriented-Box-Boundary (OBB) algorithm (e.g. Akenine-Möller et al. 2008) in which it is assumed that all cells share the same orientation (flat sky approximation) and factorise out expensive dot products between normals to cell edges and the line of sight.
where V(θ) denotes the projected vicinity of a sky position θ. As shown in fig 4, a fiducial light ray is drawn: at each lens plane, the deviation of the light is calculated as the direct sum of the transverse acceleration components recorded on the cells i, weighted by the intersection length l i . Here, the field of view is small and one can safely assume that light rays share the same orientation (flat sky approximation) and are parallel to the lineof-sight. This method has the main advantage of preserving the gravitational force that was used when evolving the simulation. In particular, the way shot noise is smoothed out in the simulation to recover the acceleration field from a mixture of Lagrangian particles and Eulerian gas cells is faithfully respected in the raytracing. In other word, the force felt by photons is very similar to the one felt by particles in the simulation. Dealing with acceleration is also local, in the sense that the deflection experienced by a light ray (and related derivatives leading to e.g. shear and convergence) depends only on the acceleration of cells this ray crosses. The mass distribution outside the lightcone is therefore consistently taken into account via the acceleration field.
However, this method is sensitive to small artefacts which are present at the lightcone generation stage (i.e. simulation runtime) and which could not be corrected without a prohibitive post-processing of the lightcone outputs. When the simulation dumps two given neighbouring slabs at two consecutive time steps, problems can happen if cells on the boundary between the two slabs have been (de-)refined in the mean time. As illustrated in Fig. 4, such cells can be counted twice or can be missing, if they are refined (or derefined) at the next time step. Those bumps and dips in the deflection map translate into saw-tooth patterns in the convergence maps. They are however quite scarce and of very modest amplitude. A 100 arcsec wide zoom into the convergence map obtained with this method is shown in the left panel of Fig. 5. The source redshift is z s = 0.8. A few subdominant artefacts due to missing acceleration cells are spotted. They induce small correlations on scales smaller than a few arcsec and are otherwise completely negligible for our cosmological applications.

Projection of smoothed particle density
The second method of computing the deflection maps in thin lens planes is more classical: it relies on the projection of particles onto surface density maps which are then turned into deflection maps. If the line-of-sight integration is performed under the Born approximation, the Fourier inversion going from the projected density to the deflection is just done once starting from the effective convergence. Otherwise, with the full propagation, many FFTs inversions on projected density maps that do not fulfil the Fig. 5. Comparison of z s = 0.8 convergence maps obtained with the OBB method (integration of transverse accelerations in cells, left) and with the SPL method (projection of particles onto convergence planes after adaptative Gaussian smoothing, right). The latter method applies a more aggressive smoothing which better erases shot noise. Inaccuracies of long range deflections in the SPL method due to edge effects translate into a global shift for some galaxies, as compared to OBB. With this method, some missing acceleration cells produce modest artefacts on small scale, here and there. periodic boundary condition criterion imply an accumulation of the inaccuracies in the Fourier inversion.
First of all, this method allows us to separate the contribution of each matter component to the total deflection field. One can therefore compute the contribution of stars or gas to the overall lensing near a given deflector, something that is not possible with the acceleration method since only the total acceleration is computed by the simulation.
In addition, one can project particles with an efficient and adaptive smoothing scheme. Instead of a standard nearest grid point or cloud-in-cell projection, a gaussian filter (truncated at 4 times the standard deviation σ) is used in which the width of the smoothing filter σ is tuned to the local density, hence following the Smooth Particle Lensing (SPL) method of Aubert et al. (2007). Since the AMR grid of RAMSES is adaptive, the resolution level around a given particle position from the neighbouring gas cells can be recovered. This thus bypasses the time consuming step of building a tree in the distribution of particles, which is at the heart of the SPL method.
To illustrate the merits of this method and for comparison with the previous one, let us show the same region of simulated convergence fields for a source redshift z s = 0.8 in the right panel of Fig. 5. This adaptive gaussian smoothing (referred to as SPL method below) seems more efficient at smoothing the particle noise out. Between the two methods, we notice small displacements of some galaxies of a few arcsec. They are due to the long range inaccuracies generated by the Fourier inversions.

Lensing of galaxy and halo catalogues
In order to correlate galaxies (or halos) in the lightcone with the convergence or shear field around them and, hence, measure their GGL, one has to shift their catalogue positions β (which are intrinsic source plane coordinates) and infer their observed lensed image plane positions θ. These are related by the thor-ough lens equation (10), or its numerical translation (15). However, this equation is explicit for the θ → β mapping, only. The inverse relation, which can be multivalued when strong lensing occurs, has to be solved numerically by testing for every image plane mesh θ i j whether it surrounds the coordinates β gal of the deflected galaxy when cast into the source plane β i j (e.g. Schneider et al. 1992;Keeton 2001;Bartelmann 2003). Because the method should work in the strong lensing regime, regular rectangular meshes may no longer remain convex in the source plane and, therefore, it is preferable to split each mesh into two triangles. Those triangles will map into triangles in the source plane and one can safely test whether β gal is inside them. In order to speed up the test on our large pixel grids, the image plane is partitioned into a quad-tree structure that recursively explore finer and finer meshes. The method is actually very fast and yields all the image plane antecedents of a given galaxy position β gal . This provides us the updated catalogues of halos and galaxies.
Obviously, when measuring the GGL signal in the Born approximation, catalogue entries do not need to be deflected and therefore source plane and image plane coordinates are identical. Table 1 summarises the main advantages and drawbacks of the OBB and SPL methods.

Summary of generated deflection maps
Altogether, 2 × 2 (OBB/SPL and Born approximation/full propagation) deflection maps were generated for each of the 246 source planes all the way to z = 1 in the wide opening angle field. Likewise, we obtained 2 × 2 maps for each of the 500 source planes all the way to z = 7 in the narrow opening angle field.

Cosmic shear
This section assesses the validity of our ray-tracing methods by measuring 1-point and 2-point statistics of the lensing quantities like convergence, and (reduced-)shear. It also compares those finding with other methods. The focus is on the impact of baryons on small scales for multipoles 2000 to check whether the baryonic component couples to other non-linear effects like the shear -reduced shear correction and Beyond-Born treatments.

Convergence 1-point statistics
The most basic quantity that one can derive from the convergence field shown in the right panel of Fig. 6 is the probability distribution function (PDF) of the convergence. The Fig. 6 shows this quantity which is extremely non-Gaussian at the ∼ 1 resolution of the map. One can see the skewness of the field with a prominent high-end tail and a sharp fall off of negative convergence values.

Convergence power spectrum
In Fourier space, the statistical properties of the convergence field are commonly characterised by its angular power spectrum P κ (l), where δ D ( is the Dirac delta function. For two fiducial source redshifts (z s = 0.5 and z s = 1), Fig. 7 shows the angular power spectrum of the convergence obtained with the two ray tracing techniques: the OBB and SPL methods (respectively solid magenta and solid cyan curves). The low redshift ones are based on the 2.25 deg wide lightcone. They are thus more accurate on larger scales 10 3 , even though the large sample variance will not permit quantitative statements. On small scales ( ∼ 2×10 5 ), the additional amount of smoothing implied by the SPL projection of particles onto the lens planes induces a deficit of power with respect to the less agressive softening of the OBB method in which shot noise has not been entirely suppressed (see Fig. 5).
The middle panel of Fig. 7 shows the difference between power spectra inferred using the Born approximation or with the full multiple lens plane approach for the OBB method. For angular scales 8 × 10 4 , we find differences between the two propagation methods that are less than 0.5%, or so, which is totally negligible given possible numerical errors and sampling variance limitations. At lower angular scales 10 5 , departures rise above the few percent level. Note that this scale also corresponds to scale where shot noise (from DM particles) and convergence power spectral are of equal amplitude (yellow shaded area). Below these very small scales, close to the strong lens regime, the Born approximation may start to break down (Schäfer et al. 2012).
Under the Limber and Born approximations, one can express the convergence power spectrum as an integral of the threedimensional non-linear matter power spectrum P δ (Limber 1953;Blandford et al. 1991;Miralda-Escudé 1991;Kaiser 1992) from the observer to the source plane redshift or corresponding comoving distance χ s : where a is the scale factor and where no spatial curvature of the Universe was assumed for conciseness and because the cosmological model in Horizon-AGN is flat. As a validation test of our light deflection recipes, the lensing power spectrum derived from the actual ray-tracing is compared to an integration of the three-dimensional matter power spectrum measured by Chisari et al. (2018) in the Horizon-AGN simulation box. The red curve is the direct integration of P δ (k) power spectra and the dashed parts of the lines corresponds to a power-law extrapolation of the P δ (k) down to smaller scales. In the range 3 000 3 × 10 5 , an excellent agreement is found between the red curve and the spectra inferred with our two ray-tracing techniques. On larger scales, the cosmic variance (which is different in the full simulation box and the intercept of the box with the lightcone) prevents any further agreement. This is also the case for 3×10 5 where some possibly left over shot noise in the raytracing maps and the hazardous high-extrapolation of the three-dimensional power spectra complicate the comparison. In addition, the low-oscillations of the spectrum is likely to originate from the replicates of the simulation box throughout the past lightcone. Chisari et al. (2018) also measured matter power spectra in the Horizon-DM simulation at various redshifts. This simulation is identical to Horizon-AGN in terms of initial conditions but has been run without any baryonic physics in it after having rescaled the mass of DM particles to conserve the same total matter density (Peirani et al. 2017;Chisari et al. 2018). The integration of this DM-only power spectrum allows to get a sense on the effect of baryons in the DM-distribution itself. Just like the red curve was showing the result of the Limber integral in equation (20) for Horizon-AGN, the dark blue curve shows the same integral for Horizon-DM. The latter has much less power for 2 × 10 4 than either the integration of the full physics Horizon-AGN matter power spectrum (red) or that derived directly from ray-tracing (purple or green). The boost of spectral amplitude is due to cool baryons in the form of stars at the center of halos. Moreover, we notice a deficit of power on scales 2 × 10 3 2 × 10 4 for the full physics simulation. As pointed out by Semboloni et al. (2011), the pressure acting on baryons prevents them from falling onto halos as efficiently as dark matter particles, hence reducing the depth of the potential wells, when compared to a dark-matter only run. This effect has already been investigated with more sensitivity on the threedimensional matter power spectrum in the Horizon-AGN simulation (Chisari et al. 2018), and a clear dip in the matter density power spectrum of the full physics simulation is observed on scales 1 k 10 h Mpc −1 . Here, the projection somewhat smears out this dip over a larger range of scales but a ∼ 15% decrease in amplitude is typically observed for = 10 4 at z s = 0.5. In order to better see the changes due to the inclusion of the baryonic component, we traced rays through the lightcone by considering only the DM particles of the Horizon-AGN run with the SPL method. For this particular integration of rays trajectories, we multiplied the mass of the dark matter particules by a factor 1 + Ω b /Ω DM (where Ω DM = Ω m − Ω b ) to get the same overall cosmic mean matter density. The cyan curve in the upper panel shows the resulting convergence power spectrum. The ratios between the total full physics convergence power spectrum and the rescaled dark matter contribution of this power spectrum at z s = 0.5, 1.0 and 1.5 are shown in the bottom panel and further illustrates the two different effects of baryons on intermediate and small scales.
By considering two raytracing methods to derive the convergence power spectrum, and by asserting that consistent results are obtained by integrating the three-dimensional matter power spectrum, let us now look for small scale effects involving the possible coupling between the baryonic component and shearreduced shear corrections.

Shear -reduced shear corrections to 2-point functions
In practical situations, rather than the convergence power spectrum, which is not directly observable, wide fields surveys give access to the angular correlation of pairs of galaxy ellipticities.
The complex ellipticity 3 ε is directly related to the shear γ. The relation between the ensemble mean ellipticity and the shear is in fact with, g, the so-called reduced shear. Therefore, the two point correlations of ellipticities and shear only match when the convergence κ is small. Since the regions of large convergence are typically the centres of halos where the contribution of cooled baryons is highest, one might expect a coupling between the inclusion of baryons and the shear reduced-shear corrections needed to properly interpret the cosmological signal carried by the 2-point statistics (e.g. White 2005;Kilbinger 2010) Owing to the spin-2 nature of ellipticity, one can define the angular correlation functions ξ ± where γ + and γ × are defined with respect to the separation vector between two galaxies or, here any two image plane positions at separation θ. J 0 and J 4 are 0th and 4th order Bessel functions. Instead of the shear, observers can only measure associated ellipticities , which should thus replace γ in equation (22) in practical measurements. The reduced shear maps were computed together with shear and convergence maps, so as to measure the modified ξ + and ξ − angular correlations to compare them with the actual correlation functions. For efficiency, the Athena code 4 was used to compute correlation functions. The results are shown in Fig. 8 for a fiducial source redshift z s = 0.5. Here ξ g + and ξ γ + only depart from one another at the ∼ 2 − 3% level on angular separations ∼ 1 . The effect is slightly stronger for ξ − which is known to be more sensitive to smaller non-linear scales than ξ + , but also more difficult to measure in the data because of its lower amplitude. On 1 scales, ξ g − /ξ γ − − 1 7 − 8%. Like for the power spectra in the previous subsection, the cyan curves represent the correlations ξ γ ± for the rescaled DM contribution. The bottom panel shows the ratio of rescaled DM over full physics reduced shear correlation functions, further illustrating the effect of baryons on small scales. Again, ξ − responds more substantially to the inclusion of baryons. The deficit of correlation amplitude when baryons are taken into account peaks at 3 − 4 and is of order 10%. Below 1 , the effect starts to increase but those scales are never used in practical cosmic shear applications.
As shown in the next section, those scales remain perfectly relevant for galaxy evolution studies by means of the Galaxy-Galaxy weak lensing signal.

Galaxy-Galaxy lensing
Focussing further into dark matter halos, let us now investigate the yields of the simulation in terms of the galaxy-galaxy weak lensing signal. The tangential alignment of background galaxies around foreground deflectors is substantially altered by the aforementioned baryonic physics, and one also expects a strong signature in this particular lensing regime.
For a circularly symmetric mass distribution Σ(R), one can relate shear, convergence and the mean convergence enclosed inside a radius R centred on a foreground galaxy or halo as: Using the definition of the critical density (5), one can define the excess density The previous section already showed that the lensing convergence or shear maps have adequate statistical properties, while Sect. 3.6 showed how to use the associated deflection maps to map our lightcone galaxy catalogue into the image plane. In addition, galaxies should also get magnified when lensed. Future extensions of this work will include the realistic photometry of the Horizon-AGN galaxies. One can however easily account for the magnification bias by multiplying stellar masses by the magnification µ, as if luminosity or flux were a direct proxy for stellar mass. In the following, we shall refer to M * for the intrinsic and µM * for the magnified mass proxy.
For any given source redshift, averages of the tangential shear around galaxies of any given stellar mass M * or more realistically magnified stellar mass µM * . This is done around deflected galaxy positions.

Comparison with CMASS galaxies
Let us first make a comparison of the GGL around Horizon-AGN galaxies with the GGL excess mass profiles obtained by Leauthaud et al. (2017) who analysed the spectroscopic CMASS sample of massive galaxies in the footprint of the CFHTLS and CS82 imaging surveys, covering ∼ 250 deg 2 . These authors paid particular attention to quantifying the stellar mass of the CMASS galaxies centred around lens redshift z ∼ 0.55. The CMASS sample is not a simple mass selection, and includes a set of colour cuts, which makes this just a broad brush comparison. These results are somewhat sensitive to the detailed distribution in stellar mass above that threshold. The sample mean mass only slightly changes with redshift but remains close to 3 × 10 11 M .
In order to match this lens sample, we extract from the wide low redshift lightcone the galaxies in the redshift range 0.4 ≤ z ≤ 0.70, and with a stellar mass above a threshold that is chosen to match the CMASS mean stellar mass. Even though these galaxies centred around lens redshift z ∼ 0.52 are treated as lens galaxies, they experience a modest amount of magnification (they behave like sources behind the mass distribution at yet lower redshift, see Sect. 5.2). We thus pick galaxies satisfying µM * > 1.7 × 10 11 M . At this stage, selecting on M * or µM * does not make any significant difference ( 4%) because of the relatively low redshift of the lens sample. By doing so, we obtain the same sample mean stellar mass as the CMASS sample.
We now measure the mean tangential shear around those galaxies for a fiducial, unimportant, source redshift z s = 1 and convert shear into excess density ∆Σ. The result can be seen in Fig. 9. A good agreement between our predictions (OBB method, green with lighter envelope) and the observations of Leauthaud et al. (2017) (blue dots) is found, further suggesting that Horizon-AGN galaxies live in the correct massive halos (M h 10 13 M ), or at the very least, produce the same shear profile as CMASS galaxies around them. Note that we split the 2.25 deg field of view into 4 quadrants and used the dispersion among those areas to compute a rough estimate of model uncertainties.
On scales R 0.2 h −1 Mpc, the shear profile is 10-15% above the observations. Answering whether the discrepancy is due to faulty subgrid baryonic physics, a missing cosmological ingredient (or not perfectly adequate cosmological parameters) or leftover systematics in the data will certainly require more GGL observations, possibly combined with yet smaller scale strong lensing and kinematical data (e.g. Sonnenfeld et al. 2018). Small scale GGL is definitely a unique tool to address those issues (e.g. Velliscig et al. 2017), and asserting that the galaxy-halo connection is correctly reproduced by the simulations all the way to z 1, is arguably one of the foremost goals of galaxy formation models. Fig. 9 also shows our GGL results for the same population of lenses at the same redshift but as inferred from the SPL method (solid black) which allows to split the total lensing signal into its dark matter (blue and baryonic components (red). First of all, we do see a remarkable agreement between the two methods for the total lensing signal, except on scales 2 Mpc ∼ 5 where differences start exceeding the percent level. As already mentioned in the previous section, this is due to inaccuracies of the Fourier transforms performed with the SPL method. We can however use this latter technic to compare the contribution of DM and baryons (stars+gas). Clearly, the total and DM profiles look very similar beyond ∼ 0.2 Mpc up to a ∼ 17% renormalisation of the matter density. It is only below those scales that cooled baryons (stars) start playing a substantial contribution. We predict an equal contribution of DM and stars to the total shear signal near a radius ∼ 15 kpc. We refer the reader to Peirani et al. (2017) for further details about the innermost density profiles around Horizon-AGN galaxies in the context of the cusp-core problem.

High redshift magnification bias
For z l 0.6, the lens population starts being lensed by yet nearer structures. This can lead to a magnification bias, which was studied by Ziour & Hui (2008).
The spatial density of a lensed population of background sources can be enhanced or decreased by magnification as light rays travel through over-or under-dense sight-lines (eg Ménard & Bartelmann 2002;Scranton et al. 2005). Furthermore, the fraction of sources that are positively or negatively magnified depends on the slope of the luminosity function of the population. If it is very steep (typically the bright end of a population) one can observe a dramatic increase of the number of bright lensed objects. These deflectors appear brighter than they actually are. Fig. 10 shows the mean magnification experienced by Horizon-AGN lightcone galaxies above a given stellar mass threshold (mimicking a more realistic flux limit) as a function of redshift and minimum mass. The upper panel does not take into account the effect of magnification bias whereas the lower panel does. The ones that are consistently magnified and pass a given threshold (bottom panel) are slightly magnified on average whereas the top panel only shows a tiny constant µ ∼ 1 − 3% systematic residual magnification. This residual excess does not depend wether the SPL or OBB method are used, or whether we properly integrate rays or use the Born approximation. This is likely due to the replicates of the simulation box filling up the lightcone which slightly increase the probability of rays leaving an over-dense region to cross other over-dense regions on their way to the observer. This residual magnification is however tiny for sight-lines populated by galaxies and completely vanishes for rays coming for random positions.
At face value, one can see that the massive end of the galaxy stellar mass function is significantly magnification-biased. A ∼ 8% effect for galaxies at 0.6 ≤ z ≤ 1.2 and M * 2 × 10 11 M is typical. It can be as high at ∼ 20 − 50% at 1.5 ≤ z ≤ 2 for µM * 3 × 10 11 M . A thorough investigation of the impact of this magnification bias when trying to put constraints on the high end of the z 2 luminosity function from observations is left for a forthcoming paper.  Fig. 10. Average magnification experienced by presumably foreground deflectors accounting (bottom) or not (top) for magnification bias effect which mostly affects the rapidly declining high end of the stellar mass function. Without magnification bias, a flat nearly unity mean magnification at all redshifts is recovered to within ∼ 1%. When the magnification bias is turned on, as expected in actual observations, no rapid rise is found (∼ 10% at z ∼ 1 for the most massive/luminous galaxies). Cuts in stellar mass are expressed in units of 10 11 M .
Taking magnification bias into account, let us now explore three fiducial populations of massive deflectors to highlight the changes induced on projected excess density profiles. The first population consists in the aforementioned CMASS galaxies at z = 0.54 and µM * ≥ 1.7 × 10 11 M , the second case simply corresponds to the same lower limit on the mass but pushed to z = 0.74. In both cases, the excess density is measured for source redshift z s = 0.8. The last lens sample corresponds to the population of Hα emitters in the 0.9 ≤ z ≤ 1.8 redshift range that will be detected by the Euclid slit-less grism spectrograph above a line flux of ∼ 2 × 10 −16 erg s −1 cm −2 . One expects about 2000 such sources per square degree; therefore the 2000 most massive Horizon-AGN lightcone sources are picked in that redshift intervalle to crudely mimic an Hα line flux selection. To account for magnification bias, the selection is made on µM * , too, and the source redshift for this populations is set to z s = 2. Results for these three populations can be seen in the top panel of Fig. 11, where we distinguish the excess density profiles accounting (dotted) or not (solid) for magnification. As anticipated, no significant change is obtained for the z = 0.54 CMASS-like sample (green) but differences are more noticeable as lens redshift increases and on large scales (R 1 Mpc), we observe a 20 − 50% increase in ∆Σ, consistent with the large scale linear scale-invariance bias model used by Ziour & Hui (2008). Between z = 0.54 and z = 0.74, galaxies of the same mass seem to live in halos of the same mass (very little evolution of the M * − M h relation), leading to no evolution of ∆Σ below ∼ 200 kpc. The only difference occurs further out where the 2-halo term starts to be important in this galaxy-mass correlation function. There, galaxies of the same mass at z = 0.54 and z = 0.74 live in rarer excursions of the initial density field, and are thus more highly biased leading to an increase of ∆Σ on large scale. For the Euclid-like distant lens population, the trend is similar and the amplitude of the magnification bias effect would suggest a bias of the lens population about 30% higher than it really is.
The lower panel of Fig. 11 shows the evolution of the magnification bias induced excess density profile with source redshift for massive deflectors at z = 0.74. In principle, according to equation (26), the excess density should not depend on source redshift. However, magnification bias favours the presence of over-densities in front of deflectors. The response of distance sources carrying shear to these over-densities will depend on the source redshift in a way that is not absorbed by equation (26). Hence, a scale dependent distortion of the profiles is observed. The closer the source redshift from the deflector, the smaller the scale it kicks in. As already stressed by Ziour & Hui, this hampers a direct application of shear-ratio tests with high redshift deflectors (eg Jain & Taylor 2003).

Summary & future prospects
Using two complementary methods to project the density or gravitational acceleration field from the Horizon-AGN lightcone, we propagated light rays and derived various gravitational lensing observables in the simulated field of view. The simulated area is 2.25 deg 2 out to z = 1 and 1 deg 2 all the way to z = 7. The effect of baryons on the convergence angular power spectrum P κ ( ) was quantified, together with the two-point shear correlations ξ ± (θ) and the galaxy-galaxy lensing profile around massive simulated galaxies.
For cosmic shear, the inclusion of baryons induces a deficit of power in the convergence power spectrum of order 10% for 10 3 < < 10 4 at z s = 0.5. The amplitude of the distortion is about the same at z s = 1 but is slightly shifted to roughly twice as high multipole values. On yet higher multipoles, the cooled baryons, essentially in the form of stars, produce a dramatic boost of power, nearly a factor 2 for ∼ 10 5 . As emphasised in (Chisari et al. 2018), it is worth stressing that detailed quantitative statements on such small angular scales may still depend on the numerical implementation of baryonic processes.
For Galaxy-Galaxy lensing, the projected excess density profiles for a sample of simulated galaxies consistent with the     CMASS sample at z ∼ 0.52 (analysed by Leauthaud et al. 2017) were found to be in excellent agreement. To properly analyse this signal around high redshift deflectors, the magnification bias affecting the bright end of a population of distant galaxies was carefully taken into account, showing a large scale increase of the signal as high as 30% beyond 1 Mpc for lenses at z 1. This kind of effect is particularly pronounced for future samples of distant deflectors, such as the spectroscopic Euclid sources detected based on their Hα line intensity. Peirani et al. (2018) already showed that the innermost parts of Horizon-AGN galaxies are consistent with strong lensing observations of Sonnenfeld et al. (2013) and Newman et al. (2013Newman et al. ( , 2015 at z lens 0.3. We intend to make more predictions on the optical depth for strong lensing in the Horizon-AGN lightcone with our implemented raytracing machinery. Likewise, in a forthcoming paper we will present the results of the deflection field applied to simulated images derived from the light emitted by the stars produced in the simulation, hence enabling the possibility to measure lensing quantities (shear, magnification...) in the very same way as in observations: shape measurement in the presence of noise, Point Spread Function, pixel sampling, photometric redshift determinations, realistic galaxy biasing and more generally directly predicted galaxy-mass relation, and also the intrinsic alignment of galaxies and their surrounding halos Chisari et al. 2015Chisari et al. , 2016.