Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integrating a 2-dimensional angular distribution #24

Open
jgalan opened this issue Oct 18, 2021 · 0 comments
Open

Integrating a 2-dimensional angular distribution #24

jgalan opened this issue Oct 18, 2021 · 0 comments

Comments

@jgalan
Copy link
Member

jgalan commented Oct 18, 2021

This issue raised at PR #22. The question is what happens if we need to describe a more arbitrary angDist angular distribution with distributions for both angles, theta or phi.

In principle to motivate the development of this upgrade one should find a case where this is needed. But I let it here anyway.

A possibility would be to directly provide a TH2D type angular distribution. Or to provide a file for a TH1D Theta distribution, and another one, TH1D, for Phi angle distribution. Assuming both are independent, they could be randomised independently.

Perhaps that would need to come out with a bit more complex way to describe the angular distribution?

<angularDist type="TH1D" direction="(0,0,-1)"/>
       <thetaDist file="CosmicAngles.root" spctName="Theta2"/>
       <phiDist file="CosmicAngles.root" spctName="Phi2"/>
</angularDist>

If we use the previous way to define angularDist, i.e. if phiDist is not defined then it will assume phiDist is uniformly distributed. In the new implementation we could provide either thetaDist or phiDist, and if not they are just uniformly distributed.

We could have also the new angular distribution type TH2D.

<angularDist type="TH1D" direction="(0,0,-1)"  file="CosmicAngles.root" spctName="SolidAngle"/>

For more complex generators I believe a file of the style used by Decay0 output could be used.

Or perhaps a new class in the way described at the following post.

https://rest-forum.unizar.es/t/doubt-can-you-use-two-generators-in-one-simulation/327/12

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant