Skip to content
Tote Hughes edited this page Sep 22, 2017 · 4 revisions

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-configuration is initialized with

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

    cmsRun tuplizer.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 tuple__spring15_pt300_08002001.root.
  5. Check that everything worked by looking in the tuple, like this:

     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 *
     ************************
    

Clone this wiki locally