Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:34:15

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("MULTITRACKVALIDATOR")
0004 
0005 # message logger
0006 process.MessageLogger = cms.Service("MessageLogger",
0007      default = cms.untracked.PSet( limit = cms.untracked.int32(10) )
0008 )
0009 
0010 
0011 #Adding SimpleMemoryCheck service:
0012 process.SimpleMemoryCheck=cms.Service("SimpleMemoryCheck",
0013                                    ignoreTotal=cms.untracked.int32(1),
0014                                    oncePerEventMode=cms.untracked.bool(True)
0015 )
0016 
0017 process.Timing = cms.Service("Timing"
0018     ,summaryOnly = cms.untracked.bool(True)
0019 )
0020 
0021 # source
0022 readFiles = cms.untracked.vstring()
0023 secFiles = cms.untracked.vstring()
0024 source = cms.Source ("PoolSource",fileNames = readFiles, secondaryFileNames = secFiles)
0025 readFiles.extend( [
0026        '/store/relval/CMSSW_7_4_0_pre6/RelValTTbar_13/GEN-SIM-RECO/PU25ns_MCRUN2_74_V1-v3/00000/067739D0-AFAB-E411-AC03-0025905A48D0.root'
0027                   ] )
0028 
0029 
0030 secFiles.extend( [
0031         '/store/relval/CMSSW_7_4_0_pre6/RelValTTbar_13/GEN-SIM-DIGI-RAW-HLTDEBUG/PU25ns_MCRUN2_74_V1-v3/00000/041672CC-60AB-E411-B86C-003048FFCC0A.root',
0032         '/store/relval/CMSSW_7_4_0_pre6/RelValTTbar_13/GEN-SIM-DIGI-RAW-HLTDEBUG/PU25ns_MCRUN2_74_V1-v3/00000/06DFB267-64AB-E411-A22D-0025905A60EE.root',
0033         '/store/relval/CMSSW_7_4_0_pre6/RelValTTbar_13/GEN-SIM-DIGI-RAW-HLTDEBUG/PU25ns_MCRUN2_74_V1-v3/00000/0E932222-60AB-E411-952C-0025905A6088.root',
0034         '/store/relval/CMSSW_7_4_0_pre6/RelValTTbar_13/GEN-SIM-DIGI-RAW-HLTDEBUG/PU25ns_MCRUN2_74_V1-v3/00000/1272643C-62AB-E411-969A-0025905A48B2.root',
0035         '/store/relval/CMSSW_7_4_0_pre6/RelValTTbar_13/GEN-SIM-DIGI-RAW-HLTDEBUG/PU25ns_MCRUN2_74_V1-v3/00000/12BCC0BA-60AB-E411-83AA-0025905B85EE.root',
0036         '/store/relval/CMSSW_7_4_0_pre6/RelValTTbar_13/GEN-SIM-DIGI-RAW-HLTDEBUG/PU25ns_MCRUN2_74_V1-v3/00000/2628B0FE-66AB-E411-83C3-0025905A48BC.root',
0037         '/store/relval/CMSSW_7_4_0_pre6/RelValTTbar_13/GEN-SIM-DIGI-RAW-HLTDEBUG/PU25ns_MCRUN2_74_V1-v3/00000/26CA1B5B-61AB-E411-B134-0025905A612A.root',
0038         '/store/relval/CMSSW_7_4_0_pre6/RelValTTbar_13/GEN-SIM-DIGI-RAW-HLTDEBUG/PU25ns_MCRUN2_74_V1-v3/00000/2CDDCDFD-66AB-E411-9ABA-0025905A60AA.root',
0039         '/store/relval/CMSSW_7_4_0_pre6/RelValTTbar_13/GEN-SIM-DIGI-RAW-HLTDEBUG/PU25ns_MCRUN2_74_V1-v3/00000/32E319C0-60AB-E411-B983-0025905B855C.root',
0040         '/store/relval/CMSSW_7_4_0_pre6/RelValTTbar_13/GEN-SIM-DIGI-RAW-HLTDEBUG/PU25ns_MCRUN2_74_V1-v3/00000/349C841F-63AB-E411-8805-0025905A48D8.root',
0041         '/store/relval/CMSSW_7_4_0_pre6/RelValTTbar_13/GEN-SIM-DIGI-RAW-HLTDEBUG/PU25ns_MCRUN2_74_V1-v3/00000/36CBCF5E-61AB-E411-A75C-003048FF86CA.root',
0042         '/store/relval/CMSSW_7_4_0_pre6/RelValTTbar_13/GEN-SIM-DIGI-RAW-HLTDEBUG/PU25ns_MCRUN2_74_V1-v3/00000/36E480F6-5EAB-E411-B272-0025905A48BC.root',
0043         '/store/relval/CMSSW_7_4_0_pre6/RelValTTbar_13/GEN-SIM-DIGI-RAW-HLTDEBUG/PU25ns_MCRUN2_74_V1-v3/00000/4A703881-63AB-E411-A2BA-0025905B858A.root',
0044         '/store/relval/CMSSW_7_4_0_pre6/RelValTTbar_13/GEN-SIM-DIGI-RAW-HLTDEBUG/PU25ns_MCRUN2_74_V1-v3/00000/4C0C75D7-5FAB-E411-9B34-0025905A608E.root',
0045         '/store/relval/CMSSW_7_4_0_pre6/RelValTTbar_13/GEN-SIM-DIGI-RAW-HLTDEBUG/PU25ns_MCRUN2_74_V1-v3/00000/4E0352FF-66AB-E411-8751-0025905B8576.root',
0046         '/store/relval/CMSSW_7_4_0_pre6/RelValTTbar_13/GEN-SIM-DIGI-RAW-HLTDEBUG/PU25ns_MCRUN2_74_V1-v3/00000/4E2491BA-64AB-E411-8F76-0025905B85D8.root',
0047         '/store/relval/CMSSW_7_4_0_pre6/RelValTTbar_13/GEN-SIM-DIGI-RAW-HLTDEBUG/PU25ns_MCRUN2_74_V1-v3/00000/541FAFC2-60AB-E411-8B77-0025905A60A6.root',
0048         '/store/relval/CMSSW_7_4_0_pre6/RelValTTbar_13/GEN-SIM-DIGI-RAW-HLTDEBUG/PU25ns_MCRUN2_74_V1-v3/00000/583B2424-60AB-E411-80B3-0025905B858E.root',
0049         '/store/relval/CMSSW_7_4_0_pre6/RelValTTbar_13/GEN-SIM-DIGI-RAW-HLTDEBUG/PU25ns_MCRUN2_74_V1-v3/00000/58DBD23C-62AB-E411-8F4C-0025905A60EE.root',
0050         '/store/relval/CMSSW_7_4_0_pre6/RelValTTbar_13/GEN-SIM-DIGI-RAW-HLTDEBUG/PU25ns_MCRUN2_74_V1-v3/00000/603F7120-60AB-E411-B0F6-0025905964C4.root',
0051         '/store/relval/CMSSW_7_4_0_pre6/RelValTTbar_13/GEN-SIM-DIGI-RAW-HLTDEBUG/PU25ns_MCRUN2_74_V1-v3/00000/62ECB36D-71AB-E411-8BA6-003048FFD720.root',
0052         '/store/relval/CMSSW_7_4_0_pre6/RelValTTbar_13/GEN-SIM-DIGI-RAW-HLTDEBUG/PU25ns_MCRUN2_74_V1-v3/00000/64BE7CF9-75AB-E411-A588-0025905B85E8.root',
0053         '/store/relval/CMSSW_7_4_0_pre6/RelValTTbar_13/GEN-SIM-DIGI-RAW-HLTDEBUG/PU25ns_MCRUN2_74_V1-v3/00000/68815A64-61AB-E411-99D1-0025905A48BC.root',
0054         '/store/relval/CMSSW_7_4_0_pre6/RelValTTbar_13/GEN-SIM-DIGI-RAW-HLTDEBUG/PU25ns_MCRUN2_74_V1-v3/00000/6EEC89BF-60AB-E411-9D75-0025905B85D8.root',
0055         '/store/relval/CMSSW_7_4_0_pre6/RelValTTbar_13/GEN-SIM-DIGI-RAW-HLTDEBUG/PU25ns_MCRUN2_74_V1-v3/00000/76680CD8-5FAB-E411-99D8-0025905964A2.root',
0056         '/store/relval/CMSSW_7_4_0_pre6/RelValTTbar_13/GEN-SIM-DIGI-RAW-HLTDEBUG/PU25ns_MCRUN2_74_V1-v3/00000/84CE7508-61AB-E411-9124-0025905B85EE.root',
0057         '/store/relval/CMSSW_7_4_0_pre6/RelValTTbar_13/GEN-SIM-DIGI-RAW-HLTDEBUG/PU25ns_MCRUN2_74_V1-v3/00000/84FD8400-76AB-E411-8D13-0025905A612C.root',
0058         '/store/relval/CMSSW_7_4_0_pre6/RelValTTbar_13/GEN-SIM-DIGI-RAW-HLTDEBUG/PU25ns_MCRUN2_74_V1-v3/00000/8670B486-5FAB-E411-A4B1-0025905A60B6.root',
0059         '/store/relval/CMSSW_7_4_0_pre6/RelValTTbar_13/GEN-SIM-DIGI-RAW-HLTDEBUG/PU25ns_MCRUN2_74_V1-v3/00000/88BBBFD3-5FAB-E411-866C-0025905B85B2.root',
0060         '/store/relval/CMSSW_7_4_0_pre6/RelValTTbar_13/GEN-SIM-DIGI-RAW-HLTDEBUG/PU25ns_MCRUN2_74_V1-v3/00000/88CF55D6-62AB-E411-924D-0025905A60B6.root',
0061         '/store/relval/CMSSW_7_4_0_pre6/RelValTTbar_13/GEN-SIM-DIGI-RAW-HLTDEBUG/PU25ns_MCRUN2_74_V1-v3/00000/8A63EA7C-6EAB-E411-A961-0025905B85A2.root',
0062         '/store/relval/CMSSW_7_4_0_pre6/RelValTTbar_13/GEN-SIM-DIGI-RAW-HLTDEBUG/PU25ns_MCRUN2_74_V1-v3/00000/8C717324-60AB-E411-B721-0025905AA9F0.root',
0063         '/store/relval/CMSSW_7_4_0_pre6/RelValTTbar_13/GEN-SIM-DIGI-RAW-HLTDEBUG/PU25ns_MCRUN2_74_V1-v3/00000/9462F7B8-6CAB-E411-A0CC-0025905964B6.root',
0064         '/store/relval/CMSSW_7_4_0_pre6/RelValTTbar_13/GEN-SIM-DIGI-RAW-HLTDEBUG/PU25ns_MCRUN2_74_V1-v3/00000/9E532222-60AB-E411-9353-0025905A60CE.root',
0065         '/store/relval/CMSSW_7_4_0_pre6/RelValTTbar_13/GEN-SIM-DIGI-RAW-HLTDEBUG/PU25ns_MCRUN2_74_V1-v3/00000/A64050C2-60AB-E411-B9B9-0025905A60B0.root',
0066         '/store/relval/CMSSW_7_4_0_pre6/RelValTTbar_13/GEN-SIM-DIGI-RAW-HLTDEBUG/PU25ns_MCRUN2_74_V1-v3/00000/AE05F253-65AB-E411-A528-0025905A60B6.root',
0067         '/store/relval/CMSSW_7_4_0_pre6/RelValTTbar_13/GEN-SIM-DIGI-RAW-HLTDEBUG/PU25ns_MCRUN2_74_V1-v3/00000/AE8613EF-68AB-E411-9283-003048FFD744.root',
0068         '/store/relval/CMSSW_7_4_0_pre6/RelValTTbar_13/GEN-SIM-DIGI-RAW-HLTDEBUG/PU25ns_MCRUN2_74_V1-v3/00000/BC55E7BE-60AB-E411-96A2-0025905A606A.root',
0069         '/store/relval/CMSSW_7_4_0_pre6/RelValTTbar_13/GEN-SIM-DIGI-RAW-HLTDEBUG/PU25ns_MCRUN2_74_V1-v3/00000/CA18EDF3-5EAB-E411-BABF-002618943862.root',
0070         '/store/relval/CMSSW_7_4_0_pre6/RelValTTbar_13/GEN-SIM-DIGI-RAW-HLTDEBUG/PU25ns_MCRUN2_74_V1-v3/00000/D6FF76A7-65AB-E411-8CA0-0025905B8610.root',
0071         '/store/relval/CMSSW_7_4_0_pre6/RelValTTbar_13/GEN-SIM-DIGI-RAW-HLTDEBUG/PU25ns_MCRUN2_74_V1-v3/00000/DCB00F5C-61AB-E411-8A47-003048FFCB96.root',
0072         '/store/relval/CMSSW_7_4_0_pre6/RelValTTbar_13/GEN-SIM-DIGI-RAW-HLTDEBUG/PU25ns_MCRUN2_74_V1-v3/00000/E295E1D2-5FAB-E411-8205-0026189438A9.root',
0073         '/store/relval/CMSSW_7_4_0_pre6/RelValTTbar_13/GEN-SIM-DIGI-RAW-HLTDEBUG/PU25ns_MCRUN2_74_V1-v3/00000/E8821C20-6CAB-E411-8FC1-0025905A6126.root',
0074         '/store/relval/CMSSW_7_4_0_pre6/RelValTTbar_13/GEN-SIM-DIGI-RAW-HLTDEBUG/PU25ns_MCRUN2_74_V1-v3/00000/F27EA4C0-60AB-E411-BD34-003048FFD744.root',
0075         '/store/relval/CMSSW_7_4_0_pre6/RelValTTbar_13/GEN-SIM-DIGI-RAW-HLTDEBUG/PU25ns_MCRUN2_74_V1-v3/00000/F8D4970C-61AB-E411-B866-0025905A48D0.root',
0076         '/store/relval/CMSSW_7_4_0_pre6/RelValTTbar_13/GEN-SIM-DIGI-RAW-HLTDEBUG/PU25ns_MCRUN2_74_V1-v3/00000/FE40619E-61AB-E411-B453-0025905B858C.root',
0077         ] )
0078 process.source = source
0079 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(400) )
0080 
0081 ### conditions
0082 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0083 from Configuration.AlCa.GlobalTag import GlobalTag
0084 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:run2_mc', '')
0085 
0086 ### standard includes
0087 process.load('Configuration/StandardSequences/Services_cff')
0088 process.load('Configuration.StandardSequences.GeometryRecoDB_cff')
0089 process.load("Configuration.StandardSequences.RawToDigi_cff")
0090 process.load("Configuration.EventContent.EventContent_cff")
0091 process.load("Configuration.StandardSequences.Reconstruction_cff")
0092 process.load("Configuration.StandardSequences.MagneticField_cff")
0093 process.load('Configuration.StandardSequences.EndOfProcess_cff')
0094 
0095 
0096 ### validation-specific includes
0097 #process.load("SimTracker.TrackAssociatorProducers.trackAssociatorByHits_cfi")
0098 process.load("SimTracker.TrackAssociatorProducers.quickTrackAssociatorByHits_cfi")
0099 process.load("SimTracker.TrackAssociatorProducers.trackAssociatorByChi2_cfi")
0100 process.load("SimTracker.TrackAssociation.trackingParticleRecoTrackAsssociation_cfi")
0101 process.load("Validation.RecoTrack.cuts_cff")
0102 process.load("Validation.RecoTrack.MultiTrackValidator_cff")
0103 process.load("DQMServices.Components.EDMtoMEConverter_cff")
0104 process.load("Validation.Configuration.postValidation_cff")
0105 process.quickTrackAssociatorByHits.SimToRecoDenominator = 'reco'
0106 
0107 
0108 
0109 
0110 ########### configuration MultiTrackValidator ########
0111 process.multiTrackValidator.associators = ['quickTrackAssociatorByHits']
0112 #process.cutsRecoTracks.quality = ['','highPurity']
0113 #process.cutsRecoTracks.quality = ['']
0114 process.multiTrackValidator.label = ['cutsRecoTracks']
0115 process.multiTrackValidator.histoProducerAlgoBlock.useLogPt = True
0116 process.multiTrackValidator.histoProducerAlgoBlock.minPt = 0.1
0117 process.multiTrackValidator.histoProducerAlgoBlock.maxPt = 3000.0
0118 process.multiTrackValidator.histoProducerAlgoBlock.nintPt = 40
0119 process.multiTrackValidator.UseAssociators = True
0120 
0121 
0122 #process.load("Validation.RecoTrack.cuts_cff")
0123 #process.cutsRecoTracks.quality = ['highPurity']
0124 #process.cutsRecoTracks.ptMin    = 0.5
0125 #process.cutsRecoTracks.minHit   = 10
0126 #process.cutsRecoTracks.minRapidity  = -1.0
0127 #process.cutsRecoTracks.maxRapidity  = 1.0
0128 
0129 process.quickTrackAssociatorByHits.useClusterTPAssociation = True
0130 process.load("SimTracker.TrackerHitAssociation.tpClusterProducer_cfi")
0131 
0132 process.validation = cms.Sequence(
0133     process.tpClusterProducer *
0134     process.quickTrackAssociatorByHits *
0135     process.multiTrackValidator
0136 )
0137 
0138 # paths
0139 process.val = cms.Path(
0140       process.cutsRecoTracks
0141     * process.validation
0142 )
0143 
0144 # Output definition
0145 process.DQMoutput = cms.OutputModule("PoolOutputModule",
0146     splitLevel = cms.untracked.int32(0),
0147     outputCommands = process.DQMEventContent.outputCommands,
0148     fileName = cms.untracked.string('file:MTV_inDQM.root'),
0149     dataset = cms.untracked.PSet(
0150         filterName = cms.untracked.string(''),
0151         dataTier = cms.untracked.string('DQM')
0152     )
0153 )
0154 
0155 process.endjob_step = cms.EndPath(process.endOfProcess)
0156 process.DQMoutput_step = cms.EndPath(process.DQMoutput)
0157 
0158 
0159 process.schedule = cms.Schedule(
0160       process.val,process.endjob_step,process.DQMoutput_step
0161 )
0162 
0163 process.options = cms.untracked.PSet(
0164     numberOfThreads = cms.untracked.uint32(8),
0165     numberOfStreams = cms.untracked.uint32(8),
0166     wantSummary = cms.untracked.bool(True)
0167 )