...under working...

How can I know the collections stored in a POOL file, like an ESD, AOD or DPD?

...under working...

How can I know which methods I can use, associated to the collections inside a POOL file?

...under working...

For an interactive work you can use Interactive Athena. Download the script you can find attached to this page, below, remove the trailing .txt renaming it to Interactive_topO.py. In your run/ directory run this script with athena -i Interactive_topO.py and follow the instruction written in the script code.

from AthenaCommon.AppMgr import ServiceMgr
import AthenaPoolCnvSvc.ReadAthenaPool

ServiceMgr.EventSelector.InputCollections = [ "/localscratch/christov/testData/valid1.005188.A3_Ztautau_filter.recon.AOD.e322_a76/AOD.029124._00002.pool.root.1" ]

# Number of Events to process
theApp.EvtMax = -1

# initialize AnalysisCore
include ("PyAnalysisCore/InitPyAnalysisCore.py")

## to start the interactive session
# athena -i Interactive_topO.py 

## In the session do the following:

#theApp.initialize()
#theApp.nextEvent()

## getting the vectors of particles form containers

#tau=PyParticleTools.getTauJets("TauRecContainer")
#el=PyParticleTools.getElectrons("ElectronAODCollection")

#mu=PyParticleTools.getMuons("StacoMuonCollection")
#jet=PyParticleTools.getParticleJets("Cone4H1TowerParticleJets") #didnt work
#met=PyParticleTools.getMissingET("MET_RefFinal")

## getting a single particle
#t0=tau[0]

## getting lest of available methods with some info
#help(t0)

...more detailed info will come...

check also: http://atlas-wiki1.physik.uni-bonn.de/mediawiki/index.php/Athena_Tipps_und_Tricks#Interactive_Athena


-- RiccardoMariaBianchi - 26 Feb 2009

Topic attachments
I Attachment History Action Size Date Who Comment
Texttxt Interactive_topO.py.txt r1 manage 0.9 K 2009-02-26 - 12:06 RiccardoMariaBianchi little script to start an Interactive Athena session
Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r2 - 2009-03-06 - StephanHorner
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    Main All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright &© 2008-2023 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
or Ideas, requests, problems regarding TWiki? use Discourse or Send feedback