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


Python DecayTreeTuple.ReFitPVs方法代码示例

本文整理汇总了Python中Configurables.DecayTreeTuple.ReFitPVs方法的典型用法代码示例。如果您正苦于以下问题:Python DecayTreeTuple.ReFitPVs方法的具体用法?Python DecayTreeTuple.ReFitPVs怎么用?Python DecayTreeTuple.ReFitPVs使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Configurables.DecayTreeTuple的用法示例。


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

示例1: VFASPF

# 需要导入模块: from Configurables import DecayTreeTuple [as 别名]
# 或者: from Configurables.DecayTreeTuple import ReFitPVs [as 别名]
    "R"    :  "[Lambda_b0 -> (J/psi(1S) -> mu+ mu-) (^Lambda0 -> pi+ pi-)]cc", 
    "H1"   :  "[Lambda_b0 -> (J/psi(1S) -> mu+ mu-) (Lambda0 -> ^pi+ pi-)]cc",      
    "H2"   :  "[Lambda_b0 -> (J/psi(1S) -> mu+ mu-) (Lambda0 -> pi+ ^pi-)]cc",   
    "J_psi_1S"   :  "[Lambda_b0 -> (^J/psi(1S) -> mu+ mu-) (Lambda0 -> pi+ pi-)]cc"       
}


tuple.addTool(TupleToolDecay, name="Bs")
tuple.Bs.ToolList = [ "TupleToolPropertime" ]
tuple.addTool(TupleToolDecay, name="J_psi_1S")

tuple.Bs.addTool(tistos)
tuple.Bs.ToolList+=["TupleToolTISTOS/tistos"]
tuple.J_psi_1S.addTool(tistos)
tuple.J_psi_1S.ToolList+=["TupleToolTISTOS/tistos"]
tuple.ReFitPVs = True
LoKi_Bs=LoKi__Hybrid__TupleTool("LoKi_Bs")
LoKi_Bs.Variables =  { 
#        "LOKI_FDCHI2"     : "BPVVDCHI2", 
#        "LOKI_FDS"        : "BPVDLS", 
#        "LOKI_DIRA"       : "BPVDIRA" , 
        "LOKI_DTF_CTAU"        : "DTF_CTAU( 0, True )", 
#        "LOKI_DTF_CTAUS"       : "DTF_CTAUSIGNIFICANCE( 0, True )", 
        "LOKI_DTF_CHI2NDOF"    : "DTF_CHI2NDOF( True )", 
        "LOKI_DTF_CTAUERR"     : "DTF_CTAUERR( 0, True )", 
        "LOKI_MASS_JpsiConstr" : "DTF_FUN ( M , True , 'J/psi(1S)' )" , 
        "LOKI_DTF_VCHI2NDOF"   : "DTF_FUN ( VFASPF(VCHI2/VDOF) , True  )"  
        } 
tuple.Bs.addTool(LoKi_Bs)         
tuple.Bs.ToolList+=["LoKi::Hybrid::TupleTool/LoKi_Bs"] 
开发者ID:goi42,项目名称:LbJpsipPi,代码行数:32,代码来源:Xb2JpsiXTree.py

示例2: ProcStatusCheck

# 需要导入模块: from Configurables import DecayTreeTuple [as 别名]
# 或者: from Configurables.DecayTreeTuple import ReFitPVs [as 别名]
from Configurables import ProcStatusCheck
filterBadEvents = ProcStatusCheck()

sc = StrippingConf( Streams = [ MyStream ],
                                        MaxCandidates = 2000,
                                        AcceptBadEvents = False,
                                        BadEventSelection = filterBadEvents )


from Configurables import DecayTreeTuple

tuple= DecayTreeTuple('LC_OS')
tuple.Inputs = [ "Phys/Tau23MuTau2PMuMuLine/Particles" ]
tuple.UseLoKiDecayFinders = False
#tuple.IgnoreP2PVFromInputLocations = True # ignore all stored Particle -> PV relations
tuple.ReFitPVs = True # re-fit the PVs
tuple.Decay = '[Lambda_c+ -> ^p+ ^mu+ ^mu- ]cc'
tuple.ToolList +=  [       "TupleToolEventInfo"
                           , "TupleToolGeneration"
                           , "TupleToolMCTruth"
                           , "TupleToolMCBackgroundInfo"
                           , "TupleToolPrimaries"
                           , "TupleToolTrackInfo"
                           , "TupleToolPid"
                           , "TupleToolGeometry"
                           , "TupleToolKinematic"
                           , "TupleToolMuonVariables"
                           , "TupleToolPropertime"
                           , "LoKi::Hybrid::TupleTool/LoKiTool"
#                           , "TupleToolMuonIso_LC"
                           , "TupleToolEventInfo"
开发者ID:mchrzasz,项目名称:Lc2pmumu,代码行数:33,代码来源:Lc_str20_2012.py

示例3: VFASPF

# 需要导入模块: from Configurables import DecayTreeTuple [as 别名]
# 或者: from Configurables.DecayTreeTuple import ReFitPVs [as 别名]
tuple.Bs.addTool(TupleToolMCTruth)
#tuple.Bs.TupleToolMCTruth.ToolList += ["MCTupleToolP2VV"]
#tuple.Bs.TupleToolMCTruth.addTool(MCTupleToolP2VV)
#tuple.Bs.TupleToolMCTruth.MCTupleToolP2VV.Calculator = "MCBd2FMuMuAngleCalculator"
tuple.addTool(TupleToolDecay, name="R")
tuple.R.ToolList = [ "TupleToolMCTruth" ]
tuple.R.addTool(TupleToolMCTruth())
tuple.R.TupleToolMCTruth.ToolList = [ "MCTupleToolHierarchy" ]

tuple.addTool(TupleToolDecay, name="J_psi_1S")

tuple.Bs.addTool(tistos)
tuple.Bs.ToolList+=["TupleToolTISTOS/tistos"]
tuple.J_psi_1S.addTool(tistos)
tuple.J_psi_1S.ToolList+=["TupleToolTISTOS/tistos"]
tuple.ReFitPVs = True
LoKi_Bs=LoKi__Hybrid__TupleTool("LoKi_Bs")
LoKi_Bs.Variables =  { 
#        "LOKI_FDCHI2"     : "BPVVDCHI2", 
#        "LOKI_FDS"        : "BPVDLS", 
#        "LOKI_DIRA"       : "BPVDIRA" , 
        "LOKI_DTF_CTAU"        : "DTF_CTAU( 0, True )", 
#        "LOKI_DTF_CTAUS"       : "DTF_CTAUSIGNIFICANCE( 0, True )", 
        "LOKI_DTF_CHI2NDOF"    : "DTF_CHI2NDOF( True )", 
        "LOKI_DTF_CTAUERR"     : "DTF_CTAUERR( 0, True )", 
        "LOKI_MASS_JpsiConstr" : "DTF_FUN ( M , True , 'J/psi(1S)' )" , 
#        "LOKI_DTF_VCHI2NDOF"   : "DTF_FUN ( VFASPF(VCHI2/VDOF) , True  )"  #Michael commented
        } 
tuple.Bs.addTool(LoKi_Bs)         
tuple.Bs.ToolList+=["LoKi::Hybrid::TupleTool/LoKi_Bs"] 
开发者ID:goi42,项目名称:LbJpsipPi,代码行数:32,代码来源:Xb2JpsiXTreeMC.py

示例4: StrippingStream

# 需要导入模块: from Configurables import DecayTreeTuple [as 别名]
# 或者: from Configurables.DecayTreeTuple import ReFitPVs [as 别名]
from StrippingConf.StrippingStream import StrippingStream
ss = StrippingStream("ByTom")

from StrippingSelections import StrippingElectronID
line = StrippingElectronID.ElectronIDConf("Jpsi2eeForElectronID",eid_config_default)
ss.appendLines( [line.lines()[lineNumber]] )
stripOutputLoc = line.outputLocations()[lineNumber]


############################
### Configure the ntuple ###
############################

myNTUPLE = DecayTreeTuple('myNTUPLE')   
myNTUPLE.ReFitPVs = True # re-fit the PVs
myNTUPLE.ToolList +=  [  "TupleToolGeometry"
                          , "TupleToolKinematic"
                          , "TupleToolEventInfo"
                          , "TupleToolPid"
                          , "TupleToolPropertime"
                          , "TupleToolRecoStats"
                          , "TupleToolTrigger"
                          , "TupleToolTISTOS"
                          , "TupleToolTrackInfo"
                          , "TupleToolMuonVariables"
                          ,"LoKi::Hybrid::EvtTupleTool/LoKiEvent"
                          #,"LoKi::Hybrid::TupleTool/LoKiTool"
                          ]

## ----------  Store Triggers  ---------##
开发者ID:betatim,项目名称:glowing-wookie,代码行数:32,代码来源:Jpsiee_MC.py


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