Table of Contents

How to include all track types in an analysis

Problem

When specifying the input for CombineParticles, only the specified types of tracks are take into account (most of the time LongTracks). However, it may be beneficial to look at different track types at the same time.

Implementation

To do this, write in your code:

from Configurables import NoPIDsParticleMaker, TrackSelector
myParts = NoPIDsParticleMaker("myParts")
myParts.Particle = 'kaon'
myParts.addTool(TrackSelector)
myParts.TrackSelector.TrackTypes = ['Long', 'Downstream', 'Upstream', 'Ttrack']

which will cast the specified track types to Kaons (assigning them the Kaon mass). Further do:

mySelection.InputLocations = [ "myParts" ]

and add myParts into your sequences.