ATLAS Offline Software
SimpleViewExample.py
Go to the documentation of this file.
1 #
2 # Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 #
4 
5 
12 
13 #--------------------------------------------------------------
14 # ATLAS default Application Configuration options
15 #--------------------------------------------------------------
16 
17 # Configure the scheduler
18 from AthenaCommon.AlgScheduler import AlgScheduler
19 AlgScheduler.ShowControlFlow( True )
20 AlgScheduler.ShowDataDependencies( True )
21 
22 # Control flow
23 from AthenaCommon.AlgSequence import AthSequencer
24 allViewAlgorithms = AthSequencer( "allViewAlgorithms" )
25 allViewAlgorithms.ModeOR = False
26 allViewAlgorithms.Sequential = False
27 allViewAlgorithms.StopOverride = False
28 makeViewSequence = AthSequencer( "makeViewSequence" )
29 makeViewSequence.ModeOR = False
30 makeViewSequence.Sequential = True
31 makeViewSequence.StopOverride = False
32 
33 # Event-level algorithm sequence
34 from AthenaCommon.AlgSequence import AlgSequence
35 job = AlgSequence()
36 
37 # Make views
38 makeViewSequence += CfgMgr.AthViews__ViewSubgraphAlg("make_alg")
39 makeViewSequence.make_alg.ViewBaseName = "view"
40 makeViewSequence.make_alg.ViewNumber = 10
41 makeViewSequence.make_alg.ViewNodeName = "allViewAlgorithms"
42 makeViewSequence.make_alg.Scheduler = AlgScheduler.getScheduler()
43 
44 # View algorithm
45 ViewTest = CfgMgr.AthViews__ViewTestAlg("view_test")
46 allViewAlgorithms += ViewTest
47 
48 # Add the view algorithms to the job
49 makeViewSequence += allViewAlgorithms
50 
51 job += makeViewSequence
52 
53 #--------------------------------------------------------------
54 # Event related parameters
55 #--------------------------------------------------------------
56 theApp.EvtMax = 10
57 
58 #==============================================================
59 #
60 # End of job options file
61 #
62 
python.AlgSequence.AlgSequence
AlgSequence
Definition: PhysicsAnalysis/D3PDTools/AnaAlgorithm/python/AlgSequence.py:7
python.AlgSequence.AthSequencer
AthSequencer
Definition: Control/AthenaCommon/python/AlgSequence.py:64