CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_2_9/src/Validation/RecoParticleFlow/Benchmarks/METBenchmarkGeneric/benchmark_data_cfg.py

Go to the documentation of this file.
00001 # test file for PFCandidate Validation
00002 # performs a matching with the genParticles collection. 
00003 # creates a root file with histograms filled with PFCandidate data,
00004 # present in the Candidate, and in the PFCandidate classes, for matched
00005 # PFCandidates. Matching histograms (delta pt etc) are also available. 
00006 
00007 import FWCore.ParameterSet.Config as cms
00008 
00009 process = cms.Process("TEST")
00010 process.load("DQMServices.Core.DQM_cfg")
00011 process.load("DQMServices.Components.DQMEnvironment_cfi")
00012 
00013 fa = 'RelValQCD'
00014 fb = 'FlatPt_15_3000_Fast'
00015 fc = 'ParticleFlow'
00016 
00017 #process.load("RecoParticleFlow.Configuration.DBS_Samples.%s_%s_cfi" % (fa, fb) )
00018 process.source = cms.Source("PoolSource",
00019 fileNames = cms.untracked.vstring(
00020 #'/../user/l/lacroix/MET_Validation/ttbar_fastsim_310_pre6_muonAndJEC/aod.root'
00021 #'/store/data/Commissioning10/MinimumBias/RAW-RECO/v8/000/133/532/EC93873A-D74B-DF11-A1B9-00E08179185D.root',
00022 #        '/store/data/Commissioning10/MinimumBias/RAW-RECO/v8/000/133/531/D6E1CE68-ED4B-DF11-A676-003048D45F84.root',
00023 #        '/store/data/Commissioning10/MinimumBias/RAW-RECO/v8/000/133/529/223C34BD-EC4B-DF11-9CA6-003048D476D4.root',
00024 #        '/store/data/Commissioning10/MinimumBias/RAW-RECO/v8/000/133/526/B28AEED6-E94B-DF11-9124-00E08178C103.root',
00025 #        '/store/data/Commissioning10/MinimumBias/RAW-RECO/v8/000/133/521/C0EFDC20-024C-DF11-A82A-00E08178C155.root',
00026 #        '/store/data/Commissioning10/MinimumBias/RAW-RECO/v8/000/133/518/C620697E-B94B-DF11-A125-003048D46090.root',
00027 #        '/store/data/Commissioning10/MinimumBias/RAW-RECO/v8/000/133/516/CA61DFDB-E14B-DF11-9193-003048D476B0.root',
00028 #        '/store/data/Commissioning10/MinimumBias/RAW-RECO/May6thPDSkim_GOODCOLL-v1/0128/FEBBC289-385D-DF11-BBB2-001A928116BE.root',
00029 #        '/store/data/Commissioning10/MinimumBias/RAW-RECO/May6thPDSkim_GOODCOLL-v1/0128/FCDC4C82-375D-DF11-8DEE-0026189438DE.root',
00030 #        '/store/data/Commissioning10/MinimumBias/RAW-RECO/May6thPDSkim_GOODCOLL-v1/0128/F8DEAB3E-375D-DF11-B26C-0018F3D0967A.root',
00031 #        '/store/data/Commissioning10/MinimumBias/RAW-RECO/May6thPDSkim_GOODCOLL-v1/0128/F654FD78-375D-DF11-AFCA-00261894388F.root',
00032 #        '/store/data/Commissioning10/MinimumBias/RAW-RECO/May6thPDSkim_GOODCOLL-v1/0128/F471BC3A-375D-DF11-BD59-00261894382A.root',
00033 #        '/store/data/Commissioning10/MinimumBias/RAW-RECO/May6thPDSkim_GOODCOLL-v1/0128/F4003186-385D-DF11-9189-002618FDA262.root',
00034 #        '/store/data/Commissioning10/MinimumBias/RAW-RECO/May6thPDSkim_GOODCOLL-v1/0128/F243CB56-375D-DF11-8D2A-0018F3D09696.root',
00035 #        '/store/data/Commissioning10/MinimumBias/RAW-RECO/May6thPDSkim_GOODCOLL-v1/0128/F202B148-375D-DF11-9AE7-001A928116D2.root',
00036 #        '/store/data/Commissioning10/MinimumBias/RAW-RECO/May6thPDSkim_GOODCOLL-v1/0128/EE2122C1-375D-DF11-B479-00261894388F.root',
00037 #        '/store/data/Commissioning10/MinimumBias/RAW-RECO/May6thPDSkim_GOODCOLL-v1/0128/ECF5B06F-375D-DF11-99F4-00261894382A.root',
00038 #        '/store/data/Commissioning10/MinimumBias/RAW-RECO/May6thPDSkim_GOODCOLL-v1/0128/EC243E26-385D-DF11-BE91-0026189438F5.root',
00039 #        '/store/data/Commissioning10/MinimumBias/RAW-RECO/May6thPDSkim_GOODCOLL-v1/0128/E4254CCF-375D-DF11-BC15-001A928116E2.root',
00040 #        '/store/data/Commissioning10/MinimumBias/RAW-RECO/May6thPDSkim_GOODCOLL-v1/0128/E0921F83-385D-DF11-B9B3-001A928116FA.root',
00041 #        '/store/data/Commissioning10/MinimumBias/RAW-RECO/May6thPDSkim_GOODCOLL-v1/0128/E0464F3B-385D-DF11-968D-0026189438FD.root',
00042 #        '/store/data/Commissioning10/MinimumBias/RAW-RECO/May6thPDSkim_GOODCOLL-v1/0128/DEDCAF6E-385D-DF11-8D0B-001A928116BE.root',
00043 #        '/store/data/Commissioning10/MinimumBias/RAW-RECO/May6thPDSkim_GOODCOLL-v1/0128/DE1BC96C-375D-DF11-A5B7-0018F3D0962E.root',
00044 #        '/store/data/Commissioning10/MinimumBias/RAW-RECO/May6thPDSkim_GOODCOLL-v1/0128/D6176E33-375D-DF11-BF1A-001BFCDBD154.root',
00045 #        '/store/data/Commissioning10/MinimumBias/RAW-RECO/May6thPDSkim_GOODCOLL-v1/0128/D4AA7035-385D-DF11-951E-001A92811738.root',
00046 #        '/store/data/Commissioning10/MinimumBias/RAW-RECO/May6thPDSkim_GOODCOLL-v1/0128/D4A47284-385D-DF11-970E-001BFCDBD1B6.root',
00047         '/store/data/Commissioning10/MinimumBias/RAW-RECO/May6thPDSkim_GOODCOLL-v1/0127/FC971980-345D-DF11-A4AF-0018F3D095EC.root',
00048         '/store/data/Commissioning10/MinimumBias/RAW-RECO/May6thPDSkim_GOODCOLL-v1/0121/0C6B9744-9C5C-DF11-AF67-001A928116D8.root',
00049         '/store/data/Commissioning10/MinimumBias/RAW-RECO/May6thPDSkim_GOODCOLL-v1/0007/8084C57C-805C-DF11-ACCE-0018F3D09676.root',
00050         '/store/data/Commissioning10/MinimumBias/RAW-RECO/May6thPDSkim_GOODCOLL-v1/0007/20B9C08A-7F5C-DF11-821F-0018F3D096CE.root',
00051         '/store/data/Commissioning10/MinimumBias/RAW-RECO/May6thPDSkim_GOODCOLL-v1/0007/1EF7BF2D-DD5C-DF11-AEEC-001A92971BB2.root',
00052         '/store/data/Commissioning10/MinimumBias/RAW-RECO/May6thPDSkim_GOODCOLL-v1/0006/4A197A41-A85C-DF11-BB68-001A92971B84.root',
00053         '/store/data/Commissioning10/MinimumBias/RAW-RECO/May6thPDSkim_GOODCOLL-v1/0006/08DF1E48-AB5C-DF11-A2BF-0018F3D09650.root',
00054         '/store/data/Commissioning10/MinimumBias/RAW-RECO/May6thPDSkim_GOODCOLL-v1/0005/FE8B9C92-9A5C-DF11-84C6-002618943910.root',
00055         '/store/data/Commissioning10/MinimumBias/RAW-RECO/May6thPDSkim_GOODCOLL-v1/0005/E25A4526-C95C-DF11-8239-0018F3D096A0.root',
00056         '/store/data/Commissioning10/MinimumBias/RAW-RECO/May6thPDSkim_GOODCOLL-v1/0005/C6BB8D2C-DB5C-DF11-BC01-0018F3D096DE.root',
00057         '/store/data/Commissioning10/MinimumBias/RAW-RECO/May6thPDSkim_GOODCOLL-v1/0005/30598A24-A35C-DF11-BC15-001A92810AA8.root',
00058         '/store/data/Commissioning10/MinimumBias/RAW-RECO/May6thPDSkim_GOODCOLL-v1/0005/026A0A90-7F5C-DF11-B1A3-001A92811706.root',
00059         '/store/data/Commissioning10/MinimumBias/RAW-RECO/May6thPDSkim_GOODCOLL-v1/0004/F255215F-D65C-DF11-B31C-001A928116EA.root',
00060         '/store/data/Commissioning10/MinimumBias/RAW-RECO/May6thPDSkim_GOODCOLL-v1/0004/F04FE91D-D05C-DF11-9CF5-0018F3D09710.root',
00061         '/store/data/Commissioning10/MinimumBias/RAW-RECO/May6thPDSkim_GOODCOLL-v1/0004/CA954359-9D5C-DF11-9EFE-002618943981.root',
00062         '/store/data/Commissioning10/MinimumBias/RAW-RECO/May6thPDSkim_GOODCOLL-v1/0004/AE1C0BF9-CA5C-DF11-A4BB-003048678BB2.root',
00063         '/store/data/Commissioning10/MinimumBias/RAW-RECO/May6thPDSkim_GOODCOLL-v1/0004/4E20E1DD-945C-DF11-B962-001A92971ADC.root',
00064         '/store/data/Commissioning10/MinimumBias/RAW-RECO/May6thPDSkim_GOODCOLL-v1/0004/04AA2FF2-A15C-DF11-8972-0026189437F0.root',
00065 )
00066 )
00067 
00068 process.maxEvents = cms.untracked.PSet(
00069     input = cms.untracked.int32(-1)
00070 )
00071 
00072 process.load("Validation.RecoParticleFlow.metBenchmark_cff")
00073 process.pfMetBenchmark.mode = 1
00074 process.caloMetBenchmark.mode = 1
00075 process.UncorrCaloMetBenchmark.mode = 1
00076 
00077 process.load('L1TriggerConfig.L1GtConfigProducers.L1GtTriggerMaskAlgoTrigConfig_cff')
00078 process.load('L1TriggerConfig.L1GtConfigProducers.L1GtTriggerMaskTechTrigConfig_cff')
00079 process.load('HLTrigger/HLTfilters/hltLevel1GTSeed_cfi')
00080 
00081 process.L1T1coll=process.hltLevel1GTSeed.clone()
00082 process.L1T1coll.L1TechTriggerSeeding = cms.bool(True)
00083 process.L1T1coll.L1SeedsLogicalExpression = cms.string('0 AND (40 OR 41) AND NOT (36 OR 37 OR 38 OR 39) AND NOT ((42 AND NOT 43) OR (43 AND NOT 42))')
00084 
00085 process.primaryVertexFilter = cms.EDFilter("VertexSelector",
00086    src = cms.InputTag("offlinePrimaryVertices"),
00087 #   cut = cms.string("!isFake && ndof > 4 && abs(z) <= 15 && position.Rho <= 2"), # tracksSize() > 3 for the older cut
00088    cut = cms.string("!isFake && ndof > 4 && abs(z) <= 15"), # tracksSize() > 3 for the older cut
00089    filter = cms.bool(True),   # otherwise it won't filter the events, just produce an empty vertex collection.
00090 )
00091 
00092 
00093 process.noscraping = cms.EDFilter("FilterOutScraping",
00094 applyfilter = cms.untracked.bool(True),
00095 debugOn = cms.untracked.bool(False),
00096 numtrack = cms.untracked.uint32(10),
00097 thresh = cms.untracked.double(0.25)
00098 )
00099 
00100 
00101 process.dqmSaver.convention = 'Offline'
00102 #process.dqmSaver.workflow = '/%s/%s/%s' % (fa, fb, fc)
00103 process.dqmSaver.workflow = '/A/B/C'
00104 process.dqmEnv.subSystemFolder = 'ParticleFlow'
00105 
00106 process.p =cms.Path(
00107     process.dqmEnv +
00108     process.L1T1coll+process.primaryVertexFilter+process.noscraping+
00109     process.metBenchmarkSequenceData +
00110     process.dqmSaver
00111     )
00112 
00113 
00114 process.schedule = cms.Schedule(process.p)
00115 
00116 
00117 process.load("FWCore.MessageLogger.MessageLogger_cfi")
00118 process.MessageLogger.cerr.FwkReport.reportEvery = 100000
00119 process.options   = cms.untracked.PSet( wantSummary = cms.untracked.bool(True) )