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