Skip to content

Code to make cfA ntuples based on CMSSW 7XX and miniAOD

Notifications You must be signed in to change notification settings

christopheralanwest/CfANtupler

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 

Repository files navigation

CfANtupler

Code to make cfA ntuples based on CMSSW 7XX and miniAOD. It's been tested on CMSSW_7_2_2_patch1.

Running the code

Issue the following commands on lxplus:

cmsrel CMSSW_7_2_2_patch1
cd CMSSW_7_2_2_patch1/src
cmsenv
git clone git@github.com:manuelfs/CfANtupler
scram b -j 4
cmsRun CfANtupler/minicfa/python/minicfA_cfg.py

This will create a flat ntuple named configurableAnalysis.root in the current directory.

In case of not having configured SSH in git, you can also check out the CfANtupler package with the http protocol

git clone http://github.com/manuelfs/CfANtupler

Adding/changing tree content

Most of the branches are defined in CfANtupler/minicfa/python/branchesminicfA_cfi.py. You can easily modify the leaves parameter to add a branch with the format 'name:member', where name will be the name of the branch, and member must be a member function of the collection you are using.

Branches that require C++ code (e.g. triggers) are defined in CfANtupler/minicfa/interface/AdHocNTupler.h.

About

Code to make cfA ntuples based on CMSSW 7XX and miniAOD

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 68.4%
  • Python 31.6%