The Cherenkov Telescope Array (CTA) will be the next generation gamma-ray observatory in the energy range from 20 GeV to 300 TeV, offering 5-10 times better flux sensitivity than the current generation of imaging atmospheric Cherenkov telescopes. Each telescope will capture an image of the Cherenkov light produced when air showers created by gamma rays or cosmic rays pass through the atmosphere. The longitudinal development of the shower in the atmosphere can be studied by measuring the number of charged particles produced as a function of depth. The reconstruction of the longitudinal shower profile provides the depth of the shower maximum which is a mass-sensitive parameter useful for cosmic ray composition. In this work, we reconstruct the longitudinal profile and the of air showers initiated by two kinds of cosmic ray species, proton, and iron, with energies between 10 TeV and 300 TeV. This reconstruction is different from other methods that have been used in the past as template-based fit techniques that require a detailed and computing-intensive simulation chain. In contrast, we use for the first time a parameterized function for the angular distribution of Cherenkov light around the shower axis. *** 27th European Cosmic Ray Symposium -ECRS *** *** 25-29 July 2022 *** *** Nijmegen, the Netherlands *** * Speaker