forked from rutgersnu/xsec_analyzer
-
Notifications
You must be signed in to change notification settings - Fork 2
jminock/xsec_analyzer
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Guide for ANNIE Usage of STV-Analysis -------------- ***Workflow*** -------------- 1. Enter the ANNIE ToolAnalysis container: './start_singularity.sh' 2. Set up the environment: 'source setup.sh' 3. Prepare input files (if necessary): 'root -l stvPrep.C' 4. Clean and compile: 'make clean' and 'make' 5. Univmake: './univmake files_to_process.txt tutorial_bin_config.txt output.root' 6. Systematic uncertainty: 'root -l tutorial_slice_plots.C' 7. XSec & Event Rate Plots: ./chi_square_cc0pi_christian ------------- ***stvPrep*** ------------- This script (stvPrep.C) prepares ANNIE MC PhaseIITree ntuples for univmake. It creates and adds flag branches used in tutorial_bin_config.txt from existing branches to the ntuple file. To use: 1. 'hadd [target file] [source file 1] ...' 2. copy/move target file outside of /pnfs/ 3. Edit target file path in stvPrep.C to match intended input 4. 'root -l stvPrep.C' **Notes**: -Input file path is hardcoded in stvPrep.C line 32 -Input file gets updated, no existing branches are rewritten -Bug: DOES NOT RUN ON FILES LOCATED IN /pnfs/ (files MUST be moved outside of /pnfs/) -DO NOT RUN DIRECTLY ON ANNIE MC PRODUCTION FILES (files get updated, make a copy first) -Currently only works with MC files, not real data files. Will need updates in future -Feel free to add extra flag/category branches! Please document any additions -Does not check if additional branches already exist ------------------------------------------------ ***Notable Differences between ANNIE & uBooNE*** ------------------------------------------------ -TTree Name - SystematicsCalculator.hh line 854 & univmake.C line 28 & chi_square_cc0pi_christian.cpp line 364 - TTree name for ANNIE files is 'phaseIITriggerTree' -POT Problem - SystematicsCalculator.hh line 861 - POT is hardcoded ANNIE MC ntuples do not include correct POT. POT is calculated externally for original GENIE files. The POT used for ANNIE MC ntuples is approximated based on the number of ntuple files to their corresponding GENIE files. A fix for this would be required in WCSim. Ensure POT on line 861 matches POT listed for onBNB in file_properties.txt The POT is ultimately an estimate. POT per event currently does not exist with ANNIE. -Spline weight - UniverseMaker.hh lines 89, 102 - Spline Weight is non-existent and unnecessary for ANNIE so the weight was replaced with 1. -Weight Types - UniverseMaker.hh lines 93-97 - ANNIE's flux weights are saved to individual branches, not to a "weight_flux_all" -univmake output - tutorial_slice_plots.C line 33 & chi_square_cc0pi_christian.cpp lines 179,666 - currently, univmake output is saved as 'output.root' -ANNIE FV & flux - includes/AnnieGeometryTools.* - uses ANNIE FV and integrated flux window --------------------------- ***Most up to date files*** --------------------------- -BG file - (just a regular ntuple with only a single event, will need an actaul BG file in future) /exp/annie/data/users/jminock/standard_tank_ntuples/PhaseIITree_bg2_ntuple.root -MC files - File name, ~# of events, ~POT, been through stvPrep? /pnfs/annie/persistent/users/jminock/v1_3_0_ntuples/PhaseIITree_40k_ntuple.root 40000 1.508e19 Y /pnfs/annie/persistent/users/jminock/v1_3_0_ntuples/PhaseIITree_400k_ntuple.root 384680 1.5297e20 Y -fake data - Ntuples with only CV weight (use until we get real data working) /pnfs/annie/persistent/users/jminock/fake-data/* ~500000 ~1.914e20 N -stv output - Currently ran with corresponding MC as both MC and fake beam data /pnfs/annie/persistent/users/jminock/stv-output/stv-40k-output.root /pnfs/annie/persistent/users/jminock/stv-output/stv-400k-output.root
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- C++ 51.6%
- C 47.8%
- Other 0.6%