DSTStreams = dstStreams, MicroDSTStreams = mdstStreams ) from Configurables import ApplicationMgr, AuditorSvc, SequencerTimerTool # Initial IOV time # http://www.onlineconversion.com/unix_time.htm # values in ns (so multiply values from above link by 1e9) #from Configurables import EventClockSvc #EventClockSvc().EventTimeDecoder = "OdinTimeDecoder" appMgr = ApplicationMgr() appMgr.OutputLevel = 6 appMgr.ExtSvc += [ 'ToolSvc', 'AuditorSvc' ] appMgr.HistogramPersistency = "ROOT" ntSvc = NTupleSvc() appMgr.ExtSvc += [ ntSvc ] from Configurables import ( LHCbApp, PhysConf, AnalysisConf, DstConf, LumiAlgsConf, DDDBConf ) #LHCbApp().DDDBtag = "dddb-20150724" #LHCbApp().CondDBtag = "cond-20150805" # Can be enabled for next full stack release PhysConf().OutputLevel = appMgr.OutputLevel #AnalysisConf().OutputLevel = appMgr.OutputLevel datatype = "2011" PhysConf().DataType = datatype
#------------------------------------------------------------------------------------------------ def storeExplorer(load=1,freq=0.0001,name='StoreExplorerAlg'): from Configurables import StoreExplorerAlg alg = StoreExplorerAlg(name) alg.Load = load alg.PrintFreq = freq return alg #------------------------------------------------------------------------------------------------ if len(sys.argv)>1: input_file = sys.argv[1] appConf = ApplicationMgr(OutputLevel = INFO) appConf.HistogramPersistency = "NONE"; appConf.ExtSvc.append('Gaudi::IODataManager/IODataManager') appConf.ExtSvc.append('Gaudi::RootCnvSvc/RootCnvSvc') appConf.TopAlg.append(storeExplorer(freq=1.0)) EventDataSvc().RootCLID = 1 EventDataSvc().EnableFaultHandler = True root = Gaudi__RootCnvSvc('RootCnvSvc') root.CacheBranches = [] root.VetoBranches = ['*'] #root.OutputLevel = 2 # Enable specialized branch caching: root.CacheBranches = [ '_Event.*', '_Event_R.*',
#HltRecoConf.MoreOfflineLikeFit = False # default is HltDecisionSequence, which Split = 'Hlt1' will remove (maybe it should remove Hlt2 from HltDecisionSequence instead???) #Moore().WriterRequires = [ 'Hlt1' ] #Moore().outputFile = '/data/bfys/graven/0x46/hlt1.raw' Moore().RemoveInputHltRawBanks = True Moore().Split = 'Hlt1' Moore().EnableDataOnDemand = True from Configurables import MooreExpert MooreExpert().Hlt2Independent=True from Configurables import HltConf HltConf().Verbose = True #### ENABLE UNPACKING #### DstConf ( EnableUnpack = ["Reconstruction","Stripping"] ) CaloDstUnPackConf().Enable = True ################################################## ## GAUDI CONFIG ## ################################################## from Configurables import ApplicationMgr appConf = ApplicationMgr() appConf.HistogramPersistency = 'ROOT' gaudi = GaudiPython.AppMgr(outputlevel=3) gaudi.initialize() TES = gaudi.evtsvc() from trigtree import * trigtree(gaudi, TES, run_opts.MCFilterLoc, eventstorun, run_opts.output)