ATLAS Offline Software
ReadRDODoubleSelector.py
Go to the documentation of this file.
1 
12 
13 
14 import AthenaCommon.AtlasUnixStandardJob
15 
16 
17 from AthenaCommon.AlgSequence import AlgSequence
18 topSequence = AlgSequence()
19 
20 
21 from AthenaCommon.AppMgr import ServiceMgr as svcMgr
22 
23 
24 from AthenaCommon.AppMgr import theApp
25 
26 # Set that we are running MC+MC overlay in MT mode
27 from OverlayCommonAlgs.OverlayFlags import overlayFlags
28 overlayFlags.isDataOverlay.set_Value_and_Lock(False)
29 overlayFlags.isOverlayMT.set_Value_and_Lock(True)
30 
31 #--------------------------------------------------------------
32 # Load POOL support for DoubleEventSelector
33 #--------------------------------------------------------------
34 import AthenaPoolCnvSvc.ReadAthenaPoolDouble
35 
36 #--------------------------------------------------------------
37 # Set flags and load det descr
38 #--------------------------------------------------------------
39 from AthenaCommon.GlobalFlags import globalflags
40 from AthenaCommon.DetFlags import DetFlags
41 from RecExConfig.RecFlags import rec
42 
43 # For general flags
44 rec.doAOD = False
45 rec.doTrigger = False
46 rec.doWriteTAG = False
47 DetDescrVersion = "ATLAS-GEO-17-00-00"
48 
49 # Set local flags - only need LAr DetDescr
50 DetFlags.detdescr.ID_setOn()
51 DetFlags.detdescr.Calo_setOn()
52 DetFlags.detdescr.Tile_setOff()
53 DetFlags.detdescr.Muon_setOff()
54 
55 # set up all detector description description
56 include ("RecExCond/AllDet_detDescr.py")
57 
58 # the correct tag should be specified
59 from IOVDbSvc.CondDB import conddb
60 conddb.setGlobalTag("OFLCOND-SDR-BS7T-04-00")
61 
62 #--------------------------------------------------------------
63 # Input options
64 #--------------------------------------------------------------
65 
66 # Add in DoubleEventSelector
67 svcMgr.EventSelector.InputCollections = [ "LArRDO.root" ]
68 svcMgr.SecondaryEventSelector.InputCollections = [ "InDetRDO.root" ]
69 
70 svcMgr.EventSelector.OutputLevel = DEBUG
71 svcMgr.SecondaryEventSelector.OutputLevel = DEBUG
72 
73 #--------------------------------------------------------------
74 # Event related parameters
75 #--------------------------------------------------------------
76 theApp.EvtMax = 20
77 
78 #--------------------------------------------------------------
79 # Application: AthenaPoolTest InDetRawData options
80 #--------------------------------------------------------------
81 from AthenaPoolTest.AthenaPoolTestConf import RDOReaderDoubleSelector
82 topSequence += RDOReaderDoubleSelector( "RDOReaderDoubleSelector" )
83 RDOReaderDoubleSelector.OutputLevel = DEBUG
84 
85 #--------------------------------------------------------------
86 # Output options
87 #--------------------------------------------------------------
88 
89 from AthenaPoolCnvSvc.WriteAthenaPool import AthenaPoolOutputStream
90 Stream1 = AthenaPoolOutputStream( "Stream1", noTag=True )
91 
92 # Run OutputStream as an algorithm
93 topSequence += Stream1
94 # Must make sure that no OutStream's have been declared
95 theApp.OutStream = []
96 # Stream's output file
97 Stream1.WritingTool = "AthenaOutputStreamTool"
98 Stream1.OutputFile = "CombinedRDO.root"
99 # List of DO's to write out
100 Stream1.ItemList += ["EventInfo#*"]
101 Stream1.ItemList += ["CaloCellContainer#*"]
102 Stream1.ItemList += ["PixelRDO_Container#*"]
103 Stream1.ItemList += ["SCT_RDO_Container#*"]
104 Stream1.ItemList += ["TRT_RDO_Container#*"]
105 Stream1.ItemList += ["PixelRDOElemLinkVec#*"]
106 
107 print(Stream1.ItemList)
108 
109 
110 #--------------------------------------------------------------
111 # Set output level threshold (2=DEBUG, 3=INFO, 4=WARNING, 5=ERROR, 6=FATAL )
112 #--------------------------------------------------------------
113 svcMgr.MessageSvc.OutputLevel = WARNING
114 svcMgr.MessageSvc.debugLimit = 100000
115 
116 from AthenaServices import AthenaServicesConf
117 AthenaEventLoopMgr = AthenaServicesConf.AthenaEventLoopMgr()
118 AthenaEventLoopMgr.OutputLevel = INFO
119 AthenaEventLoopMgr.UseSecondaryEventNumber = True
120 svcMgr += AthenaEventLoopMgr
121 
122 # No stats printout
123 include( "AthenaPoolTest/NoStats_jobOptions.py" )
124 
125 # Work around cling crash with root 6.24.00.
126 import ROOT
127 ROOT.CaloCellContainer
128 
129 #==============================================================
130 #
131 # End of job options file
132 #
133 
python.AlgSequence.AlgSequence
AlgSequence
Definition: PhysicsAnalysis/D3PDTools/AnaAlgorithm/python/AlgSequence.py:7
python.Include.include
include
Definition: Include.py:319
Muon::print
std::string print(const MuPatSegment &)
Definition: MuonTrackSteering.cxx:28
python.CreateOutputStreams.AthenaPoolOutputStream
def AthenaPoolOutputStream
backward compat
Definition: CreateOutputStreams.py:144