예제 #1
0
파일: graviton.py 프로젝트: pwaller/pwa
    def __init__(self, tree, options):
    
        super(GravitonAnalysis, self).__init__(tree, options)
                
        self.ptbins = ("var", 15, 20, 25, 30, 35, 40, 50, 60, 100, 140, 180, 
                       220, 300, 380, 460, 620, 1000)
        self.ptbins = scale_bins(self.ptbins, 1000)
        
        self.ptbins_wide = "var", 15, 45, 60, 80, 120, 200, 400, 1000
        self.ptbins_wide = scale_bins(self.ptbins_wide, 1000)
        
        self.etabins_sym = "var", 0., 0.60, 1.37, 1.52, 1.81, 2.37
        
        self.etabins = mirror_bins(self.etabins_sym)
        self.etabins_boson = mirror_bins(self.etabins_sym + (3., 3.6, 4.2, 5.))
        
        self.ptbins_fine  = double_bins(self.ptbins,  4)
        self.etabins_fine = double_bins(self.etabins, 4)
        self.etabins_boson_fine = double_bins(self.etabins_boson, 4)

        self.tup = TNtuple("smearvars", "smearing variables", "s1:c1:m1d:s2:c2:m2d:mdelta")

        # Tasks to run in order
        self.tasks.extend([
            counts,
            plot_phs_els_comb,
        ])
예제 #2
0
파일: d3pd.py 프로젝트: pwaller/pwa
 def __init__(self, tree, options):
 
     super(PurityAnalysis, self).__init__(tree, options)
     
     self.ptbins = ("var", 15, 20, 25, 30, 35, 40, 50, 60, 100, 140, 180, 
                    220, 300, 380, 460, 620, 1000)
     self.ptbins = scale_bins(self.ptbins, 1000)
     
     self.ptbins_wide = "var", 15, 45, 60, 80, 120, 200, 400, 1000
     self.ptbins_wide = scale_bins(self.ptbins_wide, 1000)
     
     self.etabins_sym = "var", 0., 0.60, 1.37, 1.52, 1.81, 2.37
     
     self.etabins = mirror_bins(self.etabins_sym)
     self.etabins_boson = mirror_bins(self.etabins_sym + (3., 3.6, 4.2, 5.))
     
     self.ptbins_fine  = double_bins(self.ptbins,  4)
     self.etabins_fine = double_bins(self.etabins, 4)
     self.etabins_boson_fine = double_bins(self.etabins_boson, 4)
     
     # Tasks to run in order
     self.tasks.extend([
         counts,
         plots,
     ])
     
     if self.options.obj_selection:
         expr = "lambda o: %s" % self.options.obj_selection
         args = expr, "<options.obj_selection>", "eval"
         self.obj_selection = eval(compile(*args))
     else:
         self.obj_selection = None
예제 #3
0
파일: ptbumpstudy.py 프로젝트: pwaller/pwa
 def __init__(self, tree, options):
 
     super(PtBumpAnalysis, self).__init__(tree, options)
     
     self.ptbins = ("var", 15, 20, 25, 30, 35, 40, 50, 60, 100, 140, 180, 
                    220, 300, 380, 460, 620, 1000)
     self.ptbins = scale_bins(self.ptbins, 1000)
     
     self.ptbins_wide = "var", 15, 45, 60, 80, 120, 200, 400, 1000
     self.ptbins_wide = scale_bins(self.ptbins_wide, 1000)
     
     self.etabins_sym = "var", 0., 0.60, 1.37, 1.52, 1.81, 2.37
     self.etabins = mirror_bins(self.etabins_sym)
     self.etabins_many = double_bins(self.etabins, 3)
     
     # Tasks to run in order
     self.tasks.extend([
         multi_pt_cutflow,
     ])
예제 #4
0
 def __init__(self, tree, options):
 
     super(GravitonAnalysis, self).__init__(tree, options)
     
     self.ptbins = ("var", 15, 20, 25, 30, 35, 40, 50, 60, 100, 140, 180, 
                    220, 300, 380, 460, 620, 1000)
     self.ptbins = scale_bins(self.ptbins, 1000)
     
     self.ptbins_wide = "var", 15, 45, 60, 80, 120, 200, 400, 1000
     self.ptbins_wide = scale_bins(self.ptbins_wide, 1000)
     
     self.mass_log_bins_smaller = log_binning(10, 70, 3000)
     self.mass_log_bins_small = log_binning(100, 70, 3000)
     self.mass_log_bins = double_bins(self.mass_log_bins_small, 3)
     
     self.etabins_sym = "var", 0., 0.60, 1.37, 1.52, 1.81, 2.37
     self.etabins = mirror_bins(self.etabins_sym)
     self.etabins_many = double_bins(self.etabins, 3)
     
     # Tasks to run in order
     self.tasks.extend([
         do_cutflows,
     ])