Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:24:16

0001 ### Code : Make PFClusterjets, directly from #################
0002 ### PF clusters from ECAL and HCAL    ########################
0003 ### make PFCaloJets                ###########################
0004 ##############################################################
0005 
0006 import FWCore.ParameterSet.Config as cms
0007 
0008 process = cms.Process('RECO2')
0009 
0010 # import of standard configurations
0011 process.load('Configuration.StandardSequences.Services_cff')
0012 process.load('SimGeneral.HepPDTESSource.pythiapdt_cfi')
0013 process.load('FWCore.MessageService.MessageLogger_cfi')
0014 process.load('Configuration.EventContent.EventContent_cff')
0015 process.load('SimGeneral.MixingModule.mixNoPU_cfi')
0016 process.load('Configuration.StandardSequences.GeometryRecoDB_cff')
0017 process.load('Configuration.StandardSequences.MagneticField_cff')
0018 process.load('Configuration.StandardSequences.RawToDigi_cff')
0019 process.load('Configuration.StandardSequences.L1Reco_cff')
0020 process.load('Configuration.StandardSequences.Reconstruction_cff')
0021 process.load('CommonTools.ParticleFlow.EITopPAG_cff')
0022 process.load('Configuration.StandardSequences.Validation_cff')
0023 process.load('DQMOffline.Configuration.DQMOfflineMC_cff')
0024 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0025 
0026 process.maxEvents = cms.untracked.PSet(
0027     input = cms.untracked.int32(10)
0028 )
0029 
0030 # Input source
0031 process.source = cms.Source("PoolSource",
0032     secondaryFileNames = cms.untracked.vstring(),
0033     duplicateCheckMode = cms.untracked.string('noDuplicateCheck'),                        
0034     fileNames = cms.untracked.vstring(
0035 "/store/relval/CMSSW_7_4_0_pre5/RelValQCD_FlatPt_15_3000HS_13/GEN-SIM-RECO/MCRUN2_73_V9_postLS1beamspot-v1/00000/1AEA4813-169E-E411-BFBB-0025905A60E4.root"
0036      )
0037 )
0038 
0039 
0040 process.options = cms.untracked.PSet(
0041 
0042 )
0043 
0044 # Production Info
0045 process.configurationMetadata = cms.untracked.PSet(
0046     version = cms.untracked.string('$Revision: 1.19 $'),
0047     annotation = cms.untracked.string('step3 nevts:10'),
0048     name = cms.untracked.string('Applications')
0049 )
0050 
0051 # Output definition
0052 
0053 process.RECOSIMoutput = cms.OutputModule("PoolOutputModule",
0054     splitLevel = cms.untracked.int32(0),
0055     eventAutoFlushCompressedSize = cms.untracked.int32(5242880),
0056     outputCommands = process.RECOSIMEventContent.outputCommands,
0057     fileName = cms.untracked.string('PFL2_out.root'),
0058     dataset = cms.untracked.PSet(
0059         filterName = cms.untracked.string(''),
0060         dataTier = cms.untracked.string('GEN-SIM-RECO')
0061     )
0062 )
0063 
0064 process.RECOSIMoutput.outputCommands.append( "keep *_*_*_RECO2") 
0065 
0066 process.DQMoutput = cms.OutputModule("DQMRootOutputModule",
0067     splitLevel = cms.untracked.int32(0),
0068     outputCommands = process.DQMEventContent.outputCommands,
0069     fileName = cms.untracked.string('file:step3_inDQM.root'),
0070     dataset = cms.untracked.PSet(
0071         filterName = cms.untracked.string(''),
0072         dataTier = cms.untracked.string('DQMIO')
0073     )
0074 )
0075 
0076 
0077 process.load( "RecoJets.JetProducers.hltParticleFlowForJets_cfi" )
0078 process.load( "RecoJets.JetProducers.ak4PFCaloJets_cfi" )
0079 
0080 process.load( "RecoJets.JetProducers.PFClustersForJets_cff" )
0081 process.load( "RecoJets.JetProducers.ak4PFClusterJets_cfi" )
0082 
0083 process.PFClusterJet = cms.Path(
0084     process.pfClusterRefsForJets_step*
0085     process.ak4PFClusterJets
0086 )
0087 
0088 process.PFCaloJet = cms.Path( 
0089     process.hltParticleFlowForJets*
0090     process.ak4PFCaloJets
0091 )
0092 
0093 
0094 from Configuration.AlCa.GlobalTag import GlobalTag
0095 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:run2_mc', '')
0096 
0097 # Path and EndPath definitions
0098 process.RECOSIMoutput_step = cms.EndPath(process.RECOSIMoutput)
0099 
0100 
0101 # Schedule definition
0102 process.schedule = cms.Schedule(process.PFClusterJet, process.PFCaloJet, process.RECOSIMoutput_step)
0103 
0104 # customisation of the proces
0105 # Automatic addition of the customisation function from SLHCUpgradeSimulations.Configuration.postLS1Customs
0106 from SLHCUpgradeSimulations.Configuration.postLS1Customs import customisePostLS1 
0107 
0108 #call to customisation function customisePostLS1 imported from SLHCUpgradeSimulations.Configuration.postLS1Customs
0109 process = customisePostLS1(process)