Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:33:36

0001 #! /usr/bin/env python3
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 ########### User Defined Variables (BEGIN) ##############
0009 
0010 ### Reference release
0011 RefRelease='CMSSW_7_5_0'
0012 
0013 ### Relval release (set if different from $CMSSW_VERSION)
0014 NewRelease='CMSSW_7_6_0_pre1'
0015 
0016 ### This is the list of IDEAL-conditions relvals 
0017 startupsamples= [
0018 #    Sample('RelValMinBias', midfix="13"),
0019 #    Sample('RelValTTbar', midfix="13"),
0020 #    Sample('RelValQCD_Pt_3000_3500', midfix="13"),
0021 #    Sample('RelValQCD_Pt_600_800', midfix="13"),
0022 #    Sample('RelValSingleElectronPt35', midfix="UP15"),
0023 #    Sample('RelValSingleElectronPt10', midfix="UP15"),
0024 #    Sample('RelValSingleMuPt10', midfix="UP15"),
0025 #    Sample('RelValSingleMuPt100', midfix="UP15")
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 ### Vertex collections
0045 Collections = ["offlinePrimaryVertices", "selectedOfflinePrimaryVertices"]
0046 
0047 ### Reference and new repository
0048 RefRepository = '/afs/cern.ch/cms/Physics/tracking/validation/MC'
0049 NewRepository = 'new' # copy output into a local folder
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 #validation2 = vertexPlots.VertexValidation(
0062 #    fullsimSamples = startupsamples + pileupstartupsamples,
0063 #    fastsimSamples=[], newRelease=NewRelease)
0064 #validation2.download()
0065 #validation2.doPlots(algos=None, qualities=Qualities, refRelease=RefRelease,
0066 #                    refRepository=RefRepository, newRepository=NewRepository, plotter=vertexPlots.plotterGen)
0067