Using pathena and a chosen data set

  • You can find datasets on ami (ATLAS Metadata Interface):
    Search for example for %data10_7TeV%AOD%
    If you click on "details' in a chosen dataset, it will tell you which detector geometry was used etc.
  • You can also look at runs with the atlas runquery tool:
    Here you can find out the quality flags for the different subdetectors in a certain run etc.
    If you like a run (list) you can have it generate a GoodRunsList.xml for you.

  • If you just picked a dataset you can run on the grid like this:
    pathena --outDS user10.FirstLastname.outputfilename --inDS yourdataset.aod
    You may have to source pathena for this:
    export PATHENA_GRID_SETUP_SH=/afs/
    source /afs/ 

Good Run Lists

  • The idea is, that the groups provide good runs lists, for now you can generate them with the atlas-runquery tool:
  • There is also a good runs list generator, which didn't work when I tried it:
  • Both of them should provide you with an xml file.
  • In your job options add the following lines of code:
    from AthenaCommon.AlgSequence import AthSequencer
    seq = AthSequencer("AthFilterSeq")
    from GoodRunsLists.GoodRunsListsConf import *
    ToolSvc += GoodRunsListSelectorTool()
    GoodRunsListSelectorTool.OutputLevel = ERROR
    GoodRunsListSelectorTool.GoodRunsListVec = [ yourRunList.xml' ]
    GoodRunsListSelectorTool.PassThrough = False
    from GoodRunsListsUser.GoodRunsListsUserConf import *
    seq += GRLTriggerSelectorAlg('GRLTriggerAlg1')
    seq.GRLTriggerAlg1.GoodRunsListArray = ['yourRunList']
  • now you don't have to give pathena an input file, just add the xml file option and it will try to do the conversion itself. Here is an example:
     pathena --outDS user10.SarahHeim.GRL.LUMI_minbias_7TeV_15032010.ntuple --goodRunListXML ../../RunLists/minbias_7TeV.xml --nGBPerJob 10

Luminosity Calculation

  • If you run with the good runs lists you will want a reliable luminosity determination
  • Include the following lines in your joboptions file:
    from LumiBlockComps.LumiBlockCompsConf import LumiBlockMetaDataTool
    ToolSvc += LumiBlockMetaDataTool( "LumiBlockMetaDataTool" )
    LumiBlockMetaDataTool.calcLumi = True
    LumiBlockMetaDataTool.storeXMLFiles = True
    LumiBlockMetaDataTool.applyDQCuts = True
    LumiBlockMetaDataTool.OutputLevel = ERROR
    from EventSelectorAthenaPool.EventSelectorAthenaPoolConf import MetaDataSvc
    svcMgr += MetaDataSvc( "MetaDataSvc" )
    svcMgr.MetaDataSvc.MetaDataTools += [ ToolSvc.LumiBlockMetaDataTool ]
    TopAlg += DummyDumperAlg('DummyDumperAlg1')
    TopAlg.DummyDumperAlg1.RootFileName = 'selection1.root'
    TopAlg.DummyDumperAlg1.GRLNameVec = [ 'LumiBlocks_GoodDQ0',
    'IncompleteLumiBlocks_GoodDQ0' ]

-- SarahHeim - 15 Apr 2010
Topic revision: r1 - 15 Apr 2010, SarahHeim
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback