Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F61759986
BDT1_applyer.py
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Wed, May 8, 19:28
Size
739 B
Mime Type
text/x-c
Expires
Fri, May 10, 19:28 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
17555128
Attached To
R12329 TP4b
BDT1_applyer.py
View Options
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
Log In to Comment