Skip to content

cms-ttH/BoostedAnalyzer_runscripts_NAF

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BoostedAnalyzer_runscripts_NAF

some runscripts for usage on the NAF and other useful scripts

Instructions:

1)

modify "execute.sh" to your needs
e.g. change paths to you CMSSW and cwd and the cmsRun python config you want to use the config already implemented should work fine

2)

look at "getAllFiles.sh"
specify

  • input samples
  • output directory
  • Sample id ( doesn't really matter at the moment )
  • XS
  • number of MC in sample ( can be counted with "GetTotalSampleNumbers.py" which takes either a list of MiniAOD.root files or a DAS query as input)
  • number of input files per job

this will prepare the input scripts for the batch system

  • You should use different output directories for samples which you want to use seperately later on
    • and the same directories if you want to combine the samples
  • e.g. tth ->tth, WW+WZ+ZZ ->DiBoson, ...
  • Make sure the directories exist

3)

start the jobs with "runAll.sh"

4)

After the jobs are finished do "makeTreesReady.py"

  • checks if the output files exist and makes resubmit ready if necessary
  • This will hadd all the trees in the different directories
  • differentiates between nominal and JESUP/JESDOWN samples
  • merges the cutflows
  • makes nicer cutflow tables
  • writes AnalysisLog.txt for later use
  • collects used software and makes tarball of it

You can merge the cutflow files with "merge_cutflow.py" and create a nice table with "makeYieldTables.py"

About

some runscripts for usage on the NAF and other useful scripts

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 82.1%
  • Shell 17.9%