Page MenuHomec4science

BDT1_applyer.py
No OneTemporary

File Metadata

Created
Wed, May 8, 19:28

BDT1_applyer.py

import os,sys
#from ROOT import TH1D,TH2D,TFile,TTree,TCanvas
import sys
import array
# Import the other script
# Script which creates the BDT_rootfile
import Branches_name
directory_in_str = './Cutted_files/'
#directory_in_str = './MC_Cutted_files/'
directory = os.fsencode(directory_in_str)
path_to_BDT = '/tmva-branch-adder/src/'
#iterating over the files
for file in os.listdir(directory):
filename = os.fsdecode(file)
# if filename.endswith(".root"):# and filename.startswith("Bu2KpipiMM"):
if filename.endswith(".root") and filename.startswith("Bu2KpipiMM"):
print(filename)
#Branches_name.main(filename,"mc_samples")
Branches_name.main(filename,"data_samples")
# break

Event Timeline