Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:26:21

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.Geometry_cff")
0008 process.load('Configuration/StandardSequences/FrontierConditions_GlobalTag_cff')
0009 from Configuration.AlCa.autoCond import autoCond
0010 process.GlobalTag.globaltag = autoCond['startup']
0011 #process.GlobalTag.globaltag = 'START50_V10::All'
0012 
0013 #process.Timing =cms.Service("Timing")
0014 process.maxEvents = cms.untracked.PSet(
0015     input = cms.untracked.int32(1000)
0016 )
0017 
0018 process.source = cms.Source(
0019     "PoolSource",
0020     fileNames = cms.untracked.vstring(
0021     #'file:/tmp/lgray/FEDB497A-AB90-E211-BAEB-002590489DD0.root',
0022     #'file:/tmp/lgray/FE329242-9490-E211-BBD9-003048F01174.root',
0023     '/store/relval/CMSSW_6_1_0-PU_START61_V8/SingleElePt300ExtRelVal610/GEN-SIM-RECO/v1/00000/90DEE330-F769-E211-8EDA-002590494D9C.root'
0024     ),
0025     #eventsToProcess = cms.untracked.VEventRange('1:852912'),
0026     #eventsToProcess = cms.untracked.VEventRange('1:1217421-1:1217421'),
0027     #                                             '1:1220344-1:1220344',
0028     #                                             '1:1655912-1:1655912',
0029     #                                             '1:415027-1:415027',
0030     #                                             '1:460640-1:460640',
0031     #                                             '1:2054772-1:2054772'),
0032     secondaryFileNames = cms.untracked.vstring(),
0033     noEventSort = cms.untracked.bool(True),
0034     duplicateCheckMode = cms.untracked.string('noDuplicateCheck')
0035 )
0036 
0037 #from RecoParticleFlow.Configuration.reco_QCDForPF_cff import fileNames
0038 #process.source.fileNames = fileNames
0039 
0040 process.dump = cms.EDAnalyzer("EventContentAnalyzer")
0041 
0042 
0043 process.load("RecoParticleFlow.Configuration.ReDisplay_EventContent_cff")
0044 process.display = cms.OutputModule("PoolOutputModule",
0045     process.DisplayEventContent,
0046     #outputCommands = cms.untracked.vstring('keep *'),
0047     fileName = cms.untracked.string('display.root')
0048 )
0049 
0050 process.load("Configuration.EventContent.EventContent_cff")
0051 process.reco = cms.OutputModule("PoolOutputModule",
0052     process.RECOSIMEventContent,
0053     fileName = cms.untracked.string('reco.root')
0054 )
0055 
0056 process.reco.outputCommands.append('keep *_particleFlowEGammaNew_*_*')
0057 # modify reconstruction sequence
0058 #process.hbhereflag = process.hbhereco.clone()
0059 #process.hbhereflag.hbheInput = 'hbhereco'
0060 #process.towerMakerPF.hbheInput = 'hbhereflag'
0061 #process.particleFlowRecHitHCAL.hcalRecHitsHBHE = cms.InputTag("hbhereflag")
0062 process.particleFlowTmp.useHO = False
0063 
0064 # Local re-reco: Produce tracker rechits, pf rechits and pf clusters
0065 process.localReReco = cms.Sequence(process.siPixelRecHits+
0066                                    process.siStripMatchedRecHits+
0067                                    #process.hbhereflag+
0068                                    process.particleFlowCluster+
0069                                    process.ecalClusters)
0070 
0071 # Track re-reco
0072 process.globalReReco =  cms.Sequence(process.offlineBeamSpot+
0073                                      process.recopixelvertexing+
0074                                      process.ckftracks+
0075                                      process.caloTowersRec+
0076                                      process.vertexreco+
0077                                      process.recoJets+
0078                                      process.muonrecoComplete+
0079                                      process.muoncosmicreco+
0080                                      process.egammaGlobalReco+
0081                                      process.pfTrackingGlobalReco+
0082                                      process.egammaHighLevelRecoPrePF+
0083                                      process.muoncosmichighlevelreco+
0084                                      process.metreco)
0085 
0086 # Particle Flow re-processing
0087 process.pfReReco = cms.Sequence(process.particleFlowReco+
0088                                 process.egammaHighLevelRecoPostPF+
0089                                 process.muonshighlevelreco+
0090                                 process.particleFlowLinks+
0091                                 process.recoPFJets+
0092                                 process.recoPFMET+
0093                                 process.PFTau)
0094                                
0095 # Gen Info re-processing
0096 process.load("PhysicsTools.HepMCCandAlgos.genParticles_cfi")
0097 process.load("RecoJets.Configuration.GenJetParticles_cff")
0098 process.load("RecoJets.Configuration.RecoGenJets_cff")
0099 process.load("RecoMET.Configuration.GenMETParticles_cff")
0100 process.load("RecoMET.Configuration.RecoGenMET_cff")
0101 process.load("RecoParticleFlow.PFProducer.particleFlowSimParticle_cff")
0102 process.load("RecoParticleFlow.Configuration.HepMCCopy_cfi")
0103 process.genReReco = cms.Sequence(process.generator+
0104                                  process.genParticles+
0105                                  process.genJetParticles+
0106                                  process.recoGenJets+
0107                                  process.genMETParticles+
0108                                  process.recoGenMET+
0109                                  process.particleFlowSimParticle)
0110 
0111 #process.load("RecoParticleFlow.PFProducer.particleFlowCandidateChecker_cfi")
0112 #process.particleFlowCandidateChecker.pfCandidatesReco = cms.InputTag("particleFlow","","REPROD")
0113 #process.particleFlowCandidateChecker.pfCandidatesReReco = cms.InputTag("particleFlow","","REPROD2")
0114 #process.particleFlowCandidateChecker.pfJetsReco = cms.InputTag("ak5PFJets","","REPROD")
0115 #process.particleFlowCandidateChecker.pfJetsReReco = cms.InputTag("ak5PFJets","","REPROD2")
0116 # The complete reprocessing
0117 process.p = cms.Path(process.localReReco+
0118                      process.globalReReco+
0119                      process.pfReReco+
0120                      process.genReReco
0121                      #+process.particleFlowCandidateChecker
0122                      )
0123 
0124 # And the output.
0125 process.outpath = cms.EndPath(
0126     process.reco + 
0127     process.display
0128 )
0129 
0130 # And the monitoring
0131 #process.SimpleMemoryCheck = cms.Service("SimpleMemoryCheck",
0132 #                                        ignoreTotal=cms.untracked.int32(1),
0133 #                                        jobReportOutputOnly = cms.untracked.bool(True)
0134 #                                        )
0135 #process.Timing = cms.Service("Timing",
0136 #                             summaryOnly = cms.untracked.bool(True)
0137 #                             )
0138 
0139 # And the logger
0140 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0141 #process.MessageLogger.cout = cms.untracked.PSet(
0142 #    threshold = cms.untracked.string('INFO')
0143 #    )
0144 process.options = cms.untracked.PSet(
0145     makeTriggerResults = cms.untracked.bool(True),
0146     #wantSummary = cms.untracked.bool(True),
0147     Rethrow = cms.untracked.vstring('Unknown', 
0148         'ProductNotFound', 
0149         'DictionaryNotFound', 
0150         'InsertFailure', 
0151         'Configuration', 
0152         'LogicError', 
0153         'UnimplementedFeature', 
0154         'InvalidReference', 
0155         'NullPointerError', 
0156         'NoProductSpecified', 
0157         'EventTimeout', 
0158         'EventCorruption', 
0159         'ModuleFailure', 
0160         'ScheduleExecutionFailure', 
0161         'EventProcessorFailure', 
0162         'FileInPathError', 
0163         'FatalRootError', 
0164         'NotFound')
0165 )
0166 
0167 process.MessageLogger.cerr.FwkReport.reportEvery = 1
0168 
0169