r7 - 17 Sep 2008 - 07:29:23 - OldrichKepkaYou are here: TWiki  >  ATLAS Web > AtlasSoftware > AthenaSoftware

ATHENA software

ATHENA tutoriály

PseudoEventDisplay? voláním pythonu z rootu

# after running root -l

TPython::Exec("execfile('chain.py')");
PseudoEventDisplay ped;
ped.setJetKey("Kt4ECTopoJets", 0.4,20e3);
ped.plot(CollectionTree_trans, 0);

  • chain.py obsahuje

import user
import ROOT
import PyCintex
import AthenaROOTAccess.transientTree
CollectionTree = ROOT.AthenaROOTAccess.TChainROOTAccess('CollectionTree')
CollectionTree.Add('SkimmedThin.AOD.pool.root')
tt = AthenaROOTAccess.transientTree.makeTree(CollectionTree)

  • změna nastavení filtru z JobOption? .py - v jobo.py
místo
job += ttbarFilter()
přidáme do hlavního streamu
job += ttbarFilter(JetMinEt=40*Units.GeV)

PyAthena? interaktivně

 
# after running athena -i jobo.py

theApp.initialize()
sg = PyAthena.py_svc('StoreGateSvc')  # but we have to have an event
sg.dump()
theApp.nextEvent()
elecs = sg.retrieve('ElectronContainer','ElectronAODCollection')
elecs.size() 
ele =  elecs.at(0)
ele.e()
ele.eta()
c = ele.cluster()
c.eta()
c.e()

EventView?

  • new EventView? tool
cmt co PhysicsAnalysis/EventViewBuilder/EventViewInserters
 newEVTool MyEVTool

  • edit PhysicsAnalysis? /EventViewBuilder/EventViewInserters/src/MyEVTool.cxx and compile

Tutorials at ATLAS TWiki

Edit | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r7 < r6 < r5 < r4 < r3 | More topic actions
 
Powered by TWiki
This site is powered by the TWiki collaboration platformCopyright &Š by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback