-
Notifications
You must be signed in to change notification settings - Fork 1
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
Storing information for post-proc #59
Comments
I think that what we have to do is to store the full (legend-)metadata detector dictionary (geometry, characterization data, etc.) along with the sensitive detector in the output GDML file. This would simplify post processing by a lot and minimize the amount of mistakes. I think storing in GDML makes more sense than the simulation output, since it is logically related to "geometry". In remage, I am kinda convinced that we should store the step data in a table named after the detector (e.g. "C0000RG1"). See legend-exp/remage#153. |
Another idea we considered (@ManuelHu ) was splitting the HPGe sensitive volume into 2 parts. A central part and a surface (ie everything within 5 or 10 mm), this might allow us to speed up significantly the post-processing if we find that the activness is the bottleneck |
I have opened a remage issue about this |
There are two ways to attach any user defined data in a GDML file:
for the sensitive detectors we needed to use the global way, as they are part of the physical volumes. And there we cannot attach auxvals. for the hpge data we could store them in the logical volume auxvals, as they are more part of the geometry (and not really part of the volume tree). if we need the data for sipms, we need to use the global way - they do not have indivisual logical volumes (they only have individual physical volumes). |
How easy is it to read back the information?
…________________________________
From: Manuel Huber ***@***.***>
Sent: Sunday, November 10, 2024 8:30 PM
To: legend-exp/legend-pygeom-l200 ***@***.***>
Cc: Dixon, Toby ***@***.***>; Author ***@***.***>
Subject: Re: [legend-exp/legend-pygeom-l200] Storing information for post-proc (Issue #59)
⚠ Caution: External sender
There are two ways to attach any user defined data in a GDML file:
* globally, to the file
* locally, to a logical volume
for the sensitive detectors we needed to use the global way, as they are part of the physical volumes. And there we cannot attach auxvals.
for the hpge data we could store them in the logical volume auxvals, as they are more part of the geometry (and not really part of the volume tree).
if we need the data for sipms, we need to use the global way - they do not have indivisual logical volumes (they only have individual physical volumes).
—
Reply to this email directly, view it on GitHub<#59 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ANSET425WMGRYH3F5X6N45TZ76X6ZAVCNFSM6AAAAABRPMX2BGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINRWHA2TSMRQGI>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Can you elaborate on this? As you said the SiPM metadata cannot be attached to the logical volume and I would not implement things differently. Would we store something like a mapping between sensitive (physical) volume names and metadata? |
In python you can easily get the information, it's essentially available as a key-value store (not a dict, so you have to iterate all attached pairs, I think). In C++, I never used it, but I think it's similar.
That would be one option (and probably also the "easiest"). Essentially, this would be very similar to #56 (which is a mapping between physical volume name and sensitive detector type & detector uid) |
fixed with #72
|
There is information not included in the GDML file that is useful for post-processing.
det001
etc.) to the channel name,legend-pygeom-hpges
given the metadata block,This is partly solved by #56 but we should think about if this fits better there or in the
remage
output and on what auxval info we want.also GDML is not very human readable so maybe we can do something better eg attaching this information to the
remage
lh5 output.What do you think @gipert / @ManuelHu ?
The text was updated successfully, but these errors were encountered: