Skip to content

lmdodd/FinalStateAnalysis

 
 

Repository files navigation

FinalStateAnalysis Package Description

The Final State Analysis (FSA) package is a CMSSW analysis framework.
The package contains a complete implementatation to build a POG-approved PAT tuple, and utilities for generating plain ROOT ntuples from the PAT tuple.

Documentation: https://github.com/uwcms/FinalStateAnalysis/wiki

Automated tests:

53X PAT + Ntuple
42X PAT + Ntuple
53X Ntuple Only

Installation

Current CMSSW versions: 5_3_14. The installation instructions are the same for both.

Get a supported CMSSW release area::

  scram pro -n MyWorkingAreaName CMSSW CMSSW_VERSION
  cd MyWorkingAreaName/src
  # Setup your CMSSW environment
  cmsenv
  # Run this before doing ANYTHING else in src
  git cms-init

Checkout the FinalStateAnalysis repository::

  git clone --recursive https://github.com/uwcms/FinalStateAnalysis.git
  cd FinalStateAnalysis

This will checkout master branch with the lastest and greatest version of the code. Use this branch for the production of PAT-tuples. You might also want the Summer 2013 compatible branch, if so you should additionally run:

git checkout -b summer2013 origin/summer2013

For development, use the 53X_SLC6_Dev branch,

git checkout -b 53X_SLC6_Dev origin/53X_SLC6_Dev

and then proceed as normal.

Checkout the needed CMSSW tags:

  cd recipe/
  # Checkout needed packages and apply patches
  # This enables all options.  You can turn off things you don't need.
  # NB that in the hcp2012 changes the options won't do anything.
  PATPROD=1 LUMI=1 LIMITS=0 ./recipe.sh
  # Compile
  cd ../../
  # Avoid the new strict version of the compiler by relaxing some flags
  export USER_CXXFLAGS="-Wno-delete-non-virtual-dtor -Wno-error=unused-but-set-variable -Wno-error=unused-variable -Wno-error=sign-compare -Wno-error=reorder"
  scram b -j 8

You must always set up the CMSSW environment + some extra variables from FinalStateAnalysis::

  cmsenv
  source $CMSSW_BASE/src/FinalStateAnalysis/environment.sh

For python plotting enhancements, install the custom python virtualenv and extra packages (note this is not necessary for PAT tuple production)::

  ./install_python.sh
  yolk -l # List installed packages

About

An analysis framework for the Compact Muon Solenoid

Resources

Stars

Watchers

Forks

Packages

No packages published