Using FlatTuples for analysis


This page describe my learning steps in using Rick's framework to be used by H->bb analyses. This step is about reading FlatTuples and using them for analysis.

ssh -Y

Then open an xterm terminal.


Mike suggested to start working with these two FlatTuple (one for WH120 signal and one for ttbar background), which have the first 2 leading electron candidates ordered by ET, the first 2 leading muon candidates ordered by pT, the first 10 leading primary vertices, the first 10 leading jets ordered by b-ness, also the first 4 b-jets, the met and other information. Also we have the treespec file used to produce this FlatTuple file.

mkdir inputs
cp /data/atlas06/mwright/Adrian/corrections_T1__SMD3PDv16modifier.root .
cp /data/atlas06/mwright/Adrian/corrections_WH120__SMD3PDv16modifier.root .
cp /data/atlas06/mwright/Adrian/TreeSpecSMv16_p605_flatTuple.txt .
emacs -nw TreeSpecSMv16_p605_flatTuple.txt
root -l corrections_T1__SMD3PDv16modifier.root 
root -l corrections_WH120__SMD3PDv16modifier.root 

The goal is to understand how to use Rick's framework to read the FlatTuples and plot templates and then stack plots.


It was suggested to me to read the Twiki pages about Rick's framework. This page about Alistar's NN analysis for ttH focuses on the instructions to train the NN. The first step seems to be getting the package GlaNtp.

On March 06 Rick sent me some instructions focused only on checking out the package GlaNtp. I will try them now.

Check out the GlaNtp package

At Glasgow, the package is set up so that it should be checked out in the /home/${USER} folder. Also here a scripts folder will be checked out, so please make sure at this stage this folder does not already exist.

First setup the svn grid proxy

source /data/ppe01/sl44/i386/grid/glite-ui/latest/external/etc/profile.d/

Let's see first what is the latest stable frozen tag of GlaNtp.

svn ls

We will see an output like this


From this we learn to look into the folder tags

svn ls

We will see an output like this


From this we learn that the latest stable frozen version is "GlaNtp-00-00-40". It is this one that we will check out.

First we need to check out a script that will be used to checkout the rest of the GlaNtp package. But we can not check out a single file from SVN, as you get an error.

svn co
svn: URL '' refers to a file, not a directory

Therefore we checkout the entire directory called "scripts"

svn co

The output is like this

A    scripts/
A    scripts/
A    scripts/
A    scripts/
A    scripts/
A    scripts/validationfiles.txt
A    scripts/
Checked out revision 1205.

Now I am back to following Alistar's instructions. First we need to setup the environment variables.

source ./scripts/

The following output makes me think there was not necessary to setup Athena at the beginning of the page. Also here a different Athena version is setup.

Setting environment up for Glasgow
AtlasProduction/ with platform i686-slc5-gcc43-opt
at /data/atlasb04/software16_slc5_gcc43
Test area: /home/abuzatu/TestAreaFlatTuple
AtlasSetup(WARNING): CMTROOT has been changed to /afs/

Now we create a folder that will contain all the GlaNtp stuff called "GlaNtpPackage"

mkdir GlaNtpPackage

Now we run the script that checks out the GlaNtp package by giving as an argument the tag that we want, namely "00-00-40".

./scripts/ SVN 00-00-40

This will check out the package, and then also run a few validations (do not worry if not all validations are successful). We get this output.

Done with core tests
testTMVAVar1 ok
testTMVAVar2 ok
testTMVAVar3 ok
Result of UtilBase                          validation:  NOT DONE: NEED
Result of Steer                             validation:  OK
Result of StringStringSet                   validation:  OK
Result of StringIntMap                      validation:  OK
Result of ItemCategoryMap                   validation:  OK
Result of FlatSystematic                    validation:  OK
Result of LJMetValues                       validation:  OK
Result of PhysicsProc                       validation:  OK
Result of FlatNonTriggerableFakeScale       validation:  OK
Result of FlatProcessInfo                   validation:  OK
Result of PaletteList                       validation:  OK
Result of CutInterface                      validation:  NOT DONE: NEED
Result of NNWeight                          validation:  NOT DONE: NEED
Result of FlatFileMetadata                  validation:  OK
Result of FlatFileMetadataContainer         validation:  OK
Result of Masks                             validation:  NOT DONE: NEED
Result of FFMetadata                        validation:  OK
Result of RUtil                             validation:  NOT DONE: NEED
Result of HistHolder                        validation:  NOT DONE: NEED
Result of GlaFlatFitCDF                     validation:  OK
Result of GlaFlatFitBigSysTableCDF          validation:  OK
Result of GlaFlatFitBigSysTableNoScalingCDF validation:  OK
Result of GlaFlatFitATLAS                   validation:  OK
Result of FlatTuple                         validation:  OK
Result of FlatReWeight                      validation:  OK
Result of FlatReWeight_global               validation:  OK
Result of FlatReWeightMVA                   validation:  OK
Result of FlatReWeightMVA_global            validation:  OK
Result of TreeSpecGenerator                 validation:  OK
Result of FlatAscii                         validation:  OK
Result of FlatAscii_global                  validation:  OK
Result of FlatTRntp                         validation:  OK

This output is also saved automatically by the script and can be read from this file

emacs -nw GlaNtpsummary_1331034696.txt

-- AdrianBuzatu - 05-Mar-2012 -- AdrianBuzatu - 06-Mar-2012

Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r3 - 2012-03-06 - AdrianBuzatu
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    Sandbox All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2020 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