Making Compact nnL ROOT Files on DRAGON PC

Getting Nude File from Git

cd workdir/git/HallA-Online-Tritium/replay
git pull

File Imformation

maruhadaka.cc $\to$ Executer for making compact root files
tosmall.py $\to$ Processing maruhadaca.cc in pararell

Run File
h2.dat $\to$ H data for H kinematics
h2_suzuki.dat $\to$ H data for H kinematics made by KS
h22.dat $\to$ H data for T kinematics
T2_suzki.dat $\to$ T data made by KS

Data (link)
H2_RootFiles $\to$ /data2/outdat/nnL/umezaki/H2_up_to_date
He3_RootFiles $\to$ /data3/outdat/nnL/suzuki/nnL_data/He3_20190806
T2_RootFiles $\to$ /data3/outdat/nnL/suzuki/nnL_data/T2_20190806

Preparation for execute (Only after git pull)

cd workdir/git/HallA-Online-Tritium/replay/Rootfiles

for input files
Making symboric link
ln -s /data2/outdat/nnL/umezaki/H2_up_to_date .
ln -s /data3/outdat/nnL/suzuki/nnL_data/He3_20190806 .
ln -s /data3/outdat/nnL/suzuki/nnL_data/T2_20190806 .
for output files
mkdir nnL/LHRS_single_dragon
mkdir nnL/RHRS_single_dragon
mkdir nnL/coin_dragon2
mkdir nnL/nude_dir2

Execution

for execution
Specify some parameters
$\to$ com: Execute file (usually maruhadaka)
$\to$ nworkers: The number of parallel processing
$\to$ runfile: Run File (specify RunNumber, Part, DataProperty are written in this file)
./tosmall.py

Merge

./merge_rootfiles ###.dat (eg. h2.dat)
cp nnL/coin_dragon2/###.root ~
change local PC
cd ~/analysis/ana_nnl/
bash ~/scpdir/getdragon ###.root


  Analysis in local PC

AAA



  Geant4 HRS

Execute Single Run

hrs cd nnl_suzuki or cd K40 cd bash fullcopy.sh cd workdir/g4work/HRS_20190425/run
R macro/###.mac input/!!!.in
### $\to$ vrml.mac (visualization)
### $\to$ gun.mac (run a lot of particle)
!!! $\to$ easyPCSM.in (PCSM)
!!! $\to$ nnl_sample.in (nnl)

Execute Magnet Scan

Make Save Directory
cd /data3/outdat/nnL/suzuki/g4_data/hrs
mkdir ####
cd ####
mkdir data
mkdir input

Modify scannin.cc
fileName (Specify temprate file)
save_dir (Specify save directory which the Input files and Geant4-output are created [same as ####])
When Changing Magnet Value
q1 -0.00~-0.050 q2 0.00-0.05
$\to$ q1=-cnt_q1*0.005 q2=cnt_q2*0.005 q3=(cnt_q2*0.005)*r
q1 -0.050~-0.10 q2 0.00-0.05
$\to$ q1=-0.050-cnt_q1*0.005 q2=cnt_q2*0.005 q3=(cnt_q2*0.005)*r
q1 -0.00~-0.050 q2 0.005-0.015
$\to$ q1=-cnt_q1*0.005 q2=0.005+cnt_q2*0.001 q3=(0.005+cnt_q2*0.001)*r
q1 -0.00~-0.050 q2 0.015-0.025
$\to$ q1=-cnt_q1*0.005 q2=0.015+cnt_q2*0.001 q3=(0.015+cnt_q2*0.001)*r

Execution
g++ scanning.cc -o scanning
./scanning
Modify scanning.sh
Specify inputfiles (eg /data3/outdat/nnL/suzuki/g4_data/hrs/EPCSM_woPhysicsQ20.005_0.015/input/copy${i}.in)
Modify new_scanning.sh
Change the number of parallele processing
bash new_scanning.sh

Make Hist

cd /home/suzuki/workdir/g4work/HRS_20190425/ana/getHist/
cd hist
mkdir ### (directory which root files are made)
Modify setInfo.C
$\to$ Set rDir and wFile(###)
Modify judgement.C
$\to$ Set cut condition
Modify main.h
$\to$ Set the order of matrix
Modify newscan.sh
$\to$ Set the number of parallele processing
Execution
make
bash newscan.sh
Merge Rootfiles
cd getHist/hist/### hadd ###.root hist*