TWiki
>
AtlasSandbox Web
>
InstitutePages
>
AtlasManchester
>
ManTreeOld
(2011-09-16,
MarkOwen
)
(raw view)
E
dit
A
ttach
P
DF
---+!!<nop> manTree Root Trees %TOC% ---+ Introduction These are old instructions - please see ManTree The manTree package contains a set of classes for storing physics objects for final analysis. It can be used outside of athena, for example in SFrame. The code is in [[https://svnweb.cern.ch/trac/atlasgrp/browser/Institutes/Manchester/SFrame/manTree][svn]] and the html descriptions of the classes can be found [[http://www.hep.manchester.ac.uk/u/mark/manTree][here]]. ---+ First Time Use First compile the package with sframe, following the [[#CompileWithSFrame][instructions]]. Make sure you source the main SFrame setup.sh file (this makes sure root loads the manTree library). Then you should be able to open a file with the TBrowser in root and have a look around. A file with ttbar events can be found at: <verbatim> /afs/hep.man.ac.uk/d/atlas-neutrino/ManTrees/MC/AcceptanceChallenge/14-10-10/tree.nocuts.root </verbatim> Documentation for the functions for the various classes is [[http://www.hep.manchester.ac.uk/u/mark/manTree/][here]]. ---++ Using with Root's TTree Draw( ) You can also use root's TTree.Draw( ) functionality with these files, as long as you have set up the library (via setting up sframe) for example: <verbatim> root /afs/hep.man.ac.uk/d/atlas-neutrino/Trees/MC08/NoSkim/16-6-09/ttbar/tree.root -l TTree* tree = (TTree*)_file0->Get("ManTree"); tree->Draw("MElectron.Pt()","",""); new TCanvas tree->Draw("MElectron.Pt()","(MElectron.Pt()>20000.0)&&(MElectron.IsMedium())",""); </verbatim> The first draw command produces a plot of the pT of all electrons in the events. The second command plots the pT of electrons in the events with pT > 20 GeV that pass the ATLAS 'medium' electron criteria. ---++ Using with SFrame An example package showing simple use within SFrame is in the [[https://svnweb.cern.ch/trac/atlasgrp/browser/Institutes/Manchester/SFrame/exampleManTreeCycle/trunk][manchester svn repository]]. The following lines show how to checkout & compile the package (first setup sframe): <verbatim> cd $SFRAME_DIR svn co svn+ssh://svn.cern.ch/reps/atlasgrp/Institutes/Manchester/SFrame/manTreeSFrameBase/trunk manTreeSFrameBase cd manTreeSFrameBase make cd $SFRAME_DIR svn co svn+ssh://svn.cern.ch/reps/atlasgrp/Institutes/Manchester/SFrame/exampleManTreeCycle/trunk exampleManTreeCycle cd exampleManTreeCycle make </verbatim> There is a sample config file in the config directory, which you can run as follows: <verbatim> cd config sframe_main TestCycle_config.xml </verbatim> You will get lots of output to the screen, since it is set to VERBOSE output level. You can change this in the config file. You can modify the cycle code (include/TestCycle.h and src/TestCycle.cxx), then just type make in the exampleManTreeCycle directory to build your changes. You can then rerun as before. Instructions for using the code for the top acceptance challenge are [[ManTreeTopDiMuonAcceptance][here]]. ---+ Compiling the package The package can be compiled in two ways, using cmt within an athena release and using the standalone Makefile from SFrame. The two methods are described below. For each one you need to checkout code from the manchester svn repository. The easiest way to access this from linux8 is to obtain a cern kerberos ticket: <verbatim> kinit --no-afslog username@CERN.CH </verbatim> ---++ Compiling in Athena <A NAME="CompilingInAthena"> </A> To compile in athena, first set up an athena release & then checkout the package & compile: <verbatim> cd $TestArea cmt co -d SFrame/manTree $SVNMAN/SFrame/manTree cd SFrame/manTree/cmt make -j </verbatim> <A NAME="SVNMAN"> </A> *Note*: You can only use $SVNMAN if you're using one of the linux8 machines at Manchester <u>and</u> your username is the same at Manchester and CERN. You can freely replace $SVNMAN with: <verbatim> svn+ssh://*cernusername*@svn.cern.ch/reps/atlasgrp/Institutes/Manchester </verbatim> ---++ Compiling with SFrame #CompileWithSFrame First checkout & compile SFrame (see [[http://sourceforge.net/apps/mediawiki/sframe/index.php?title=Main_Page][the SFrame page]]). Then checkout & compile manTree: <verbatim> cd $SFRAME_DIR svn co svn+ssh://svn.cern.ch/reps/atlasgrp/Institutes/Manchester/SFrame/manTree/trunk manTree cd manTree make </verbatim> ---+ Common ATLAS Tools in SFrame ---++ Good Runs List See the inctructions [[https://twiki.cern.ch/twiki/bin/view/AtlasSandbox/SFrameGRL][here]]. ---++ SFrame Pileup Tool For information about installing the SFrame Pileup Tool click [[https://twiki.cern.ch/twiki/bin/view/AtlasSandbox/SFramePileUpTool][here]]. ---+ Current Tag List Here we keep a list of the stable tags of the packages that are being used: | Package | svn tag for rel 15 | svn tag for 16.0.3.3.3 | svn tag for 16.0.3.8.2 | svn tag for 16.6.3.5.1 | svn tag for 16.6.5.5.1 | | [[https://svnweb.cern.ch/trac/atlasgrp/browser/Institutes/Manchester/SFrame/manTree][manTree]] | manTree-00-06-10-02 | manTree-00-07-05 | manTree-00-07-07 | manTree-00-08-02 | manTree-00-09-06 | | [[https://svnweb.cern.ch/trac/atlasgrp/browser/Institutes/Manchester/ManAthenaTools/manTreeMaker][manTreeMaker]] | manTreeMaker-00-06-09-01 | manTreeMaker-00-07-00-branch | manTreeMaker-00-07-01 | manTreeMaker-00-08-04 | manTreeMaker-00-09-05 | | [[https://svnweb.cern.ch/trac/atlasgrp/browser/Institutes/Manchester/SFrame/topUtils][topUtils]] | topUtils-01-00-02 | topUtils-01-01-03 | topUtils-01-01-04 | topUtils-01-01-05 | trunk | | [[https://svnweb.cern.ch/trac/atlasgrp/browser/Institutes/Manchester/SFrame/manTreeSFrameBase][manTreeSFrameBase]] | manTreeSFrameBase-02-00-01 | manTreeSFrameBase-02-00-02 | manTreeSFrameBase-02-00-03 | manTreeSFrameBase-02-00-04 | trunk | ---+ Making manTrees Please check if the sample you need has already been made. ---++ Samples A list of samples is at AtlasSandbox.ManTreeSamples ---++ Making new trees To make manTrees, you need to work in the athena environment, so first setup your favorite release & then checkout & compile manTree (by following the above <A HREF="#CompilingInAthena">instructions</A> *before* continuing). Using the same $TestArea that you just compiled manTree in, checkout and compile the packages needed for the making of the trees: <verbatim> cd $TestArea cmt co -r egammaAnalysisUtils-00-02-18 Reconstruction/egamma/egammaAnalysis/egammaAnalysisUtils/ $SVNOFF/Reconstruction/egamma/egammaAnalysis/egammaAnalysisUtils/ cd Reconstruction/egamma/egammaAnalysis/egammaAnalysisUtils/cmt/ make cd $TestArea cmt co -d ManAthenaTools/manTreeMaker $SVNMAN/ManAthenaTools/manTreeMaker cd ManAthenaTools/manTreeMaker/cmt make -j 2 cd $TestArea cmt co -d ManAthenaTools/ManGridUtils $SVNMAN/ManAthenaTools/ManGridUtils cd ManAthenaTools/ManGridUtils/cmt make </verbatim> *Note*: You can only use $SVNMAN or $SVNOFF if you're using one of the linux8 machines at Manchester <u>and</u> your username is the same at Manchester and CERN. You can freely replace $SVNMAN as <A HREF="#SVNMAN">above</A> and $SVNOFF with: <verbatim> svn+ssh://*cernusername*@svn.cern.ch/reps/atlasoff/ </verbatim> To use a tag of a package add the following to the cmt command, e.g.: <verbatim> -r manTreeMaker-00-07-00 </verbatim> You are nearly ready to make manTrees by running on the Grid by following these [[https://twiki.cern.ch/twiki/bin/view/AtlasSandbox/ManTreeMaking#Running_Job_on_Grid][instructions]] -- Main.MarkOwen - 13-May-2011 -- Main.MarkOwen - 16-Sep-2011
E
dit
|
A
ttach
|
Watch
|
P
rint version
|
H
istory
: r1
|
B
acklinks
|
V
iew topic
|
WYSIWYG
|
M
ore topic actions
Topic revision: r1 - 2011-09-16
-
MarkOwen
Log In
AtlasSandbox
ABATBEA
ACPP
ADCgroup
AEGIS
AfricaMap
AgileInfrastructure
ALICE
AliceEbyE
AliceSPD
AliceSSD
AliceTOF
AliFemto
ALPHA
Altair
ArdaGrid
ASACUSA
AthenaFCalTBAna
Atlas
AtlasLBNL
AXIALPET
CAE
CALICE
CDS
CENF
CERNSearch
CLIC
Cloud
CloudServices
CMS
Controls
CTA
CvmFS
DB
DefaultWeb
DESgroup
DPHEP
DM-LHC
DSSGroup
EGEE
EgeePtf
ELFms
EMI
ETICS
FIOgroup
FlukaTeam
Frontier
Gaudi
GeneratorServices
GuidesInfo
HardwareLabs
HCC
HEPIX
ILCBDSColl
ILCTPC
IMWG
Inspire
IPv6
IT
ItCommTeam
ITCoord
ITdeptTechForum
ITDRP
ITGT
ITSDC
LAr
LCG
LCGAAWorkbook
Leade
LHCAccess
LHCAtHome
LHCb
LHCgas
LHCONE
LHCOPN
LinuxSupport
Main
Medipix
Messaging
MPGD
NA49
NA61
NA62
NTOF
Openlab
PDBService
Persistency
PESgroup
Plugins
PSAccess
PSBUpgrade
R2Eproject
RCTF
RD42
RFCond12
RFLowLevel
ROXIE
Sandbox
SocialActivities
SPI
SRMDev
SSM
Student
SuperComputing
Support
SwfCatalogue
TMVA
TOTEM
TWiki
UNOSAT
Virtualization
VOBox
WITCH
XTCA
ATLAS Home
Detectors
Computing
Physics
Help
Create
a LeftBar for this page
Welcome Guest
Login
or
Register
Search
Cern Search
TWiki Search
Google Search
Atlas
All webs
Copyright &© 2008-2022 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