本文整理汇总了Python中Configurables.DecayTreeTuple.clone方法的典型用法代码示例。如果您正苦于以下问题:Python DecayTreeTuple.clone方法的具体用法?Python DecayTreeTuple.clone怎么用?Python DecayTreeTuple.clone使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Configurables.DecayTreeTuple
的用法示例。
在下文中一共展示了DecayTreeTuple.clone方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: LoKi__Hybrid__TupleTool
# 需要导入模块: from Configurables import DecayTreeTuple [as 别名]
# 或者: from Configurables.DecayTreeTuple import clone [as 别名]
]
LoKi_Vars = LoKi__Hybrid__TupleTool("LoKi_Vars")
LoKi_Vars.Variables = {
"LoKi_BPVVDCHI2" : "BPVVDCHI2"
, "LoKi_BPVIPCHI2" : "BPVIPCHI2()"
, "LoKi_DOCA" : "DOCA(1,2)"
, "LoKi_BPVLTIME" : "BPVLTIME()"
}
# "[D+ -> K+ mu+ mu-]cc"
# "[D- -> K+ mu- mu-]cc"
D2KmumuOSTuple = tuple.clone("D2KmumuOSTuple") #updated
D2KmumuOSTuple.Inputs = [ KMuMuOSlocation ] #updated
D2KmumuOSTuple.Decay = "[D+ -> ^K+ ^mu+ ^mu-]CC" #updated
D2KmumuOSTuple.Branches = { "D" : "[D+ -> K+ mu+ mu-]CC"} #updated
# Instead of D+
D2KmumuOSTuple.addTool(TupleToolDecay, name="D+") #updated
D2KmumuOSTuple.P2PVInputLocations = ["Phys/D2XMuMu_KOSLine/Particle2VertexRelations"]
D2KmumuSSTuple = tuple.clone("D2KmumuSSTuple") #updated
D2KmumuSSTuple.Inputs = [ KMuMuSSlocation ] #updated
D2KmumuSSTuple.Decay = "[D- -> ^K+ ^mu- ^mu-]CC" #updated
D2KmumuSSTuple.Branches = { "D" : "[D- -> K+ mu- mu-]CC"} #updated
D2KmumuSSTuple.addTool(TupleToolDecay, name="D-") #updated
D2KmumuSSTuple.P2PVInputLocations = ["Phys/D2XMuMu_KSSLine/Particle2VertexRelations"]
示例2: LoKi__Hybrid__TupleTool
# 需要导入模块: from Configurables import DecayTreeTuple [as 别名]
# 或者: from Configurables.DecayTreeTuple import clone [as 别名]
,'Hlt2DiMuonDecision'
,'Hlt2CharmSemilepD2HMuMuDecision'
,'Hlt2CharmSemilepD2HMuMuWideMassDecision'
]
LoKi_Vars = LoKi__Hybrid__TupleTool("LoKi_Vars")
LoKi_Vars.Variables = {
"LoKi_BPVVDCHI2" : "BPVVDCHI2"
, "LoKi_BPVIPCHI2" : "BPVIPCHI2()"
, "LoKi_DOCA" : "DOCA(1,2)"
, "LoKi_BPVLTIME" : "BPVLTIME()"
}
D2PimumuOSTuple = tuple.clone("D2PimumuOSTuple")
D2PimumuOSTuple.Inputs = [ PiMuMuOSlocation ]
D2PimumuOSTuple.Decay = "[D+ -> ^pi+ ^mu+ ^mu-]CC"
D2PimumuOSTuple.Branches = { "D" : "[D+ -> pi+ mu+ mu-]CC"}
D2PimumuOSTuple.addTool(TupleToolDecay, name="D+")
D2PimumuOSTuple.P2PVInputLocations = ["Phys/D2XMuMu_PiOSLine/Particle2VertexRelations"]
#----------------------------------------
# 2) Run within DaVinci
#----------------------------------------
magPol = "Down"
year = "11"
DaVinci().RootInTES = rootInTes
示例3:
# 需要导入模块: from Configurables import DecayTreeTuple [as 别名]
# 或者: from Configurables.DecayTreeTuple import clone [as 别名]
myNTUPLE.addTool(TupleToolTISTOS)
myNTUPLE.TupleToolTISTOS.VerboseL0 = True
myNTUPLE.TupleToolTISTOS.VerboseHlt1 = True
myNTUPLE.TupleToolTISTOS.VerboseHlt2 = True
myNTUPLE.TupleToolTISTOS.OutputLevel = WARNING
myNTUPLE.TupleToolTISTOS.FillL0 = True
myNTUPLE.TupleToolTISTOS.FillHlt1 = True
myNTUPLE.TupleToolTISTOS.FillHlt2 = True
myNTUPLE.TupleToolTISTOS.TriggerList = triggerListF
myNTUPLE.TupleToolTISTOS.PIDList = [511, 521, 531, 443, 13, 11, 321]
############################
### Make ntuples ###
############################
B2JpsiKTuple = myNTUPLE.clone("B2JpsiKTuple")
B2JpsiKTuple.Inputs = [B2JpsiKInput]
B2JpsiKTuple.Decay = myDecay
############################
### DV configuration ####
############################
from Configurables import DaVinci
DaVinci().EvtMax = myEvents
DaVinci().SkipEvents = 0
DaVinci().DataType = "2011"
DaVinci().Simulation = True
DaVinci().Lumi = False
DaVinci().UserAlgorithms = [ mySequencer ]
DaVinci().MoniSequence += [B2JpsiKTuple]