ATLAS Offline Software
Functions | Variables
AFPRecConfig Namespace Reference

Functions

def AFPRecOutputCfg (flags)
 
def AFPRecCfg (flags)
 

Variables

 flags = initConfigFlags()
 
 CheckDependencies
 
 ShowDataDeps
 
 ShowDataFlow
 
 ShowControlFlow
 
 EnableVerboseViews
 
 Files
 
 doWriteAOD
 
 AODFileName
 
 MaxEvents
 
 NumThreads
 
 acc = MainServicesCfg(flags)
 
 OutputLevel
 
 withDetails
 
 True
 
 summariseProps
 
 status = acc.run()
 

Function Documentation

◆ AFPRecCfg()

def AFPRecConfig.AFPRecCfg (   flags)
defines AFP reconstruction; provides the same setup as used to be in ForwardRec/ForwardRec_jobOptions.py

Definition at line 61 of file AFPRecConfig.py.

61 def AFPRecCfg(flags):
62  """defines AFP reconstruction; provides the same setup as used to be in ForwardRec/ForwardRec_jobOptions.py"""
63  acc = ComponentAccumulator()
64 
65  if flags.Input.Format is Format.BS:
66  from AthenaConfiguration.ComponentFactory import CompFactory
67 
68  acc.addEventAlgo(CompFactory.AFP_RawDataProvider("AFP_RawDataProvider"))
69  acc.addEventAlgo(CompFactory.AFP_Raw2Digi("AFP_Raw2Digi"))
70 
71  #cluster reconstruction
72  from AFP_SiClusterTools.AFP_SiClusterTools import AFP_SiClusterTools_Cfg
73  acc.merge(AFP_SiClusterTools_Cfg(flags))
74 
75  # tracks reconstruction
76  from AFP_LocReco.AFP_LocReco import AFP_LocReco_SiD_Cfg, AFP_LocReco_TD_Cfg
77  acc.merge(AFP_LocReco_SiD_Cfg(flags))
78  acc.merge(AFP_LocReco_TD_Cfg(flags))
79 
80  # protons reconstruction
81  from AFP_GlobReco.AFP_GlobReco import AFP_GlobReco_Cfg
82  acc.merge(AFP_GlobReco_Cfg(flags))
83 
84  # vertex reconstruction
85  from AFP_VertexReco.AFP_VertexReco import AFP_VertexReco_Cfg
86  acc.merge(AFP_VertexReco_Cfg(flags))
87 
88  # Setup output
89  if flags.Output.doWriteESD or flags.Output.doWriteAOD:
90  acc.merge(AFPRecOutputCfg(flags))
91 
92  return acc
93 
94 

◆ AFPRecOutputCfg()

def AFPRecConfig.AFPRecOutputCfg (   flags)
defines outputs for ESD and AOD; provides the same information as in ForwardRec/AFP_Rec_OutputItemList_jobOptions.py

Definition at line 22 of file AFPRecConfig.py.

22 def AFPRecOutputCfg(flags):
23  """defines outputs for ESD and AOD; provides the same information as in ForwardRec/AFP_Rec_OutputItemList_jobOptions.py"""
24  from OutputStreamAthenaPool.OutputStreamConfig import OutputStreamCfg
25  acc = ComponentAccumulator()
26 
27  AFP_ItemList=[]
28 
29  if flags.Input.Format is Format.BS:
30  # AFP Silicon hits containers
31  AFP_ItemList.append("xAOD::AFPSiHitContainer#AFPSiHitContainer")
32  AFP_ItemList.append("xAOD::AFPSiHitAuxContainer#AFPSiHitContainerAux.")
33  AFP_ItemList.append("xAOD::AFPSiHitsClusterContainer#AFPSiHitsClusterContainer")
34  AFP_ItemList.append("xAOD::AFPSiHitsClusterAuxContainer#AFPSiHitsClusterContainerAux.")
35 
36  # for runs with more BCX ids i.e. before timing in the detectors
37  for bcIDshift in range (1, 6):
38  name = "AFPSiHitContainerBcIDplus" + str(bcIDshift)
39  AFP_ItemList.append("xAOD::AFPSiHitContainer#" + name)
40  AFP_ItemList.append("xAOD::AFPSiHitAuxContainer#" + name + "Aux.")
41 
42  AFP_ItemList.append("xAOD::AFPTrackContainer#AFPTrackContainer")
43  AFP_ItemList.append("xAOD::AFPTrackAuxContainer#AFPTrackContainerAux.")
44  AFP_ItemList.append("xAOD::AFPToFHitContainer#AFPToFHitContainer")
45  AFP_ItemList.append("xAOD::AFPToFHitAuxContainer#AFPToFHitContainerAux.")
46  AFP_ItemList.append("xAOD::AFPProtonContainer#AFPProtonContainer")
47  AFP_ItemList.append("xAOD::AFPProtonAuxContainer#AFPProtonContainerAux.")
48  AFP_ItemList.append("xAOD::AFPToFTrackContainer#AFPToFTrackContainer")
49  AFP_ItemList.append("xAOD::AFPToFTrackAuxContainer#AFPToFTrackContainerAux.")
50  AFP_ItemList.append("xAOD::AFPVertexContainer#AFPVertexContainer")
51  AFP_ItemList.append("xAOD::AFPVertexAuxContainer#AFPVertexContainerAux.")
52 
53 
54  if flags.Output.doWriteESD:
55  acc.merge(OutputStreamCfg(flags, "ESD", AFP_ItemList))
56  if flags.Output.doWriteAOD:
57  acc.merge(OutputStreamCfg(flags, "AOD", AFP_ItemList))
58  return acc
59 
60 

Variable Documentation

◆ acc

AFPRecConfig.acc = MainServicesCfg(flags)

Definition at line 117 of file AFPRecConfig.py.

◆ AODFileName

AFPRecConfig.AODFileName

Definition at line 108 of file AFPRecConfig.py.

◆ CheckDependencies

AFPRecConfig.CheckDependencies

Definition at line 99 of file AFPRecConfig.py.

◆ doWriteAOD

AFPRecConfig.doWriteAOD

Definition at line 107 of file AFPRecConfig.py.

◆ EnableVerboseViews

AFPRecConfig.EnableVerboseViews

Definition at line 103 of file AFPRecConfig.py.

◆ Files

AFPRecConfig.Files

Definition at line 105 of file AFPRecConfig.py.

◆ flags

AFPRecConfig.flags = initConfigFlags()

Definition at line 98 of file AFPRecConfig.py.

◆ MaxEvents

AFPRecConfig.MaxEvents

Definition at line 109 of file AFPRecConfig.py.

◆ NumThreads

AFPRecConfig.NumThreads

Definition at line 110 of file AFPRecConfig.py.

◆ OutputLevel

AFPRecConfig.OutputLevel

Definition at line 125 of file AFPRecConfig.py.

◆ ShowControlFlow

AFPRecConfig.ShowControlFlow

Definition at line 102 of file AFPRecConfig.py.

◆ ShowDataDeps

AFPRecConfig.ShowDataDeps

Definition at line 100 of file AFPRecConfig.py.

◆ ShowDataFlow

AFPRecConfig.ShowDataFlow

Definition at line 101 of file AFPRecConfig.py.

◆ status

AFPRecConfig.status = acc.run()

Definition at line 129 of file AFPRecConfig.py.

◆ summariseProps

AFPRecConfig.summariseProps

Definition at line 127 of file AFPRecConfig.py.

◆ True

AFPRecConfig.True

Definition at line 127 of file AFPRecConfig.py.

◆ withDetails

AFPRecConfig.withDetails

Definition at line 127 of file AFPRecConfig.py.

AFP_VertexReco.AFP_VertexReco_Cfg
def AFP_VertexReco_Cfg(flags, kwargs={})
Definition: AFP_VertexReco.py:13
AFPRecConfig.AFPRecCfg
def AFPRecCfg(flags)
Definition: AFPRecConfig.py:61
AFP_GlobReco.AFP_GlobReco_Cfg
def AFP_GlobReco_Cfg(flags, kwargs={})
Definition: AFP_GlobReco.py:11
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
AFP_LocReco.AFP_LocReco_TD_Cfg
def AFP_LocReco_TD_Cfg(flags, kwargs={})
Definition: AFP_LocReco.py:61
python.OutputStreamConfig.OutputStreamCfg
def OutputStreamCfg(flags, streamName, ItemList=[], MetadataItemList=[], disableEventTag=False, trigNavThinningSvc=None, takeItemsFromInput=False, extendProvenanceRecord=True, AcceptAlgs=[], HelperTools=[])
Definition: OutputStreamConfig.py:12
AFP_SiClusterTools.AFP_SiClusterTools_Cfg
def AFP_SiClusterTools_Cfg(flags, kwargs={})
Definition: AFP_SiClusterTools.py:14
AFP_LocReco.AFP_LocReco_SiD_Cfg
def AFP_LocReco_SiD_Cfg(flags, kwargs={})
Definition: AFP_LocReco.py:13
str
Definition: BTagTrackIpAccessor.cxx:11
AFPRecConfig.AFPRecOutputCfg
def AFPRecOutputCfg(flags)
Definition: AFPRecConfig.py:22