Study of charging up effect in a triple GEM detector