ATLAS Offline Software
Loading...
Searching...
No Matches
python.JetFitterV0FinderToolConfig Namespace Reference

Functions

 JetFitterV0FinderToolCfg (flags, name, suffix="", useBTagFlagsDefaults=True, **options)

Function Documentation

◆ JetFitterV0FinderToolCfg()

python.JetFitterV0FinderToolConfig.JetFitterV0FinderToolCfg ( flags,
name,
suffix = "",
useBTagFlagsDefaults = True,
** options )
Sets up a JetFitterV0FinderTool tool and returns it. 

The following options have defaults:

revertFromPositiveToNegativeTags                               default: False
cutTwoTrkVtxVtxProbForBFirstSelectCriteriumA                   default: 0.05
cutTwoTrkVtxVtxProbForBFirstSelectCriteriumB                   default: 0.034
cutCompatibilityPrimaryVertexSingleTrackForBFirstSelection     default: 1e-1
cutCompatibilityPrimaryVertexBothTracksForBFirstSelection      default: 1e-2
cutIPD0BothTracksForBFirstSelection                            default: 3.5
cutIPZ0BothTracksForBFirstSelection                            default: 5.
cutPtBothTracksForBFirstSelection                              default: 500.
cutTwoTrkVtxLifeSignForBFirstSelectCriteriumA                  default: 1.
cutTwoTrkVtxLifeSignForBFirstSelectCriteriumB                  default: 1.5
cutCompToPrimarySingleTrackForMatInterac                       default: 1e-4
cutCompToPrimaryBothTracksForMatInterac                        default: 1e-6
firstLayer_min                                                 default: 34.0-2.5
firstLayer_max                                                 default: 34.0+2.5
secondLayer_min                                                default: 51.5-3
secondLayer_max                                                default: 51.5+3
cutCompPVSinglePosLifeTrackForBSecondSelect                    default: 5e-2 
cutCompPVSingleNegLifeTrackForBSecondSelect                    default: 1e-2
cutIPD0SigBoxSingleTrackForBSecondSelection                    default: 2.
cutIPZ0SigBoxSingleTrackForBSecondSelection                    default: 5.
cutIPD0SingleTrackForBSecondSelection                          default: 1.5
cutIPZ0SingleTrackForBSecondSelection                          default: 3.
cutPtSingleTrackForBSecondSelection                            default: 750

input:             name: The name of the tool (should be unique).
  useBTagFlagsDefaults : Whether to use BTaggingFlags defaults for options that are not specified.
              **options: Python dictionary with options for the tool.
output: The actual tool, which can then by added to ToolSvc via ToolSvc += output.

Definition at line 11 of file JetFitterV0FinderToolConfig.py.

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