@@ -61,6 +61,7 @@ def load_inputs(input_cfg):
6161 "DstartoD0pi" ,
6262 "LctopKpi" ,
6363 "LctopK0S" ,
64+ "OmegacToOmegaPi"
6465 ]:
6566 print (f"\033 [91mERROR: channel { channel } not supported. Exit\033 [0m" )
6667 sys .exit (2 )
@@ -73,7 +74,7 @@ def load_inputs(input_cfg):
7374 print ("\033 [93mWARNING: switching from dsigmadpt to dNdpt\033 [0m" )
7475
7576 energy = input_cfg ["energy" ]
76- if energy not in ["5TeV" , "13TeV" ]:
77+ if energy not in ["5TeV" , "13TeV" , "13.6TeV" ]:
7778 print (f"\033 [91mERROR: energy { energy } not supported. Exit\033 [0m" )
7879 sys .exit (4 )
7980
@@ -133,6 +134,7 @@ def load_inputs(input_cfg):
133134 "DstartoD0pi" : "hDstarD0pi" ,
134135 "LctopKpi" : "hLcpkpi" ,
135136 "LctopK0S" : "hLcK0sp" ,
137+ "OmegacToOmegaPi" : "hOmegacToOmegaPi"
136138 }
137139 histos ["FONLL" ] = {"prompt" : {}, "nonprompt" : {}}
138140 infile_fonll = TFile .Open (pred_file_name )
@@ -146,11 +148,11 @@ def load_inputs(input_cfg):
146148
147149 # load normalisation info from common database
148150 norm = {}
149- with open ("config/norm_database.yml" , "r" ) as yml_norm_db :
150- norm_db = yaml .safe_load (yml_norm_db )
151- norm ["BR" ] = norm_db ["BR" ][ channel ][ "value " ]
152- norm ["events" ] = h_events . GetBinContent ( 1 )
153- norm ["sigmaMB" ] = norm_db ["sigma" ][ "Run2" ][ system ][ energy ] if observable == "dsigmadpt" else 1.0
151+ # with open("config/norm_database.yml", "r") as yml_norm_db:
152+ # norm_db = yaml.safe_load(yml_norm_db)
153+ norm ["BR" ] = input_cfg ["BR" ]
154+ norm ["events" ] = input_cfg [ "nTVX" ]
155+ norm ["sigmaMB" ] = input_cfg ["sigma" ] if observable == "dsigmadpt" else 1.0
154156
155157 return histos , norm
156158
0 commit comments