Characteristics of a double gap resistive plate chamber for the endcap region of CMS/LHC: data vs. simulation in avalanche mode