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 #import os
0003 
0004 process = cms.Process("REPROD")
0005 
0006 # General
0007 process.load("Configuration.StandardSequences.Reconstruction_cff")
0008 process.load("Configuration.StandardSequences.MagneticField_AutoFromDBCurrent_cff")
0009 process.load("Configuration.StandardSequences.GeometryDB_cff")
0010 process.load('Configuration/StandardSequences/FrontierConditions_GlobalTag_cff')
0011 
0012 # Global tag
0013 from Configuration.AlCa.autoCond import autoCond
0014 process.GlobalTag.globaltag = cms.string( autoCond[ 'com10' ] )
0015 
0016 
0017 # Other statements for 39X (UPDATE FOR LATER CMSSW VERSIONS)
0018 #from Configuration.GlobalRuns.reco_TLR_44X import customisePPData
0019 #customisePPData(process)
0020 
0021 ## particle flow HF cleaning
0022 #process.particleFlowRecHitHCAL.LongShortFibre_Cut = 30.
0023 #process.particleFlowRecHitHCAL.ApplyTimeDPG = False
0024 #process.particleFlowRecHitHCAL.ApplyPulseDPG = True
0025 #process.particleFlowRecHitECAL.timing_Cleaning = True
0026 
0027 # Event file to process
0028 process.source = cms.Source(
0029     "PoolSource",
0030     fileNames = cms.untracked.vstring(
0031       'file:highMet.root',
0032       ),
0033     #eventsToProcess = cms.untracked.VEventRange('143827:62146418-143827:62146418'),
0034     )
0035 process.source.secondaryFileNames = cms.untracked.vstring()
0036 process.source.noEventSort = cms.untracked.bool(True)
0037 process.source.duplicateCheckMode = cms.untracked.string('noDuplicateCheck')
0038 
0039 # Number of events to process
0040 process.maxEvents = cms.untracked.PSet(
0041     input = cms.untracked.int32(-1)
0042 )
0043 
0044 # This is for filtering on L1 technical trigger bit: MB and no beam halo
0045 process.load('L1TriggerConfig.L1GtConfigProducers.L1GtTriggerMaskTechTrigConfig_cff')
0046 process.load('HLTrigger/HLTfilters/hltLevel1GTSeed_cfi')
0047 process.hltLevel1GTSeed.L1TechTriggerSeeding = cms.bool(True)
0048 process.hltLevel1GTSeed.L1SeedsLogicalExpression = cms.string('(0 AND (36 OR 37 OR 38 OR 39))')
0049 
0050 process.scrapping = cms.EDFilter("FilterOutScraping",
0051                                 applyfilter = cms.untracked.bool(True),
0052                                 debugOn = cms.untracked.bool(False),
0053                                 numtrack = cms.untracked.uint32(10),
0054                                 thresh = cms.untracked.double(0.25)
0055                                 )
0056 
0057 process.load('CommonTools/RecoAlgos/HBHENoiseFilter_cfi')
0058 
0059 process.dump = cms.EDAnalyzer("EventContentAnalyzer")
0060 
0061 
0062 process.load("RecoParticleFlow.Configuration.ReDisplay_EventContent_cff")
0063 process.display = cms.OutputModule("PoolOutputModule",
0064                                    process.DisplayEventContent,
0065                                    fileName = cms.untracked.string('display.root'),
0066                                    SelectEvents = cms.untracked.PSet(SelectEvents = cms.vstring('p'))
0067 )
0068 
0069 process.load("Configuration.EventContent.EventContent_cff")
0070 process.rereco = cms.OutputModule("PoolOutputModule",
0071     process.RECOSIMEventContent,
0072     fileName = cms.untracked.string('reco.root'),
0073     SelectEvents = cms.untracked.PSet(SelectEvents = cms.vstring('p'))
0074 )
0075 
0076 # Maxime !!!@$#^%$^%#@
0077 #process.particleFlowDisplacedVertexCandidate.verbose = False
0078 #process.particleFlowDisplacedVertex.verbose = False
0079 
0080 # Local re-reco: Produce tracker rechits, pf rechits and pf clusters
0081 #process.towerMakerPF.HcalAcceptSeverityLevel = 11
0082 
0083 # Tests for John-Paul Chou hbhe cleaning
0084 #process.hbhereflag = process.hbhereco.clone()
0085 #process.hbhereflag.hbheInput = 'hbhereco'
0086 #process.towerMakerPF.hbheInput = 'hbhereflag'
0087 #process.particleFlowRecHitHCAL.hcalRecHitsHBHE = cms.InputTag("hbhereflag")
0088 
0089 process.localReReco = cms.Sequence(process.siPixelRecHits+
0090                                    process.siStripMatchedRecHits+
0091                                    #process.hbhereflag+
0092                                    process.particleFlowCluster+
0093                                    process.ecalClusters)
0094 
0095 # Track re-reco
0096 process.globalReReco =  cms.Sequence(process.offlineBeamSpot+
0097                                      process.recopixelvertexing+
0098                                      process.ckftracks+
0099                                      process.caloTowersRec+
0100                                      process.vertexreco+
0101                                      process.recoJets+
0102                                      process.muonrecoComplete+
0103                                      process.muoncosmicreco+
0104                                      process.egammaGlobalReco+
0105                                      process.pfTrackingGlobalReco+
0106                                      process.egammaHighLevelRecoPrePF+
0107                                      process.muoncosmichighlevelreco+
0108                                      process.metreco)
0109 
0110 # Particle Flow re-processing
0111 process.pfReReco = cms.Sequence(process.particleFlowReco+
0112                                 process.egammaHighLevelRecoPostPF+
0113                                 process.muonshighlevelreco+
0114                                 process.particleFlowLinks+
0115                                 process.recoPFJets+
0116                                 process.recoPFMET+
0117                                 process.PFTau)
0118                                 
0119 # Gen Info re-processing
0120 process.load("PhysicsTools.HepMCCandAlgos.genParticles_cfi")
0121 process.load("RecoJets.Configuration.GenJetParticles_cff")
0122 process.load("RecoJets.Configuration.RecoGenJets_cff")
0123 process.load("RecoMET.Configuration.GenMETParticles_cff")
0124 process.load("RecoMET.Configuration.RecoGenMET_cff")
0125 process.load("RecoParticleFlow.PFProducer.particleFlowSimParticle_cff")
0126 process.load("RecoParticleFlow.Configuration.HepMCCopy_cfi")
0127 process.genReReco = cms.Sequence(process.generator+
0128                                  process.genParticles+
0129                                  process.genJetParticles+
0130                                  process.recoGenJets+
0131                                  process.genMETParticles+
0132                                  process.recoGenMET+
0133                                  process.particleFlowSimParticle)
0134 
0135 # The complete reprocessing
0136 process.p = cms.Path(process.scrapping+
0137                      process.HBHENoiseFilter+
0138                      process.localReReco+
0139                      process.globalReReco+
0140                      process.pfReReco
0141                      )
0142 
0143 # And the output.
0144 # Write out only filtered events
0145 process.display.SelectEvents = cms.untracked.PSet( SelectEvents = cms.vstring('p') )
0146 process.rereco.SelectEvents = cms.untracked.PSet( SelectEvents = cms.vstring('p') )
0147 process.outpath = cms.EndPath(process.rereco+process.display)
0148 #process.outpath = cms.EndPath(process.display)
0149 
0150 
0151 # Schedule the paths
0152 process.schedule = cms.Schedule(
0153     process.p,
0154     process.outpath
0155 )
0156 
0157 # And the logger
0158 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0159 process.options = cms.untracked.PSet(
0160     #fileMode = cms.untracked.string('NOMERGE'),
0161     makeTriggerResults = cms.untracked.bool(True),
0162     wantSummary = cms.untracked.bool(True),
0163     Rethrow = cms.untracked.vstring('Unknown', 
0164         'ProductNotFound', 
0165         'DictionaryNotFound', 
0166         'InsertFailure', 
0167         'Configuration', 
0168         'LogicError', 
0169         'UnimplementedFeature', 
0170         'InvalidReference', 
0171         'NullPointerError', 
0172         'NoProductSpecified', 
0173         'EventTimeout', 
0174         'EventCorruption', 
0175         'ModuleFailure', 
0176         'ScheduleExecutionFailure', 
0177         'EventProcessorFailure', 
0178         'FileInPathError', 
0179         'FatalRootError', 
0180         'NotFound')
0181 )
0182 
0183 process.MessageLogger.cerr.FwkReport.reportEvery = 1
0184