The pattern recognition method for CsI-RICH detector in ALICE