@@ -5,7 +5,7 @@ class XSectionConfig():
55 current_analysis_path = '/hdfs/TopQuarkGroup/run2/atOutput/'
66 known_centre_of_mass_energies = [7 ,8 ,13 ]
77 # has to be separate as many variables depend on it
8- luminosities = {7 :5050 , 8 :19584 , 13 :40.028 }
8+ luminosities = {7 :5050 , 8 :19584 , 13 :41.62912 }
99 parameters = ['SingleTop_category_templates' , 'SingleTop_category_templates_trees' , 'SingleTop_file' ,
1010 'VJets_category_templates' , 'VJets_category_templates_trees' , 'analysis_types' ,
1111 'categories_and_prefixes' , 'central_general_template' ,
@@ -185,6 +185,8 @@ def __fill_defaults__( self ):
185185 # 'LightJet_down':'_minusLightJet',
186186 # 'LightJet_up':'_plusLightJet',
187187
188+ 'PileUpSystematic' : '' ,
189+
188190
189191 # Other MET uncertainties not already included
190192 'ElectronEnUp' : '' ,
@@ -292,6 +294,10 @@ def __fill_defaults__( self ):
292294 self .ttbar_scaledown_category_templates_trees = path_to_files + '/TTJets_PowhegPythia8_scaledown_tree.root'
293295 self .ttbar_mtop1695_category_templates_trees = path_to_files + '/TTJets_PowhegPythia8_mtop1695_tree.root'
294296 self .ttbar_mtop1755_category_templates_trees = path_to_files + '/TTJets_PowhegPythia8_mtop1755_tree.root'
297+ self .ttbar_jesup_category_templates_trees = path_to_files + '/TTJets_PowhegPythia8_plusJES_tree.root'
298+ self .ttbar_jesdown_category_templates_trees = path_to_files + '/TTJets_PowhegPythia8_minusJES_tree.root'
299+ self .ttbar_jerup_category_templates_trees = path_to_files + '/TTJets_PowhegPythia8_plusJER_tree.root'
300+ self .ttbar_jerdown_category_templates_trees = path_to_files + '/TTJets_PowhegPythia8_minusJER_tree.root'
295301
296302 self .data_muon_category_templates = {
297303 'central' : self .data_file_muon ,
@@ -347,6 +353,26 @@ def __fill_defaults__( self ):
347353 self .unfolding_matching_up = self .unfolding_matching_up_raw .replace ( '.root' , '_asymmetric.root' )
348354 self .unfolding_mass_down = path_to_unfolding_histograms + 'unfolding_TTJets_%dTeV_massdown_asymmetric.root' % self .centre_of_mass_energy
349355 self .unfolding_mass_up = path_to_unfolding_histograms + 'unfolding_TTJets_%dTeV_massup_asymmetric.root' % self .centre_of_mass_energy
356+ self .unfolding_Lepton_down = path_to_unfolding_histograms + 'unfolding_TTJets_%dTeV_leptondown_asymmetric.root' % self .centre_of_mass_energy
357+ self .unfolding_Lepton_up = path_to_unfolding_histograms + 'unfolding_TTJets_%dTeV_leptonup_asymmetric.root' % self .centre_of_mass_energy
358+ self .unfolding_jes_down = path_to_unfolding_histograms + 'unfolding_TTJets_%dTeV_jesdown_asymmetric.root' % self .centre_of_mass_energy
359+ self .unfolding_jes_up = path_to_unfolding_histograms + 'unfolding_TTJets_%dTeV_jesup_asymmetric.root' % self .centre_of_mass_energy
360+ self .unfolding_jer_down = path_to_unfolding_histograms + 'unfolding_TTJets_%dTeV_jerdown_asymmetric.root' % self .centre_of_mass_energy
361+ self .unfolding_jer_up = path_to_unfolding_histograms + 'unfolding_TTJets_%dTeV_jerup_asymmetric.root' % self .centre_of_mass_energy
362+ self .unfolding_bjet_down = path_to_unfolding_histograms + 'unfolding_TTJets_%dTeV_bjetdown_asymmetric.root' % self .centre_of_mass_energy
363+ self .unfolding_bjet_up = path_to_unfolding_histograms + 'unfolding_TTJets_%dTeV_bjetup_asymmetric.root' % self .centre_of_mass_energy
364+
365+ self .unfolding_ElectronEn_down = path_to_unfolding_histograms + 'unfolding_TTJets_%dTeV_ElectronEnDown_asymmetric.root' % self .centre_of_mass_energy
366+ self .unfolding_ElectronEn_up = path_to_unfolding_histograms + 'unfolding_TTJets_%dTeV_ElectronEnUp_asymmetric.root' % self .centre_of_mass_energy
367+ self .unfolding_MuonEn_down = path_to_unfolding_histograms + 'unfolding_TTJets_%dTeV_MuonEnDown_asymmetric.root' % self .centre_of_mass_energy
368+ self .unfolding_MuonEn_up = path_to_unfolding_histograms + 'unfolding_TTJets_%dTeV_MuonEnUp_asymmetric.root' % self .centre_of_mass_energy
369+ self .unfolding_TauEn_down = path_to_unfolding_histograms + 'unfolding_TTJets_%dTeV_TauEnDown_asymmetric.root' % self .centre_of_mass_energy
370+ self .unfolding_TauEn_up = path_to_unfolding_histograms + 'unfolding_TTJets_%dTeV_TauEnUp_asymmetric.root' % self .centre_of_mass_energy
371+ self .unfolding_UnclusteredEn_down = path_to_unfolding_histograms + 'unfolding_TTJets_%dTeV_UnclusteredEnDown_asymmetric.root' % self .centre_of_mass_energy
372+ self .unfolding_UnclusteredEn_up = path_to_unfolding_histograms + 'unfolding_TTJets_%dTeV_UnclusteredEnUp_asymmetric.root' % self .centre_of_mass_energy
373+
374+ self .unfolding_PUSystematic = path_to_unfolding_histograms + 'unfolding_TTJets_%dTeV_pileupSystematic_asymmetric.root' % self .centre_of_mass_energy
375+
350376
351377 self .unfolding_pdfweights = {index : path_to_unfolding_histograms + 'unfolding_TTJets_%dTeV_asymmetric_generatorWeight_%d.root' % (self .centre_of_mass_energy , index ) for index in range ( 9 , 109 )}
352378
@@ -393,8 +419,8 @@ def __fill_defaults__( self ):
393419 'Lepton selection efficiency' : [('Electron_down' , 'Electron_up' ), ('Muon_down' , 'Muon_up' )],
394420 'Jet energy \& resolution' : [('JES_down' , 'JES_up' , 'JER_down' , 'JER_up' )],
395421 'B-tagging' : [('BJet_down' , 'BJet_up' )],
396- 'MET ' : [('ElectronEnDown' , 'ElectronEnUp' ), ('MuonEnDown' ,'MuonEnUp' ),('TauEnDown' ,'TauEnUp' ),('UnclusteredEnDown' ,'UnclusteredEnUp' )],
397- 'Normalisation' : [
422+ '\met ' : [('ElectronEnDown' , 'ElectronEnUp' ), ('MuonEnDown' ,'MuonEnUp' ),('TauEnDown' ,'TauEnUp' ),('UnclusteredEnDown' ,'UnclusteredEnUp' )],
423+ 'Background Normalisation' : [
398424 # ('TTJet_cross_section-', 'TTJet_cross_section+'),
399425 ('SingleTop_cross_section-' , 'SingleTop_cross_section+' ),
400426 ('luminosity-' , 'luminosity+' ),
@@ -404,6 +430,7 @@ def __fill_defaults__( self ):
404430 'Hadronisation' : [('TTJets_hadronisation' , 'TTJets_hadronisation' )],
405431 'NLO generator' : [('TTJets_NLOgenerator' , 'TTJets_NLOgenerator' )],
406432 'PDF' : [('PDF_total_lower' , 'PDF_total_upper' )],
433+ 'Pileup' : [('PileUpSystematic' ,'PileUpSystematic' )],
407434 'QCD shape' : [('QCD_shape' , 'QCD_shape' )]
408435 }
409436 self .typical_systematics = []
@@ -524,7 +551,8 @@ def __fill_defaults_13TeV__( self ):
524551 middle = self .middle
525552 path_to_files = self .path_to_files
526553
527- self .new_luminosity = 40.028 # pb^-1
554+ # self.new_luminosity = 40.028 # pb^-1
555+ self .new_luminosity = 41.62912 # pb^-1
528556 self .ttbar_xsection = 831.76 # pb
529557
530558 self .rate_changing_systematics = {#TODO check where this is used
0 commit comments