001
002
003
004
005
006
007
008
009
010
011 from AthenaCommon.AppMgr import theApp
012 from AthenaCommon.AppMgr import ServiceMgr
013 from AthenaCommon.AppMgr import ToolSvc
014 from AthenaCommon.AlgSequence import AlgSequence
015 topSequence = AlgSequence()
016
017
018
019
020 from AthenaCommon.ConfigurableDb import getConfigurable
021 ServiceMgr.AuditorSvc += getConfigurable("ChronoAuditor")()
022
023 theApp.AuditAlgorithms = True
024 theApp.AuditServices = True
025 theApp.CreateSvc += ["FPEControlSvc"]
026
027
028
029
030 theApp.EvtMax = 1000
031
032
033
034
035 from RecExConfig.RecFlags import rec
036 from RecExConfig.RecAlgsFlags import recAlgs
037 doTruth = True
038 makeESD = True
039 makeNtuple = False
040
041
042
043
044 test5 = False
045 test10 = False
046 test100 = False
047 test500 = False
048 testJ7 = False
049 testZmumu = False
050 testDC7 = False
051 dataMuon10 = False
052 dataMuon100 = False
053 dataMuon300 = False
054 dataElec25 = False
055 dataH120bb = False
056 dataTop500 = False
057 dataZmumu = False
058 dataMbias = False
059
060
061
062
063
064
065 testZmumu = True
066
067
068
069
070
071 if test5:
072 DetDescrVersion = "ATLAS-CSC-01-00-00"
073 elif test10 or test100 or test500 or testJ7 or testZmumu:
074 DetDescrVersion = "ATLAS-CSC-01-02-00"
075 elif testDC7:
076 DetDescrVersion = "ATLAS-DC3-07"
077 else:
078 DetDescrVersion = "ATLAS-DC3-02"
079 from AthenaCommon.GlobalFlags import globalflags
080 globalflags.DetDescrVersion = DetDescrVersion
081 print globalflags.DetDescrVersion()
082
083
084
085
086
087 from AthenaCommon.DetFlags import DetFlags
088 DetFlags.readRDOPool.ID_setOn()
089 DetFlags.makeRIO.ID_setOn()
090
091
092
093
094
095
096
097 ServiceMgr.StoreGateSvc.ActivateHistory = False
098
099
100
101
102
103 globalflags.DetGeo = 'atlas'
104 globalflags.DataSource = 'geant4'
105 globalflags.InputFormat = 'pool'
106
107
108 import AthenaPoolCnvSvc.ReadAthenaPool
109
110
111
112
113
114
115 DetFlags.detdescr.ID_setOn()
116 from AtlasGeoModel import SetGeometryVersion
117 from AtlasGeoModel import GeoModelInit
118 include( "BFieldAth/BFieldAth_jobOptions.py" )
119
120
121 include( "InDetBeamSpotService/BeamCondSvc.py" )
122
123
124
125
126 globalflags.print_JobProperties()
127 DetFlags.Print()
128
129
130
131
132 include( "PartPropSvc/PartPropSvc.py" )
133
134
135
136
137 include( "iPatRecExample/InnerDetector_jobOptions.py" )
138
139
140
141
142 include( "iPatRecExample/iPatRec_jobOptions.py" )
143
144 from iPatRecAlgs.iPatRecAlgsConf import iPatShortTracks
145
146
147
148 if makeNtuple:
149 from GaudiSvc.GaudiSvcConf import THistSvc
150 ServiceMgr += THistSvc()
151
152
153 from iPatRecAlgs.iPatRecAlgsConf import iPatNtuple
154 iPatNtuple = iPatNtuple()
155 topSequence += iPatNtuple
156 SeviceMgr.THistSvc.Output = [ "FILE1 DATAFILE='tuple1.root' OPT='NEW'" ]
157
158
159
160
161 if makeESD:
162 include( "iPatRecExample/MakeESD_jobOptions.py" )
163
164
165
166
167 if globalflags.InputFormat == 'pool':
168 if DetFlags.readRDOPool.ID_on():
169 include ( "InDetEventCnvTools/InDetEventCnvTools_jobOptions.py" )
170 include ( "TrkEventAthenaPool/TrkEventAthenaPool_joboptions.py" )
171 include ( "InDetEventAthenaPool/InDetEventAthenaPool_joboptions.py" )
172 if DetFlags.readRDOPool.LAr_on() :
173 include( "LArAthenaPool/LArAthenaPool_joboptions.py" )
174 if DetFlags.readRDOPool.Tile_on():
175 include( "TileEventAthenaPool/TileEventAthenaPool_joboptions.py" )
176 if DetFlags.readRDOPool.Muon_on() or DetFlags.readRIOPool.Muon_on() :
177 include( "MuonEventAthenaPool/MuonEventAthenaPool_joboptions.py" )
178
179
180 if doTruth:
181 include( "GeneratorObjectsAthenaPool/GeneratorObjectsAthenaPool_joboptions.py" )
182
183 include( "G4SimAthenaPOOL/G4SimAthenaPOOL_joboptions.py" )
184
185
186
187
188 if testDC7:
189 ServiceMgr.EventSelector.InputCollections = [ "/afs/cern.ch/atlas/maxidisk/d38/ID_ValidationData/testIdeal_07.005200.T1_McAtNlo_Jimmy.digit.RDO.v12000201_tid002760._00002.pool.root.1"]
190 else:
191
192
193 t = []
194 filseq = range(50)
195 if test5:
196 filseq = [1,2,3,4,5,6,7,8,9,10]
197 elif test10:
198 filseq = [1,2,3,4,5,6,7,8,10,11,12,13,14,15,16,17,18,19,20,21]
199 elif test100:
200 filseq = [121,166]
201 elif test500:
202 filseq = [13]
203 elif testJ7:
204 filseq = [4382]
205 elif testZmumu:
206 filseq = [1,2,3,5,6]
207
208 for i in filseq:
209 if test5:
210 s = "castor:/castor/cern.ch/user/m/muonprod/1206/digit.RDO/mc12.007206.digit_atlas-csc-100.mu_p5GeV/mc12.csc100.007206.digit.muminus_p5GeV._"+"%05d"%(i)+".pool.root"
211 elif test10:
212 s = "castor:/castor/cern.ch/user/r/rtt/RTTdata/misal1_mc12.007211.singlepart_mu10.digit.RDO.v12000604/misal1_mc12.007211.singlepart_mu10.digit.RDO.v12000604_tid007981._"+"%05d"%(i)+".pool.root.1"
213 elif test100:
214
215 s = "/afs/cern.ch/atlas/project/muon/data/csc12/misal1_csc11.007233.singlepart_mu100.digit.RDO.v12003101_tid003587._"+"%05d"%(i)+".pool.root"
216 elif test500:
217 s = "castor:/castor/cern.ch/user/r/rtt/RTTdata/misal1_mc12.007235.singlepart_mu500.digit.RDO.v12003107/misal1_mc12.007235.singlepart_mu500.digit.RDO.v12003107_tid004498._"+"%05d"%(i)+".pool.root.1"
218 elif testJ7:
219 s = "/afs/cern.ch/atlas/project/muon/data/csc12/misal1_csc11.005016.J7_pythia_jetjet.digit.RDO.v12003105_tid004302._"+"%05d"%(i)+".pool.root.1"
220 elif testZmumu:
221 s = "/afs/cern.ch/atlas/project/muon/data/csc12/misal1_csc11.005145.PythiaZmumu.digit.RDO.v12003101_tid003501._"+"%05d"%(i)+".pool.root.1"
222 elif dataMbias:
223 s = "castor:/castor/cern.ch/atlas/csc/valiprod/sampleA/csc11/005001.pythia_minbias/digit/v11004201/csc11.005001.pythia_minbias.digit.RDO.v11004201._"+"%05d"%(i+1)+".pool.root"
224
225
226 t.append(s)
227
228
229 ServiceMgr.EventSelector.InputCollections = t
230
231
232
233
234 ServiceMgr.MessageSvc.OutputLevel = INFO
235 ServiceMgr.MessageSvc.defaultLimit = 999999
236
237
238
239
240 from iPatRecAlgs.iPatRecAlgsConf import iPatRec
241 iPatRec.maxSecondaryImpact = 100.0*mm
242 iPatRec.minPt = 0.4*GeV
243 iPatRec.printLevel = 2
244 iPatRec.TracksLocation = "Tracks"
245
246 from iPatRecAlgs.iPatRecAlgsConf import iPatStatistics
247 iPatStatistics.minPt = iPatRec.minPt
248
249
250
251
252
253
254
255 from iPatTrackFitter.iPatTrackFitterConf import TrackFitter
256
257 from TrkiPatFitter.TrkiPatFitterConf import Trk__iPatFitter
258
259 from iPatTrackFinder.iPatTrackFinderConf import TrackFinder
260 ToolSvc += TrackFinder(name = 'TrackFinder',
261 OutputLevel = INFO,
262 searchForPrimaries = True,
263 searchForSecondaries = True,
264 searchForVertexRegion = True)
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
Due to the LXR bug, the updates fail sometimes to remove references to deleted files. The Saturday's full rebuilds fix these problems |
This page was automatically generated by the
LXR engine.
|
|