ATLAS Offline Software
Functions | Variables
python.egammaSteeringConfig Namespace Reference

Functions

def EGammaSteeringCfg (flags, name="EGammaSteering")
 
def egammaSteeringConfigTest (flags=None)
 

Variables

string __doc__
 

Function Documentation

◆ EGammaSteeringCfg()

def python.egammaSteeringConfig.EGammaSteeringCfg (   flags,
  name = "EGammaSteering" 
)

Definition at line 15 of file egammaSteeringConfig.py.

15 def EGammaSteeringCfg(flags,
16  name="EGammaSteering"):
17 
18  mlog = logging.getLogger(name)
19  mlog.info('Starting EGamma Steering')
20 
21  acc = ComponentAccumulator()
22 
23  # e/gamma main Reconstruction
24  from egammaConfig.egammaReconstructionConfig import (
25  egammaReconstructionCfg)
26  acc.merge(egammaReconstructionCfg(flags))
27 
28  # Add e/gamma related containers to the output stream
29  if flags.Output.doWriteESD or flags.Output.doWriteAOD:
30  from egammaConfig.egammaOutputConfig import (
31  egammaOutputCfg)
32  acc.merge(egammaOutputCfg(flags))
33 
34  # LRT Reconstruction
35  if flags.Tracking.doLargeD0:
36  from egammaConfig.egammaLRTReconstructionConfig import (
37  egammaLRTReconstructionCfg)
38  acc.merge(egammaLRTReconstructionCfg(flags))
39 
40  # LRT output
41  if flags.Output.doWriteESD or flags.Output.doWriteAOD:
42  from egammaConfig.egammaLRTOutputConfig import (
43  egammaLRTOutputCfg)
44  acc.merge(egammaLRTOutputCfg(flags))
45 
46  # Add e/gamma xAOD thinning
47  if flags.Output.doWriteAOD:
48  from egammaConfig.egammaxAODThinningConfig import (
49  egammaxAODThinningCfg)
50  acc.merge(egammaxAODThinningCfg(flags))
51 
52  mlog.info("EGamma Steering done")
53  return acc
54 
55 # Run with python -m egammaConfig.egammaSteeringConfig

◆ egammaSteeringConfigTest()

def python.egammaSteeringConfig.egammaSteeringConfigTest (   flags = None)

Definition at line 56 of file egammaSteeringConfig.py.

56 def egammaSteeringConfigTest(flags=None):
57 
58  if flags is None:
59  from AthenaConfiguration.AllConfigFlags import initConfigFlags
60  flags = initConfigFlags()
61  flags.addFlag('egamma.configOnly', False, help='custom option for egammaSteeringConfig to not run, only output config file')
62 
63  from AthenaConfiguration.TestDefaults import defaultTestFiles, defaultConditionsTags
64  flags.Input.Files = defaultTestFiles.RDO_RUN3
65  flags.IOVDb.GlobalTag = defaultConditionsTags.RUN3_MC
66  flags.Exec.MaxEvents = 1
67 
68  flags.Output.doWriteESD = True # To test the ESD parts
69  flags.Output.doWriteAOD = True # To test the AOD parts
70  flags.Output.ESDFileName = "myESD.pool.root"
71  flags.Output.AODFileName = "myAOD.pool.root"
72 
73  from egammaConfig.ConfigurationHelpers import egammaOnlyFromRaw
74  egammaOnlyFromRaw(flags)
75  flags.fillFromArgs()
76 
77  flags.lock()
78 
79  from RecJobTransforms.RecoSteering import RecoSteering
80  acc = RecoSteering(flags)
81 
82  # Special message service configuration
83  from DigitizationConfig.DigitizationSteering import DigitizationMessageSvcCfg
84  acc.merge(DigitizationMessageSvcCfg(flags))
85 
86  from AthenaConfiguration.Utils import setupLoggingLevels
87  setupLoggingLevels(flags, acc)
88 
89  # Print reco domain status
90  from RecJobTransforms.RecoConfigFlags import printRecoFlags
91  printRecoFlags(flags)
92 
93  with open("egammasteeringconfig.pkl", "wb") as f:
94  acc.store(f)
95 
96  if hasattr(flags, 'egamma') and flags.egamma.configOnly:
97  return None # returns statusCode of None
98  else:
99  statusCode = acc.run()
100  return statusCode
101 

Variable Documentation

◆ __doc__

string python.egammaSteeringConfig.__doc__
private
Initial value:
1 = """
2  Instantiate the
3  Things needed upstream the main egamma Reconstruction,
4  EGamma Reconstruction,
5  Output Item Lists,
6  xAOD related Thinning
7  """

Definition at line 3 of file egammaSteeringConfig.py.

python.egammaOutputConfig.egammaOutputCfg
def egammaOutputCfg(flags, name="EGOutputList")
Definition: egammaOutputConfig.py:8
python.RecoSteering.RecoSteering
def RecoSteering(flags)
Definition: RecoSteering.py:6
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.RecoConfigFlags.printRecoFlags
def printRecoFlags(flags)
Definition: RecoConfigFlags.py:153
python.egammaLRTReconstructionConfig.egammaLRTReconstructionCfg
def egammaLRTReconstructionCfg(flags, name="egammaLRTReconstruction")
Definition: egammaLRTReconstructionConfig.py:13
python.DigitizationSteering.DigitizationMessageSvcCfg
def DigitizationMessageSvcCfg(flags)
Definition: DigitizationSteering.py:217
python.egammaSteeringConfig.EGammaSteeringCfg
def EGammaSteeringCfg(flags, name="EGammaSteering")
Definition: egammaSteeringConfig.py:15
python.Utils.setupLoggingLevels
def setupLoggingLevels(flags, ca)
Definition: Control/AthenaConfiguration/python/Utils.py:46
python.egammaSteeringConfig.egammaSteeringConfigTest
def egammaSteeringConfigTest(flags=None)
Definition: egammaSteeringConfig.py:56
python.egammaxAODThinningConfig.egammaxAODThinningCfg
def egammaxAODThinningCfg(flags, name="EGammaxAODThinning")
Definition: egammaxAODThinningConfig.py:10
python.egammaLRTOutputConfig.egammaLRTOutputCfg
def egammaLRTOutputCfg(flags, name="LRTEGOutputList")
Definition: egammaLRTOutputConfig.py:8
python.ConfigurationHelpers.egammaOnlyFromRaw
def egammaOnlyFromRaw(flags)
Definition: Reconstruction/egamma/egammaConfig/python/ConfigurationHelpers.py:3
Trk::open
@ open
Definition: BinningType.h:40
python.AllConfigFlags.initConfigFlags
def initConfigFlags()
Definition: AllConfigFlags.py:19
python.egammaReconstructionConfig.egammaReconstructionCfg
def egammaReconstructionCfg(flags, name="egammaReconstruction")
Definition: egammaReconstructionConfig.py:11