3 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
4 from AthenaConfiguration.ComponentFactory
import CompFactory
5 from AthenaConfiguration.Enums
import LHCPeriod
7 from BTagging.InDetJetFitterUtilsConfig
import InDetJetFitterUtilsCfg
8 from BTagging.JetFitterMode3dTo1dFinderConfig
import JetFitterMode3dTo1dFinderCfg
12 """Sets up a JetFitterV0FinderTool tool and returns it.
14 The following options have defaults:
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
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."""
45 if useBTagFlagsDefaults:
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])
56 options[
'name'] = name
57 acc.setPrivateTools(CompFactory.InDet.JetFitterV0FinderTool(**options))