Skip to content
Snippets Groups Projects

Test for DecayTreeFitterAlg

Merged Patrick Koppenburg requested to merge pkoppenb-DecayTreeFitterAlg into master
All threads resolved!
1 file
+ 9
5
Compare changes
  • Side-by-side
  • Inline
@@ -36,12 +36,16 @@ dimuons = make_detached_mumu()
#
# DecayTreeFitter Algorithm
#
DTF = DecayTreeFitterAlg(Input=dimuons, MassConstraints=["J/psi(1S)"], PrintTree=True, OutputLevel =1)
DTF = DecayTreeFitterAlg(
Input=dimuons,
MassConstraints=["J/psi(1S)"],
PrintTree=True,
OutputLevel=3)
DTFParts = DTF.Output # Particles
DTFLinks = DTF.OutputLink # Links
DTFParts = DTF.Output # Particles
DTFRelations = DTF.OutputRelations # Relations
print("DTFA: {0} {1} {2}".format(DTF,DTFParts,DTFLinks))
print("DTFA: {0} {1} {2}".format(DTF, DTFParts, DTFRelations))
#
# Let's print them
#
@@ -60,7 +64,7 @@ print('Variables in ALL branch', variables_all)
#associate FunctorCollection to branch name
variables = {}
variables['ALL'] = variables_all #adds variables to all branches
# PK # PT_refit = F.MAP_INPUT(functor=F.PT, mapping=DTFLinks, default=-1),
# PK # PT_refit = F.MAP_INPUT(functor=F.PT, mapping=DTFRelations, default=-1),
# PK # variables['Jpsi'] = {'DTF_PT': PT_refit}
#FunTuple: define list of preambles for loki
Loading