Run II Search for Supersymmetry using Razor variables in the boosted regime
setenv SCRAM_ARCH slc6_amd64_gcc493
cmsrel CMSSW_7_6_3_patch2
cd CMSSW_7_6_3_patch2/src
cmsenv
git clone https://github.com/jkarancs/BoostedRazorAnalysis
scram b -j 20
When running for the first time, run the setup script in order
to mount eos on lxplus, create softlinks and create/update filelists
cd BoostedRazorAnalysis/Analyzer
source scripts/setup.csh
Before running check/set the options for the Analyzer in settings.h
More info about Analyzer:
- The Analyzer program is basically an event looper, histograms/methods/cuts etc. are defined in [Name]_Analysis.h
- All settings (printed also while running) are defined in settings.h it also includes the Analysis code you want
- common methods (for all analyses/studies) are defined in common/AnalysisBase.h
- The cross-sections and total weight is taken straight from ntuple files
- Reweighting and systematics weight methods are also given in AnalysisBase
- Additionally there's an option (in settings.h) to save a skimmed TTree with same content for the selected events
- counts are saved for all common and specific analysis cuts in the order they are defined
Run your anaylsis code with
make
./Analyzer <output filename> <filelist.txt or root file(s) ... >
eg:
./Analyzer Bkg_TTJets_madgraph.root filelists/backgrounds/TTJets_madgraph.txt
There is a tcsh script to run the Analyzer and use the results to create plots all in once on part of the data (--test option)
source scripts/run_all.csh --test
Or run a full analysis on all samples (--run option) and similarly create plots in the end
source scripts/run_all.csh --run
Run systematics (first, set doSystematics = true in settings.h)
when running systematics, additionally must specify options:
systematicsFileName and numSyst (i.e. the line to read in syst file)
./Analyzer systematicsFileName=systematics/2015_12_18.txt numSyst=1 Bkg_TTJets_madgraph.root filelists/backgrounds/TTJets_madgraph.txt
./Analyzer systematicsFileName=systematics/2015_12_18.txt numSyst=2 Bkg_TTJets_madgraph.root filelists/backgrounds/TTJets_madgraph.txt
...
./Analyzer systematicsFileName=systematics/2015_12_18.txt numSyst=100 Bkg_TTJets_madgraph.root filelists/backgrounds/TTJets_madgraph.txt
You can remake the systematics file with:
python scripts/write_syst.py <nline>
Janos Karancsi ([email protected])