本文整理汇总了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"]
示例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"
示例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"]
示例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 ---------##