#os.system("mkdir ROOT_files") #os.system("mv *.root ROOT_files") if PYTHON_HIST != 1: # os.system("rm -rf ROOT_files") os.system("mkdir ROOT_files") os.system("mv *.root ROOT_files") gBenchmark.Show("All in One") elif (PYTHON_HIST == 1) & (TH1D_transfer == 1): sys.path.append( "/Users/leejunho/Desktop/git/python3Env/group_study/fruit_team/ROOT/Project/functions/rootHist_TXT/func" ) from D1H_rootHist_TXT_conversion import D1H_roothist_to_txt from D1H_rootHist_TXT_conversion_largeBin import D1H_roothist_to_txt_largeBin TXT_FILE_LIST = D1H_roothist_to_txt(HistROOT_PATH, "") TXT_FILE_LIST_largeBin = D1H_roothist_to_txt_largeBin( HistROOT_PATH_largeBin, "") sys.path.append( "/Users/leejunho/Desktop/git/python3Env/group_study/project_pre/func") from c1_basic_statistic import * from c2_basic_histo_plotting_ROOT import Basic_histo #from c2_basic_histo_plotting import Basic_histo from c4_Fit_Poisson_histo_plotting_ROOT import Fit_Poisson_histo from c5_single_sample_mean_Zdistribution_ROOT import Fit_Sample_Gaus_histo from c5_single_sample_mean_Tdistribution_ROOT import t_distribution from c7_single_sample_variance_distribution_ROOT import Sample_Variance #for Input_file in TXT_FILE_LIST: print("this") for ij in range(len(TXT_FILE_LIST)):
#from D1H_ROOT_TXT_conversion import D1H_txt_to_root, D1H_root_to_txt from D1H_rootHist_TXT_conversion import D1H_txt_to_roothist, D1H_roothist_to_txt #ROOT = D1H_txt_to_roothist("./_processed.txt","") #TXT= D1H_roothist_to_txt("../junho/py-fillrandom.root",".") #TXT = D1H_roothist_to_txt("Height1.root","/../"); #TXT = D1H_roothist_to_txt("../../root_generator/root1_gaus.root","."); print(type(TXT)); print(TXT); #TXT = D1H_roothist_to_txt("/Users/leejunho/Desktop/git/python3Env/group_study/fruit_team/ROOT/Project/root_generator/root2_Landau.root",".") #TXT = D1H_roothist_to_txt("/Users/leejunho/Desktop/git/python3Env/group_study/fruit_team/ROOT/Project/root_generator/root3_sin.root",".") #D1H_roothist_to_txt("/Users/leejunho/Desktop/git/python3Env/group_study/fruit_team/ROOT/Project/root_generator/root0_gaus.root","") D1H_roothist_to_txt( "/Users/leejunho/Desktop/git/python3Env/group_study/fruit_team/ROOT/Project/root_generator/root2_Landau.root", "") #ROOT = D1H_txt_to_roothist("root2_Landauhist5_F.txt","./"); #print(type(ROOT)); print(ROOT);
#from D1H_ROOT_TXT_conversion import D1H_txt_to_root, D1H_root_to_txt from D1H_rootHist_TXT_conversion import D1H_txt_to_roothist, D1H_roothist_to_txt #ROOT = D1H_txt_to_roothist("./_processed.txt","") #TXT= D1H_roothist_to_txt("../junho/py-fillrandom.root",".") #TXT = D1H_roothist_to_txt("Height1.root","/../"); TXT = D1H_roothist_to_txt("../junho/Height1.root",""); print(type(TXT)); print(TXT); ROOT = D1H_txt_to_roothist("Height1_F.txt","../"); print(type(ROOT)); print(ROOT);