# My code does not have any error but does not work

**URL:** <https://root-forum.cern.ch/t/my-code-does-not-have-any-error-but-does-not-work/43537>\
**Category:** Newbie\
**Tags:** tree\
**Created:** [February 13, 2021, 4:50pm UTC](https://root-forum.cern.ch/t/my-code-does-not-have-any-error-but-does-not-work/43537 "2021-02-13T16:50:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mohebtash](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/m/9de053/32.png) [@mohebtash](https://root-forum.cern.ch/u/mohebtash)\
**Post date:** [February 13, 2021, 4:50pm UTC](https://root-forum.cern.ch/t/my-code-does-not-have-any-error-but-does-not-work/43537/1 "2021-02-13T16:50:14Z")

</div>

Dear friends,  
This is a basic question. I have downloaded the file from CMS open source website(HEPTutorial file) and I want to select at least two muon from the file.

I have written the code. Although when I run the file it does not have any error, but it does not work.would you please tell me what I should do?

* * *

_ROOT Version:_ 6.22/06  
_Platform:_ Ubuntu 20.04.2  
_Compiler:_ Terminal of the linux

* * *

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [February 15, 2021, 8:09am UTC](https://root-forum.cern.ch/t/my-code-does-not-have-any-error-but-does-not-work/43537/2 "2021-02-15T08:09:42Z")

</div>

Can you give more details ? what is this code ? you can post it here in order to try it ?

---

<div class="post-metadata">

**Author:** ![mohebtash](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/m/9de053/32.png) [@mohebtash](https://root-forum.cern.ch/u/mohebtash)\
**Post date:** [February 16, 2021, 11:07am UTC](https://root-forum.cern.ch/t/my-code-does-not-have-any-error-but-does-not-work/43537/3 "2021-02-16T11:07:28Z")

</div>

Thank you, I solved it.
