scramv1 project -n CMSSW_3_3_6_val CMSSW CMSSW_3_3_6 cd CMSSW_3_3_6_val/src eval `scramv1 runtime -csh` cmscvsroot CMSSW
cvs co -r V04-02-08 Validation/RecoJets scramv1 b
Edit the file
Validation/RecoJets/analysis/alljets_validation_cfg.pyand include the data files you would like to run over.
Execute the following commands:
cd Validation/RecoJets/analysis cmsRun allJets_validation_cfg.py # cmsRun allJets_validation_before_330pre4_cfg.py (if 330 and before pre4)
This will produce a output root file containing histograms of various distributions used to validate the release.
In order to compare distributions from two different releases you have to run over a reference sample and a target sample to produce two sets of root file.
The script will produce gif files comparing the reference distribution with the target distribution.
The script will prompt you to enter the name of the root files you want to compare and the name of the directory where the plots should be written to. This directory name is also used for the title in the histograms.
firefox index.htmlNow you can view at all the plots.
sample.
cmsRun alljets_validation_cfg.pyThe histogramms are written to the root file:
QCD_80_120_STARTUP_V7_v2.root
To generate the comparison plots run the script:
./validation.shThe prompt shows:
This script produces all the histograms and plots... Enter the REFERNCE.root file, the NEW.root file, the directory name/histo title and the normalization ([REFERNCE.root] [NEW.root] [title] [normalization])With [normalization] one can chose a normalization from the number of entries in the histogramm (write y) or the number of events (write nothing). The normalization is set per default to the number of events.
QCD_80_120_STARTUP_V7_v2.root QCD_80_120_STARTUP_V7_v2.root testdiror
QCD_80_120_STARTUP_V7_v2.root QCD_80_120_STARTUP_V7_v2.root testdir y
The plots can be examined in a browser by executing:
firefox testdir/index.html