Skip to content

Instantly share code, notes, and snippets.

@alexpearce
Created January 12, 2015 16:06
Show Gist options
  • Save alexpearce/ac73b9442f8b196fdd51 to your computer and use it in GitHub Desktop.
Save alexpearce/ac73b9442f8b196fdd51 to your computer and use it in GitHub Desktop.
Fake phi combination
phi_combination = CombineParticles(
'CombineCheatedphiToKK',
Preambulo=truth_matching_preambulo,
# There's no "anti-phi", so no [...]cc
DecayDescriptors=['phi(1020) -> K- K+'],
Inputs=[
kaons
],
# The D_s+ MC sample models the resonant phase space but doesn't insert
# actual resonant particles, so there isn't a real phi
DaughtersCuts={
'K+': "mcMatch('([D_s+ ==> ^K- ^K+ pi+]CC)')"
},
CombinationCut='AALL',
MotherCut='ALL'
)
ds_combination = CombineParticles(
'CombineCheatedDsTophipi',
Preambulo=truth_matching_preambulo,
DecayDescriptors=['[D_s+ -> phi(1020) pi+]cc'],
Inputs=[
pions,
'Phys/{0}'.format(phi_combination.getName())
],
DaughtersCuts={
'pi+': "mcMatch('([D_s+ ==> K- K+ ^pi+]CC)')"
},
CombinationCut='AALL',
MotherCut="mcMatch('([D_s+ ==> K- K+ pi+]CC)')"
)
ds_cheated = ds.clone('Cheated{0}'.format(ds.getName()))
ds_cheated.Inputs = ['Phys/{0}'.format(ds_combination.getName())]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment