A example of using RootCore analysis xAOD samples
Get the framework
Use SL6 matchines, and CVMFS is needed.
setup CVMFS
Source a script like this:
$cat ~/setups/cvmfs_atlas.sh
10#!/bin/bash
12#
14# Setup to use ATLAS software from CVMFS
16#
18export ATLAS_LOCAL_ROOT_BASE=/cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase
20source ${ATLAS_LOCAL_ROOT_BASE}/user/atlasLocalSetup.sh
On lxplus, one can simply use
setupATLAS
.
When CVMFS is successfully setup, setup Analsys release like this:
rcSetup Base,2.0.11
version 2.0.11 is the most recent version.
Get the samples
Setup DQ2
Setup DQ2 from CVMFS by run from command line:
localSetupDQ2Client
Find samples
For example the SUSY signal sample
$dq2-ls mc14_8TeV.204546.Herwigpp_UEEE4_CTEQ6L1_sM_wC_WW_C1_180_N1_0.merge.AOD.e3044_s1933_s1911_r5591_r5625/
Use
dq2-get
to download the sample.
A example
Following instructions in
SoftwareTutorialxAODAnalysisInROOT
Write a analyisis package
A example package is attached.
Run a test
Compile the package
$rc find_packages
$rc compile
and you can find a executable named testRun
$testR<Tab>
testResolutionParam testRun
More about the example package
The source code is
MyAnalysis/util/testRun.cxx
. It collect the samples and run the algorithm
MyxAODAnalysis
defined in the package.
$ls MyAnalysis/*/MyxAODAnalysis.*
MyAnalysis/MyAnalysis/MyxAODAnalysis.h MyAnalysis/Root/MyxAODAnalysis.cxx
--
DongliangZhang - 25 Sep 2014