14if __name__ ==
"__main__":
17 removeList =
'B+:BplusToKplusJpsiMuMu'
18 signalList =
'B+:BplusToKplusNuNu'
21 inputDataForRemoveList = b2.find_file(
'embedding_skim_BplusToKplusJpsiMuMu_bucket17.udst.root',
'examples',
False)
22 inputMCForSignalList = b2.find_file(
'embedding_skim_sig_71_Bplus2Kplus.udst.root',
'examples',
False)
24 outputDataForRemoveList =
'data.root'
25 outputMCForSignalList =
'sigmc.root'
26 outputEmbedded =
'embedded_data.root'
28 cmd = f
'basf2 udst_purge_list.py -- --listName {removeList} --charge pos --fileIn {inputDataForRemoveList}'\
29 f
' --fileOut {outputDataForRemoveList}'
30 subprocess.check_call(cmd.split())
32 cmd = f
'basf2 udst_purge_list.py -- --isSignal --listName {signalList} --charge pos --fileIn {inputMCForSignalList}'\
33 f
' --fileOut {outputMCForSignalList}'
34 subprocess.check_call(cmd.split())
36 cmd = f
'basf2 embedding_merge.py -- --filePrimary {outputDataForRemoveList} --fileSecondary {outputMCForSignalList}'\
37 f
' --fileOut {outputEmbedded}'
38 subprocess.check_call(cmd.split())