Skip to content

Latest commit

 

History

History
30 lines (23 loc) · 703 Bytes

README.md

File metadata and controls

30 lines (23 loc) · 703 Bytes

BeamSpotCalibration

How to use the package

cmsrel CMSSW_10_2_0  
cd CMSSW_10_2_0/src  
cmsenv  
git clone [email protected]:MilanoBicocca-pix/BeamSpotCalibration.git BeamSpotCalibration 
cd BeamSpotCalibration/errorScaleCal

scram b -j 10
cd test

To produce the ntuples, just run

cmsRun errorScaleCal_cfg.py

Modify the cfg file errorScaleCal_cfg.py in order to aviud the track/vertex refitting if it's not needed.

To analyze the ntuples and produce the resolution and pull plots:

root -l readNtuples.C

mkdir pull_resolution_plots
python fitPulls.py

Make sure to use a consistent PV selection in the ntuple reader and in the beamspot fit (e.g., Legacy or HP workflow).