Skip to content
Snippets Groups Projects
Commit 0cfa04c0 authored by Sebastien Ponce's avatar Sebastien Ponce
Browse files

Make sure there is no collision of name between histo and ntuple root files

parent 52bd8ec9
No related branches found
No related tags found
2 merge requests!1103Draft: Add AnalysisHelpers to DaVinci Stack,!809Make sure there is no collision of name between histo and ntuple root files
......@@ -6,8 +6,8 @@ input_type: ROOT
simulation: true
conddb_tag: sim-20201218-vc-md100
dddb_tag: dddb-20201211
histo_file: v2_example.root
ntuple_file: v2_example.root
histo_file: v2_example_histos.root
ntuple_file: v2_example_ntuples.root
input_process: Hlt2
stream: default
print_freq: 1000
......
......@@ -19,7 +19,7 @@
</set></argument>
<argument name="options_yaml_fn"><text>$DAVINCIEXAMPLESROOT/example_data/FEST_November_2021_dst_newPacking.yaml</text></argument>
<argument name="extra_options_yaml"><text>
histo_file: tuple_D0_Kpi_10evts_collections.root
histo_file: histo_D0_Kpi_10evts_collections.root
ntuple_file: tuple_D0_Kpi_10evts_collections.root
print_freq: 1
</text></argument>
......
......@@ -19,8 +19,8 @@
</set></argument>
<argument name="options_yaml_fn"><text>$DAVINCIEXAMPLESROOT/example_data/FEST_November_2021_dst_newPacking.yaml</text></argument>
<argument name="extra_options_yaml"><text>
histo_file: tuple_D0_Kpi_10evts_fromHlt2.root
ntuple_file: tuple_D0_Kpi_10evts_fromHlt2.root
histo_file: tuple_D0_Kpi_10evts_fromHlt2_histos.root
ntuple_file: tuple_D0_Kpi_10evts_fromHlt2_ntuples.root
print_freq: 1
</text></argument>
<argument name="reference"><text>../refs/test_davinci_tupling_from_hlt2.ref</text></argument>
......@@ -115,7 +115,7 @@ B_vars_stored =['D0_BKGCAT',
B_vars_stored = sorted(B_vars_stored)
#open the TFile and TTree
ntuple = './tuple_D0_Kpi_10evts_fromHlt2.root'
ntuple = './tuple_D0_Kpi_10evts_fromHlt2_ntuples.root'
if not os.path.isfile(ntuple): raise Exception(f"File: {ntuple} does not exist!")
f = TFile.Open(ntuple)
t_B = f.Get('Tuple/DecayTree')
......
......@@ -36,7 +36,7 @@ K_vars_stored =['K_PX', 'K_PY', 'K_PZ', 'RUNNUMBER', 'EVENTNUMBER']
B_vars_stored = sorted(B_vars_stored)
#open the TFile and TTree
ntuple = './v2_example.root'
ntuple = './v2_example_ntuples.root'
if not os.path.isfile(ntuple): raise Exception(f"File: {ntuple} does not exist!")
f = TFile.Open(ntuple)
t_B = f.Get('TupleB/DecayTree')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment