Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:22:45

0001 #!/usr/bin/env python
0002 
0003 """ This is script runs the resolution macros
0004 """
0005 
0006 import os
0007 
0008 from ROOT import gROOT
0009 
0010 firstFile = "\"0\""
0011 secondFile = "\"2\""
0012 resonanceType = "JPsi"
0013 
0014 macrosDir = os.popen("echo $CMSSW_BASE", "r").read().strip()
0015 macrosDir += "/src/MuonAnalysis/MomentumScaleCalibration/test/Macros/"
0016 
0017 # Resolution
0018 # ----------
0019 # The second parameter is a bool defining whether it should do half eta
0020 # The third parameter is an integer defining the minimum number of entries required to perform a fit
0021 gROOT.ProcessLine(".x "+macrosDir+"ResolDraw.cc++("+firstFile+", false, 100, 1, 2)")
0022 gROOT.ProcessLine(".x "+macrosDir+"ResolDraw.cc++("+secondFile+", false, 100, 1, 2)")
0023 gROOT.ProcessLine(".x "+macrosDir+"ResolCompare.cc("+firstFile+", "+secondFile+", true)")