/AOD2NanoAODOutreachTool

Tool to convert CMS AOD data format to NanoAOD format for the purpose of education and outreach

Primary LanguageC++GNU General Public License v3.0GPL-3.0

Tool to convert AOD to NanoAOD

Tool to convert AOD to NanoAOD file format for the purpose of education and outreach

Description

The tool can be used to read events from CMS AOD files and convert them to a reduced NanoAOD data format. Note that the tool is published for the documentation of the related datasets below and may need significant experiment-specific knowledge to be used.

Setup CMSSW

In case CMSSW is set up outside of the CMS Open Data VM, source the following script.

source /cvmfs/cms.cern.ch/cmsset_default.sh

And check-out the appropriate CMSSW release using following call.

cmsrel CMSSW_5_3_32

Build module

cd CMSSW_5_3_32/src
cmsenv
mkdir workspace
cd workspace
git clone git://github.com/cms-opendata-analyses/AOD2NanoAODOutreachTool -b v1.2 AOD2NanoAOD
cd AOD2NanoAOD
scram b -j8

Test configuration locally

cmsRun configs/simulation_cfg.py
cmsRun configs/data_cfg.py

Example scripts for batch system submission

You can use the following script to submit to any HTCondor batch system.

./submit_jobs.sh /path/to/job/directory

You can merge the job files with the following script.

./merge_jobs.py /path/to/job/outputs