Tool to convert AOD to NanoAOD file format for the purpose of education and outreach
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.
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
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
cmsRun configs/simulation_cfg.py
cmsRun configs/data_cfg.py
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