# Reproducing TDR results of SNB pointing resolution
## Code for analysis (pointing resolution):
### Step-1 Making PDFs
* ES events:
* Previous samples:
* `/pnfs/dune/persistent/users/dingpf/PointResTree/ES_2/`
* CC events:
* Previous samples:
* `/pnfs/dune/persistent/users/dingpf/CC_samples/CC_from_mono/2_elec_true_en/`
* ROOT macro for making PDFs:
* `/dune/app/users/dingpf/larsoft_work/job/scripts/make_PDFs_PRT.C`
### Step-2 Reconstructing SN direction
* ROOT macro:
* `/dune/app/users/dingpf/larsoft_work/job/scripts/find_full_PR/find_full_point_res.C`
* Run on same samples above, but with the PDFs from the previous step as input;
* Reconstruct the SN direction for each SN, and save the angles between the true SN direction and reco'ed SN direction in a text file;
* The text file is used for next step.
### Step-3a Obtain pointing resolution
* ROOT macro:
* `/dune/app/users/dingpf/larsoft_work/job/scripts/get_SN_pointres.C`
* Using text file from Step-2 as input.
### Step-3b Plot pointing resolution
* ROOT macro:
* `/dune/app/users/ajroeth/larsoft_work/job/scripts/plot_SN_pointres.C`
* Using text file from Step-2 as input.