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

Add PhotonVisibilityExport module #64

Open
wants to merge 10 commits into
base: develop
Choose a base branch
from

Conversation

dguff
Copy link

@dguff dguff commented Oct 23, 2024

Introduce the PhotonVisibilityExport module, which evaluate the visibility of each OpDet in a grid of points inside the TPC. The PR also includes example fhicls and ROOT macros for building 2D and 3D visibility maps.

@lpaulucc lpaulucc self-requested a review October 23, 2024 14:21
voxel_dz: "10.00" # voxel z mesh step (in cm)
vis_model: "semianalytical" # visibility model to be used
# (pick one between "semianalytical", "compgraph")
do_refl: @local::dunefd_pdfastsim_par_ar_refl.DoReflectedLight
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am a bit puzzled here for VD: In principle there should be light reflected off from the anode but the following parameter is set to false...
Should there be two configurations, one for VD and another for HD here?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @lpaulucc, I have created three separate configurations for FD HD/VD-Ar/VD-Xe handling the reflection options like this

...
photovisexport_fdvd_ar.do_refl: @local::dunevd_pdfastsim_par_ar.DoReflectedLight
photovisexport_fdvd_ar.do_include_anode_refl: @local::dunevd_pdfastsim_par_ar.IncludeAnodeReflections
...
photovisexport_fdvd_xe.do_refl: @local::dunevd_pdfastsim_par_xe.DoReflectedLight
photovisexport_fdvd_xe.do_include_anode_refl: @local::dunevd_pdfastsim_par_xe.IncludeAnodeReflections

However if I check what is going on with a fhicl dump I still get no reflection for Xe light (at least for v09_88_00d00). Am I using the wrong reference?

vishitspars: @local::dunefd_pdfastsim_par_ar_refl.VISHits
tfloaderpars: @local::dunevd_pdfastsim_ann_ar.TFLoaderTool

do_include_buffer: false
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it possible to have this parameter true? If not, do you mind adding a comment here?

physics.analyzers.photovisXe.vis_model: "semianalytical"
physics.analyzers.photovisXe.do_include_buffer: "true"
physics.analyzers.photovisXe.vuvhitspars: @local::dunevd_pdfastsim_par_xe.VUVHits
physics.analyzers.photovisXe.do_refl: false
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is not a reflected light in VD for Xe?

Copy link
Member

@lpaulucc lpaulucc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you so much for this, Daniele. I have a few comments, it might be a good idea to have specific configurations for HD/VD, Ar/Xe in the module's fhicl. What do you think?

@aolivier23
Copy link
Contributor

@dguff is this still a work in progress, or could it be ready to merge in 3-4 hours? I'd be happy to get it in to this week's release if you can answer the outstanding question and fix some of the conflicts with develop.

Copy link
Member

@lpaulucc lpaulucc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the changes, Daniele!

@dguff
Copy link
Author

dguff commented Nov 8, 2024

Hi @lpaulucc @aolivier23, thank you for your comments! I still have to check that the changes I have made do actually work, I will try to get back to you as soon as I can and hopefully before 3-4 hours

@lpaulucc
Copy link
Member

lpaulucc commented Nov 8, 2024

Yeah, I have just made a fhicl-dump of the VD config and indeed you find in there
DoReflectedLight: false
IncludeAnodeReflections: false
for both Ar and Xe. I think now I remember Jiaoyang saying she didn't find it necessary to have the anode reflection separated from the rest. So my bad! Sorry for that!

@dguff
Copy link
Author

dguff commented Nov 8, 2024

Unfortunately I could not make it @aolivier23, this one has to wait for the next release 😿

@aolivier23
Copy link
Contributor

No worries. I'll check in next Friday. Thank you for the update.

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

Successfully merging this pull request may close these issues.

3 participants