conddb.addOverride('/TRT/Calib/T0', 'TrtCalibT0-AlignmentJune2010-00') conddb.addOverride('/TRT/Calib/RT', 'TrtCalibRt-AlignmentJune2010-00') else: if cosmicData: conddb.addOverride('/TRT/Calib/T0', 'TrtCalibT0-AlignmentJune2010-00') conddb.addOverride('/TRT/Calib/RT', 'TrtCalibRt-AlignmentJune2010-00') # use alignment constants specified in pool.root file if specified # pool.root file needs to be inserted into PoolFileCatalog if 'rootAlignFile' in dir() and rootAlignFile != '': print "BDC: using pool.root file alignment constants" conddb.blockFolder("/Indet/Align") conddb.blockFolder("/TRT/Align") from EventSelectorAthenaPool.EventSelectorAthenaPoolConf import CondProxyProvider from AthenaCommon.AppMgr import ServiceMgr ServiceMgr += CondProxyProvider() ServiceMgr.ProxyProviderSvc.ProviderNames += ["CondProxyProvider"] ServiceMgr.CondProxyProvider.InputCollections += [rootAlignFile] ServiceMgr.CondProxyProvider.OutputLevel = INFO print ServiceMgr.CondProxyProvider ServiceMgr.IOVSvc.preLoadData = True # overriding alignment constants if specified if 'siAlignTag' in dir() and siAlignTag != '': conddb.addOverride('/Indet/Align', siAlignTag) if 'trtAlignTag' in dir() and trtAlignTag != '': conddb.addOverride('/TRT/Align', trtAlignTag) if 'trtCalibTag' in dir() and trtCalibTag != '': conddb.addOverride('/TRT/Calib/DX', trtCalibTag)
theApp.EvtMax = 200000 #-------------------------------------------------------------- # Load POOL support #-------------------------------------------------------------- import AthenaPoolCnvSvc.ReadAthenaPool #Explicitly specify the output file catalog svcMgr.PoolSvc.WriteCatalog = "file:Catalog2.xml" svcMgr.EventSelector.InputCollections = [ "SimplePoolFile1.root" ] # ** mandatory parameter ** // The input file name from EventSelectorAthenaPool.EventSelectorAthenaPoolConf import CondProxyProvider svcMgr += CondProxyProvider() svcMgr.ProxyProviderSvc.ProviderNames += ["CondProxyProvider"] svcMgr.CondProxyProvider.InputCollections = ["SimplePoolFile4.root"] #Explicitly specify the output file catalog svcMgr.PoolSvc.ReadCatalog = ["file:Catalog0.xml"] svcMgr.PoolSvc.ReadCatalog += ["file:Catalog1.xml"] #-------------------------------------------------------------- # Private Application Configuration options #-------------------------------------------------------------- # Load "user algorithm" top algorithms to be run, and the libraries that house them from AthenaPoolExampleAlgorithms.AthenaPoolExampleAlgorithmsConf import AthPoolEx__ReadData, AthPoolEx__ReadCond topSequence += AthPoolEx__ReadCond("ReadCond")