dv = DaVinci() dv.DataType = "2010" dv.Simulation = False dv.EvtMax = -1 dv.TupleFile = 'b2hh_stripped.root' dv.PrintFreq = 100 condDB = CondDB() condDB.UseOracle = True dv.DDDBtag = "head-20100518" dv.CondDBtag = "head-20100715" dv.Lumi = True dv.WriteFSR = True dv.UserAlgorithms = [ evttuple, preseltuple ]
#LHCbApp().DDDBtag = "HEAD" #LHCbApp().CondDBtag = "HEAD" LHCbApp().DDDBtag = 'head-20110823' LHCbApp().CondDBtag = 'head-20110901' from Configurables import (CondDB, CondDBAccessSvc) cdb = CondDB() #cdb.PartitionConnectionString["ONLINE"] = "sqlite_file:/afs/cern.ch/user/w/wouter/public/AlignDB/ONLINE-201103.db/ONLINE" #cdb.Tags["ONLINE"] = "fake" # maybe it works if we read it as a layer? myOnline = CondDBAccessSvc('MyOnline') myOnline.ConnectionString = 'sqlite_file:/afs/cern.ch/user/w/wouter/public/AlignDB/ONLINE-2011.db/ONLINE' CondDB().addLayer(myOnline) #importOptions("$APPCONFIGOPTS/DisableLFC.py") cdb.UseOracle = False cdb.DisableLFC = True import os runnr = os.environ['RUNNR'] filenames = ['/pool/spool/wouter/dimuons_%s.dst' % runnr] for f in filenames: fullname = "DATAFILE='" + f + "' TYP='POOL_ROOTTREE' OPT='READ'" EventSelector().Input.append(fullname) print "EvenSelector.Input:", EventSelector().Input from Configurables import EventClockSvc #EventClockSvc().InitialTime = 1314000149027776000 EventClockSvc().InitialTime = int(os.environ['INITIALTIME'])
if arguments.online: import CondMap cdb.RunChangeHandlerConditions = CondMap.ConditionMap cdb.EnableRunChangeHandler = True cdb.UseDBSnapshot = True cdb.Tags = { "DDDB" : HLT2Params.DDDBTag, "LHCBCOND" : HLT2Params.CondDBTag, "ONLINE" : 'fake'} cdb.Online = True else: cdb.EnableRunStampCheck = False useNewFeature = False if useNewFeature: # new feature Liang cdb.UseOracle = True cdb.Online = True else: pass #''' # Marco's workaround from Gaudi.Configuration import appendPostConfigAction from Configurables import CondDBDispatcherSvc, CondDBAccessSvc def oracle_online(): oo = CondDBAccessSvc('ONLINE_ORACLE') oo.ConnectionString = 'CondDBOnline/ONLINE' CondDBDispatcherSvc('MainCondDBReader').Alternatives['/Conditions/Online'] = oo appendPostConfigAction(oracle_online) os.environ['CORAL_DBLOOKUP_PATH'] = os.environ['CORAL_AUTH_PATH'] = '/group/online/condb_viewer'