NtupleWriter and NtupleReader
NtupleWriter/Reader - Physics Analysis on AOD-data (Athena 12.x.x and 13.x.x)

Link to Doxygen documentation

Stable versions

  NtupleWriter revision: 55
  NtupleReader revision: 69
  To check out a certain revision instead of the head version of package you have to use e.g. svn co -r55 ...

How to check out the code?

1. At MPI, add the following line to your ~/.bashrc:
    source /remote/mdtserv01/source_svn.sh
2. go to the directory were you want to have the code
3. type in the following ($USER is the username at MPI):
> mkdir reader
> cd reader
> mkdir HiggsAnalysis
> cd HiggsAnalysis
> svn co svn+ssh://$USER@mdtserv01.mppmu.mpg.de/mnt/home/mdtserv01/MDT_SVN/NtupleWriter HiggsAnalysis-00-01-00
> cd ../
> svn co svn+ssh://$USER@mdtserv01.mppmu.mpg.de/mnt/home/mdtserv01/MDT_SVN/NtupleReader NtupleReader
> svn co svn+ssh://$USER@mdtserv01.mppmu.mpg.de/mnt/home/mdtserv01/MDT_SVN/AnalysisExample MyAnalysisExample

How to run code?
NtupleWriter
--- runs over AOD-s and creates and Athena Aware Ntuple (tmp.aan.root) ---
(Ntuple contains different objects - electrons, muons, light/tau/b-jets, missing energy, truth... )
On the local machine type in the following:
> cd reader
> source ../get_ready_ssh.sh
> cd HiggsAnalysis/HiggsAnalysis-00-01-00/cmt/
> cmt config
> source setup.sh
> cmt make
> cd ../run/
> athena HiggsAnalysisNtupleWriter.py

MyAnalysisExample
--- example code for analysis on the ntuple created by NtupleWriter ---
On the local machine type in the following:
> cd reader
> cd MyAnalysisExample/
> cd run/
> source setpath.sh
> make
> AAN_analysis.exe tmp.aan.root
This creates the root-file ''tmp.selection.root'' with user-defined histograms.

The code defining the contents of particular objects and different analysis tools are located in reader/NtupleReader.

Release 13 and 14

The above description works for release 12 data.
To run on release 13 data the appropriate NtupleWriter has to be used:
> svn co svn+ssh://$USER@mdtserv01.mppmu.mpg.de/mnt/home/mdtserv01/MDT_SVN/NtupleWriter13 NtupleWriter13-00-01-00

release 14:
> svn co svn+ssh://$USER@mdtserv01.mppmu.mpg.de/mnt/home/mdtserv01/MDT_SVN/NtupleWriter14

The Analysis and the NtupleReader work on ntuples produced with all releases.


Run the NtupleWriter on the Grid with Panda

Here is an example:
pathena -c 'dq2_datasetname="mc08.107684.AlpgenJimmyWenuNp4_pt20.recon.AOD.e368_s462_r563/"' panda_AANtupleWriter14.py --inDS mc08.107684.AlpgenJimmyWenuNp4_pt20.recon.AOD.e368_s462_r563/ --outDS user09.MaxPlanck.writer_v22_107684_Pythia_e368_s462_r563.job_0091 --nEventsPerJob 10000 --site=AUTO

some hints:
- the output has to start with user09.YourName
- don't forget the / after the datasetname
- if job doesn't find any files, send it directly to the corresponding Tier (dq2-list-dataset-replicas-container)
- use panda browser panda.cern.ch to monitor your jobs using the job Id
- for more options look at https://twiki.cern.ch/twiki/bin/view/Atlas/PandaAthena

MDT Home

Impressum

Last modified on March 4th, 2009