Tutorials - elliot-hughes/fatjet_analysis GitHub Wiki

Getting started

This tutorial shows you how to set up the code and run the tuplizer.

  1. Prepare and install the code in a CMSSW area by following the instructions on the main readme.

  2. Run cmsenv inside or downstream of the CMSSW area's src directory.

  3. Make sure your Grid proxy is initialized with

    voms-proxy-init -voms cms
  4. Go to $CMSSW_BASE/src/Analyzers/FatjetAnalyzer/test and run

    cmsRun tuplizer_cfg.py maxEvents=5 inFile=/store/mc/RunIISummer16MiniAODv2/QCD_HT1000to1500_TuneCUETP8M1_13TeV-madgraphMLM-pythia8/MINIAODSIM/PUMoriond17_80X_mcRun2_asymptotic_2016_TrancheIV_v6-v1/50000/00559533-06B7-E611-8594-0CC47AD9914C.root
    This should tuplize the first 5 events of the example QCD MC file. The output will be put in a file called something like tuple__spring15_pt300_08002001.root (the last number will be different depending on your CMSSW version).
  5. Check that everything worked by looking in the tuple, like this (make sure to use the tuple filename you have if it's different):

     TTree* root -l tuple__spring15_pt300_08002001.root
     TTree* tt = (TTree*) _file0->Get("tuplizer/events")
     tt->Scan("ca12_pf_pt[0]")
    
  6. The result should be the pT of the leading jets that passed the basic filter:

     ************************
     *    Row   * ca12_pf_p *
     ************************
     *        0 * 597.83597 *
     *        1 * 539.60461 *
     *        2 * 486.71224 *
     *        3 * 627.14510 *
     ************************
    
⚠️ **GitHub.com Fallback** ⚠️