当前位置: 首页>>代码示例>>Python>>正文


Python samples.specify函数代码示例

本文整理汇总了Python中samples.specify函数的典型用法代码示例。如果您正苦于以下问题:Python specify函数的具体用法?Python specify怎么用?Python specify使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了specify函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: dataSingleMu

 def dataSingleMu() :
     jw = calculables.Other.jsonWeight("cert/Cert_160404-167151_7TeV_PromptReco_Collisions11_JSON.txt") #869/pb            
     out = []
     out += specify(names = "SingleMu.Run2011A-PR-v4.FJ.Burt2_2mu_skim",   weights = jw, overrideLumi = 216.43)
     out += specify(names = "SingleMu.Run2011A-PR-v4.FJ.Burt_2mu_skim",    weights = jw, overrideLumi = 294.45)
     out += specify(names = "SingleMu.Run2011A-May10-v1.FJ.Burt_2mu_skim", weights = jw, overrideLumi = 186.55)
     return out
开发者ID:aharel,项目名称:supy,代码行数:7,代码来源:muonLook.py

示例2: listOfSamples

    def listOfSamples(self,params) :
        from samples import specify

        def dataSingleMu() :
            jw = calculables.Other.jsonWeight("cert/Cert_160404-167151_7TeV_PromptReco_Collisions11_JSON.txt") #869/pb            
            out = []
            out += specify(names = "SingleMu.Run2011A-PR-v4.FJ.Burt2_2mu_skim",   weights = jw, overrideLumi = 216.43)
            out += specify(names = "SingleMu.Run2011A-PR-v4.FJ.Burt_2mu_skim",    weights = jw, overrideLumi = 294.45)
            out += specify(names = "SingleMu.Run2011A-May10-v1.FJ.Burt_2mu_skim", weights = jw, overrideLumi = 186.55)
            return out

        def dataDoubleMu() :
            out = []
            out += specify(names = "DoubleMu.Run2011A-05Aug2011-v1.AOD.job663",  )
            out += specify(names = "DoubleMu.Run2011A-May10ReReco-v1.AOD.job662",)
            #out += specify(names = "DoubleMu.Run2011A-PromptReco-v4.AOD.job664", )
            out += specify(names = "DoubleMu.Run2011A-PromptReco-v6.AOD.job665", )
            out += specify(names = "DoubleMu.Run2011B-PromptReco-v1.AOD.job666", )
            
            return out

        def data() :
            return dataDoubleMu()
        
        eL = 3000 # 1/pb
        #return data()
        return (data() +\
                specify(names = "tt_tauola_mg_2mu_skim", effectiveLumi = eL) +\
                specify(names = "dyll_jets_mg_2mu_skim", effectiveLumi = eL) +\
                specify(names = "w_jets_mg_2mu_skim",    effectiveLumi = eL)
                )
开发者ID:aharel,项目名称:supy,代码行数:31,代码来源:muonLook.py

示例3: listOfSamples

 def listOfSamples(self) :
     from samples import specify
     return [  specify(name = "g_jets_mg_pt40_100",    nFilesMax =  8, color = r.kGreen   ),
               specify(name = "g_jets_mg_pt100_200",   nFilesMax = -1, color = r.kGreen   ),
               specify(name = "g_jets_mg_pt200",       nFilesMax = -1, color = r.kGreen   ),
               specify(name = "z_inv_mg_skim",         nFilesMax = -1, color = r.kMagenta ),
               ]
开发者ID:aharel,项目名称:supy,代码行数:7,代码来源:alphatEtaDependence.py

示例4: listOfSamples

 def listOfSamples(self, params) :
     from samples import specify
     out = []
     out += specify(names = "znunu_jets_mg_ht_50_100")
     out += specify(names = "znunu_jets_mg_ht_100_200")
     out += specify(names = "znunu_jets_mg_ht_200_inf")
     return out
开发者ID:aharel,项目名称:supy,代码行数:7,代码来源:hadronicSkim.py

示例5: data

 def data() :
     jw = calculables.Other.jsonWeight("cert/Cert_160404-163869_7TeV_PromptReco_Collisions11_JSON.txt", acceptFutureRuns = False) #193/pb
     out = []
     out += specify(names = "SingleMu.Run2011A-PR-v2.Alex_1muskim"  , weights = jw, overrideLumi = 12.27)
     out += specify(names = "SingleMu.Run2011A-PR-v2.Robin1_1muskim", weights = jw, overrideLumi = 87.31)
     out += specify(names = "SingleMu.Run2011A-PR-v2.Robin2_1muskim", weights = jw, overrideLumi = 79.34)
     return out
开发者ID:elaird,项目名称:susycaf,代码行数:7,代码来源:muonLook1.py

示例6: dataDoubleMu

 def dataDoubleMu() :
     out = []
     out += specify(names = "DoubleMu.Run2011A-05Aug2011-v1.AOD.job663",  )
     out += specify(names = "DoubleMu.Run2011A-May10ReReco-v1.AOD.job662",)
     #out += specify(names = "DoubleMu.Run2011A-PromptReco-v4.AOD.job664", )
     out += specify(names = "DoubleMu.Run2011A-PromptReco-v6.AOD.job665", )
     out += specify(names = "DoubleMu.Run2011B-PromptReco-v1.AOD.job666", )
     
     return out
开发者ID:aharel,项目名称:supy,代码行数:9,代码来源:muonLook.py

示例7: listOfSamples

 def listOfSamples(self,pars) :
     import ROOT as r
     from samples import specify
     return (specify(names = "tt_tauola_fj_mg", color = r.kRed,
                     #nFilesMax=1, nEventsMax=4100) +
                     effectiveLumi = pars["effectiveLumi"]) +
             specify(names = "tt_tauola_fj_mg", color = r.kBlue, weights = "wQQbar") +
             #specify(names = "tt_tauola_fj", color = r.kBlue,
             #        #nFilesMax=1, nEventsMax=4100)+
             #        effectiveLumi = pars["effectiveLumi"]) +
             #specify( names = "w_jets_mg", effectiveLumi = 100, color = 28 ) +
             [])
开发者ID:aharel,项目名称:supy,代码行数:12,代码来源:topAsymmKinfit.py

示例8: ttbar_py

 def ttbar_py(eL = None) :
     return (specify(names = "tt_tauola_fj", effectiveLumi = eL, color = r.kBlue, weights = ["wNonQQbar",'tw','nvr']) +
             sum( [specify(names = "tt_tauola_fj", effectiveLumi = eL, color = color, weights = [ calculables.Top.wTopAsym(asym), 'tw','nvr' ] )
                   for asym,color in [(0.0,r.kOrange),
                                      (-0.3,r.kGreen),(0.3,r.kRed),
                                      #(-0.6,r.kYellow),(0.6,r.kYellow),
                                      #(-0.5,r.kYellow),(0.5,r.kYellow),
                                      #(-0.4,r.kYellow),(0.4,r.kYellow),
                                      #(-0.2,r.kYellow),(0.2,r.kYellow),
                                      #(-0.1,r.kYellow),(0.1,r.kYellow),
                                      ]], [])
             )[: 0 if "QCD" in pars['tag'] else 2 if 'Wlv' in pars['tag'] else None]
开发者ID:aharel,项目名称:supy,代码行数:12,代码来源:topAsymm.py

示例9: ewk

 def ewk(eL, era = "") :
     zName = ""
     wName = ""
     if era=="spring11" :
         zName = "zinv_jets_mg"
         wName = "w_jets_mg"
     if era=="summer11" :
         zName = "znunu_jets_mg_ht_200_inf_summer11_skim"
         wName = "w_jets_mg_tauola_ht_300_inf_summer11"
     
     return ( specify(names = zName,  effectiveLumi = eL, color = r.kRed + 1) +
              #specify(names = "z_jets_mg_v12_skim", effectiveLumi = eL, color = r.kYellow-3) +
              specify(names = wName, effectiveLumi = eL, color = 28         ) )
开发者ID:aharel,项目名称:supy,代码行数:13,代码来源:hadronicLook.py

示例10: listOfSamples

    def listOfSamples(self,params) :
        from samples import specify
        out = []

        #out += specify(names = "Photon.Run2011A-PromptReco-v4.AOD.Rob3_skim")
        #out += specify(names = "Photon.Run2011A-PromptReco-v4.AOD.Rob4_skim")
        #out += specify(names = "Photon.Run2011A-PromptReco-v4.AOD.Darren1_skim")
        
        #out += specify(names = "HT.Run2011A-PromptReco-v4.AOD.Darren1")
        #out += specify(names = "HT.Run2011A-PromptReco-v4.AOD.Darren2")
        #out += specify(names = "HT.Run2011A-PromptReco-v4.AOD.Darren3")
        out += specify(names = "HT.Run2011A-PromptReco-v4.AOD.Darren4")
        out += specify(names = "HT.Run2011A-PromptReco-v4.AOD.Darren5")
        out += specify(names = "HT.Run2011A-PromptReco-v4.AOD.Darren6")
        return out
开发者ID:tatiana-m,项目名称:supy,代码行数:15,代码来源:triggerLook.py

示例11: listOfSamples

    def listOfSamples(self,params) :
        from samples import specify
        data = [                                                
            specify(name = "Run2010B_J_skim",           nFilesMax = -1, color = r.kBlack   , markerStyle = 20),
            specify(name = "Run2010A_JM_skim",          nFilesMax = -1, color = r.kBlack   , markerStyle = 20),
            #specify(name = "Run2010A_JMT_skim",         nFilesMax = -1, color = r.kBlack   , markerStyle = 20),
            ]                                                       
        outList = data

        for i in range(len(outList)):
            o = outList[i]
            #if "2010" in o.name: continue
            outList[i] = specify(name = o.name, color = o.color, markerStyle = o.markerStyle, nFilesMax = -1, nEventsMax = 50000)
        
        return outList
开发者ID:elaird,项目名称:susycaf,代码行数:15,代码来源:tpLook.py

示例12: listOfSamples

 def listOfSamples(self,params) :
     return ( samples.specify( names = ['SingleMu.2011B-PR1.1b',
                                        'SingleMu.2011B-PR1.1a',
                                        'SingleMu.2011A-Oct.1',
                                        'SingleMu.2011A-Aug.1',
                                        'SingleMu.2011A-PR4.1',
                                        'SingleMu.2011A-May.1'], weights = 'tw') +
              samples.specify( names = ['qcd_py6fjmu_pt_15_20',
                                        'qcd_py6fjmu_pt_20_30',
                                        'qcd_py6fjmu_pt_30_50',
                                        'qcd_py6fjmu_pt_50_80',
                                        'qcd_py6fjmu_pt_80_120',
                                        'qcd_py6fjmu_pt_120_150',
                                        'qcd_py6fjmu_pt_150',
                                        'w_jets_fj_mg',
                                        'tt_tauola_fj_mg'
                                        ], weights = ['tw','nvr'] , effectiveLumi = 300))
开发者ID:aharel,项目名称:supy,代码行数:17,代码来源:triggerWeight.py

示例13: listOfSamples

    def listOfSamples(self,params) :
        from samples import specify
        out = []

        #out += specify(names = "Photon.Run2011A-05Aug2011-v1.AOD.job663")
        #out += specify(names = "Photon.Run2011A-May10ReReco-v1.AOD.job662")
        #out += specify(names = "Photon.Run2011A-PromptReco-v4.AOD.job664")
        #out += specify(names = "Photon.Run2011A-PromptReco-v6.AOD.job667")
        #out += specify(names = "Photon.Run2011B-PromptReco-v1.AOD.job668")

        out += specify(names = "DoubleMu.Run2011A-05Aug2011-v1.AOD.job663",  )
        out += specify(names = "DoubleMu.Run2011A-May10ReReco-v1.AOD.job662",)
        out += specify(names = "DoubleMu.Run2011A-PromptReco-v4.AOD.job664", )
        out += specify(names = "DoubleMu.Run2011A-PromptReco-v6.AOD.job665", )
        out += specify(names = "DoubleMu.Run2011B-PromptReco-v1.AOD.job666", )

        return out
开发者ID:aharel,项目名称:supy,代码行数:17,代码来源:triggerLook.py

示例14: listOfSamples

    def listOfSamples(self,params) :
        from samples import specify

        def data() :
            jw = calculables.Other.jsonWeight("cert/Cert_160404-163869_7TeV_PromptReco_Collisions11_JSON.txt", acceptFutureRuns = False) #193/pb
            out = []
            out += specify(names = "SingleMu.Run2011A-PR-v2.Alex_1muskim"  , weights = jw, overrideLumi = 12.27)
            out += specify(names = "SingleMu.Run2011A-PR-v2.Robin1_1muskim", weights = jw, overrideLumi = 87.31)
            out += specify(names = "SingleMu.Run2011A-PR-v2.Robin2_1muskim", weights = jw, overrideLumi = 79.34)
            return out

        eL = 3000 # 1/pb
        #return data()
        return (data() +\
                specify(names = "tt_tauola_mg_1muskim", effectiveLumi = eL) +\
                specify(names = "dyll_jets_mg_1muskim", effectiveLumi = eL) +\
                specify(names = "w_jets_mg_1muskim",    effectiveLumi = eL)
                )
开发者ID:elaird,项目名称:susycaf,代码行数:18,代码来源:muonLook1.py

示例15: listOfSamples

    def listOfSamples(self,pars) :
        from samples import specify
        eL = pars["effectiveLumi"]

        if type(pars["generator"]) is list :
            suffixColor = zip(pars["generator"],[r.kBlack,r.kRed])
            return sum([specify(names = "tt_tauola_fj_%s"%suf, effectiveLumi = eL, color = col) for suf,col in suffixColor],[])

        sample = "tt_tauola_fj_%s"%pars["generator"]
        asymms = [(r.kBlue, -0.3),
                  (r.kGreen, 0.0),
                  (r.kRed,   0.3)]
        intrinsicR = -0.05 if pars['generator'] == "mg" else 0.0
        return (
            #specify( names = sample, effectiveLumi = 500, color = r.kBlack,     weights = calculables.Gen.wNonQQbar()) +
            #specify( names = sample, effectiveLumi = eL, color = r.kRed,       weights = calculables.Gen.wQQbar()) +
            sum([specify(names = sample, effectiveLumi = eL, color = col, weights = calculables.Top.wTopAsym(A,intrinsicR=intrinsicR)) for col,A in asymms],[]) +
            [])
开发者ID:tatiana-m,项目名称:supy,代码行数:18,代码来源:topAsymmTemplates.py


注:本文中的samples.specify函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。