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(50)
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/SingleElePt300ExtRelVal610/GEN-SIM-RECO/START61_V8_NoPuCustomEvC-v1/00000/FEDB497A-AB90-E211-BAEB-002590489DD0.root'
0024     ),
0025     eventsToProcess = cms.untracked.VEventRange(),
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 ## PFSC
0111 #modified ecal seeding to use PF-SCs and proper import to block.
0112 process.ecalDrivenElectronSeeds.barrelSuperClusters = cms.InputTag("particleFlowSuperClusterECAL",
0113                                                                    "particleFlowSuperClusterECALBarrel")
0114 process.ecalDrivenElectronSeeds.endcapSuperClusters = cms.InputTag("particleFlowSuperClusterECAL",
0115                                                                    "particleFlowSuperClusterECALEndcapWithPreshower")
0116 process.particleFlowBlock.useEGPhotons = cms.bool(False)
0117 process.particleFlowBlock.useSuperClusters = cms.bool(True)
0118 process.particleFlowBlock.SCbarrel = cms.InputTag("particleFlowSuperClusterECAL","particleFlowSuperClusterECALBarrel")
0119 process.particleFlowBlock.SCendcap = cms.InputTag("particleFlowSuperClusterECAL","particleFlowSuperClusterECALEndcapWithPreshower")
0120 
0121 #process.load("RecoParticleFlow.PFProducer.particleFlowCandidateChecker_cfi")
0122 #process.particleFlowCandidateChecker.pfCandidatesReco = cms.InputTag("particleFlow","","REPROD")
0123 #process.particleFlowCandidateChecker.pfCandidatesReReco = cms.InputTag("particleFlow","","REPROD2")
0124 #process.particleFlowCandidateChecker.pfJetsReco = cms.InputTag("ak5PFJets","","REPROD")
0125 #process.particleFlowCandidateChecker.pfJetsReReco = cms.InputTag("ak5PFJets","","REPROD2")
0126 # The complete reprocessing
0127 process.p = cms.Path(process.localReReco+
0128                      process.globalReReco+
0129                      process.pfReReco+
0130                      process.genReReco
0131                      #+process.particleFlowCandidateChecker
0132                      )
0133 
0134 # And the output.
0135 process.outpath = cms.EndPath(
0136     process.reco + 
0137     process.display
0138 )
0139 
0140 # And the monitoring
0141 #process.SimpleMemoryCheck = cms.Service("SimpleMemoryCheck",
0142 #                                        ignoreTotal=cms.untracked.int32(1),
0143 #                                        jobReportOutputOnly = cms.untracked.bool(True)
0144 #                                        )
0145 #process.Timing = cms.Service("Timing",
0146 #                             summaryOnly = cms.untracked.bool(True)
0147 #                             )
0148 
0149 # And the logger
0150 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0151 process.MessageLogger.cout = cms.untracked.PSet(
0152     threshold = cms.untracked.string('INFO')
0153     )
0154 process.options = cms.untracked.PSet(
0155     makeTriggerResults = cms.untracked.bool(True),
0156     #wantSummary = cms.untracked.bool(True),
0157     Rethrow = cms.untracked.vstring('Unknown', 
0158         'ProductNotFound', 
0159         'DictionaryNotFound', 
0160         'InsertFailure', 
0161         'Configuration', 
0162         'LogicError', 
0163         'UnimplementedFeature', 
0164         'InvalidReference', 
0165         'NullPointerError', 
0166         'NoProductSpecified', 
0167         'EventTimeout', 
0168         'EventCorruption', 
0169         'ModuleFailure', 
0170         'ScheduleExecutionFailure', 
0171         'EventProcessorFailure', 
0172         'FileInPathError', 
0173         'FatalRootError', 
0174         'NotFound')
0175 )
0176 
0177 process.MessageLogger.cerr.FwkReport.reportEvery = 1
0178 
0179