ATLAS Offline Software
Loading...
Searching...
No Matches
JetFitterV0FinderToolConfig.py
Go to the documentation of this file.
1# Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
2
3from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
4from AthenaConfiguration.ComponentFactory import CompFactory
5from AthenaConfiguration.Enums import LHCPeriod
6
7from BTagging.InDetJetFitterUtilsConfig import InDetJetFitterUtilsCfg
8from BTagging.JetFitterMode3dTo1dFinderConfig import JetFitterMode3dTo1dFinderCfg
9
10
11def JetFitterV0FinderToolCfg(flags, name, suffix="", useBTagFlagsDefaults = True, **options):
12 """Sets up a JetFitterV0FinderTool tool and returns it.
13
14 The following options have defaults:
15
16 revertFromPositiveToNegativeTags default: False
17 cutTwoTrkVtxVtxProbForBFirstSelectCriteriumA default: 0.05
18 cutTwoTrkVtxVtxProbForBFirstSelectCriteriumB default: 0.034
19 cutCompatibilityPrimaryVertexSingleTrackForBFirstSelection default: 1e-1
20 cutCompatibilityPrimaryVertexBothTracksForBFirstSelection default: 1e-2
21 cutIPD0BothTracksForBFirstSelection default: 3.5
22 cutIPZ0BothTracksForBFirstSelection default: 5.
23 cutPtBothTracksForBFirstSelection default: 500.
24 cutTwoTrkVtxLifeSignForBFirstSelectCriteriumA default: 1.
25 cutTwoTrkVtxLifeSignForBFirstSelectCriteriumB default: 1.5
26 cutCompToPrimarySingleTrackForMatInterac default: 1e-4
27 cutCompToPrimaryBothTracksForMatInterac default: 1e-6
28 firstLayer_min default: 34.0-2.5
29 firstLayer_max default: 34.0+2.5
30 secondLayer_min default: 51.5-3
31 secondLayer_max default: 51.5+3
32 cutCompPVSinglePosLifeTrackForBSecondSelect default: 5e-2
33 cutCompPVSingleNegLifeTrackForBSecondSelect default: 1e-2
34 cutIPD0SigBoxSingleTrackForBSecondSelection default: 2.
35 cutIPZ0SigBoxSingleTrackForBSecondSelection default: 5.
36 cutIPD0SingleTrackForBSecondSelection default: 1.5
37 cutIPZ0SingleTrackForBSecondSelection default: 3.
38 cutPtSingleTrackForBSecondSelection default: 750
39
40 input: name: The name of the tool (should be unique).
41 useBTagFlagsDefaults : Whether to use BTaggingFlags defaults for options that are not specified.
42 **options: Python dictionary with options for the tool.
43 output: The actual tool, which can then by added to ToolSvc via ToolSvc += output."""
44 acc = ComponentAccumulator()
45 if useBTagFlagsDefaults:
46 inDetJetFitterUtils = acc.popToolsAndMerge(InDetJetFitterUtilsCfg(flags,'InDetJFUtils'+suffix))
47 jetFitterMode3dTo1dFinder = acc.popToolsAndMerge(JetFitterMode3dTo1dFinderCfg(flags, 'JFMode3dTo1dFinder'+suffix))
48 defaults = { 'revertFromPositiveToNegativeTags' : True if (suffix=="FLIP_SIGN") else False,
49 'InDetJetFitterUtils' : inDetJetFitterUtils,
50 'Mode3dFinder' : jetFitterMode3dTo1dFinder,
51 'useITkMaterialRejection' : flags.GeoModel.Run >= LHCPeriod.Run4 }
52 for option in defaults:
53 options.setdefault(option, defaults[option])
54
55
56 options['name'] = name
57 acc.setPrivateTools(CompFactory.InDet.JetFitterV0FinderTool(**options))
58 return acc
59
60
61
JetFitterV0FinderToolCfg(flags, name, suffix="", useBTagFlagsDefaults=True, **options)