ToolSvc += GoodRunsListSelectorTool()
GoodRunsListSelectorTool.OutputLevel = INFO
#GoodRunsListSelectorTool.GoodRunsListVec = [ 'luminosity.xml' ]
#ToolSvc.GoodRunsTool.BlackRunsListVec = [ 'TTbarBlackRunsList.xml' ]

# add LumiBlockMetaDataTool and configure
from LumiBlockComps.LumiBlockCompsConf import LumiBlockMetaDataTool
ToolSvc += LumiBlockMetaDataTool("LumiBlockMetaDataTool")
LumiBlockMetaDataTool.calcLumi = True  # False by default
LumiBlockMetaDataTool.storeXMLFiles = True
LumiBlockMetaDataTool.applyDQCuts = True
LumiBlockMetaDataTool.OutputLevel = DEBUG

# add LumiCalcSvc and configure
from LumiBlockComps.LumiBlockCompsConf import LumiCalcSvc
LumiCalcSvc = LumiCalcSvc()
LumiCalcSvc.Triggers = ["EF_mu20"]
LumiCalcSvc.UseMC = True
LumiCalcSvc.LBCollNames = ["LumiBlocks_GoodDQ0"
                           ]  #, "IncompleteLumiBlocks_GoodDQ0"]
#LumiCalcSvc.LBCollNames = ["LumiBlocks", "IncompleteLumiBlocks"]
LumiCalcSvc.Verbose = False
svcMgr += LumiCalcSvc

# Either use aodtoaod.py as it is
#include ("RecExCommon/aodtoaod.py")

# Or work directly on RecExCommon_topOptions.py
# turn OFF most flags for RecExCommon, no output files
doCBNT = False
doWriteRDO = False
# add ToolSvc.LumiBlockMetaDataTool to MetaDataSvc
from EventSelectorAthenaPool.EventSelectorAthenaPoolConf import MetaDataSvc
svcMgr += MetaDataSvc("MetaDataSvc")
svcMgr.MetaDataSvc.MetaDataTools += [ToolSvc.LumiBlockMetaDataTool]

# Configure the goodrunslist selector tool
from GoodRunsLists.GoodRunsListsConf import *
ToolSvc += GoodRunsListSelectorTool()
GoodRunsListSelectorTool.OutputLevel = INFO
GoodRunsListSelectorTool.GoodRunsListVec = ['top_noveto_muchannel_7TeV.xml'
                                            ]  # <<<<--- Edit this line!
GoodRunsListSelectorTool.PassThrough = False

# add LumiCalcSvc to ServiceMgr and configure
from LumiBlockComps.LumiBlockCompsConf import LumiCalcSvc
LumiCalcSvc = LumiCalcSvc()
LumiCalcSvc.Triggers = ["EF_mu10"]
LumiCalcSvc.UseMC = False
LumiCalcSvc.LBCollNames = ["LumiBlocks", "IncompleteLumiBlocks"]
LumiCalcSvc.Verbose = False
LumiCalcSvc.UseLumiTag = "OflLumi-7TeV-002"
LumiCalcSvc.LumiEstFolder = "/TRIGGER/OFLLUMI/LBLESTOFL"
svcMgr += LumiCalcSvc
#======================================================================================

from RecExConfig.RecFlags import rec
rec.AutoConfiguration = ['everything']
rec.readRDO = False
rec.readESD = True
rec.readAOD = True
rec.doCBNT = False
Exemplo n.º 3
0
# Input AOD file
ServiceMgr.EventSelector.InputCollections = [
    "/afs/cern.ch/user/r/radbal/scratch0/data/TopMix/user.RichardHawkings.0108175.topmix_Muon.AOD.v4._00057.pool.root"
]

# Number of Events to process
if not "EvtMax" in dir(): EvtMax = 5
theApp.EvtMax = EvtMax

# the Top Algorithm Sequence
topSequence = AlgSequence()

# Add the service and configure
from LumiBlockComps.LumiBlockCompsConf import LumiCalcSvc
LumiCalcSvc = LumiCalcSvc()
LumiCalcSvc.Triggers = ["EF_mu20"]
LumiCalcSvc.UseMC = True
# explicit list of LumiBlockCollections names
LumiCalcSvc.LBCollNames = ["LumiBlocks", "IncompleteLumiBlocks"]
LumiCalcSvc.Verbose = False
# NOTE: UseInputStore must be *False* by default BUT just for this example we set it to True
LumiCalcSvc.UseInputStore = True
svcMgr += LumiCalcSvc

# Add LumiCalcPyAthena Alg
from LumiBlockComps.LumiCalcPyAthena import LumiCalcPyAthena
theJob = AlgSequence()
theJob += LumiCalcPyAthena()
LumiCalcPyAthena.OutputLevel = INFO