Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-07-13 03:15:45

0001 import FWCore.ParameterSet.Config as cms
0002 #
0003 # luminosity
0004 #
0005 from RecoLuminosity.LumiProducer.bunchSpacingProducer_cfi import *
0006 # no bunchspacing in cosmics
0007 bunchSpacingProducer.overrideBunchSpacing= cms.bool(True)
0008 bunchSpacingProducer.bunchSpacingOverride= cms.uint32(50)
0009 
0010 #
0011 # tracker
0012 #
0013 from RecoLocalTracker.Configuration.RecoLocalTracker_Cosmics_cff import *
0014 from RecoTracker.MeasurementDet.MeasurementTrackerEventProducer_cfi import *
0015 from RecoTracker.Configuration.RecoTrackerP5_cff import *
0016 from RecoVertex.BeamSpotProducer.BeamSpot_cff import *
0017 from RecoTracker.Configuration.RecoTrackerBHM_cff import *
0018 
0019 #
0020 # calorimeters
0021 #
0022 from RecoLocalCalo.Configuration.RecoLocalCalo_Cosmics_cff import *
0023 from RecoEcal.Configuration.RecoEcalCosmics_cff import *
0024 #
0025 # muons
0026 #
0027 from RecoLocalMuon.Configuration.RecoLocalMuonCosmics_cff import *
0028 from RecoMuon.Configuration.RecoMuonCosmics_cff import *
0029 
0030 # primary vertex
0031 from RecoVertex.Configuration.RecoVertexCosmicTracks_cff import *
0032 
0033 #
0034 # jets and met
0035 #
0036 from RecoJets.Configuration.RecoCaloTowersGR_cff import *
0037 from RecoJets.Configuration.RecoJetsGR_cff import *
0038 from RecoMET.Configuration.RecoMET_Cosmics_cff import *
0039 
0040 #
0041 ## egamma
0042 #
0043 from RecoEgamma.Configuration.RecoEgammaCosmics_cff import *
0044 
0045 # local reco
0046 trackerCosmicsTask = cms.Task(offlineBeamSpot,trackerlocalrecoTask,MeasurementTrackerEvent,tracksP5Task)
0047 trackerCosmics = cms.Sequence(trackerCosmicsTask)
0048 caloCosmicsTask = cms.Task(calolocalrecoTaskCosmics,ecalClustersCosmicsTask)
0049 caloCosmics = cms.Sequence(caloCosmicsTask)
0050 caloCosmics_HcalNZSTask = cms.Task(calolocalrecoTaskCosmicsNZS,ecalClustersCosmicsTask)
0051 caloCosmics_HcalNZS = cms.Sequence(caloCosmics_HcalNZSTask)
0052 muonsLocalRecoCosmicsTask = cms.Task(muonlocalrecoTask,muonlocalrecoT0SegTask)
0053 muonsLocalRecoCosmics = cms.Sequence(muonsLocalRecoCosmicsTask)
0054 
0055 localReconstructionCosmicsTask         = cms.Task(bunchSpacingProducer,trackerCosmicsTask,caloCosmicsTask,muonsLocalRecoCosmicsTask,vertexrecoCosmicsTask)
0056 localReconstructionCosmics         = cms.Sequence(localReconstructionCosmicsTask)
0057 localReconstructionCosmics_HcalNZSTask = cms.Task(bunchSpacingProducer,trackerCosmicsTask,caloCosmics_HcalNZSTask,muonsLocalRecoCosmicsTask,vertexrecoCosmicsTask)
0058 localReconstructionCosmics_HcalNZS = cms.Sequence(localReconstructionCosmics_HcalNZSTask)
0059 
0060 
0061 # global reco
0062 muonsCosmicsTask = cms.Task(muonRecoGRTask)
0063 jetsCosmicsTask = cms.Task(recoCaloTowersGRTask,recoJetsGRTask)
0064 egammaCosmicsTask = cms.Task(egammarecoGlobal_cosmicsTask,egammarecoCosmics_woElectronsTask)
0065 
0066 
0067 from FWCore.Modules.logErrorHarvester_cfi import *
0068 
0069 
0070 reconstructionCosmicsTask         = cms.Task(localReconstructionCosmicsTask,
0071                                              beamhaloTracksTask,
0072                                              jetsCosmicsTask,
0073                                              muonsCosmicsTask,
0074                                              regionalCosmicTracksTask,
0075                                              cosmicDCTracksSeqTask,
0076                                              metrecoCosmicsTask,
0077                                              egammaCosmicsTask,
0078                                              logErrorHarvester)
0079 reconstructionCosmics         = cms.Sequence(reconstructionCosmicsTask)
0080 #logErrorHarvester should only wait for items produced in the reconstructionCosmics sequence
0081 _modulesInReconstruction = list()
0082 reconstructionCosmics.visit(cms.ModuleNamesFromGlobalsVisitor(globals(),_modulesInReconstruction))
0083 logErrorHarvester.includeModules = cms.untracked.vstring(sorted(set(_modulesInReconstruction)))
0084 
0085 reconstructionCosmics_HcalNZSTask = cms.Task(localReconstructionCosmics_HcalNZSTask,
0086                                              beamhaloTracksTask,
0087                                              jetsCosmicsTask,
0088                                              muonsCosmicsTask,
0089                                              regionalCosmicTracksTask,
0090                                              cosmicDCTracksSeqTask,
0091                                              metrecoCosmicsTask,
0092                                              egammaCosmicsTask,
0093                                              logErrorHarvester)
0094 reconstructionCosmics_HcalNZS = cms.Sequence(reconstructionCosmics_HcalNZSTask)
0095 reconstructionCosmics_woTkBHMTask = cms.Task(localReconstructionCosmicsTask,
0096                                              jetsCosmicsTask,
0097                                              muonsCosmicsTask,
0098                                              regionalCosmicTracksTask,
0099                                              cosmicDCTracksSeqTask,
0100                                              metrecoCosmicsTask,
0101                                              egammaCosmicsTask)
0102 reconstructionCosmics_woTkBHM = cms.Sequence(reconstructionCosmics_woTkBHMTask)