ATLAS Offline Software
JetHitAssociationConfig.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
2 
3 # Needed to get name of split probability container
4 from InDetConfig.TrackRecoConfig import ClusterSplitProbabilityContainerName
5 
6 # We need to add this algorithm to get the TrackMeasurementValidationContainer
7 from InDetConfig.InDetPrepRawDataToxAODConfig import InDetPixelPrepDataToxAODCfg, InDetSCT_PrepDataToxAODCfg
8 
9 from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
10 from AthenaConfiguration.ComponentFactory import CompFactory
11 
12 def JetHitAssociationCfg(flags, name="JetHitAssociation", **kwargs):
13 
14  acc = ComponentAccumulator()
15 
16  isMC = flags.Input.isMC
17 
18 
19 
20  acc.merge(
22  flags,
23  ClusterSplitProbabilityName=ClusterSplitProbabilityContainerName(flags),
24  WriteSiHits=isMC,
25  WriteSDOs=isMC,
26  # see ATR-27293 for discussion on why this was disabled
27  WriteNNinformation=False
28  )
29  )
30 
31  acc.merge(
33  flags,
34  WriteSiHits=isMC,
35  WriteSDOs=isMC
36  )
37  )
38 
39  acc.addEventAlgo(
40  CompFactory.JetHitAssociation(
41  "JetHitAssociation",
42  jetCollectionName = flags.BTagging.Trackless_JetCollection,
43  jetPtThreshold = flags.BTagging.Trackless_JetPtMin,
44  dRmatchHitToJet = flags.BTagging.Trackless_dR
45  )
46  )
47 
48  return acc
49 
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.TrackRecoConfig.ClusterSplitProbabilityContainerName
def ClusterSplitProbabilityContainerName(flags)
Definition: TrackRecoConfig.py:86
python.InDetPrepRawDataToxAODConfig.InDetPixelPrepDataToxAODCfg
def InDetPixelPrepDataToxAODCfg(flags, name='InDetPixelPrepDataToxAOD', **kwargs)
Definition: InDetPrepRawDataToxAODConfig.py:12
python.JetHitAssociationConfig.JetHitAssociationCfg
def JetHitAssociationCfg(flags, name="JetHitAssociation", **kwargs)
Definition: JetHitAssociationConfig.py:12
python.InDetPrepRawDataToxAODConfig.InDetSCT_PrepDataToxAODCfg
def InDetSCT_PrepDataToxAODCfg(flags, name='InDetSCTPrepDataToxAOD', **kwargs)
Definition: InDetPrepRawDataToxAODConfig.py:118