Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-04-26 03:14:05

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("REPROD")
0004 process.load("Configuration.StandardSequences.Reconstruction_cff")
0005 process.load("Configuration.StandardSequences.MagneticField_38T_cff")
0006 #process.load("Configuration.StandardSequences.MagneticField_4T_cff")
0007 process.load("Configuration.StandardSequences.GeometryRecoDB_cff")
0008 process.load('Configuration/StandardSequences/FrontierConditions_GlobalTag_cff')
0009 #from Configuration.AlCa.autoCond import autoCond
0010 #process.GlobalTag.globaltag = autoCond['mc']
0011 from Configuration.AlCa.autoCond import autoCond 
0012 process.GlobalTag.globaltag = cms.string( autoCond[ 'startup' ] )
0013 #process.GlobalTag.globaltag = 'START50_V10::All'
0014 
0015 #process.Timing =cms.Service("Timing")
0016 process.maxEvents = cms.untracked.PSet(
0017     input = cms.untracked.int32(-1)
0018 )
0019 
0020 process.source = cms.Source(
0021     "PoolSource",
0022     fileNames = cms.untracked.vstring(),
0023     eventsToProcess = cms.untracked.VEventRange(),
0024     secondaryFileNames = cms.untracked.vstring(),
0025     noEventSort = cms.untracked.bool(True),
0026     duplicateCheckMode = cms.untracked.string('noDuplicateCheck')
0027 )
0028 
0029 from RecoParticleFlow.Configuration.reco_QCDForPF_cff import fileNames
0030 process.source.fileNames = [ '/store/relval/CMSSW_5_0_0/RelValQCD_FlatPt_15_3000/GEN-SIM-RECO/START50_V8-v2/0073/324BAB7B-C328-E111-B624-00261894389E.root',
0031                              '/store/relval/CMSSW_5_0_0/RelValQCD_FlatPt_15_3000/GEN-SIM-RECO/START50_V8-v2/0073/72BA0554-C328-E111-B2A6-002618943972.root',
0032                              '/store/relval/CMSSW_5_0_0/RelValQCD_FlatPt_15_3000/GEN-SIM-RECO/START50_V8-v2/0073/B44EAD5D-C328-E111-8057-0018F3D096BC.root',
0033                              '/store/relval/CMSSW_5_0_0/RelValQCD_FlatPt_15_3000/GEN-SIM-RECO/START50_V8-v2/0073/EE7D4C4A-0529-E111-84F5-002618943900.root'
0034     ]
0035     
0036 process.dump = cms.EDAnalyzer("EventContentAnalyzer")
0037 
0038 
0039 process.load("RecoParticleFlow.Configuration.ReDisplay_EventContent_NoTracking_cff")
0040 process.display = cms.OutputModule("PoolOutputModule",
0041                                    process.DisplayEventContent,
0042     fileName = cms.untracked.string('display.root')
0043 )
0044 
0045 # modify reconstruction sequence
0046 process.pfTrack.MuColl = cms.InputTag('muons')
0047 process.particleFlowTmp.muons = cms.InputTag('muons')
0048 process.particleFlow.FillMuonRefs = False
0049 #process.particleFlowTmp.useHO = True
0050 
0051 
0052 # Local re-reco: Produce tracker rechits, pf rechits and pf clusters
0053 process.localReReco = cms.Sequence(process.particleFlowCluster+
0054                                    process.ecalClusters)
0055 
0056 
0057 process.globalReReco = cms.Sequence(process.particleFlowTrackWithDisplacedVertex+
0058                                     process.gsfEcalDrivenElectronSequence
0059                                     )
0060 
0061 # Particle Flow re-processing
0062 process.pfReReco = cms.Sequence(process.particleFlowReco+
0063                                 process.particleFlowLinks+
0064                                 process.recoPFJets+
0065                                 process.recoPFMET+
0066                                 process.PFTau)
0067                                 
0068 # Gen Info re-processing
0069 process.load("PhysicsTools.HepMCCandAlgos.genParticles_cfi")
0070 process.load("RecoJets.Configuration.GenJetParticles_cff")
0071 process.load("RecoJets.Configuration.RecoGenJets_cff")
0072 process.load("RecoMET.Configuration.GenMETParticles_cff")
0073 process.load("RecoMET.Configuration.RecoGenMET_cff")
0074 process.load("RecoParticleFlow.PFProducer.particleFlowSimParticle_cff")
0075 process.load("RecoParticleFlow.Configuration.HepMCCopy_cfi")
0076 process.genReReco = cms.Sequence(process.generator+
0077                                  process.genParticles+
0078                                  process.genJetParticles+
0079                                  process.recoGenJets+
0080                                  process.genMETParticles+
0081                                  process.recoGenMET+
0082                                  process.particleFlowSimParticle)
0083 
0084 #process.load("RecoParticleFlow.PFProducer.particleFlowCandidateChecker_cfi")
0085 #process.particleFlowCandidateChecker.pfCandidatesReco = cms.InputTag("particleFlow","","REPROD")
0086 #process.particleFlowCandidateChecker.pfCandidatesReReco = cms.InputTag("particleFlow","","REPROD2")
0087 #process.particleFlowCandidateChecker.pfJetsReco = cms.InputTag("ak5PFJets","","REPROD")
0088 #process.particleFlowCandidateChecker.pfJetsReReco = cms.InputTag("ak5PFJets","","REPROD2")
0089 
0090 # The complete reprocessing
0091 process.p = cms.Path(process.localReReco+
0092                      process.globalReReco+
0093                      process.pfReReco+
0094                      process.genReReco
0095                      #+process.particleFlowCandidateChecker
0096                      )
0097 
0098 # And the output.
0099 process.outpath = cms.EndPath(process.display)
0100 
0101 # And the logger
0102 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0103 process.options = cms.untracked.PSet(
0104     makeTriggerResults = cms.untracked.bool(True),
0105     wantSummary = cms.untracked.bool(True),
0106     Rethrow = cms.untracked.vstring('Unknown', 
0107         'ProductNotFound', 
0108         'DictionaryNotFound', 
0109         'InsertFailure', 
0110         'Configuration', 
0111         'LogicError', 
0112         'UnimplementedFeature', 
0113         'InvalidReference', 
0114         'NullPointerError', 
0115         'NoProductSpecified', 
0116         'EventTimeout', 
0117         'EventCorruption', 
0118         'ModuleFailure', 
0119         'ScheduleExecutionFailure', 
0120         'EventProcessorFailure', 
0121         'FileInPathError', 
0122         'FatalRootError', 
0123         'NotFound')
0124 )
0125 
0126 process.MessageLogger.cerr.FwkReport.reportEvery = 100
0127 
0128