egammaSelectedTrackCopy.py 1.61 KB
Newer Older
1
2
3
4
5
6
# Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration

__doc__ = "ToolFactory to instantiate egammaSelectedTrackCopy with default configuration"
__author__ = "Christos"

from egammaAlgs import egammaAlgsConf
7
from egammaRec.Factories import ToolFactory, AlgFactory
8
9
# to set jobproperties.egammaRecFlags
from egammaRec.egammaRecFlags import jobproperties
10
from InDetRecExample.InDetKeys import InDetKeys
11
from egammaTrackTools.egammaTrackToolsFactories import EMExtrapolationTools, EMExtrapolationToolsCommonCache
12
13
from egammaCaloTools import egammaCaloToolsConf

14
15
egammaCaloClusterGSFSelector = ToolFactory(egammaCaloToolsConf.egammaCaloClusterSelector,
                                           name='caloClusterGSFSelector',
16
                                           EMEtCut=2250.,
17
                                           EMEtSplittingFraction = 0.7,
18
                                           EMFCut=0.5
19
                                           )
20

21
22
23
24
25
26
27
28
egammaSelectedTrackCopy = AlgFactory(egammaAlgsConf.egammaSelectedTrackCopy,
                                     name='egammaSelectedTrackCopy',
                                     ExtrapolationTool=EMExtrapolationTools,
                                     ExtrapolationToolCommonCache=EMExtrapolationToolsCommonCache,
                                     ClusterContainerName=jobproperties.egammaRecFlags.egammaTopoClusterCollection(),
                                     TrackParticleContainerName=InDetKeys.xAODTrackParticleContainer(),
                                     egammaCaloClusterSelector=egammaCaloClusterGSFSelector
                                     )