I found the problem of my code, it was a misunderstanding for me. but if I use compiled code with ROOT, it shows some errors. I create a new topic.