Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:49:25

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("makeSD")
0004 
0005 # import of standard configurations
0006 process.load("Configuration.StandardSequences.Services_cff")
0007 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0008 process.load("Configuration.StandardSequences.GeometryExtended_cff")
0009 process.load("Configuration.StandardSequences.MagneticField_38T_cff")
0010 process.load('Configuration.StandardSequences.ReconstructionHeavyIons_cff')
0011 process.load('PhysicsTools.PatAlgos.patHeavyIonSequences_cff')
0012 process.load("HeavyIonsAnalysis.Configuration.analysisFilters_cff")
0013 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0014 process.load('Configuration.EventContent.EventContentHeavyIons_cff')
0015 process.load("HeavyIonsAnalysis.Configuration.analysisEventContent_cff")
0016 
0017 process.configurationMetadata = cms.untracked.PSet(
0018     version = cms.untracked.string('$Revision: 1.2 $'),
0019     annotation = cms.untracked.string('SD and central skims'),
0020     name = cms.untracked.string('$Source: /cvs_server/repositories/CMSSW/CMSSW/HeavyIonsAnalysis/Configuration/test/SDmaker_3SD_3CS_PDMinBias_cfg.py,v $')
0021     )
0022 
0023 process.Timing = cms.Service("Timing")
0024 
0025 process.maxEvents = cms.untracked.PSet(
0026     input = cms.untracked.int32(1000)
0027 )
0028 
0029 process.options = cms.untracked.PSet(
0030     wantSummary = cms.untracked.bool(True)
0031 )
0032 
0033 # Input source
0034 process.source = cms.Source("PoolSource",
0035     fileNames = cms.untracked.vstring(
0036     '/store/relval/CMSSW_3_8_0/RelValHydjetQ_B0_2760GeV/GEN-SIM-RECO/MC_38Y_V7-v1/0005/C85FD627-6895-DF11-B5CA-0026189437F5.root'
0037     ),
0038     inputCommands = cms.untracked.vstring("keep *", "drop *_MEtoEDMConverter_*_*")                  
0039 )
0040 
0041 # Other statements
0042 #process.GlobalTag.globaltag = "MC_37Y_V4::All"
0043 process.GlobalTag.globaltag = "MC_38Y_V8::All"
0044 process.MessageLogger.cerr.FwkReport.reportEvery = 100
0045 
0046 ############ Filters ###########
0047 
0048 ### JetHI SD
0049 process.filterSdJetHI = cms.Path(process.hltJetHI)
0050 
0051 ### PhotonHI SD
0052 process.filterSdPhotonHI = cms.Path(process.hltPhotonHI)
0053 
0054 ### MuHI SD
0055 process.filterSdMuHI = cms.Path(process.hltMuHI)
0056 
0057 ### JetHI AOD CS
0058 process.filterCsJetHI = cms.Path(process.makeHeavyIonJets *
0059                                  process.selectedPatJets *
0060                                  process.countPatJets *
0061                                  process.kt4CaloJets *
0062                                  process.ak5CaloJets)
0063 
0064 ### MuHI AOD CS
0065 process.filterCsMuHI = cms.Path(process.muonSelector *
0066                                 process.muonFilter *
0067                                 process.makeHeavyIonMuons)
0068 
0069 ### Zmumu AOD CS
0070 process.filterCsZmumuHI = cms.Path(process.muonSelector *
0071                                    process.muonFilter *
0072                                    process.dimuonsMassCut *
0073                                    process.dimuonsMassCutFilter *
0074                                    process.makeHeavyIonMuons)
0075 
0076 
0077 ############ PAT specifics ###########
0078 
0079 ### for HI adaptations
0080 from PhysicsTools.PatAlgos.tools.heavyIonTools import *
0081 configureHeavyIons(process)
0082 
0083 ### disable MC
0084 disableMonteCarloDeps(process)
0085 
0086 ############ Output modules ###########
0087 
0088 
0089 ### JetHI SD
0090 process.outputSdJetHI = cms.OutputModule("PoolOutputModule",
0091                                          SelectEvents = cms.untracked.PSet(
0092     SelectEvents = cms.vstring('filterSdJetHI')),                               
0093                                          dataset = cms.untracked.PSet(
0094     dataTier = cms.untracked.string('RECO'),
0095     filterName = cms.untracked.string('SD_JetHI')),
0096                                          outputCommands = process.RECOEventContent.outputCommands,
0097                                          fileName = cms.untracked.string('SD_JetHI.root')
0098                                          )
0099 
0100 ### PhotonHI SD
0101 process.outputSdPhotonHI = cms.OutputModule("PoolOutputModule",
0102                                             SelectEvents = cms.untracked.PSet(
0103     SelectEvents = cms.vstring('filterSdPhotonHI')),                               
0104                                             dataset = cms.untracked.PSet(
0105     dataTier = cms.untracked.string('RECO'),
0106     filterName = cms.untracked.string('SD_PhotonHI')),
0107                                             outputCommands = process.RECOEventContent.outputCommands,
0108                                             fileName = cms.untracked.string('SD_PhotonHI.root')
0109                                             )
0110 
0111 ### MuHI SD
0112 process.outputSdMuHI = cms.OutputModule("PoolOutputModule",
0113                                         SelectEvents = cms.untracked.PSet(
0114     SelectEvents = cms.vstring('filterSdMuHI')),                               
0115                                         dataset = cms.untracked.PSet(
0116     dataTier = cms.untracked.string('RECO'),
0117     filterName = cms.untracked.string('SD_MuHI')),
0118                                         outputCommands = process.RECOEventContent.outputCommands,
0119                                         fileName = cms.untracked.string('SD_MuHI.root')
0120                                         )
0121 
0122 ### JetHI CS
0123 process.outputCsJetHI = cms.OutputModule("PoolOutputModule",
0124                                         SelectEvents = cms.untracked.PSet(
0125     SelectEvents = cms.vstring('filterCsJetHI')),                               
0126                                         dataset = cms.untracked.PSet(
0127     dataTier = cms.untracked.string('RECO'),
0128     filterName = cms.untracked.string('CS_JetHI')),
0129                                         outputCommands = process.jetTrkSkimContent.outputCommands,
0130                                         fileName = cms.untracked.string('CS_JetHI.root')
0131                                         )
0132 
0133 process.outputCsJetHI.outputCommands.extend([
0134     "keep recoVertexs_hiSelectedVertex__RECO",
0135     "keep recoTracks_hiGeneralTracks__RECO",
0136     "keep recoPhotons_*_*_*" ,
0137     "keep edmTriggerResults_TriggerResults__*" ,
0138     "keep triggerTriggerEvent_hltTriggerSummaryAOD__*"
0139     ])
0140 
0141 ### MuHI CS
0142 process.outputCsMuHI = cms.OutputModule("PoolOutputModule",
0143                                         SelectEvents = cms.untracked.PSet(
0144     SelectEvents = cms.vstring('filterCsMuHI')),                               
0145                                         dataset = cms.untracked.PSet(
0146     dataTier = cms.untracked.string('RECO'),
0147     filterName = cms.untracked.string('CS_MuHI')),
0148                                         outputCommands = process.muonSkimContent.outputCommands,
0149                                         fileName = cms.untracked.string('CS_MuHI.root')
0150                                         )
0151 
0152 ### Z mumu  HI CS
0153 process.outputCsZmumuHI  = cms.OutputModule("PoolOutputModule",
0154                                         SelectEvents = cms.untracked.PSet(
0155     SelectEvents = cms.vstring('filterCsZmumuHI')),                               
0156                                         dataset = cms.untracked.PSet(
0157     dataTier = cms.untracked.string('RECO'),
0158     filterName = cms.untracked.string('CS_ZmumuHI')),
0159                                         outputCommands = process.RECOEventContent.outputCommands,
0160                                         fileName = cms.untracked.string('CS_ZmumuHI.root')
0161                                         )
0162 
0163 process.outputCsZmumuHI.outputCommands.extend(process.muonContent.outputCommands)
0164 process.outputCsZmumuHI.outputCommands.extend(["keep *_dimuonsMassCut_*_*"])
0165 
0166 process.this_is_the_end = cms.EndPath(
0167     process.outputSdJetHI      +
0168     process.outputSdPhotonHI   +
0169     process.outputSdMuHI       +
0170     process.outputCsJetHI      +
0171     process.outputCsMuHI       +
0172     process.outputCsZmumuHI
0173 )