ATLAS Offline Software
Functions | Variables
runTauOnly_LCTopo Namespace Reference

Functions

def tauSpecialContent (flags, cfg)
 
def _run ()
 

Variables

 statusCode = None
 

Function Documentation

◆ _run()

def runTauOnly_LCTopo._run ( )
private

Definition at line 25 of file runTauOnly_LCTopo.py.

25 def _run():
26  from AthenaConfiguration.AllConfigFlags import initConfigFlags
27  flags = initConfigFlags()
28  # input
29  from AthenaConfiguration.TestDefaults import defaultTestFiles
30  flags.Exec.MaxEvents = 20
31  flags.Input.Files = defaultTestFiles.RDO_RUN2
32  from AthenaConfiguration.Enums import ProductionStep
33  flags.Common.ProductionStep = ProductionStep.Reconstruction
34 
35  # output
36  flags.Output.ESDFileName = "myESD.pool.root"
37  flags.Output.AODFileName = "myAOD.pool.root"
38 
39  # uncomment given something like export ATHENA_CORE_NUMBER=2
40  # flags.Concurrency.NumThreads = 2
41 
42  # Setup detector flags
43  from AthenaConfiguration.DetectorConfigFlags import setupDetectorFlags
44  setupDetectorFlags(flags, None, use_metadata=True,
45  toggle_geometry=True, keep_beampipe=True)
46 
47  # Schedule Tau Reco
48  from tauRec.ConfigurationHelpers import StandaloneTauRecoFlags
50  flags.lock()
51 
52  from RecJobTransforms.RecoSteering import RecoSteering
53  acc = RecoSteering(flags)
54 
55  # keep only tau containers
56  tauSpecialContent(flags,acc)
57 
58  # Special message service configuration
59  from DigitizationConfig.DigitizationSteering import DigitizationMessageSvcCfg
60  acc.merge(DigitizationMessageSvcCfg(flags))
61 
62  from AthenaConfiguration.Utils import setupLoggingLevels
63  setupLoggingLevels(flags, acc)
64 
65  # Print reco domain status
66  from RecJobTransforms.RecoConfigFlags import printRecoFlags
67  printRecoFlags(flags)
68 
69  # running
70  statusCode = acc.run()
71 
72  return statusCode
73 
74 

◆ tauSpecialContent()

def runTauOnly_LCTopo.tauSpecialContent (   flags,
  cfg 
)

Definition at line 15 of file runTauOnly_LCTopo.py.

15 def tauSpecialContent(flags,cfg):
16  from OutputStreamAthenaPool.OutputStreamConfig import outputStreamName
17  StreamAOD = cfg.getEventAlgo(outputStreamName("AOD"))
18  newList = [x for x in StreamAOD.ItemList if "Tau" in x]
19  StreamAOD.ItemList = newList
20 
21  StreamESD = cfg.getEventAlgo(outputStreamName("ESD"))
22  newList = [x for x in StreamESD.ItemList if "Tau" in x]
23  StreamESD.ItemList = newList
24 

Variable Documentation

◆ statusCode

def runTauOnly_LCTopo.statusCode = None

Definition at line 76 of file runTauOnly_LCTopo.py.

AthenaPoolExample_WriteCond.outputStreamName
string outputStreamName
Definition: AthenaPoolExample_WriteCond.py:21
python.RecoSteering.RecoSteering
def RecoSteering(flags)
Definition: RecoSteering.py:6
ConfigurationHelpers.StandaloneTauRecoFlags
def StandaloneTauRecoFlags(flags)
Definition: Reconstruction/tauRec/python/ConfigurationHelpers.py:6
runTauOnly_LCTopo._run
def _run()
Definition: runTauOnly_LCTopo.py:25
python.RecoConfigFlags.printRecoFlags
def printRecoFlags(flags)
Definition: RecoConfigFlags.py:153
python.DigitizationSteering.DigitizationMessageSvcCfg
def DigitizationMessageSvcCfg(flags)
Definition: DigitizationSteering.py:217
python.Utils.setupLoggingLevels
def setupLoggingLevels(flags, ca)
Definition: Control/AthenaConfiguration/python/Utils.py:46
runTauOnly_LCTopo.tauSpecialContent
def tauSpecialContent(flags, cfg)
Definition: runTauOnly_LCTopo.py:15
python.DetectorConfigFlags.setupDetectorFlags
def setupDetectorFlags(flags, custom_list=None, use_metadata=False, toggle_geometry=False, validate_only=False, keep_beampipe=False)
Definition: DetectorConfigFlags.py:289
python.AllConfigFlags.initConfigFlags
def initConfigFlags()
Definition: AllConfigFlags.py:19