# Invalid angular limits for Usryld

**URL:** <https://fluka-forum.web.cern.ch/t/invalid-angular-limits-for-usryld/4942>\
**Category:** Scoring\
**Created:** [14 July 2023 05:27 UTC](https://fluka-forum.web.cern.ch/t/invalid-angular-limits-for-usryld/4942 "2023-07-14T05:27:38Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![riya](https://fluka-forum.web.cern.ch/user_avatar/fluka-forum.web.cern.ch/riya/32/1407_2.png) [@riya](https://fluka-forum.web.cern.ch/u/riya)\
**Post date:** [14 July 2023 05:27 UTC](https://fluka-forum.web.cern.ch/t/invalid-angular-limits-for-usryld/4942/1 "2023-07-14T05:27:38Z")

</div>

Dear expert,

In this input, I tried to get information from USRYIELD card in 0 degree lab angle with an angular deviation of ± 2.43. But I got an error

\*\*\* Invalid angular limits for Usryld:  
In this case, do I have to use 360 - 2.43 and 0+ 2.43 ?

![1](https://fluka-forum.web.cern.ch/uploads/default/original/2X/1/1a75b2ee473021c1bb705eeb31724ec6c238a53e.png)

Regards,

Riya

---

<div class="post-metadata">

**Author:** ![ceruttif](https://fluka-forum.web.cern.ch/user_avatar/fluka-forum.web.cern.ch/ceruttif/32/23_2.png) [@ceruttif](https://fluka-forum.web.cern.ch/u/ceruttif)\
**Post date:** [14 July 2023 06:30 UTC](https://fluka-forum.web.cern.ch/t/invalid-angular-limits-for-usryld/4942/2 "2023-07-14T06:30:16Z")

</div>

If you want to look at 0 deg with an acceptance of 2.43 deg, you have to put Min2=0 and Max2=2.43.  
Here you wrote instead from 357.57 to 2.43, which makes no sense since **the polar angle cannot exceed 180 deg**. Note that, if you consider for instance the xz plane, what you have in mind as -2.43 deg (i.e. a direction in the negative-x halfplane) actually corresponds to a polar angle (theta) of +2.43 deg and an azimuthal angle (phi) of 180 deg, and is automatically taken into account in the polar angle interval I indicated above since **USRYIELD scores over the whole azimuthal angle interval of 360 deg**.

---

<div class="post-metadata">

**Author:** ![riya](https://fluka-forum.web.cern.ch/user_avatar/fluka-forum.web.cern.ch/riya/32/1407_2.png) [@riya](https://fluka-forum.web.cern.ch/u/riya)\
**Post date:** [14 July 2023 13:56 UTC](https://fluka-forum.web.cern.ch/t/invalid-angular-limits-for-usryld/4942/3 "2023-07-14T13:56:49Z")

</div>

Thank you @ceruttif for clarifying it. Just to understand this properly, for other angles I was doing min = 𝜃\_1 - 𝑑𝜃\_1 and max = 𝜃\_1 + 𝑑𝜃\_1. But this is then wrong, I guess. I have to use min = 𝜃\_1 and max = 𝜃\_1 + 𝑑𝜃\_1. [Since for 0 degree angle, we have to use 0 to 0 + 2.43]. Can you please clarify this?

Regards,  
Riya

 ![1](https://fluka-forum.web.cern.ch/uploads/default/original/2X/a/aaadf4c0c61d83f15bd646f7fea64411a73b6ea9.png)

---

<div class="post-metadata">

**Author:** ![ceruttif](https://fluka-forum.web.cern.ch/user_avatar/fluka-forum.web.cern.ch/ceruttif/32/23_2.png) [@ceruttif](https://fluka-forum.web.cern.ch/u/ceruttif)\
**Post date:** [14 July 2023 14:23 UTC](https://fluka-forum.web.cern.ch/t/invalid-angular-limits-for-usryld/4942/4 "2023-07-14T14:23:39Z")

</div>

No, it was correct, since theta=0 is a special case. However, your drawing for theta1 is wrong, since the azimuthal angle (running from 0 to 360 deg) shall remain in the plane orthogonal to the z-axis (as for theta0), giving in this case a hollow surface. Refer to the spherical coordinate definition (in Wikipedia or any relevant textbook).

---

<div class="post-metadata">

**Author:** ![riya](https://fluka-forum.web.cern.ch/user_avatar/fluka-forum.web.cern.ch/riya/32/1407_2.png) [@riya](https://fluka-forum.web.cern.ch/u/riya)\
**Post date:** [14 July 2023 14:40 UTC](https://fluka-forum.web.cern.ch/t/invalid-angular-limits-for-usryld/4942/5 "2023-07-14T14:40:06Z")

</div>

Dear @ceruttif ,

Thank you for the clarification. Yes, this image is not correctly drawn, I meant a configuration described here.

> [@Query regarding different options in USRYIELD](https://fluka-forum.web.cern.ch/t/query-regarding-different-options-in-usryield/4478/6):
>
> Dear @ceruttif , If I understood correctly, the angle in usryield is defined with respect to incident beam. So in the attached image, if a detector is placed at C location, then the corresponding usryield angle wil be angle BOC, instead of angle AOC. Is it correct ? Is there any way to verify/ visualise this region in output ? Regards, Riya

Regards,  
Riya

---

<div class="post-metadata">

**Author:** ![ceruttif](https://fluka-forum.web.cern.ch/user_avatar/fluka-forum.web.cern.ch/ceruttif/32/23_2.png) [@ceruttif](https://fluka-forum.web.cern.ch/u/ceruttif)\
**Post date:** [14 July 2023 15:01 UTC](https://fluka-forum.web.cern.ch/t/invalid-angular-limits-for-usryld/4942/6 "2023-07-14T15:01:32Z")

</div>

Also that figure does not represent the USRYIELD scoring reality, since USRYIELD scores over the whole azimuthal angle interval of 360 deg, contrary to what is shown there, which is limited to a small azimuthal angle interval, as for a typical detector. Nonetheless, once divided by the (respective) solid angle, (experimental and simulated) results can be compared. In fact, USRYIELD exploits the azimuthal symmetry and scores not only within the physical surface of the detector, but over the whole 360 deg azimuthal range, gaining this way much more statistics. As just mentioned, the fact that results are given as /dOmega provides a clean quantity.

---

<div class="post-metadata">

**Author:** ![riya](https://fluka-forum.web.cern.ch/user_avatar/fluka-forum.web.cern.ch/riya/32/1407_2.png) [@riya](https://fluka-forum.web.cern.ch/u/riya)\
**Post date:** [14 July 2023 15:54 UTC](https://fluka-forum.web.cern.ch/t/invalid-angular-limits-for-usryld/4942/7 "2023-07-14T15:54:21Z")

</div>

Thank you @ceruttif for the detailed explanation.

Regards,

Riya

---

<div class="post-metadata">

**Author:** ![horvathd](https://fluka-forum.web.cern.ch/user_avatar/fluka-forum.web.cern.ch/horvathd/32/10584_2.png) [@horvathd](https://fluka-forum.web.cern.ch/u/horvathd)\
**Post date:** [14 July 2023 17:09 UTC](https://fluka-forum.web.cern.ch/t/invalid-angular-limits-for-usryld/4942/8 "2023-07-14T17:09:07Z")

</div>

Closed on 14 July 2023 17:09 UTC


