Read new /geometry/shifts/solenoid and /geometry/shifts/target CCDB tables to set target and solenoid positions independently #213
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
To support runs in which the target is not installed at the center of the solenoid (RG-C, RG-D), new CCDB tables were created under /geometry/shifts to store the x,y,z coordinates of the various volumes.
See https://clasweb.jlab.org/cgi-bin/ccdb/versions?table=/geometry/shifts/solenoid and https://clasweb.jlab.org/cgi-bin/ccdb/versions?table=/geometry/shifts/target
Previously, /geometry/target was used to set the positions of target, solenoid, CTOF and CND and was typically set to -3 cm. Apart from being inaccurate, this was not a problem so far because the actual target position was always equal to the solenoid center. This is not the case for RG-C and RG-D and, since the target position is used by CVT for eloss and selection of track candidates that by default is set to |z_seed-ztarget|<targetlength/2+1cm, using a wrong position leads to inaccurate eloss corrections and, more importantly, loss of good tracks.
In the new implementation:
The last 2, RF and FT, are temporary solutions to be consistent with the RG-C Summer 22 calibrations. These will be changes as follows in the future:
Closes #211