Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:27:20

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