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

test: dev-align3 #196

Closed
wants to merge 359 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
359 commits
Select commit Hold shift + click to select a range
a59edd9
Fixed bug where the run number was being set to the actual run number
sebouh137 May 3, 2021
fc88634
Added banks for alignment.
zieglerv May 18, 2021
9d23d17
Added banks for alignment.
zieglerv May 18, 2021
3935071
Added banks for alignment.
zieglerv May 18, 2021
1525774
some cleanup before merging with TracTools-NewBanks
sebouh137 May 18, 2021
95816a2
Merge remote-tracking branch 'origin/TracTools-AddBanks' into dev-align3
sebouh137 May 18, 2021
184accc
enable github actions, to replace Travis
baltzell Feb 13, 2021
ca51d43
yaml cleanup
raffaelladevita Feb 12, 2021
d386d06
resolving conflict with cherry-pick
raffaelladevita Feb 12, 2021
4c7035b
another yaml cleanup
raffaelladevita Feb 12, 2021
4f802d1
another yaml cleanup
raffaelladevita Feb 12, 2021
67020a8
yaml: fixed error in data.yaml
raffaelladevita Feb 25, 2021
0a9c037
disable TravisCI
Mar 2, 2021
63f693c
remove defunct yamls
baltzell Mar 5, 2021
fa42176
rename eb yaml
baltzell Mar 5, 2021
a7dc0ae
rename ambiguous yaml
baltzell Mar 5, 2021
6850406
replace Travis with github action badge
baltzell Mar 5, 2021
31fc8de
Maven blocking (#698)
raffaelladevita May 15, 2021
776a9a0
Added banks output fixes.
zieglerv May 20, 2021
696b6fd
Merge branch 'TracTools-AddBanks' of https://github.com/JeffersonLab/…
zieglerv May 20, 2021
db16e49
Merge remote-tracking branch 'origin/TracTools-AddBanks' into dev-align3
sebouh137 May 20, 2021
d21d548
use new banks in pre-align
sebouh137 May 20, 2021
0e39556
Added banks output fixes.
zieglerv Jun 8, 2021
05d9557
Merge remote-tracking branch 'origin/TracTools-AddBanks' into dev-align3
sebouh137 Jun 8, 2021
100b2f0
Fix for cosmic tracks reconstruction.
zieglerv Jun 10, 2021
11c7410
modified the swimToRho uniform step size swimmer
heddle Jun 11, 2021
003f4ee
Fix for l,s,n alignment support vectors.
zieglerv Jun 18, 2021
1c28b35
Merge remote-tracking branch 'origin/TracTools-AddBanks' into dev-align3
sebouh137 Jun 18, 2021
1d24d9b
fix helix point along hexliz at z
zieglerv Jun 23, 2021
e5e143c
add axis to Cylinder
zieglerv Jun 23, 2021
84bb93a
use generic cylinder projetor
zieglerv Jun 23, 2021
1521345
reduce step size in SwimRho
zieglerv Jun 23, 2021
5b5d350
Modification to getting Lorentz angle byt reading the field.
zieglerv Jun 23, 2021
0e225a2
Fix s,l,n vectors for arbitrary BMT axis.
zieglerv Jun 25, 2021
ec1e1a4
Merge remote-tracking branch 'origin/TracTools-AddBanks' into dev-align3
sebouh137 Jun 25, 2021
242c2eb
version bump
zieglerv Jun 29, 2021
a7aeee5
Added new cosmic track fitter.
zieglerv Jul 14, 2021
d1e1213
Added new cosmic track fitter to straight track reconstruction.
zieglerv Jul 14, 2021
5a97b82
added banks for CVT alignment; merge with new swimming packages; impl…
zieglerv Jul 15, 2021
8a70b65
Fix in setting alignment parameters for BMT.
zieglerv Jul 15, 2021
8ad2978
merge problems fixed
sebouh137 Jul 15, 2021
3727791
Fix solenoid scale for running straight tracks tracking
zieglerv Jul 15, 2021
3372d6a
Merge remote-tracking branch 'origin/TracTools-NewSwimBMTClus' into d…
sebouh137 Jul 15, 2021
8805720
Geometry for L,S,N fix.
zieglerv Jul 16, 2021
6797a89
Merge remote-tracking branch 'origin/TracTools-NewSwimBMTClus' into d…
sebouh137 Jul 16, 2021
43ef6aa
Fix discrepancy between BMT Z cluster line and cylinder axis directions.
zieglerv Jul 19, 2021
c4a187c
Merge remote-tracking branch 'origin/TracTools-NewSwimBMTClus' into d…
sebouh137 Jul 19, 2021
abdb92a
DVT geometry: restoring reading of faraday cage and peek suport param…
raffaelladevita Jul 21, 2021
93dcacf
Merge remote-tracking branch 'origin/TracTools-NewSwimBMTClus' into d…
sebouh137 Jul 28, 2021
91925fc
Fixes to straight track fitting. Fix in residual convention for svt.
zieglerv Jul 29, 2021
f361aa2
Fixes to matching of trajectory obtained from track parameters to clu…
zieglerv Jul 29, 2021
068898c
Added geometry information to Cross object for sorting.
zieglerv Jul 29, 2021
98bd3a4
Remove trajectory finding in candidate finder. Moved to the end of t…
zieglerv Jul 29, 2021
ea2ea4b
Cleaned up doca method.
zieglerv Jul 29, 2021
bb3b7dd
Sorted measurements by y position for straight tracks using trajector…
zieglerv Jul 29, 2021
567589d
Modified clustering for straight tracks.
zieglerv Jul 29, 2021
7646f09
Recompute N and S from trajectory for BMT C detectors.
zieglerv Jul 29, 2021
9c1aa6a
Cosmetic changes.
zieglerv Jul 29, 2021
105fe9e
Merge branch 'TracTools-NewSwimBMTClus' of https://github.com/Jeffers…
zieglerv Jul 29, 2021
3dc7019
Merge remote-tracking branch 'origin/TracTools-NewSwimBMTClus' into d…
sebouh137 Jul 29, 2021
15d15ee
Fix zero errors for BMT Z
zieglerv Jul 29, 2021
3f6b5f4
Merge remote-tracking branch 'origin/TracTools-NewSwimBMTClus' into d…
sebouh137 Jul 29, 2021
b194d47
small mod to recon bank reader
sebouh137 Aug 5, 2021
65521a8
modifications to CVTAlignment
sebouh137 Aug 5, 2021
d4da880
Working version of pre-alignment matrix extraction, which successfully
sebouh137 Aug 11, 2021
ce7ae92
Fix in arc rotation.
zieglerv Aug 16, 2021
72b5f85
Functionality to tilt arcs in fitting
zieglerv Aug 17, 2021
aef0259
Functionality to tilt arcs in fitting
zieglerv Aug 17, 2021
6760d8a
Merge remote-tracking branch 'origin/TracTools-NewSwimBMTClus' into d…
sebouh137 Aug 17, 2021
39c9048
some debug and switches for BMTC; counts of the number of
sebouh137 Aug 18, 2021
9f876a2
new clustering for uncontinuous clusters; pseudo-arc for cluster repr…
zieglerv Sep 11, 2021
c29ffbb
CVT: code cleanups, fixes to BMT trajectory calculation
raffaelladevita Sep 14, 2021
3075510
CVT: code cleanups, fixes to BMT trajectory calculation
raffaelladevita Sep 14, 2021
509887f
clas-geometry: added bisect method to Arc3D and fixed axis in Cylindr…
raffaelladevita Sep 18, 2021
f759da0
CVT:
raffaelladevita Sep 18, 2021
f689966
CVT: rename BMT geometry class
raffaelladevita Sep 18, 2021
55ccc98
CVT: removing hardcoded rotation
raffaelladevita Sep 18, 2021
8f91460
max residuals for each detector separately
sebouh137 Sep 22, 2021
2b6616f
output track parameters in output of pre-alignment
sebouh137 Sep 23, 2021
dfc5699
CVT: further restructuring of cluster class, added geometry info to s…
raffaelladevita Sep 27, 2021
1b88753
correct calculation of phi0 (no lorentz correction for BMT-Z clusters
raffaelladevita Sep 28, 2021
5e5f1c2
CVT: SVT shifts properly accounted for in all geometry methods, geome…
raffaelladevita Oct 4, 2021
e0a6277
zeroing hardcoded SVT test shifts
raffaelladevita Oct 4, 2021
c5ea85d
CVT: fixing bug introduced in geometry cleanups
raffaelladevita Oct 4, 2021
6069502
CVT: cleanup of constants and more geometry fixes
raffaelladevita Oct 6, 2021
cf0dab5
Fix Helix for 90 deg tracks.
zieglerv Oct 5, 2021
8cb6862
Partial merge of TrakTools-Test2Dev and updates to findClustersOnTrac…
raffaelladevita Oct 6, 2021
5a6a6d3
BMT geometry: shifted strips to be at the center of the drift, to fac…
raffaelladevita Oct 6, 2021
0862342
merged with TracTools-Test3Dev
sebouh137 Oct 9, 2021
2f48c11
Merge remote-tracking branch 'origin/TracTools-Test3Dev' into dev-align3
sebouh137 Oct 9, 2021
41969b7
merged with TracTools-Test3. Wowzers, this fixes the weirdly large r…
sebouh137 Oct 10, 2021
34dc48f
CVT: SVT crosses now accounts for rotations, both SVT and BMT crosses…
raffaelladevita Oct 10, 2021
9dd8b1e
CVT: removed hardcoded rotation
raffaelladevita Oct 10, 2021
9ff549a
flipped the sign conventions for A and B to match Widl et al.
sebouh137 Oct 10, 2021
d3f7d08
Merge remote-tracking branch 'origin/TracTools-Test3Dev' into dev-align3
sebouh137 Oct 10, 2021
1c164e3
SVT geometry service: changed meaning of rx,ry,rz to be rotation angl…
raffaelladevita Oct 11, 2021
e80280b
Merge remote-tracking branch 'origin/TracTools-Test3Dev' into dev-align3
sebouh137 Oct 12, 2021
57b87f7
# WARNING: head commit changed in the meantime
sebouh137 Oct 15, 2021
1235d47
removed an unnecessary print statement of track parameters. Should only
sebouh137 Oct 19, 2021
4600ceb
CVT: writing out banks for events with no tracks
raffaelladevita Oct 19, 2021
c70546a
CVT: better checks on SVT cross error calculation
raffaelladevita Oct 19, 2021
e65730e
CVT: switched to using new adaptive swimming for helical tracks, firs…
raffaelladevita Oct 19, 2021
6bf5cf7
updating yamls to use the newly relocated io service and fixing null …
raffaelladevita Oct 20, 2021
79d6dce
one more null exception fix
raffaelladevita Oct 20, 2021
fbdd80b
one more null exception fix
raffaelladevita Oct 20, 2021
73ea134
one more attempt
raffaelladevita Oct 20, 2021
0fa65bc
one more attempt 2
raffaelladevita Oct 20, 2021
eab9d24
CVT : fixed bug in cross error calculation
raffaelladevita Oct 20, 2021
7fa8286
CVT: fixing more exception
raffaelladevita Oct 20, 2021
201d6ea
CVT: updated cosmic tracking to support rotations based on existing m…
raffaelladevita Oct 25, 2021
ba945df
Switch to new libraries functionality.
zieglerv Oct 27, 2021
859d294
Move overlap remover before trajectory making.
zieglerv Oct 27, 2021
eb1f0ef
CVT: Cellular Automaton updated to account for new geometry; switched…
raffaelladevita Oct 28, 2021
d2bdadc
Merge remote-tracking branch 'origin/TracTools-Test3Dev' into HEAD
sebouh137 Oct 30, 2021
c4e8a36
convert ray parameters to helix parameters for cosmics (for compariso…
sebouh137 Oct 30, 2021
0693204
CVT:
raffaelladevita Oct 31, 2021
8cc26c3
Swmming: set limit to minimum step size
raffaelladevita Oct 31, 2021
23cbb1e
Swmming: set limit to minimum step size
raffaelladevita Oct 31, 2021
ddf1b00
Swmming: removed printout
raffaelladevita Oct 31, 2021
29fe5cd
Merge remote-tracking branch 'origin/TracTools-Test3Dev' into dev-align3
sebouh137 Nov 1, 2021
6ce239a
extended number of elements of matrix A (alignment derivatives), sinc…
sebouh137 Nov 2, 2021
20ee94d
CVT: added method to filter good tracks, removed printout from swim-t…
raffaelladevita Nov 2, 2021
df5cdc7
Merged TracTools-Test4DeV to get new functionality to choose between …
raffaelladevita Nov 4, 2021
39ce372
CVT: unified fit seed method and improved handling of cross update ba…
raffaelladevita Nov 4, 2021
ce98a14
merged development
raffaelladevita Nov 4, 2021
b0f46fc
updated version number in clas-tracking pom
raffaelladevita Nov 4, 2021
de449e1
updated version number in clas-tracking pom
raffaelladevita Nov 4, 2021
e2ba86b
updated cvt pom file
raffaelladevita Nov 5, 2021
9e7a166
updated version number in coat-lib pom
raffaelladevita Nov 5, 2021
4d0d078
adapations for cosmic tracking... check which sector to use, etc. Don't
sebouh137 Nov 5, 2021
1c70738
Merge remote-tracking branch 'origin/TracTools-Test3Dev' into dev-align3
sebouh137 Nov 5, 2021
6cfdea9
CVT: fixed bug in helical track trajectory calculation for negative t…
raffaelladevita Nov 5, 2021
097d545
CVT: added seeds bank and seedId in tracks banks; clean-up of trackID…
raffaelladevita Nov 8, 2021
1fa09ea
fixed bug in cluster residuals for BMT, introduced with previous commit
raffaelladevita Nov 8, 2021
79a95f7
CVT: imported Veronique fix for isolated clusters
raffaelladevita Nov 8, 2021
767553a
Merge remote-tracking branch 'origin/TracTools-Test3Dev' into dev-align3
sebouh137 Nov 8, 2021
2f09282
Merge remote-tracking branch 'origin/TracTools-Test3Dev' into dev-align3
sebouh137 Nov 8, 2021
2ac2c1a
Loosen number of SVT crosses requirement for cosmic PR
zieglerv Nov 11, 2021
f709b78
Merge remote-tracking branch 'origin/TracTools-Test3Dev' into dev-align3
sebouh137 Nov 12, 2021
9ca6286
Added timing cut of 50 ns for the selection of BMT hits in data.
zieglerv Nov 19, 2021
92d6904
CVT: propagated material information (T, Z/A, T/X0) from geometry con…
raffaelladevita Nov 22, 2021
014046a
merged with TracTools-Test3Dev
sebouh137 Nov 23, 2021
8fabe9e
YAML config for Algorithm for isolated clusters on track search for t…
zieglerv Nov 23, 2021
7cfb144
Merge remote-tracking branch 'origin/TracTools-Test3Dev' into dev-align3
sebouh137 Nov 28, 2021
f8426a1
CVT: fixed seed charge, various code cleanups
raffaelladevita Nov 28, 2021
d2db27d
Merge remote-tracking branch 'origin/TracTools-Test3Dev' into dev-align3
sebouh137 Nov 28, 2021
063fe13
Fix trkId =0 for BMT clusters.
zieglerv Nov 29, 2021
fb67dee
Merge branch 'TracTools-Test3Dev' of https://github.com/JeffersonLab/…
zieglerv Nov 29, 2021
1b3d6d4
Merge remote-tracking branch 'origin/TracTools-Test3Dev' into dev-align3
sebouh137 Nov 30, 2021
fbfee32
Fix empty trajectories.
zieglerv Dec 2, 2021
40591a9
Fix trajectories.
zieglerv Dec 3, 2021
5e87652
Merge remote-tracking branch 'origin/TracTools-Test3Dev' into dev-align3
sebouh137 Dec 3, 2021
bffd0f4
extending the droBanks option to EngineProcessor(recon-util) (#730)
raffaelladevita Nov 10, 2021
b716bee
add line to force the torus and solenoid field to zero in cosmic trac…
sebouh137 Dec 6, 2021
5d0ed58
a few minor changes... default doca cut for non cosmics is 10 mm; req…
sebouh137 Dec 6, 2021
c6ae64c
SVT geometry: fixed signed of ra rotation for inverse transform
raffaelladevita Dec 7, 2021
748821c
SVT geometry: fixed signed of ra rotation for inverse transform
raffaelladevita Dec 7, 2021
e1e82c9
Merge remote-tracking branch 'origin/TracTools-Test3Dev' into dev-align3
sebouh137 Dec 7, 2021
25912ae
Functionality to remove or add beam spot constraint in track fitting.
zieglerv Dec 7, 2021
efc1122
Functionality to remove or add beam spot constraint in track fitting.
zieglerv Dec 7, 2021
16af93c
Merge remote-tracking branch 'origin/TracTools-Test3Dev' into dev-align3
sebouh137 Dec 8, 2021
92a7056
Merge branch 'dev-align3' of https://github.com/JeffersonLab/clas12-o…
sebouh137 Dec 8, 2021
685535f
changes to beamspot in output for KAA
sebouh137 Dec 8, 2021
7759e74
Merge branch 'dev-align3' of https://github.com/JeffersonLab/clas12-o…
sebouh137 Dec 8, 2021
7c85117
beamspot resolution to 600 um
sebouh137 Dec 8, 2021
14a44d1
Merge branch 'dev-align3' of https://github.com/JeffersonLab/clas12-o…
sebouh137 Dec 8, 2021
20d6a72
Use of measurement plane including beam spot in KF
zieglerv Dec 8, 2021
4e3132d
Use of measurement plane including beam spot in KF
zieglerv Dec 8, 2021
861b5be
Use of measurement plane including beam spot in KF for 0T events
zieglerv Dec 8, 2021
01ce2c1
Iterate fit to estimate circle parameters without Beam Spot constrain…
zieglerv Dec 9, 2021
9e2a832
Merge remote-tracking branch 'origin/TracTools-Test3Dev' into dev-align3
sebouh137 Dec 10, 2021
eeb2a60
merged FittedHit functionality in Hit class to be able to write out a…
raffaelladevita Dec 10, 2021
ec6551e
Merge branch 'TracTools-Test3Dev' of github.com:JeffersonLab/clas12-o…
raffaelladevita Dec 10, 2021
25de8e2
Merged recent changes for beam spot
raffaelladevita Dec 10, 2021
b9e20e8
catch exception from conversion of gemc BMT bank for backward compati…
raffaelladevita Dec 10, 2021
428fe47
Merge pull request #763 from JeffersonLab/TracTools-Test3DevHits
zieglerv Dec 10, 2021
3389829
merged with TracTools-Test3Dev
sebouh137 Dec 12, 2021
98713f9
merged with TracTools-Test3Dev
sebouh137 Dec 12, 2021
aaab47a
Added SVT TDC information from ADC=-1 events, added flag to turn of/o…
raffaelladevita Dec 13, 2021
b95fe59
Transform KF cov mat representation to helix cov mat representation.
zieglerv Dec 13, 2021
390250f
Bank for track 6x6 covariance matrix in track representation (x,y,z,p…
zieglerv Dec 14, 2021
fdcdf89
Bank for track 6x6 covariance matrix in track representation (x,y,z,p…
zieglerv Dec 14, 2021
f6d611a
Implemented output bank for track 6x6 covariance matrix in track repr…
zieglerv Dec 14, 2021
5e6417b
added error to SVT cluster bank
raffaelladevita Dec 14, 2021
aa7304d
Merge branch 'TracTools-Test3Dev' of github.com:JeffersonLab/clas12-o…
raffaelladevita Dec 14, 2021
15d3230
recovering beam-spot yaml variable
raffaelladevita Dec 14, 2021
547467d
Merge remote-tracking branch 'origin/TracTools-Test3Dev' into dev-align3
sebouh137 Dec 14, 2021
c392bed
Merge branch 'dev-align3' of https://github.com/JeffersonLab/clas12-o…
sebouh137 Dec 14, 2021
b46cd25
Fix for unit direction vector in trajectory bank
zieglerv Dec 16, 2021
d6869ce
Exit fit if track curvature goes to zero.
zieglerv Dec 16, 2021
0084759
Fill empty cross slots with id -1 in track bank.
zieglerv Dec 16, 2021
d6e2b3a
Settings for rescaling the seed covariance matrix.
zieglerv Dec 16, 2021
873e214
Settings for rescaling the track covariance matrix from the KFit.
zieglerv Dec 16, 2021
c53e1db
Settings for rescaling the track covariance matrix from the KFit.
zieglerv Dec 16, 2021
331de56
Fix for zero curvature tracks.
zieglerv Dec 16, 2021
5e6988b
Merge remote-tracking branch 'origin/TracTools-Test3Dev' into dev-align3
sebouh137 Dec 17, 2021
8c33f3d
Merge branch 'dev-align3' of https://github.com/JeffersonLab/clas12-o…
sebouh137 Dec 17, 2021
295ee19
Removed unneccessary check on seed and track IDs in BankWriter
raffaelladevita Dec 20, 2021
61ec23d
check circle fit convergence and propagate fit status; drop seeds who…
raffaelladevita Dec 20, 2021
0f1b48c
Merge remote-tracking branch 'origin/TracTools-Test3Dev' into dev-align3
sebouh137 Dec 20, 2021
14c2cc0
Merge branch 'dev-align3' of https://github.com/JeffersonLab/clas12-o…
sebouh137 Dec 20, 2021
f604591
revert to no-beam-spot constraint for KF, fixed light speed units in …
raffaelladevita Dec 22, 2021
f2d8c78
Merge remote-tracking branch 'origin/TracTools-Test3Dev' into dev-align3
sebouh137 Dec 23, 2021
d78a44a
Merge branch 'dev-align3' of https://github.com/JeffersonLab/clas12-o…
sebouh137 Dec 23, 2021
0613be0
clas-tracking: Modifications to KF to correct for anomalies in covari…
raffaelladevita Jan 4, 2022
130b96b
Straight tracks from target: fixed definition of F matrix and reverte…
raffaelladevita Jan 5, 2022
671f819
Bug fix: removed overwriting of beam spot error
raffaelladevita Jan 6, 2022
7da4d09
Removed printout
raffaelladevita Jan 6, 2022
01f0651
Update local angle calculations for BMT and SVT
raffaelladevita Jan 7, 2022
73dfb39
CVT cosmic reconstruction
raffaelladevita Jan 9, 2022
5df9cb5
Added methods to generate measurement surfaces to BMT and SVT geometr…
raffaelladevita Jan 9, 2022
7c15a37
Updated treatment of multiple scattering:
raffaelladevita Jan 12, 2022
b0666d4
Merge remote-tracking branch 'origin/TracTools-Test5Dev' into dev-align3
sebouh137 Jan 14, 2022
6219836
Merge branch 'dev-align3' of https://github.com/JeffersonLab/clas12-o…
sebouh137 Jan 14, 2022
2ae33ca
Added subtract method for StateVec
raffaelladevita Jan 16, 2022
79afc62
Apply exclude-layer option in the KF, disable seed refit because it c…
raffaelladevita Jan 16, 2022
d218e36
Read beam offset for actual run number with the ConstantManager, beam…
raffaelladevita Jan 17, 2022
22339f4
Merge remote-tracking branch 'origin/TracTools-Test5Dev' into dev-align3
sebouh137 Jan 18, 2022
33e2793
Merge branch 'dev-align3' of https://github.com/JeffersonLab/clas12-o…
sebouh137 Jan 18, 2022
e981a1d
modified RecoBankReader.java to allow compilation
sebouh137 Jan 18, 2022
88fabd9
Merge branch 'dev-align3' of https://github.com/JeffersonLab/clas12-o…
sebouh137 Jan 18, 2022
77020cf
modified CVTAlignment.java to allow compilation
sebouh137 Jan 18, 2022
296d180
Merge branch 'dev-align3' of https://github.com/JeffersonLab/clas12-o…
sebouh137 Jan 18, 2022
c0ced70
Disabled reseeding when excludeLayers option is chosen for cosmics. T…
raffaelladevita Jan 18, 2022
31ed42b
clas-tracking cleanups: removed commented code, fixed warnings, ...
raffaelladevita Jan 18, 2022
62227fb
CVT package cleanup: make syntax more uniform, address warnings, remo…
raffaelladevita Jan 19, 2022
c9cd218
merged with origin/TracTools-Test3Dev
sebouh137 Jan 19, 2022
a0977ac
fixed things that broke in the merge
sebouh137 Jan 19, 2022
9e1f7da
fixed issue with RecoBankReader (units for xb and yb)
sebouh137 Jan 19, 2022
711660a
Changed default setting to include beam-spot cnstraint on seeding onl…
raffaelladevita Jan 20, 2022
5d9fae6
Merge remote-tracking branch 'origin/TracTools-Test5Dev' into dev-align3
sebouh137 Jan 31, 2022
498c432
removed line to set p=1 for straight tracks
sebouh137 Feb 3, 2022
c3c6593
added functionality to do get residuals from curved tracks in alignme…
sebouh137 Mar 28, 2022
41216be
fixed a bug in the previous commit
sebouh137 Mar 28, 2022
d251706
Merged development
raffaelladevita Aug 1, 2022
9c9153e
Merge branch 'development' into dev-align44
raffaelladevita Aug 5, 2022
a22f4d9
merged development into dev-align3, switched cvt alignment service to…
raffaelladevita Aug 6, 2022
37bdd01
passing bank names to RecoBankReader methods for handling alignment w…
raffaelladevita Aug 6, 2022
76b6f39
revert cvt alignment to use original bank reader
raffaelladevita Aug 6, 2022
c3c3ce4
fixing some missing units conversion
raffaelladevita Aug 6, 2022
20f22e6
set straight tracks momentum to 100 GeV for alignment
raffaelladevita Aug 7, 2022
eb4d408
add checks on NaNs for cosmic tracks
raffaelladevita Aug 13, 2022
94a5b9b
restored 1 GeV momentum for straight tracks
raffaelladevita Aug 13, 2022
c6906ec
forcing magnetic field to be zero for cosmics, fix to phi->strip numb…
raffaelladevita Aug 13, 2022
e6bd110
cvt alignment code cleanup and switch to ejml
raffaelladevita Aug 14, 2022
7d01474
switching again straight track momentum to 100 GeV
raffaelladevita Aug 14, 2022
f725fa3
test: empty commit
c-dilks Feb 16, 2024
86fbc53
Merge remote-tracking branch 'origin/development' into dev-align3
c-dilks Feb 16, 2024
b8bbbc6
Merge remote-tracking branch 'origin/development' into dev-align3
c-dilks Feb 16, 2024
9c4b215
fix: some build fixes
c-dilks Feb 16, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ else if( value == "tube" ) // offset by boxNum to reset row for CCDB table
SUPPORTRADIUS[region] = cp.getDouble(ccdbPath+"region/CuSupportInnerRadius", region); // radius to inner side of heatSinkRidge

for( int m = 0; m < NMODULES; m++ )
{
{
switch( m )
{
case 0: // U = lower / inner
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,13 @@ public HitOnTrack(int layer, int sector, StateVec sv, double tRes, double fRes,
this.filteredResidual = fRes;
this.smoothedResidual = sRes;
}

@Override
public String toString() {
String str = String.format("HitOnTrack layer=%d sector=%d x=%.3f y=%.3f z=%.3f px=%.3f py=%.3f pz=%.3f residual=%.3f",
this.layer, this.sector, this.x, this.y, this.z, this.px, this.py, this.pz, this.residual);
return str;
}
}

public void printConfig() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public double[][] filterCovMat(double[] H, double[][] Carr, double V) {
}
return Cinv;
}

public double[][] smoothCovMat(double[][] C_n_kp1, double[][] C_k, double[][] A , double[][] C_k_kp1) {
double[][] At = null;
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public void runFitterNoFiltFailSafe() {
public void runFitter() {
this.runFitter(sv, mv);
}

public double getChi2() {
return this.getChi2(0);
}
Expand Down Expand Up @@ -186,9 +186,10 @@ public void runFitter(AStateVecs sv, AMeasVecs mv) {
if(Double.isNaN(newchisq) ||
sv.smoothed().get(0)==null ||
sv.smoothed().get(0).kappa==0 ||
Double.isNaN(sv.smoothed().get(0).kappa)) {
this.setFitFailed = true;
break;
Double.isNaN(sv.smoothed().get(0).kappa) ||
Double.isNaN(sv.smoothed().get(0).dz)) {
this.setFitFailed = true;
break;
}
// if chi2 improved and curvature is non-zero, save fit results but continue iterating
else if(newchisq < this.chi2) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import org.jlab.clas.tracking.kalmanfilter.Surface;
import org.jlab.clas.tracking.kalmanfilter.Units;
import org.jlab.clas.tracking.trackrep.Helix;
import org.jlab.clas.tracking.utilities.MatrixOps;
import org.jlab.geom.prim.Line3D;
import org.jlab.geom.prim.Point3D;
import org.jlab.geom.prim.Vector3D;
Expand All @@ -18,11 +17,11 @@
*/
public class StateVecs extends AStateVecs {


@Override
public boolean getStateVecPosAtMeasSite(StateVec sv, AMeasVecs.MeasVec mv, Swim swim) {
double[] swimPars = new double[7];

if(mv.surface==null) return false;

int dir = (int) Math.signum(mv.k-sv.k);
Expand All @@ -41,27 +40,32 @@ public boolean getStateVecPosAtMeasSite(StateVec sv, AMeasVecs.MeasVec mv, Swim
if(this.straight) {

Point3D st = new Point3D(sv.x, sv.y, sv.z);
Vector3D stu = new Vector3D(sv.px,sv.py,sv.pz).asUnit();
Vector3D stu = new Vector3D(sv.px*dir,sv.py*dir,sv.pz*dir).asUnit();

if(mv.surface.plane!=null) {
Line3D toPln = new Line3D(st, stu);
Point3D inters = new Point3D();
int ints = mv.surface.plane.intersection(toPln, inters);
sv.x = inters.x();
sv.y = inters.y();
sv.z = inters.z();
sv.z = inters.z();
sv.path = inters.distance(st);
}
else if(mv.surface.cylinder!=null) {
mv.surface.toLocal().apply(st);
mv.surface.toLocal().apply(stu);
double r = mv.surface.cylinder.baseArc().radius();
double delta = Math.sqrt((st.x()*stu.x()+st.y()*stu.y())*(st.x()*stu.x()+st.y()*stu.y())-(-r*r+st.x()*st.x()+st.y()*st.y())*(stu.x()*stu.x()+stu.y()*stu.y()));
double l = (-(st.x()*stu.x()+st.y()*stu.y())+delta)/(stu.x()*stu.x()+stu.y()*stu.y());
if(Math.signum(st.y()+l*stu.y())!=mv.hemisphere) {
l = (-(st.x()*stu.x()+st.y()*stu.y())-delta)/(stu.x()*stu.x()+stu.y()*stu.y());
}
double l1 = (-(st.x()*stu.x()+st.y()*stu.y())+delta)/(stu.x()*stu.x()+stu.y()*stu.y());
double l2 = (-(st.x()*stu.x()+st.y()*stu.y())-delta)/(stu.x()*stu.x()+stu.y()*stu.y());
// if(Math.signum(st.y()+l*stu.y())!=mv.hemisphere) {
double l = l1;
if(l1>0 && l2<0) l = l1;
else if(l1<0 && l2>0) l = l2;
else if(l1>0 && l2>0) l = l1 < l2 ? l1 : l2;
else return false;
Point3D inters = new Point3D(st.x()+l*stu.x(),st.y()+l*stu.y(),st.z()+l*stu.z());
if(l<0) System.out.println("arghhhhhhhhhh "+ mv.layer + " " + mv.surface.getSector() + " " + st.toString() + " " + stu.toString() + " " + inters.toString());
mv.surface.toGlobal().apply(inters);
// RDV: should switch to use clas-geometry intersection method, not done now to alwys return a value
sv.x = inters.x();
Expand Down Expand Up @@ -241,7 +245,7 @@ public double[][] Q(StateVec vec, AMeasVecs mv) {
double cosEntranceAngle = this.getLocalDirAtMeasSite(vec, mv.measurements.get(vec.k));

double p = Math.sqrt(vec.px*vec.px + vec.py*vec.py + vec.pz*vec.pz);
if(this.straight) p = 1;
if(this.straight) p = 100;

// Highland-Lynch-Dahl formula
double sctRMS = surf.getThetaMS(p, mass, cosEntranceAngle);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,12 @@ public void runFitter(AStateVecs sv, AMeasVecs mv) {
// chi2
double newchisq = this.calc_chi2(sv, mv);
// if curvature is 0, fit failed
if(Double.isNaN(newchisq) || sv.smoothed().get(0)==null) {
if(Double.isNaN(newchisq) ||
sv.smoothed().get(0)==null ||
Double.isNaN(sv.smoothed().get(0).x0) ||
Double.isNaN(sv.smoothed().get(0).z0) ||
Double.isNaN(sv.smoothed().get(0).tx) ||
Double.isNaN(sv.smoothed().get(0).tz)) {
this.setFitFailed = true;
break;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public double[][] Q(StateVec vec, AMeasVecs mv) {
Surface surf = mv.measurements.get(vec.k).surface;
double cosEntranceAngle = this.getLocalDirAtMeasSite(vec, mv.measurements.get(vec.k));

double p = 1;
double p = 100;

// Highland-Lynch-Dahl formula
double sctRMS = surf.getThetaMS(p, mass, cosEntranceAngle);
Expand Down
4 changes: 2 additions & 2 deletions reconstruction/cvt/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@

<dependencies>

<dependency>
<groupId>org.jlab.clas</groupId>
<dependency>
<groupId>org.jlab.clas</groupId>
<artifactId>clas-jcsg</artifactId>
<version>10.0.6-SNAPSHOT</version>
</dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public static Constants getInstance() {
}
return instance;
}

private static boolean ConstantsLoaded;

// parameters configurable from yaml
Expand Down Expand Up @@ -326,8 +326,8 @@ public static double[][] scaleCovMat(double[][] matrix) {
}
return scaledMatrix;
}


private static final double D0 = 10; // 10 mm
private static final double DPHI0 = Math.toRadians(10); // 10 deg
private static final double DRHO = 0.01; // ~6-7 on kappa, i.e. 150 MeV on pt
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package org.jlab.rec.cvt;

import cnuphys.magfield.MagneticFields;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
Expand Down Expand Up @@ -74,6 +75,10 @@ public synchronized static void initialize(String variation, int run, IndexedTab

private synchronized void load(String variation, int run, IndexedTable svtLorentz, IndexedTable bmtVoltage) {

if(Constants.getInstance().isCosmics) {
MagneticFields.getInstance().getSolenoid().setScaleFactor(1e-7);
MagneticFields.getInstance().getTorus().setScaleFactor(1e-7);
}
// Load target
ConstantProvider providerTG = GeometryFactory.getConstants(DetectorType.TARGET, run, variation);
this.zTarget = providerTG.getDouble("/geometry/target/position",0)*10;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,156 @@
package org.jlab.rec.cvt.alignment;

import java.util.ArrayList;
import java.util.List;
import java.util.Collections;

import org.jlab.detector.base.DetectorType;
import org.jlab.geom.prim.Line3D;
import org.jlab.geom.prim.Vector3D;
import org.jlab.io.base.DataBank;
import org.jlab.io.base.DataEvent;
import org.jlab.rec.cvt.banks.RecoBankReader;
import org.jlab.rec.cvt.bmt.BMTGeometry;
import org.jlab.rec.cvt.cluster.Cluster;
import org.jlab.rec.cvt.cross.Cross;
import org.jlab.rec.cvt.hit.Hit;
import org.jlab.rec.cvt.hit.Strip;
import org.jlab.rec.cvt.track.StraightTrack;
import org.jlab.rec.cvt.track.Track;
import org.jlab.rec.cvt.trajectory.Helix;

/**
*
* @author spaul
*
*/
public class AlignmentBankReader {

public List<StraightTrack> getCosmics(DataEvent event) {


var SVThits = RecoBankReader.readBSTHitBank(event, "BST::Hits");
var BMThits = RecoBankReader.readBMTHitBank(event, "BMT::Hits");
if(SVThits!= null) {
Collections.sort(SVThits);
}
if(BMThits!=null) {
for(Hit hit : BMThits) {
hit.getStrip().calcBMTStripParams(hit.getSector(), hit.getLayer(), swimmer);
}
Collections.sort(BMThits);
}

var _SVTclusters = RecoBankReader.readBSTClusterBank(event, SVThits, "BSTRec::Clusters");
var _BMTclusters = RecoBankReader.readBMTClusterBank(event, BMThits, "BMTRec::Clusters");


var _SVTcrosses = RecoBankReader.readBSTCrossBank(event, _SVTclusters, "BSTRec::Crosses");
var _BMTcrosses = RecoBankReader.readBMTCrossBank(event, _BMTclusters, "BMTRec::Crosses");
if(_SVTcrosses!=null) {
for(Cross cross : _SVTcrosses) {
cross.setCluster1(_SVTclusters.get(cross.getCluster1().getId()-1));
cross.setCluster2(_SVTclusters.get(cross.getCluster2().getId()-1));
}
}
if(_BMTcrosses!=null) {
for(Cross cross : _BMTcrosses) {
cross.setCluster1(_BMTclusters.get(cross.getCluster1().getId()-1));
}
}

List<StraightTrack> tracks = RecoBankReader.readCVTCosmicsBank(event, "CVTRec::Cosmics");
if(tracks == null)
return null;

for(StraightTrack track : tracks) {

List<Cross> crosses = new ArrayList<>();
for(Cross c : track) {
if(_SVTcrosses!=null && c.getDetector()==DetectorType.BST) {
for(Cross cross : _SVTcrosses) {
if(c.getId() == cross.getId())
crosses.add(cross);
}
}
if(_BMTcrosses!=null && c.getDetector()==DetectorType.BMT) {
for(Cross cross : _BMTcrosses) {
if(c.getId() == cross.getId())
crosses.add(cross);
}
}
}
track.clear();
track.addAll(crosses);
}

return tracks;
}

public List<Track> getTracks(DataEvent event) {


var SVThits = RecoBankReader.readBSTHitBank(event, "BST::Hits");
var BMThits = RecoBankReader.readBMTHitBank(event, "BMT::Hits");
if(SVThits!= null) {
Collections.sort(SVThits);
}
if(BMThits!=null) {
for(Hit hit : BMThits) {
hit.getStrip().calcBMTStripParams(hit.getSector(), hit.getLayer(), swimmer);
}
Collections.sort(BMThits);
}

var _SVTclusters = RecoBankReader.readBSTClusterBank(event, SVThits, "BSTRec::Clusters");
var _BMTclusters = RecoBankReader.readBMTClusterBank(event, BMThits, "BMT::Clusters");


var _SVTcrosses = RecoBankReader.readBSTCrossBank(event, _SVTclusters, "BSTRec::Crosses");
var _BMTcrosses = RecoBankReader.readBMTCrossBank(event, _BMTclusters, "BMTRec::Crosses");
if(_SVTcrosses!=null) {
for(Cross cross : _SVTcrosses) {
cross.setCluster1(_SVTclusters.get(cross.getCluster1().getId()-1));
cross.setCluster2(_SVTclusters.get(cross.getCluster2().getId()-1));
}
}
if(_BMTcrosses!=null) {
for(Cross cross : _BMTcrosses) {
cross.setCluster1(_BMTclusters.get(cross.getCluster1().getId()-1));
}
}
double xb = 0.0; /////// FIXME
double yb = 0.0; /////// FIXME
_CVTseeds = RecoBankReader.readCVTSeedsBank(event, xb, yb, _SVTcrosses, _BMTcrosses, "CVT::Seeds");

List<Track> tracks = RecoBankReader.readCVTTracksBank(event, xb, yb, _CVTseeds, _SVTcrosses, _BMTcrosses, "CVTRec::Tracks");
if(tracks == null)
return null;

for(Track track : tracks) {

List<Cross> crosses = new ArrayList<>();
for(Cross c : track) {
if(_SVTcrosses!=null && c.getDetector()==DetectorType.BST) {
for(Cross cross : _SVTcrosses) {
if(c.getId() == cross.getId())
crosses.add(cross);
}
}
if(_BMTcrosses!=null && c.getDetector()==DetectorType.BMT) {
for(Cross cross : _BMTcrosses) {
if(c.getId() == cross.getId())
crosses.add(cross);
}
}
}
track.clear();
track.addAll(crosses);

}

return tracks;
}


}
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
package org.jlab.rec.cvt.alignment;

import java.util.List;

import org.jlab.io.base.DataBank;
import org.jlab.io.base.DataEvent;
import org.ejml.simple.SimpleMatrix;

/**
*
* @author spaul
*
*/
public class AlignmentBankWriter {

public void write_Matrix(DataEvent event, String matrixName, List<SimpleMatrix> matrices) {

//System.out.println("attempting to write matrices");
if(event == null)
System.out.println("event is null");
if(matrixName == null)
System.out.println("matrixName is null");
if(matrices == null)
System.out.println("matrix list is null");
DataBank bank = event.createBank("Align::" + matrixName, matrices.size());
for(int i = 0; i< matrices.size(); i++) {
bank.setShort("rows",i,(short) matrices.get(i).numRows());
bank.setShort("columns",i,(short) matrices.get(i).numCols());
for(int j = 0; j<matrices.get(i).numRows(); j++) {
for(int k = 0; k<matrices.get(i).numCols(); k++) {
if(Double.isNaN(matrices.get(i).get(j,k)))
System.out.println(event.getBank("RUN::config").getInt("event", 0) + " " + matrixName + " " + matrices.get(i).get(j,k));
bank.setFloat("element_"+j+"_"+k, i, (float) matrices.get(i).get(j,k));
}
}
}
event.appendBank(bank);
}
}
Loading
Loading