An analysis code for ANASEN analysis
Go to file
Sudarsan Balakrishnan 2f43903269 * Main logic broken up into subunits that aim to be self-contained. The entirety of the analysis is aimed to follow:
- find sx3 events, gainmatch them, calibrate, make a vector of these called SX3_Events
	- same step for QQQ, call it QQQ_Events
	- find anodeWire clusters, cathodeWire clusters, make vectors of these
	- make PC_Events from wire clusters, save 'anode only' and 'cathode only' cases just in case

* since PC_Events, QQQ_Events, SX3_Events are all STL containers, we can pass them to functions that perform modular analyses
* In this commit:
	- 4-wire offsets used, along with reliably figuring out phi-offset between QQQ/SX3/PC. We are close, except for some QQQ fine-tuning due to their angular extent not being 90 deg
	- the pczfix step now makes sense, 1-wire calculations also loosely match between guess and pcz
	- the nonlinearity correction/dynamic range fix is just adding to the resolution
	- p(a,a) data analysable by QQQ alphas show good kinematics, when doing the following gates:
		>  A1C1 event pczs dithered, A1C2 events made into pczfix
		>  phicut (45 deg) to gate out p+a correlations, SiE < 5 MeV && PCa > 6000 to select the alpha blob in p+a
		>  Some selection on VertexReconXY so that the Perp() of the vertex is < 6mm
		>  Selection on VertexReconZ so that z is in [-173.6, 100]. Fine alignment pending

	- Doing all the above gives reasonable p(a,a) kinematic curves with good statistics, Ex peaked at -0.7 MeV, close but not perfect
	- The above steps, when repeated with oneWire anode events stored in aClusters also yields a very reasonable kinematic locus, and Ex value, even more statistics
	- Not sure how much of this is autocorrelation stuff but
		> VertexReconZ vs Ef in QQQ (Ef is eloss-fixed alpha energy using path length) shows sensible trends.
	- Why Ex is not centered around zero might need more thought.
	- VertexReconXY is suspiciously well-centered, might need some more thought as well.

* Some infrastructure that allows processing of 17F data is also in the pipeline now.
* One fairly important bug got fixed which was ignoring qqq.id[0] when making QQQ_Events

* Ideally, follow-ups to the above done on 27Al, 17F will make their own functions that are then called separately using booleans at the very top.
* The fate of proton dE signals is out to jury.
2026-05-29 17:45:57 -04:00
.vscode modified: MakeVertex.C 2026-02-24 21:06:24 -05:00
anasen_fem Update README 2026-03-12 12:51:54 -04:00
Armory * Main logic broken up into subunits that aim to be self-contained. The entirety of the analysis is aimed to follow: 2026-05-29 17:45:57 -04:00
elog 1) pc-calibration macros added, 2) mild bookkeeping changes to handle multiple datasets with minimal changes. more changes to delta-t etc still pending 2026-03-25 19:28:38 -04:00
ELoss modified: .gitignore 2026-02-24 11:59:01 -05:00
eloss_calculations Updates showing decent convergence on a(p,p) reaction, demonstrating a pcz offset of close to -5.0 mm for agreement 2026-04-28 17:36:02 -04:00
gmsx3 1) pc-calibration macros added, 2) mild bookkeeping changes to handle multiple datasets with minimal changes. more changes to delta-t etc still pending 2026-03-25 19:28:38 -04:00
pccal 1) pc-calibration macros added, 2) mild bookkeeping changes to handle multiple datasets with minimal changes. more changes to delta-t etc still pending 2026-03-25 19:28:38 -04:00
results * Main logic broken up into subunits that aim to be self-contained. The entirety of the analysis is aimed to follow: 2026-05-29 17:45:57 -04:00
scratch * Main logic broken up into subunits that aim to be self-contained. The entirety of the analysis is aimed to follow: 2026-05-29 17:45:57 -04:00
sx3cal Fix gitignore, add eloss calculator files and improved sx3 gainmatch files 2026-04-20 15:10:53 -04:00
.gitignore Fix gitignore, add eloss calculator files and improved sx3 gainmatch files 2026-04-20 15:10:53 -04:00
Analysis.C snapshot after 27Al experiment 2024-04-15 13:29:57 -04:00
Analyzer.C new sx3 gainmatch for 17F data's first part 2026-03-24 15:55:40 -04:00
Analyzer.h modified: .vscode/settings.json 2025-01-27 10:55:22 -05:00
Analyzer1.C new file: Analyzer1.C 2024-10-04 12:43:24 -04:00
Analyzer1.h new file: Analyzer1.C 2024-10-04 12:43:24 -04:00
BatchProcess.sh modified: .gitignore 2026-02-10 17:01:27 -05:00
buildEvents.sh kind of OK for ApplyMapping.h/C 2024-01-26 20:34:16 -05:00
Calibration.C modified: Armory/Makefile 2026-01-22 15:07:10 -05:00
Calibration.h new file: Calibration.C 2025-09-04 14:56:55 -04:00
centroids_edited.txt new file: FitHistogramsWithTSpectrum_Sequential_Improved.C 2025-01-27 15:11:27 -05:00
centroids.txt modified: Analyzer.C 2025-01-27 16:34:39 -05:00
cutlist.txt * Main logic broken up into subunits that aim to be self-contained. The entirety of the analysis is aimed to follow: 2026-05-29 17:45:57 -04:00
DataDump.C new sx3 gainmatch for 17F data's first part 2026-03-24 15:55:40 -04:00
DataDump.h new sx3 gainmatch for 17F data's first part 2026-03-24 15:55:40 -04:00
feeder.py new sx3 gainmatch for 17F data's first part 2026-03-24 15:55:40 -04:00
FitHistogramsWithTSpectrum_Sequential_Improved.C modified: Analyzer.C 2025-01-27 16:34:39 -05:00
GainMatchQQQ.C modified: .gitignore 2025-12-16 15:41:21 -05:00
GainMatchQQQ.h new file: Calibration.C 2025-09-04 14:56:55 -04:00
GainMatchSX3.C modified: .gitignore 2025-11-17 09:33:08 -05:00
GainMatchSX3.h modified: GainMatch.C 2025-05-12 17:21:25 -04:00
GainMatchSX3Front.C modified: Analyzer.C 2025-10-29 17:42:54 -04:00
GainMatchSX3Front.h new file: GainMatchSX3Front.C using a 2 step fit for the same method, going to implement a inverse fit now wherein the fronts are fit first and then the sum is fit against the backs. 2025-07-21 11:19:27 -04:00
GainMatchSX3Front1.C new file: GainMatchSX3Front.C using a 2 step fit for the same method, going to implement a inverse fit now wherein the fronts are fit first and then the sum is fit against the backs. 2025-07-21 11:19:27 -04:00
gnuplot_lookerup 1) pc-calibration macros added, 2) mild bookkeeping changes to handle multiple datasets with minimal changes. more changes to delta-t etc still pending 2026-03-25 19:28:38 -04:00
live_plotter 1) pc-calibration macros added, 2) mild bookkeeping changes to handle multiple datasets with minimal changes. more changes to delta-t etc still pending 2026-03-25 19:28:38 -04:00
MakeVertex.C * Main logic broken up into subunits that aim to be self-contained. The entirety of the analysis is aimed to follow: 2026-05-29 17:45:57 -04:00
MakeVertex.h * Main logic broken up into subunits that aim to be self-contained. The entirety of the analysis is aimed to follow: 2026-05-29 17:45:57 -04:00
MakeVertexSX3.C Partial commit with key changes as follows: 2026-05-14 18:18:17 -04:00
MakeVertexSX3.C.backup new sx3 gainmatch for 17F data's first part 2026-03-24 15:55:40 -04:00
MakeVertexSX3.h new sx3 gainmatch for 17F data's first part 2026-03-24 15:55:40 -04:00
mapping_alpha.h snapshot after 27Al experiment 2024-04-15 13:29:57 -04:00
mapping_old.txt modified: Armory/Makefile 2026-01-22 15:07:10 -05:00
mapping.h modified: ProcessRun.sh 2026-01-25 11:23:27 -05:00
MatchAndPlotCentroids.C modified: Analyzer.C 2025-01-27 16:34:39 -05:00
PCGainMatch.C modified: GainMatchSX3.C multidimfit WIP 2025-07-08 13:53:00 -04:00
PCGainMatch.h modified: Analyzer.C 2024-08-28 10:49:36 -04:00
PreAnalysis.C bug fix on Mapper 2024-03-22 18:45:13 -04:00
PreAnalysis.h Seperate the Det Class, use that in the Analysis.h/C 2024-01-27 00:57:57 -05:00
process_mapped_run.sh modified: .gitignore 2026-02-10 17:01:27 -05:00
processRun.C snapshot after 27Al experiment 2024-04-15 13:29:57 -04:00
ProcessRun.sh new sx3 gainmatch for 17F data's first part 2026-03-24 15:55:40 -04:00
QQQ_Calcheck.C modified: QQQ_Calcheck.C 2026-01-28 14:27:42 -05:00
QQQ_Calcheck.h modified: .vscode/settings.json 2025-11-26 11:32:16 -05:00
qqq_Calib.dat modified: QQQ_Calcheck.C 2026-01-28 14:27:42 -05:00
qqq_GainMatch.dat modified: QQQ_Calcheck.C 2026-01-28 14:27:42 -05:00
rootlogon.C new sx3 gainmatch for 17F data's first part 2026-03-24 15:55:40 -04:00
run_17F.sh * Main logic broken up into subunits that aim to be self-contained. The entirety of the analysis is aimed to follow: 2026-05-29 17:45:57 -04:00
run_19_22.sh new sx3 gainmatch for 17F data's first part 2026-03-24 15:55:40 -04:00
run_27Al.sh * Main logic broken up into subunits that aim to be self-contained. The entirety of the analysis is aimed to follow: 2026-05-29 17:45:57 -04:00
run_sx3.sh * Main logic broken up into subunits that aim to be self-contained. The entirety of the analysis is aimed to follow: 2026-05-29 17:45:57 -04:00
run.sh Improved sx3 strip range, and added step-ladder correction to PCZ 2026-04-14 14:07:18 -04:00
RunTimeSummary.C new file: RunTimeSummary.C 2026-02-09 16:11:07 -05:00
script.C snapshot after 27Al experiment 2024-04-15 13:29:57 -04:00
slope_intercept_cathode.dat modified: QQQ_Calcheck.C 2026-01-28 14:27:42 -05:00
slope_intercept_cathode.txt Updates showing decent convergence on a(p,p) reaction, demonstrating a pcz offset of close to -5.0 mm for agreement 2026-04-28 17:36:02 -04:00
slope_intercept_results_17F.dat Partial commit with key changes as follows: 2026-05-14 18:18:17 -04:00
slope_intercept_results_17F.txt Updates showing decent convergence on a(p,p) reaction, demonstrating a pcz offset of close to -5.0 mm for agreement 2026-04-28 17:36:02 -04:00
slope_intercept_results_26Al.txt Updates showing decent convergence on a(p,p) reaction, demonstrating a pcz offset of close to -5.0 mm for agreement 2026-04-28 17:36:02 -04:00
slope_intercept_results_27Al.dat Updates showing decent convergence on a(p,p) reaction, demonstrating a pcz offset of close to -5.0 mm for agreement 2026-04-28 17:36:02 -04:00
slope_intercept_results_27Al.txt Updates showing decent convergence on a(p,p) reaction, demonstrating a pcz offset of close to -5.0 mm for agreement 2026-04-28 17:36:02 -04:00
slope_intercept_results_anode.dat modified: QQQ_Calcheck.C 2026-01-28 14:27:42 -05:00
slope_intercept_results_anode.txt Updates showing decent convergence on a(p,p) reaction, demonstrating a pcz offset of close to -5.0 mm for agreement 2026-04-28 17:36:02 -04:00
slope_intercept_results.dat 1) pc-calibration macros added, 2) mild bookkeeping changes to handle multiple datasets with minimal changes. more changes to delta-t etc still pending 2026-03-25 19:28:38 -04:00
slope_intercept_results.txt Updates showing decent convergence on a(p,p) reaction, demonstrating a pcz offset of close to -5.0 mm for agreement 2026-04-28 17:36:02 -04:00
sx3_BackGains.txt new file: sx3_BackGains.txt 2025-10-29 17:47:40 -04:00
sx3_GainMatchfront.txt modified: .gitignore 2025-11-17 09:33:08 -05:00
Timing_Summary_Matplotlib.png new file: RunTimeSummary.C 2026-02-09 16:11:07 -05:00
TrackRecon.C modified: Armory/ANASEN_model.C 2026-02-18 12:06:54 -05:00
TrackRecon.C.backup new sx3 gainmatch for 17F data's first part 2026-03-24 15:55:40 -04:00
TrackRecon.h modified: Analyzer.C 2025-12-19 11:56:10 -05:00
WedgeChVAnode.jpeg modified: TrackRecon.C phi and theta plots for PC and QQQ included 2026-01-23 17:55:55 -05:00