PAT Validation Instructions

Overview

On this page you will find the instructions how to run the PAT validation tool with different CMSSW releases. The histogram comparison is independent of the release, except for the cases that the name of root branches are changed.

Package Installation

You can find the installation recipes for different CMSSW releases below.

CMSSW_3_5_X

To check out and compile the package do the following:

cmsrel CMSSW_3_5_0
cd CMSSW_3_5_0/src
cmsenv
cvs co Validation/CMS.PhysicsTools
scram b

CMSSW_3_4_X

To check out and compile the package do the following: Note: a funny fix is added for the missing jetCorrFactorsL1.txt.txt (keep the double .txt) in CMSSW_3_4_2 (3_4_1 is okay).

cmsrel CMSSW_3_4_2
cd CMSSW_3_4_2/src
cmsenv
cvs co Validation/CMS.PhysicsTools
addpkg CondFormats/JetMETObjects
cp Validation/CMS.PhysicsTools/test/jetCorrFactorsL1.txt CondFormats/JetMETObjects/data/jetCorrFactorsL1.txt.txt
scram b

CMSSW_3_3_X

To check out and compile the package do the following:

cmsrel CMSSW_3_3_6
cd CMSSW_3_3_6/src
cmsenv
cvs co -r B3_3_X Validation/CMS.PhysicsTools
scram b

CMSSW_3_1_X

To check out and compile the package do the following:

cmsrel CMSSW_3_1_6
cd CMSSW_3_1_6/src
cmsenv
cvs co -r B3_1_X Validation/CMS.PhysicsTools
scram b

Histogram Comparison

To produce the benchmark plots do the following:

  • cd Validation/CMS.PhysicsTools/test directory:
  • Either edit benchmark_cfg.py to replace the suitable reco root file or run it as it is, first using the default root file present.
  • Produce the root file with benchmark histograms by doing the following (from the test directory) :
     cmsRun benchmark_cfg.py
  • You get the output file benchmark.root. This root file has a directory with names of different physics object. Each of them is further divided into a PAT and a RECO directory containing PAT and RECO plots that have identical names. The next step is to overlay the plots. For this do
     source validation.sh

ALERT! Note: This produces the following directories in the test directory :

  • PHOTONS
  • ELECTRONS
  • MUONS
  • TAUS
  • JETS
  • MET

One can copy each of these directories straight to a public html area and the plots will become visible. The solid colour histograms represent the RECO variables whereas the solid bold black histogram represents the PAT variable. Each object has a different colour for RECO variables but the same solid dark black histogram for the PAT variables. We are still working on getting the right templates but the names of the histograms plotted are in the order of what exists in, for example, captions_electrons.electrons text file in the test directory.

To run the validation for a single PAT candidate collection you can use the following scripts in the test directory:

validation_electrons.sh  
validation_METs.sh   
validation_photons.sh  
validation_taus.sh
validation_jets.sh       
validation_muons.sh  

Captions for the plots

The caption for the plots is set in the files captions_*****.captions files where ***** can be electrons, jets etc.

-- RogerWolf - 27 Jul 2009

Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r4 - 2010-02-17 - KaiFengChen
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    CMSPublic All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback