ATLAS Offline Software
DigiModel.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 # Make an extra StoreGate for the pileup events
23 import StoreGate.StoreGateConf as StoreGateConf
24 DigiStore = StoreGateConf.StoreGateSvc( "digi_store" )
25 DigiStore.OutputLevel = VERBOSE
26 svcMgr += DigiStore
27 
28 # Control flow
29 from AthenaCommon.AlgSequence import AthSequencer
30 allViewAlgorithms = AthSequencer( "allViewAlgorithms" )
31 allViewAlgorithms.ModeOR = False
32 allViewAlgorithms.Sequential = False
33 allViewAlgorithms.StopOverride = False
34 makeViewSequence = AthSequencer( "makeViewSequence" )
35 makeViewSequence.ModeOR = False
36 makeViewSequence.Sequential = True
37 makeViewSequence.StopOverride = False
38 
39 # Event-level algorithm sequence
40 from AthenaCommon.AlgSequence import AlgSequence
41 job = AlgSequence()
42 
43 # Make views
44 DigiSetup = CfgMgr.AthViews__DigiDemoSetupAlg("digi_setup")
45 DigiSetup.ViewBaseName = "view"
46 DigiSetup.ViewNumber = 10
47 DigiSetup.ViewNodeName = "allViewAlgorithms"
48 DigiSetup.Scheduler = AlgScheduler.getScheduler()
49 DigiSetup.DigiStore = DigiStore
50 DigiSetup.DigiData = "dflow_ints"
51 makeViewSequence += DigiSetup
52 
53 # View algorithms run transparently in the digi store events
54 ViewTest = CfgMgr.AthViews__ViewTestAlg("view_test")
55 allViewAlgorithms += ViewTest
56 
57 # Add the view algorithms to the job
58 makeViewSequence += allViewAlgorithms
59 
60 # Merge data from many digi store events
61 DigiMerge = CfgMgr.AthViews__ViewMergeAlg("digi_merge")
62 makeViewSequence += DigiMerge
63 
64 job += makeViewSequence
65 
66 #--------------------------------------------------------------
67 # Event related parameters
68 #--------------------------------------------------------------
69 theApp.EvtMax = 10
70 
71 
72 #==============================================================
73 #
74 # End of job options file
75 #
76 
python.AlgSequence.AlgSequence
AlgSequence
Definition: PhysicsAnalysis/D3PDTools/AnaAlgorithm/python/AlgSequence.py:7
python.AlgSequence.AthSequencer
AthSequencer
Definition: Control/AthenaCommon/python/AlgSequence.py:64