Exemple #1
0
    def __init__(self, output_dir='.', config_file='', **kwargs):
        super(PlotGroomers, self).__init__(**kwargs)

        # Initialize utils class
        self.utils = analysis_utils_obs.AnalysisUtils_Obs()

        self.utils.set_plotting_options()
        ROOT.gROOT.ForceStyle()

        # Read config file
        self.config_file = config_file
        with open(config_file, 'r') as stream:
            config = yaml.safe_load(stream)

        self.observables = config['process_observables']
        thermal_data = config['main_response']
        self.fMC = ROOT.TFile(thermal_data, 'READ')

        self.max_distance = config['constituent_subtractor']['max_distance']
        self.R_max = config['constituent_subtractor']['main_R_max']

        self.file_format = config['file_format']
        self.output_dir = config['output_dir']

        self.ColorArray = [
            ROOT.kViolet - 8, ROOT.kAzure - 4, ROOT.kTeal - 8,
            ROOT.kOrange + 6, ROOT.kOrange - 3, ROOT.kRed - 7, ROOT.kPink + 1,
            ROOT.kCyan - 2, ROOT.kGray
        ]
        self.MarkerArray = [20, 21, 22, 23, 33, 34, 24, 25, 26, 32]
        self.OpenMarkerArray = [24, 25, 26, 32, 27, 28]

        print(self)
Exemple #2
0
    def __init__(self, config_file='', **kwargs):
        super(PlotLaura, self).__init__(**kwargs)

        self.utils = analysis_utils_obs.AnalysisUtils_Obs()

        self.initialize()

        print(self)
  def __init__(self, config_file='', **kwargs):
    super(TheoryFolding, self).__init__(**kwargs)

    # Initialize utils class
    self.utils = analysis_utils_obs.AnalysisUtils_Obs()
    self.config_file = config_file

    # Initialize yaml config
    self.initialize_user_config()

    ROOT.gStyle.SetOptStat(0)
Exemple #4
0
  def __init__(self, config_file='', **kwargs):
    super(ComputeRatioSystematics, self).__init__(**kwargs)
    self.config_file = config_file

    # Initialize utils class
    self.utils = analysis_utils_obs.AnalysisUtils_Obs()

    # Initialize yaml config
    self.initialize_config()
    
    self.ColorArray = [ROOT.kBlue-4, ROOT.kAzure+7, ROOT.kCyan-2, ROOT.kViolet-8,
                       ROOT.kBlue-6, ROOT.kGreen+3, ROOT.kPink-4, ROOT.kRed-4,
                       ROOT.kOrange-3]
    self.MarkerArray = [20, 21, 22, 23, 33, 34, 24, 25, 26, 32]
Exemple #5
0
  def __init__(self, output_dir = '.', config_file = '', **kwargs):
    super(PlotGroomers, self).__init__(**kwargs)
    
    # Initialize utils class
    self.utils = analysis_utils_obs.AnalysisUtils_Obs()
    
    self.utils.set_plotting_options()
    ROOT.gROOT.ForceStyle()
    
    # Read config file
    self.config_file = config_file
    with open(config_file, 'r') as stream:
      config = yaml.safe_load(stream)
    
    self.observables = config['process_observables']
    thermal_data = config['main_response']
    self.fMC = ROOT.TFile(thermal_data, 'READ')
    
    self.eta_max = config['eta_max']
    self.max_distance = config['constituent_subtractor']['max_distance']
    self.R_max = config['constituent_subtractor']['main_R_max']
    
    self.file_format = config['file_format']
    self.output_dir = config['output_dir']
    
    self.min_theta_list = config['min_theta_list']
    
    # Set reclustering algorithm
    if 'reclustering_algorithm' in config:
      recluster_alg = config['reclustering_algorithm']
      if recluster_alg == 'CA':
        self.reclustering_algorithm = 'C-A'
      elif recluster_alg == 'KT':
        self.reclustering_algorithm = '#it{k}_{T}'
      elif recluster_alg == 'AKT':
        self.reclustering_algorithm = 'anti-#it{k}_{T}'
    
    #self.legend_list = ['subleading', 'leading (swap)', 'leading (mis-tag)', 'ungroomed', 'outside', 'other', 'combined fail', 'truth fail', 'both fail']
    self.legend_list = ['subleading', 'leading (swap)', 'leading (mis-tag)', 'groomed away', 'outside jet', 'other']

    self.ColorArray = [ROOT.kViolet-8, ROOT.kAzure-4, ROOT.kTeal-8, ROOT.kOrange+6, ROOT.kOrange-3, ROOT.kRed-7, ROOT.kPink+1, ROOT.kCyan-2, ROOT.kGray, 1, 1, 1, 1]
    self.MarkerArray = [20, 21, 22, 23, 33, 34, 24, 25, 26, 32]
    self.OpenMarkerArray = [24, 25, 26, 32, 27, 28]
    ROOT.gStyle.SetLineStyleString(11,'30 12')
    
    print(self)
Exemple #6
0
    def __init__(self, **kwargs):
        super(PlotRAA, self).__init__(**kwargs)

        self.utils = analysis_utils_obs.AnalysisUtils_Obs()
            
        self.initialize()