# EVE sign of charge or field wrong

**URL:** <https://root-forum.cern.ch/t/eve-sign-of-charge-or-field-wrong/13706>\
**Category:** ROOT\
**Created:** [January 31, 2012, 10:20pm UTC](https://root-forum.cern.ch/t/eve-sign-of-charge-or-field-wrong/13706 "2012-01-31T22:20:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![whit2333](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/whit2333/32/16624_2.png) [@whit2333](https://root-forum.cern.ch/u/whit2333)\
**Post date:** [January 31, 2012, 10:20pm UTC](https://root-forum.cern.ch/t/eve-sign-of-charge-or-field-wrong/13706/1 "2012-01-31T22:20:14Z")

</div>

Hello,

I have noticed that particles are bending the wrong way in a uniform magnetic field.  
I create TEveTracks using the TParticle constructor, which has PDG code in it.  
I have seen this post [Locate like command](https://root-forum.cern.ch/t/locate-like-command/65/1) but everyone in the world knows which way an electron should bend in the magnetic field. Shouldn’t this be fixed?

Cheers,  
Whit

---

<div class="post-metadata">

**Author:** ![matevz](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/matevz/32/12824_2.png) [@matevz](https://root-forum.cern.ch/u/matevz)\
**Post date:** [February 24, 2012, 2:04am UTC](https://root-forum.cern.ch/t/eve-sign-of-charge-or-field-wrong/13706/2 "2012-02-24T02:04:28Z")

</div>

Hi Whit,

Historically, this bug comes from a wrong MF sign in ALICE simulation 🙂

Changing this now would break everybody’s code. Just change the sign of magnetic field when you pass it to Eve.

Cheers,  
Matevz

---

<div class="post-metadata">

**Author:** ![whit2333](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/whit2333/32/16624_2.png) [@whit2333](https://root-forum.cern.ch/u/whit2333)\
**Post date:** [February 24, 2012, 5:40pm UTC](https://root-forum.cern.ch/t/eve-sign-of-charge-or-field-wrong/13706/3 "2012-02-24T17:40:42Z")

</div>

Hi Matevz,

Then I would suggest that this mistake be heavily documented, not just on the forums. 😆

Cheers,  
Whit

---

<div class="post-metadata">

**Author:** ![matevz](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/matevz/32/12824_2.png) [@matevz](https://root-forum.cern.ch/u/matevz)\
**Post date:** [February 24, 2012, 9:36pm UTC](https://root-forum.cern.ch/t/eve-sign-of-charge-or-field-wrong/13706/4 "2012-02-24T21:36:22Z")

</div>

Hi Whit,

Agreed … and done 🙂 I always thought of it as an initiation test 😉

Cheers,  
Matevz
