dPHI
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MadAnalysis 5 |
Invalid
|
Undecided
|
Benjamin Fuks |
Bug Description
Hi,
I am still not sure about dPHI... (I am using the 2013-09-12 version, revision 68 in Launchpad.)
What I did is to generate a run with one event :) and check by hand.
I attach the LHE file, never mind the other particles, just look at the photons 4 momentum
a2 = 0.60637959083E+02 -0.35342794180E+02 0.64175521742E+02 0.95102958802E+02
a1 = -0.92401079936E+02 -0.12834023879E+03 0.18221352926E+03 0.24126944836E+03
a1 has pt in the lower left corner of the (x,y) axis. If I understand your conventions that means phi = -2.195
a2 has pt in the lower right corner, phi = -0.5277
in ma5 i input
plot dvPHI(a[1] a[2]) 100 -3.14 +3.14
plot PHI(a[1]) 100 -3.14 +3.14
plot PHI(a[2]) 100 -3.14 +3.14
The plots for PHI(a[1]) and PHI(a[2]) are OK BUT the the plot dvPHI(a[1] a[2]) should give in my opinion
|-2.195 -(-0.5277)| = 1.6673 whereas ma5 gives -2.596
Lastly one minor thing: It seems to me that your default range is 0. 3.14 but it should be -3.14 3.14, maybe you could change it?
Have a nice weekend everyone!
Gabriele
Hi Gabriele,
The observable dvPHI is the vectorial difference among the two phis. This means that you first take the difference of the two four-vectors and then compute the phi angle of the resulting four-vector.
If you want phi1 - phi2, you need to compute the scalar difference, i.e., you first compute the phi angle of the first four-vector, then the one of the second four-vector, and you calculate the difference between the two results.
Please hence try sdPHI instead of dvPHI. It should work.
For the other minor thing. The default range for sdphi will be changed to (-2pi, 2pi) in v1.1.9, and the one for the scalar sum to (-2pi,2pi), since our default range is (-3.14, 3.14) Thanks for pointing this out.
Cheers,
Benjamin