File indexing completed on 2024-04-06 12:33:36
0001
0002
0003 from Validation.RecoTrack.plotting.validation import Sample, Validation
0004 import Validation.RecoTrack.plotting.validation as validation
0005 import Validation.RecoVertex.plotting.vertexPlots as vertexPlots
0006
0007
0008
0009
0010
0011 RefRelease='CMSSW_7_5_0'
0012
0013
0014 NewRelease='CMSSW_7_6_0_pre1'
0015
0016
0017 startupsamples= [
0018
0019
0020
0021
0022
0023
0024
0025
0026 ]
0027
0028 def putype(t):
0029 if "_pmx" in NewRelease:
0030 return {"default": t, NewRelease: "pmx"+t}
0031 return t
0032
0033 pileupstartupsamples = [
0034 Sample('RelValTTbar', putype=putype("25ns"), midfix="13"),
0035 Sample('RelValTTbar', putype=putype("50ns"), midfix="13"),
0036 Sample('RelValZMM', putype=putype("25ns"), midfix="13"),
0037 Sample('RelValZMM', putype=putype("50ns"), midfix="13")
0038 ]
0039
0040 if "_pmx" in NewRelease:
0041 if not NewRelease in validation._globalTags:
0042 validation._globalTags[NewRelease] = validation._globalTags[NewRelease.replace("_pmx", "")]
0043
0044
0045 Collections = ["offlinePrimaryVertices", "selectedOfflinePrimaryVertices"]
0046
0047
0048 RefRepository = '/afs/cern.ch/cms/Physics/tracking/validation/MC'
0049 NewRepository = 'new'
0050
0051
0052 validation = Validation(
0053 fullsimSamples = pileupstartupsamples, fastsimSamples=[],
0054 refRelease=RefRelease, refRepository=RefRepository,
0055 newRelease=NewRelease, newRepository=NewRepository)
0056 validation.download()
0057 validation.doPlots(plotter=vertexPlots.plotter, plotterDrawArgs={"ratio": True},
0058 limitSubFoldersOnlyTo={"": Collections},
0059 )
0060
0061
0062
0063
0064
0065
0066
0067