modified: TrackRecon.C
modified: run_tr.sh parralelistaion of all runs and addition of CO2 percent as an environment variable
This commit is contained in:
parent
702399be84
commit
20dc8fef22
58
TrackRecon.C
58
TrackRecon.C
|
|
@ -40,8 +40,8 @@ Int_t colors[40] = {
|
||||||
|
|
||||||
bool process_alpha_proton_scattering = false;
|
bool process_alpha_proton_scattering = false;
|
||||||
bool doMiscHistograms = true;
|
bool doMiscHistograms = true;
|
||||||
bool doPCSX3ClusterAnalysis = true;
|
bool doPCSX3ClusterAnalysis = false;
|
||||||
bool doPCQQQClusterAnalysis = true;
|
bool doPCQQQClusterAnalysis = false;
|
||||||
bool doOldAnalysis = false;
|
bool doOldAnalysis = false;
|
||||||
bool do27AlapAnalysis = false;
|
bool do27AlapAnalysis = false;
|
||||||
double source_vertex = 53; // 53
|
double source_vertex = 53; // 53
|
||||||
|
|
@ -166,9 +166,10 @@ void TrackRecon::Begin(TTree * /*tree*/)
|
||||||
dataset = std::string(getenv("DATASET"));
|
dataset = std::string(getenv("DATASET"));
|
||||||
if (getenv("source_vertex"))
|
if (getenv("source_vertex"))
|
||||||
source_vertex = (double)std::atof(std::string(getenv("source_vertex")).c_str());
|
source_vertex = (double)std::atof(std::string(getenv("source_vertex")).c_str());
|
||||||
|
|
||||||
std::cout << "Dataset set to " << dataset << std::endl;
|
if (getenv("CO2percent"))
|
||||||
std::cout << "source_vertex set to " << source_vertex << std::endl;
|
CO2percent = (double)std::atof((getenv("CO2percent")));
|
||||||
|
std::cout << "CO2 percent set to " << CO2percent << std::endl;
|
||||||
|
|
||||||
pwinstance.ConstructGeo();
|
pwinstance.ConstructGeo();
|
||||||
|
|
||||||
|
|
@ -263,26 +264,25 @@ void TrackRecon::Begin(TTree * /*tree*/)
|
||||||
}
|
}
|
||||||
|
|
||||||
// ------------- ELOSS Correction read in from tables -------------
|
// ------------- ELOSS Correction read in from tables -------------
|
||||||
|
if (CO2percent == 3.0) {
|
||||||
// MeV_to_cm = new TGraph("eloss_calculations/alphas_in_250torr_mix_filtered_6MeV.txt","%lf %*lf %lf");
|
|
||||||
MeV_to_cm = new TGraph("eloss_calculations/alpha_lookup_20MeV_3pc.dat", "%lf %*lf %lf");
|
MeV_to_cm = new TGraph("eloss_calculations/alpha_lookup_20MeV_3pc.dat", "%lf %*lf %lf");
|
||||||
// MeV_to_cm = new TGraph("eloss_calculations/alpha_lookup_20MeV_4pc.dat", "%lf %*lf %lf");
|
|
||||||
cm_to_MeV = new TGraph(MeV_to_cm->GetN(), MeV_to_cm->GetY(), MeV_to_cm->GetX());
|
|
||||||
|
|
||||||
MeV_to_cm_p = new TGraph("eloss_calculations/proton_lookup_20MeV_3pc.dat", "%lf %*lf %lf");
|
MeV_to_cm_p = new TGraph("eloss_calculations/proton_lookup_20MeV_3pc.dat", "%lf %*lf %lf");
|
||||||
// MeV_to_cm_p = new TGraph("eloss_calculations/proton_lookup_20MeV_4pc.dat", "%lf %*lf %lf");
|
|
||||||
cm_to_MeVp = new TGraph(MeV_to_cm_p->GetN(), MeV_to_cm_p->GetY(), MeV_to_cm_p->GetX());
|
|
||||||
|
|
||||||
// Add these alongside your existing proton and alpha tables
|
|
||||||
MeV_to_cm_27Al = new TGraph("eloss_calculations/aluminum_lookup_80MeV_3pc.dat", "%lf %*lf %lf");
|
MeV_to_cm_27Al = new TGraph("eloss_calculations/aluminum_lookup_80MeV_3pc.dat", "%lf %*lf %lf");
|
||||||
// MeV_to_cm_27Al = new TGraph("eloss_calculations/aluminum_lookup_80MeV_4pc.dat", "%lf %*lf %lf");
|
|
||||||
cm_to_MeV_27Al = new TGraph(MeV_to_cm_27Al->GetN(), MeV_to_cm_27Al->GetY(), MeV_to_cm_27Al->GetX());
|
|
||||||
|
|
||||||
MeV_to_cm_17F = new TGraph("eloss_calculations/fluorine_lookup_70MeV_3pc.dat", "%lf %*lf %lf");
|
MeV_to_cm_17F = new TGraph("eloss_calculations/fluorine_lookup_70MeV_3pc.dat", "%lf %*lf %lf");
|
||||||
// MeV_to_cm_17F = new TGraph("eloss_calculations/fluorine_lookup_70MeV_4pc.dat", "%lf %*lf %lf");
|
}
|
||||||
|
|
||||||
|
if (CO2percent == 4.0) {
|
||||||
|
MeV_to_cm = new TGraph("eloss_calculations/alpha_lookup_20MeV_4pc.dat", "%lf %*lf %lf");
|
||||||
|
MeV_to_cm_p = new TGraph("eloss_calculations/proton_lookup_20MeV_4pc.dat", "%lf %*lf %lf");
|
||||||
|
MeV_to_cm_27Al = new TGraph("eloss_calculations/aluminum_lookup_80MeV_4pc.dat", "%lf %*lf %lf");
|
||||||
|
MeV_to_cm_17F = new TGraph("eloss_calculations/fluorine_lookup_70MeV_4pc.dat", "%lf %*lf %lf");
|
||||||
|
}
|
||||||
|
|
||||||
|
cm_to_MeV = new TGraph(MeV_to_cm->GetN(), MeV_to_cm->GetY(), MeV_to_cm->GetX());
|
||||||
|
cm_to_MeVp = new TGraph(MeV_to_cm_p->GetN(), MeV_to_cm_p->GetY(), MeV_to_cm_p->GetX());
|
||||||
|
cm_to_MeV_27Al = new TGraph(MeV_to_cm_27Al->GetN(), MeV_to_cm_27Al->GetY(), MeV_to_cm_27Al->GetX());
|
||||||
cm_to_MeV_17F = new TGraph(MeV_to_cm_17F->GetN(), MeV_to_cm_17F->GetY(), MeV_to_cm_17F->GetX());
|
cm_to_MeV_17F = new TGraph(MeV_to_cm_17F->GetN(), MeV_to_cm_17F->GetY(), MeV_to_cm_17F->GetX());
|
||||||
|
|
||||||
// cm_to_MeV.Eval(MeV_to_cm.Eval(detectedE)-PathLength) gives energy of particle before it traversed 'path length'
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Bool_t TrackRecon::Process(Long64_t entry)
|
Bool_t TrackRecon::Process(Long64_t entry)
|
||||||
|
|
@ -415,15 +415,15 @@ Bool_t TrackRecon::Process(Long64_t entry)
|
||||||
{
|
{
|
||||||
// std::cout << det.frontEL << " " << det.frontEL*sx3RightGain[id][det.stripF] << std::endl;
|
// std::cout << det.frontEL << " " << det.frontEL*sx3RightGain[id][det.stripF] << std::endl;
|
||||||
// plotter->Fill2D("be_vs_x_sx3_id_"+std::to_string(id)+"_f"+std::to_string(det.stripF)+"_b"+std::to_string(det.stripB),200,-1,1,800,0,8192,det.frontX,det.backE,"evsx");
|
// plotter->Fill2D("be_vs_x_sx3_id_"+std::to_string(id)+"_f"+std::to_string(det.stripF)+"_b"+std::to_string(det.stripB),200,-1,1,800,0,8192,det.frontX,det.backE,"evsx");
|
||||||
plotter->Fill2D("unmatched_be_vs_x_sx3_id_" + std::to_string(id), 200, -1, 1, 800, 0, 4096, det.frontX, det.backE, "evsx");
|
// plotter->Fill2D("unmatched_be_vs_x_sx3_id_" + std::to_string(id), 200, -1, 1, 800, 0, 4096, det.frontX, det.backE, "evsx");
|
||||||
plotter->Fill2D("unmatched_be_vs_x_sx3", 200, -1, 1, 800, 0, 4096, det.frontX, det.backE, "evsx");
|
// plotter->Fill2D("unmatched_be_vs_x_sx3", 200, -1, 1, 800, 0, 4096, det.frontX, det.backE, "evsx");
|
||||||
plotter->Fill2D("matched_be_vs_x_sx3", 200, -60, 60, 800, 0, 8192, det.frontX * sx3FrontGain[id][det.stripF] + sx3FrontOffset[id][det.stripF], det.backE * sx3BackGain[id][det.stripF][det.stripB], "evsx");
|
// plotter->Fill2D("matched_be_vs_x_sx3", 200, -60, 60, 800, 0, 8192, det.frontX * sx3FrontGain[id][det.stripF] + sx3FrontOffset[id][det.stripF], det.backE * sx3BackGain[id][det.stripF][det.stripB], "evsx");
|
||||||
plotter->Fill2D("matched_be_vs_x_sx3_id_" + std::to_string(id), 200, -60, 60, 800, 0, 8192, det.frontX * sx3FrontGain[id][det.stripF] + sx3FrontOffset[id][det.stripF], det.backE * sx3BackGain[id][det.stripF][det.stripB], "evsx");
|
// plotter->Fill2D("matched_be_vs_x_sx3_id_" + std::to_string(id), 200, -60, 60, 800, 0, 8192, det.frontX * sx3FrontGain[id][det.stripF] + sx3FrontOffset[id][det.stripF], det.backE * sx3BackGain[id][det.stripF][det.stripB], "evsx");
|
||||||
|
|
||||||
plotter->Fill2D("matched_be_vs_x_sx3_id_" + std::to_string(id) + "_f" + std::to_string(det.stripF), 200, -60, 60, 800, 0, 8192,
|
// plotter->Fill2D("matched_be_vs_x_sx3_id_" + std::to_string(id) + "_f" + std::to_string(det.stripF), 200, -60, 60, 800, 0, 8192,
|
||||||
det.frontX * sx3FrontGain[id][det.stripF] + sx3FrontOffset[id][det.stripF], det.backE * sx3BackGain[id][det.stripF][det.stripB], "evsx_matched");
|
// det.frontX * sx3FrontGain[id][det.stripF] + sx3FrontOffset[id][det.stripF], det.backE * sx3BackGain[id][det.stripF][det.stripB], "evsx_matched");
|
||||||
// plotter->Fill2D("fe_vs_x_sx3_id_"+std::to_string(id)+"_f"+std::to_string(det.stripF)+"_"+std::to_string(det.stripB),200,-1,1,800,0,4096,det.frontX,det.backE,"evsx");
|
// plotter->Fill2D("fe_vs_x_sx3_id_"+std::to_string(id)+"_f"+std::to_string(det.stripF)+"_"+std::to_string(det.stripB),200,-1,1,800,0,4096,det.frontX,det.backE,"evsx");
|
||||||
plotter->Fill2D("l_vs_r_sx3_id_" + std::to_string(id) + "_f" + std::to_string(det.stripF), 800, 0, 4096, 800, 0, 4096, det.frontEL, det.frontER, "l_vs_r");
|
// plotter->Fill2D("l_vs_r_sx3_id_" + std::to_string(id) + "_f" + std::to_string(det.stripF), 800, 0, 4096, 800, 0, 4096, det.frontEL, det.frontER, "l_vs_r");
|
||||||
}
|
}
|
||||||
if (det.valid && (id == 9 || id == 7 || id == 1 || id == 3) && det.stripF != DEFAULT_NULL && det.stripB != DEFAULT_NULL)
|
if (det.valid && (id == 9 || id == 7 || id == 1 || id == 3) && det.stripF != DEFAULT_NULL && det.stripB != DEFAULT_NULL)
|
||||||
{
|
{
|
||||||
|
|
@ -2034,7 +2034,8 @@ void miscHistograms_oneWire(HistPlotter *plotter, std::vector<Event> QQQ_Events,
|
||||||
// consider the 'proton-like' QQQ branch seen in a,p data
|
// consider the 'proton-like' QQQ branch seen in a,p data
|
||||||
TRandom3 rand;
|
TRandom3 rand;
|
||||||
rand.SetSeed(); // random seed set
|
rand.SetSeed(); // random seed set
|
||||||
Kinematics apkin_a(1.008664916, 4.002603254, 4.002603254, 1.008664916, 7.1); // m3 is alpha, 6.79 MeV is 7.0 MeV proton energy after kapton+100mm 4He gas (molar mass 5.2, 250 torr)
|
Kinematics apkin_a(1.008664916, 4.002603254, 4.002603254, 1.008664916, 6.34); // m3 is alpha, 6.411 MeV is 7.0 MeV proton energy after havar+kapton+100mm 4He gas (molar mass 5.2, 250 torr)
|
||||||
|
// Kinematics apkin_a(1.008664916, 4.002603254, 4.002603254, 1.008664916, 6.79); // m3 is alpha, 6.79 MeV is 7.0 MeV proton energy after kapton+100mm 4He gas (molar mass 5.2, 250 torr)
|
||||||
for (auto qqqevent : QQQ_Events)
|
for (auto qqqevent : QQQ_Events)
|
||||||
{
|
{
|
||||||
if (qqqevent.Energy1 < 0.6)
|
if (qqqevent.Energy1 < 0.6)
|
||||||
|
|
@ -2120,7 +2121,8 @@ void protonMiscHistograms(HistPlotter *plotter, std::vector<Event> QQQ_Events, s
|
||||||
// consider the 'proton-like' QQQ branch seen in a,p data
|
// consider the 'proton-like' QQQ branch seen in a,p data
|
||||||
TRandom3 rand;
|
TRandom3 rand;
|
||||||
rand.SetSeed(); // random seed set
|
rand.SetSeed(); // random seed set
|
||||||
Kinematics apkin_a(1.008664916, 4.002603254, 4.002603254, 1.008664916, 7.1); // m3 is alpha, 6.79 MeV is 7.0 MeV proton energy after kapton+100mm 4He gas (molar mass 5.2, 250 torr)
|
Kinematics apkin_a(1.008664916, 4.002603254, 4.002603254, 1.008664916, 6.34); // m3 is alpha, 6.411 MeV is 7.0 MeV proton energy after Havar+kapton+100mm 4He gas (molar mass 5.2, 250 torr)
|
||||||
|
// Kinematics apkin_a(1.008664916, 4.002603254, 4.002603254, 1.008664916, 6.79); // m3 is alpha, 6.79 MeV is 7.0 MeV proton energy after kapton+100mm 4He gas (molar mass 5.2, 250 torr)
|
||||||
for (auto qqqevent : QQQ_Events)
|
for (auto qqqevent : QQQ_Events)
|
||||||
{
|
{
|
||||||
if (qqqevent.Energy1 < 0.6)
|
if (qqqevent.Energy1 < 0.6)
|
||||||
|
|
|
||||||
207
run_tr.sh
207
run_tr.sh
|
|
@ -1,113 +1,124 @@
|
||||||
#Alpha runs at different spacer positions
|
#!/bin/bash
|
||||||
# rm results_run*.root
|
|
||||||
export flipa=0
|
# ==========================================
|
||||||
export anode_offset=0
|
# ANASEN Data Processing Script
|
||||||
export DATASET="27Al"
|
# ==========================================
|
||||||
|
|
||||||
|
echo "Pre-compiling TrackRecon.C safely on a single core..."
|
||||||
|
root -q -l -b -e '.L TrackRecon.C++O'
|
||||||
|
|
||||||
|
# Function to process a single run
|
||||||
|
process_run() {
|
||||||
|
local wrun=$(printf "%03d" "$1")
|
||||||
|
# Use PREFIX if set, otherwise default to "Run_"
|
||||||
|
local prefix="${PREFIX:-Run_}"
|
||||||
|
local out="source_run${wrun}.root"
|
||||||
|
|
||||||
|
root -q -l -b -x "../ANASEN_analysis/data/${DATASET}/${prefix}${wrun}_mapped.root" \
|
||||||
|
-e "tree->Process(\"TrackRecon.C+\", \"${out}\")" > /dev/null 2>&1
|
||||||
|
|
||||||
|
if [ -f "$out" ]; then
|
||||||
|
echo "Run $wrun completed successfully."
|
||||||
|
else
|
||||||
|
echo "ERROR: Run $wrun failed to generate $out"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
export -f process_run
|
||||||
|
|
||||||
|
# --- Block 1: 27Al Source Runs No Gas (1-8) ---
|
||||||
if [[ 1 -eq 0 ]]; then
|
if [[ 1 -eq 0 ]]; then
|
||||||
root -b -q -l -x ../ANASEN_analysis/source.root -e 'tree->Process("TrackRecon.C+O")'; mv Analyzer_SX3.root result.root;
|
export DATASET="27Al_Data"
|
||||||
#root -b -q -l -x ../ANASEN_analysis/data/27Al_Data/Run_009_mapped.root -e 'tree->Process("TrackRecon.C+O")'; mv Analyzer_SX3.root results_run09.root;
|
export PREFIX="Run_"
|
||||||
# exit
|
export CO2percent=3.0
|
||||||
root -b -q -l -x ../ANASEN_analysis/data/27Al_Data/Run_001_mapped.root -e 'tree->Process("TrackRecon.C+O")'; mv Analyzer_SX3.root results_run01.root;
|
|
||||||
root -b -q -l -x ../ANASEN_analysis/data/27Al_Data/Run_002_mapped.root -e 'tree->Process("TrackRecon.C+O")'; mv Analyzer_SX3.root results_run02.root;
|
echo "Starting parallel processing for 27Al runs..."
|
||||||
root -b -q -l -x ../ANASEN_analysis/data/27Al_Data/Run_003_mapped.root -e 'tree->Process("TrackRecon.C+O")'; mv Analyzer_SX3.root results_run03.root;
|
rm -f p_output/all.root
|
||||||
root -b -q -l -x ../ANASEN_analysis/data/27Al_Data/Run_004_mapped.root -e 'tree->Process("TrackRecon.C+O")'; mv Analyzer_SX3.root results_run04.root;
|
|
||||||
root -b -q -l -x ../ANASEN_analysis/data/27Al_Data/Run_005_mapped.root -e 'tree->Process("TrackRecon.C+O")'; mv Analyzer_SX3.root results_run05.root;
|
parallel --bar -j 6 process_run ::: {1..8}
|
||||||
root -b -q -l -x ../ANASEN_analysis/data/27Al_Data/Run_006_mapped.root -e 'tree->Process("TrackRecon.C+O")'; mv Analyzer_SX3.root results_run06.root;
|
|
||||||
root -b -q -l -x ../ANASEN_analysis/data/27Al_Data/Run_007_mapped.root -e 'tree->Process("TrackRecon.C+O")'; mv Analyzer_SX3.root results_run07.root;
|
|
||||||
root -b -q -l -x ../ANASEN_analysis/data/27Al_Data/Run_008_mapped.root -e 'tree->Process("TrackRecon.C+O")'; mv Analyzer_SX3.root results_run08.root;
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#exit
|
# --- Block 2: 27Al Alpha+Gas Runs (9, 12) ---
|
||||||
#alpha+gas 27Al
|
if [[ 1 -eq 0 ]]; then
|
||||||
export DATASET="27Al"
|
export DATASET="27Al_Data"
|
||||||
#root -q -b -x ../ANASEN_analysis/data/27Al_Data/Run_009_mapped.root -e 'tree->Process("TrackRecon.C+O")'; mv Analyzer_SX3.root results_run09.root;
|
export PREFIX="Run_"
|
||||||
|
export timecut_low=400.0
|
||||||
|
export source_vertex=53.44
|
||||||
|
export CO2percent=3.0
|
||||||
|
|
||||||
|
echo "Processing 27Al alpha+gas runs..."
|
||||||
|
parallel --bar -j 6 process_run ::: 9 12
|
||||||
|
|
||||||
|
unset timecut_low
|
||||||
|
fi
|
||||||
|
|
||||||
|
# --- Block 3: 27Al Protons+Gas Runs (15, 17-22) ---
|
||||||
|
if [[ 1 -eq 0 ]]; then
|
||||||
|
export DATASET="27Al_Data"
|
||||||
|
export PREFIX="Run_"
|
||||||
|
export source_vertex=-200.0 # Source on the entrance window
|
||||||
|
export CO2percent=3.0
|
||||||
|
echo "Starting parallel processing for 27Al proton runs..."
|
||||||
|
rm -f p_output/all.root
|
||||||
|
|
||||||
|
parallel --bar -j 6 process_run ::: 15 {17..22}
|
||||||
|
|
||||||
|
# Uncomment to merge via hadd when ready
|
||||||
|
# hadd -j 4 -k p_output/all.root p_output/results_run*.root
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
|
# --- Block 4: 17F Source Runs (5-14) ---
|
||||||
|
if [[ 1 -eq 0 ]]; then
|
||||||
|
export DATASET="17F_Data"
|
||||||
|
export PREFIX="Source_"
|
||||||
|
echo "Starting parallel processing for 17F source runs..."
|
||||||
|
rm -f p_output/all.root
|
||||||
|
|
||||||
|
parallel --bar -j 6 process_run ::: {5..13}
|
||||||
|
fi
|
||||||
|
|
||||||
|
# --- Block 5: 17F Alpha Run with Gas (18-21) ---
|
||||||
|
if [[ 1 -eq 0 ]]; then
|
||||||
|
export DATASET="17F_Data"
|
||||||
|
export PREFIX="SourceRun_"
|
||||||
|
export CO2percent=3.0
|
||||||
|
echo "Processing 17F alpha runs with dynamic source vertices..."
|
||||||
|
|
||||||
|
# Running sequentially since the source_vertex variable changes per run
|
||||||
|
export source_vertex=53.44; process_run 18
|
||||||
|
export source_vertex=14.24; process_run 19
|
||||||
|
export source_vertex=-24.96; process_run 20
|
||||||
|
export source_vertex=-73.96; process_run 21
|
||||||
|
fi
|
||||||
|
|
||||||
|
# --- Block 6: 17F Proton Data ---
|
||||||
if [[ 1 -eq 1 ]]; then
|
if [[ 1 -eq 1 ]]; then
|
||||||
#export timecut_low=230.0;
|
export DATASET="17F_Data"
|
||||||
export timecut_low=400.0;
|
export PREFIX="ProtonRun_"
|
||||||
#export timecut_high=400.0;
|
|
||||||
#export source_vertex=53.44; root -q -b -x ../ANASEN_analysis/data/27Al_Data/Run_009_mapped.root -e 'tree->Process("TrackRecon.C+O")'; mv Analyzer_SX3.root results_run09.root;
|
export source_vertex=-57.28
|
||||||
#export source_vertex=53.44; root -q -b -x ../ANASEN_analysis/data/27Al_Data/Run_010_mapped.root -e 'tree->Process("TrackRecon.C+O")'; mv Analyzer_SX3.root results_run10.root;
|
export CO2percent=4.0
|
||||||
#export source_vertex=53.44; root -q -b -x ../ANASEN_analysis/data/27Al_Data/Run_011_mapped.root -e 'tree->Process("TrackRecon.C+O")'; mv Analyzer_SX3.root results_run11.root;
|
# parallel --bar -j 6 process_run ::: {38..42} #4% CO2
|
||||||
export source_vertex=53.44; root -q -b -x ../ANASEN_analysis/data/27Al_Data/Run_012_mapped.root -e 'tree->Process("TrackRecon.C+O")'; mv Analyzer_SX3.root source_results_run12.root;
|
export CO2percent=3.0
|
||||||
# exit
|
parallel --bar -j 6 process_run ::: {44..48} #3CO2
|
||||||
#export source_vertex=53.44; root -q -b -x ../ANASEN_analysis/data/27Al_Data/Run_013_mapped.root -e 'tree->Process("TrackRecon.C+O")'; mv Analyzer_SX3.root results_run13.root;
|
# hadd -j 4 -k p_output/all.root p_output/results_run*.root
|
||||||
#exit
|
exit
|
||||||
fi
|
|
||||||
unset timecut_low
|
|
||||||
|
|
||||||
#protons+gas, 27Al
|
|
||||||
#export flip180="1"
|
|
||||||
#export flip180="0"
|
|
||||||
if [[ 1 -eq 0 ]]; then
|
|
||||||
export flipa=0
|
|
||||||
export anode_offset=0
|
|
||||||
export source_vertex=-200.0; #put the 'source' on the entrance window
|
|
||||||
root -q -b -x ../ANASEN_analysis/data/27Al_Data/Run_017_mapped.root -e 'tree->Process("TrackRecon.C+O")'; mv Analyzer_SX3.root results_run17.root;
|
|
||||||
exit
|
|
||||||
root -q -b -x ../ANASEN_analysis/data/27Al_Data/Run_018_mapped.root -e 'tree->Process("TrackRecon.C+O")'; mv Analyzer_SX3.root results_run18.root;
|
|
||||||
root -q -b -x ../ANASEN_analysis/data/27Al_Data/Run_015_mapped.root -e 'tree->Process("TrackRecon.C+O")'; mv Analyzer_SX3.root results_run15.root;
|
|
||||||
root -q -b -x ../ANASEN_analysis/data/27Al_Data/Run_019_mapped.root -e 'tree->Process("TrackRecon.C+O")'; mv Analyzer_SX3.root results_run19.root;
|
|
||||||
root -q -b -x ../ANASEN_analysis/data/27Al_Data/Run_020_mapped.root -e 'tree->Process("TrackRecon.C+O")'; mv Analyzer_SX3.root results_run20.root;
|
|
||||||
root -q -b -x ../ANASEN_analysis/data/27Al_Data/Run_021_mapped.root -e 'tree->Process("TrackRecon.C+O")'; mv Analyzer_SX3.root results_run21.root;
|
|
||||||
root -q -b -x ../ANASEN_analysis/data/27Al_Data/Run_022_mapped.root -e 'tree->Process("TrackRecon.C+O")'; mv Analyzer_SX3.root results_run22.root;
|
|
||||||
exit
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#27Al reaction data
|
# ==========================================
|
||||||
#root -b -q -l -x ../ANASEN_analysis/data/27Al_Data/Run_051_mapped.root -e 'tree->Process("TrackRecon.C+O")'; mv Analyzer_SX3.root results_run51.root;
|
# Cleanup Environment Variables
|
||||||
#root -b -q -l -x ../ANASEN_analysis/data/27Al_Data/Run_078_mapped.root -e 'tree->Process("TrackRecon.C+O")'; mv Analyzer_SX3.root results_run78.root;
|
# ==========================================
|
||||||
#root -b -q -l -x ../ANASEN_analysis/data/27Al_Data/Run_081_mapped.root -e 'tree->Process("TrackRecon.C+O")'; mv Analyzer_SX3.root results_run81.root;
|
|
||||||
|
|
||||||
#root -l -x results_run19.root results_run12.root -e "new TBrowser"
|
|
||||||
#exit
|
|
||||||
export DATASET="17F"
|
|
||||||
export flip180="0"
|
|
||||||
if [[ 1 -eq 0 ]]; then
|
|
||||||
root -q -l -b -x ../ANASEN_analysis/data/17F_Data/Source_005_mapped.root -e 'tree->Process("TrackRecon.C+O")'; mv Analyzer_SX3.root results_run05.root;
|
|
||||||
root -q -l -b -x ../ANASEN_analysis/data/17F_Data/Source_006_mapped.root -e 'tree->Process("TrackRecon.C+O")'; mv Analyzer_SX3.root results_run06.root;
|
|
||||||
root -q -l -b -x ../ANASEN_analysis/data/17F_Data/Source_007_mapped.root -e 'tree->Process("TrackRecon.C+O")'; mv Analyzer_SX3.root results_run07.root;
|
|
||||||
root -q -l -b -x ../ANASEN_analysis/data/17F_Data/Source_008_mapped.root -e 'tree->Process("TrackRecon.C+O")'; mv Analyzer_SX3.root results_run08.root;
|
|
||||||
root -q -l -b -x ../ANASEN_analysis/data/17F_Data/Source_009_mapped.root -e 'tree->Process("TrackRecon.C+O")'; mv Analyzer_SX3.root results_run09.root;
|
|
||||||
root -q -l -b -x ../ANASEN_analysis/data/17F_Data/Source_010_mapped.root -e 'tree->Process("TrackRecon.C+O")'; mv Analyzer_SX3.root results_run10.root;
|
|
||||||
root -q -l -b -x ../ANASEN_analysis/data/17F_Data/Source_011_mapped.root -e 'tree->Process("TrackRecon.C+O")'; mv Analyzer_SX3.root results_run11.root;
|
|
||||||
root -q -l -b -x ../ANASEN_analysis/data/17F_Data/Source_012_mapped.root -e 'tree->Process("TrackRecon.C+O")'; mv Analyzer_SX3.root results_run12.root;
|
|
||||||
root -q -l -b -x ../ANASEN_analysis/data/17F_Data/Source_013_mapped.root -e 'tree->Process("TrackRecon.C+O")'; mv Analyzer_SX3.root results_run13.root;
|
|
||||||
root -q -l -b -x ../ANASEN_analysis/data/17F_Data/Source_014_mapped.root -e 'tree->Process("TrackRecon.C+O")'; mv Analyzer_SX3.root results_run14.root;
|
|
||||||
fi
|
|
||||||
#17F pulser runs
|
|
||||||
#root -q -l -b -x ../ANASEN_analysis/data/17F_Data/PulserRun_015_mapped.root -e 'tree->Process("TrackRecon.C+O")'; mv Analyzer_SX3.root results_run15.root;
|
|
||||||
#root -q -l -b -x ../ANASEN_analysis/data/17F_Data/PulserRun_016_mapped.root -e 'tree->Process("TrackRecon.C+O")'; mv Analyzer_SX3.root results_run16.root;
|
|
||||||
#root -q -l -b -x ../ANASEN_analysis/data/17F_Data/PulserRun_017_mapped.root -e 'tree->Process("TrackRecon.C+O")'; mv Analyzer_SX3.root results_run17.root;
|
|
||||||
|
|
||||||
#17F alpha run with gas
|
|
||||||
if [[ 1 -eq 1 ]]; then
|
|
||||||
export source_vertex=53.44; root -q -l -b -x ../ANASEN_analysis/data/17F_Data/SourceRun_018_mapped.root -e 'tree->Process("TrackRecon.C+O")'; mv Analyzer_SX3.root source_results_run18.root;
|
|
||||||
export source_vertex=14.24; root -q -l -b -x ../ANASEN_analysis/data/17F_Data/SourceRun_019_mapped.root -e 'tree->Process("TrackRecon.C+O")'; mv Analyzer_SX3.root source_results_run19.root;
|
|
||||||
export source_vertex=-24.96; root -q -l -b -x ../ANASEN_analysis/data/17F_Data/SourceRun_020_mapped.root -e 'tree->Process("TrackRecon.C+O")'; mv Analyzer_SX3.root source_results_run20.root;
|
|
||||||
export source_vertex=-73.96; root -q -l -b -x ../ANASEN_analysis/data/17F_Data/SourceRun_021_mapped.root -e 'tree->Process("TrackRecon.C+O")'; mv Analyzer_SX3.root source_results_run21.root;
|
|
||||||
fi
|
|
||||||
#17F reaction data
|
|
||||||
#export flip180="0"
|
|
||||||
if [[ 1 -eq 0 ]]; then
|
|
||||||
export source_vertex=-57.28; root -q -l -b -x ../ANASEN_analysis/data/17F_Data/ProtonRun_035_mapped.root -e 'tree->Process("TrackRecon.C+O")'; mv Analyzer_SX3.root results_run35.root;
|
|
||||||
#export source_vertex=-8.28; root -q -l -b -x ../ANASEN_analysis/data/17F_Data/ProtonRun_036_mapped.root -e 'tree->Process("TrackRecon.C+O")'; mv Analyzer_SX3.root resulrs_run36.root;
|
|
||||||
#export source_vertex=-27.88; root -q -l -b -x ../ANASEN_analysis/data/17F_Data/ProtonRun_037_mapped.root -e 'tree->Process("TrackRecon.C+O")'; mv Analyzer_SX3.root results_run37.root;
|
|
||||||
#export source_vertex=11.32; root -q -l -b -x ../ANASEN_analysis/data/17F_Data/ProtonRun_038_mapped.root -e 'tree->Process("TrackRecon.C+O")'; mv Analyzer_SX3.root results_run38.root;
|
|
||||||
#export source_vertex=30.92; root -q -l -b -x ../ANASEN_analysis/data/17F_Data/ProtonRun_039_mapped.root -e 'tree->Process("TrackRecon.C+O")'; mv Analyzer_SX3.root results_run39.root;
|
|
||||||
#export source_vertex=50.52; root -q -l -b -x ../ANASEN_analysis/data/17F_Data/ProtonRun_041_mapped.root -e 'tree->Process("TrackRecon.C+O")'; mv Analyzer_SX3.root results_run41.root;
|
|
||||||
#export source_vertex=70.12; root -q -l -b -x ../ANASEN_analysis/data/17F_Data/ProtonRun_042_mapped.root -e 'tree->Process("TrackRecon.C+O")'; mv Analyzer_SX3.root results_run42.root;
|
|
||||||
#export source_vertex=109.32; root -q -l -b -x ../ANASEN_analysis/data/17F_Data/ProtonRun_043_mapped.root -e 'tree->Process("TrackRecon.C+O")'; mv Analyzer_SX3.root results_run43.root;
|
|
||||||
#root -q -l -b -x ../ANASEN_analysis/data/17F_Data/ProtonRun_043_mapped.root -e 'tree->Process("TrackRecon.C+O")'; mv Analyzer_SX3.root results_run43.root;
|
|
||||||
#root -q -l -b -x ../ANASEN_analysis/data/17F_Data/Run_099_mapped.root -e 'tree->Process("TrackRecon.C+O")'; mv Analyzer_SX3.root results_run99.root;
|
|
||||||
#root -q -l -b -x ../ANASEN_analysis/data/17F_Data/Run_104_mapped.root -e 'tree->Process("TrackRecon.C+O")'; mv Analyzer_SX3.root results_run104.root;
|
|
||||||
#mv Analyzer_SX3.root results_run19.root;
|
|
||||||
fi
|
|
||||||
unset flipa
|
unset flipa
|
||||||
unset flipc
|
unset flipc
|
||||||
unset anode_offset
|
unset anode_offset
|
||||||
unset cathode_offset
|
unset cathode_offset
|
||||||
unset souce_vertex
|
unset source_vertex # Fixed typo here
|
||||||
unset DATASET
|
unset DATASET
|
||||||
|
unset PREFIX
|
||||||
unset flip180
|
unset flip180
|
||||||
unset timecut_low
|
unset timecut_low
|
||||||
unset timecut_high
|
unset timecut_high
|
||||||
|
unset CO2percent
|
||||||
|
|
||||||
|
echo "Script execution finished."
|
||||||
Loading…
Reference in New Issue
Block a user