Skip to content
Snippets Groups Projects

Adding example for track isolation variables

Merged Tommaso Fulghesu requested to merge tfulghes-SUMCONE-functor into master
1 file
+ 16
6
Compare changes
  • Side-by-side
  • Inline
@@ -35,19 +35,29 @@ make_parts = _make_particles()
isolation_container = ParticleContainerMerger(
InputContainers=[make_parts]).OutputContainer
tagAlg = ParticleTaggerAlg(
Input=bd2dsk_data, ParticleContainer=isolation_container, OutputLevel=3)
tagAlg_out = tagAlg.Output
tagAlg_rels = tagAlg.OutputRelations
isoAlg = ParticleIsolationAlg(
Input=bd2dsk_data, ParticleContainer=isolation_container, DeltaR2=0.4)
isoAlg_rels = isoAlg.OutputRelations
#make collection of functors
variables_B = FunctorCollection({
'THOR_MASS':
F.MASS,
"Sum_P":
F.SUM_CONE(Functor=F.SUM_RANGE(Functor=F.P), Relations=isoAlg_rels),
F.SUMCONE(Functor=F.SUM_RANGE(Functor=F.P), Relations=isoAlg_rels),
"Sum_PT":
F.SUM_CONE(Functor=F.SUM_RANGE(Functor=F.PT), Relations=isoAlg_rels),
F.SUMCONE(Functor=F.SUM_RANGE(Functor=F.PT), Relations=isoAlg_rels),
})
#make collection of functors
variables_K = FunctorCollection({
'THOR_MASS':
F.MASS,
"Sum_P":
F.SUMCONE(Functor=F.SUM_RANGE(Functor=F.P), Relations=isoAlg_rels),
"Sum_PT":
F.SUMCONE(Functor=F.SUM_RANGE(Functor=F.PT), Relations=isoAlg_rels),
})
#make collection of functors for Muplus
Loading