-
Notifications
You must be signed in to change notification settings - Fork 4
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
HGCal trigger geometry v4 #113
base: hgc-tpg-devel-CMSSW_14_0_0_pre1
Are you sure you want to change the base?
HGCal trigger geometry v4 #113
Conversation
Thanks @EmyrClement !
|
On a related topic, I have finalized a preliminary version of the updated geometry testing tools, which I plan to PR Today. |
Thanks @jbsauvan for the comments, I in principle agree with all of them, and can likely integrate the first and third comment in this PR. For your last comment, my intention was to include all xml files that are required by CMSSW for any possible scenario, and then exclude any additional files within these directories that are produced when deriving the mappings (e.g. pdf files with validation diagrams/summary of each mapping scenario). There are some files I overlooked (e.g. the mif file you mention), so will remove those. Beyond that, is it worth keeping one entire consistent set of xml files for all scenarios, or should we just keep a reduced set/just one scenario? |
I would rather tend to prefer being minimal. There is only one scenario that is considered at the moment by firmware designers. And within a scenario not all the files are currently being used, so I would only add the needed file and things can be added later when necessary. We just have to make sure that the version of these files is clearly identified so that they can be tracked down to their origin. |
a2868a8
to
c1fa547
Compare
PR description:
This PR introduces v4 of the trigger geometry, which is based on the "xml mapping files" derived by Andy (see mapping repo in gitlab).
L1Trigger/L1THGCal/interface/mappingTools
andL1Trigger/L1THGCal/src/mappingTools
. These are based on code provided by Andy, but modified to use Xerces-C (as opposed to pugi-xml) as the xml parser, which is available in CMSSW. Perhaps these tools should be encapsulated into a helper class rather than a set of functions.L1Trigger/L1THGCal/plugins/geometries/HGCalTriggerGeometryV9Imp4.cc
, which is almost identical to the V3 implementation, however thefillMaps
function has been modified to fill the relevant data members (e.g. maps likestage2_to_stage1links_
) with information from the xml files using the helper functions described in the previous bullet.L1Trigger/L1THGCal/data
, which will ultimately be located incms-data
. I have added files for all possible scenarios, taken from the mapping repository in ~Feb 2024.PR validation:
So far, I have checked that the consistency of the v4 geometry using the existing geometry tester for the v3 geometry, given the interfaces of the two trigger geometries are almost the same. There are some caveates:
I will continue with some further validation using the existing emulators in CMSSW.