Skip to content

Commit

Permalink
Add in all relevant files for LLP event generation
Browse files Browse the repository at this point in the history
  • Loading branch information
benkrikler committed Jun 8, 2017
0 parents commit 3dec2ec
Show file tree
Hide file tree
Showing 9 changed files with 966 additions and 0 deletions.
476 changes: 476 additions & 0 deletions T1qqqqLL_cfg.py

Large diffs are not rendered by default.

23 changes: 23 additions & 0 deletions crab_submission-AODSIM.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
from CRABClient.UserUtilities import config, getUsernameFromSiteDB
config = config()

config.General.requestName = 'NNPDF30_13TeV_Pseudoscalar_100_1'
config.General.workArea = 'ICL-POWHEG_DMS'
config.General.transferOutputs = True
config.General.transferLogs = True

config.JobType.pluginName = 'ANALYSIS'
config.JobType.psetName = 'AODSIM_step2_cfg.py'
config.JobType.outputFiles = ['AODSIM_step2.root',]

config.Data.inputDataset = '' # change inputDataset
config.Data.inputDBS = 'phys03'
config.Data.splitting = 'EventAwareLumiBased'
config.Data.unitsPerJob = 500
config.Data.totalUnits = -1
config.Data.outLFNDirBase = '/store/user/%s/' % (getUsernameFromSiteDB())
config.Data.publication = True
config.Data.outputDatasetTag = 'ICL-POWHEG_DMS_NNPDF30_13TeV_Pseudoscalar_100_1-2016_25ns_SpringMC_PUScenarioV1_PoissonOOTPU-AODSIM'

config.Site.whitelist = ["T2_UK_London_IC"]
config.Site.storageSite = 'T2_UK_London_IC'
22 changes: 22 additions & 0 deletions crab_submission-GEN_SIM.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
from CRABClient.UserUtilities import config, getUsernameFromSiteDB
config = config()

config.General.requestName = 'Test_T1qqqqLL'
config.General.workArea = 'Test_T1qqqqLL_IC'
config.General.transferOutputs = True
config.General.transferLogs = True

config.JobType.pluginName = 'PrivateMC'
config.JobType.psetName = 'T1qqqqLL_cfg.py'

config.Data.outputPrimaryDataset = 'T1qqqqLL_MadgraphPythia-GEN-SIM'
config.Data.inputDBS = 'global'
config.Data.splitting = 'EventBased'
config.Data.unitsPerJob = 5
config.Data.totalUnits = 10
config.Data.outLFNDirBase = '/store/user/%s/' % (getUsernameFromSiteDB())
config.Data.publication = True
config.Data.outputDatasetTag = 'T1qqqqLL_MadgraphPythia_test-GEN-SIM'

config.Site.whitelist = ["T2_UK_London_IC"]
config.Site.storageSite = 'T2_UK_London_IC'
23 changes: 23 additions & 0 deletions crab_submission-MiniAODv2.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
from CRABClient.UserUtilities import config, getUsernameFromSiteDB
config = config()

config.General.requestName = 'NNPDF30_13TeV_Pseudoscalar_100_1'
config.General.workArea = 'ICL-POWHEG_DMS'
config.General.transferOutputs = True
config.General.transferLogs = True

config.JobType.pluginName = 'ANALYSIS'
config.JobType.psetName = 'MiniAODv2_cfg.py'
config.JobType.outputFiles = ['MiniAODv2.root']

config.Data.inputDataset = '' # Change inputDataset
config.Data.inputDBS = 'phys03'
config.Data.splitting = 'EventAwareLumiBased'
config.Data.unitsPerJob = 400
config.Data.totalUnits = -1
config.Data.outLFNDirBase = '/store/user/%s/' % (getUsernameFromSiteDB())
config.Data.publication = True
config.Data.outputDatasetTag = 'ICL-POWHEG_DMS_NNPDF30_13TeV_Pseudoscalar_100_1-2016_25ns_SpringMC_PUScenarioV1_PoissonOOTPU-MiniAODv2'

config.Site.whitelist = ["T2_UK_London_IC"]
config.Site.storageSite = 'T2_UK_London_IC'
50 changes: 50 additions & 0 deletions crab_submission-PUMIXING.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
from CRABClient.UserUtilities import config, getUsernameFromSiteDB
config = config()

# config.General.requestName = 'NNPDF30_13TeV_Pseudoscalar_100_1'
# config.General.workArea = 'ICL-POWHEG_DMS'
# config.General.transferOutputs = True
# config.General.transferLogs = True
#
# config.JobType.pluginName = 'ANALYSIS'
# config.JobType.psetName = 'AODSIM_step1_cfg.py'
# config.JobType.outputFiles = ['AODSIM_step1.root',]
#
# config.Data.inputDataset = '' # Change inputDataset
# config.Data.inputDBS = 'phys03'
# config.Data.splitting = 'EventAwareLumiBased'
# config.Data.unitsPerJob = 400
# config.Data.totalUnits = -1
# config.Data.outLFNDirBase = '/store/user/%s/' % (getUsernameFromSiteDB())
# config.Data.publication = True
# config.Data.outputDatasetTag = 'ICL-POWHEG_DMS_NNPDF30_13TeV_Pseudoscalar_100_1-2016_25ns_SpringMC_PUScenarioV1_PoissonOOTPU-GEN-SIM-RAW'
#
# config.Site.whitelist = ["T2_UK_London_IC"]
# config.Site.storageSite = 'T2_UK_London_IC'
#
#
##### ##### ##### ##### ##### ##### ##### ##### #
### ##### ##### ##### ##### ##### ##### ##### ###
# ##### ##### ##### ##### ##### ##### ##### #####

config.General.requestName = 'Test_T1qqqqLL'
config.General.workArea = 'Test_T1qqqqLL-step1_premix_take7'
config.General.transferOutputs = True
config.General.transferLogs = True

config.JobType.pluginName = 'ANALYSIS'
config.JobType.psetName = 'step1_DIGIPREMIX_S2_DATAMIX_L1_DIGI2RAW_HLT_PU.py'
config.JobType.outputFiles = ['step1.root',]

config.Data.inputDataset = '/T1qqqqLL_MadgraphPythia-GEN-SIM/bkrikler-T1qqqqLL_MadgraphPythia_test-GEN-SIM-6732483590170656bd2270b84748c6a8/USER'
config.Data.inputDBS = 'phys03'
config.Data.splitting = 'EventAwareLumiBased'
config.Data.unitsPerJob = 5
config.Data.totalUnits = -1
config.Data.outLFNDirBase = '/store/user/%s/' % (getUsernameFromSiteDB())
config.Data.publication = True
config.Data.outputDatasetTag = 'T1qqqqLL_MadgraphPythia_test-GEN-SIM'


#config.Site.whitelist = ["T2_UK_SGrid_Bristol","T2_RU_INR","T2_TH_CUNSTDA"]
config.Site.storageSite = 'T2_UK_SGrid_Bristol'
69 changes: 69 additions & 0 deletions my_recipe.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
#
# Set up production environment
#
export SCRAM_ARCH=slc6_amd64_gcc530
cmsrel CMSSW_8_0_21
cd CMSSW_8_0_21/src
cmsenv
mkdir -p Configuration/GenProduction/python/
cp /afs/cern.ch/user/m/mrenna/public/models/T2qq/T2qq_fragment.py Configuration/GenProduction/python/
scram b
cd -



#
# Generate cmsRun config to produce GEN-SIM. The config is not automatically run

# (note the --no_exec option). Allows for calling cmsRun later with additional options

# if desired. In this example, 50 events are produced, with 50 events per lumi block.
#
cmsDriver.py Configuration/GenProduction/python/T1qqqqLL_fragment.py --mc --eventcontent RAWSIM --customise_commands "process.source.numberEventsInLuminosityBlock = cms.untracked.uint32(50) \n process.source.firstRun = cms.untracked.uint32(3) \n process.generator.initialSeed = cms.untracked.uint32(3)" --datatier GEN-SIM --conditions 80X_mcRun2_asymptotic_2016_TrancheIV_v6 --beamspot Realistic50ns13TeVCollision --step GEN,SIM --magField 38T_PostLS1 --fileout file:T1qqqqLL_GEN-SIM.root --python_filename T1qqqqLL_cfg.py --no_exec -n 50

#
# Perform DIGI-RECO. Process is split into DIGI-step and RECO-step (note: runs cmsRun automatically).

# Original From Kevin:
# cmsDriver.py
# step1
# --conditions 80X_mcRun2_asymptotic_2016_TrancheIV_v6
# --datamix PreMix
# --datatier GEN-SIM-RAW
# --era Run2_2016
# --eventcontent PREMIXRAW
# --filein file:T1qqqqLL_GEN-SIM.root
# --fileout file:step1.root
# --mc
# --nThreads 4
# --pileup_input "/store/mc/RunIISpring15PrePremix/Neutrino_E-10_gun/GEN-SIM-DIGI-RAW/PUMoriond17_80X_mcRun2_asymptotic_2016_TrancheIV_v2-v2/90023/FED016AB-6A85-E611-96E7-002590A80DF0.root"
# --step DIGIPREMIX_S2,DATAMIX,L1,DIGI2RAW,HLT:@frozen2016

# From Shane's: https://raw.githubusercontent.com/shane-breeze/ProdDMS/master/StepPUMixing/test/AODSIM_step1_cfg.py
# step1
# --conditions 80X_mcRun2_asymptotic_2016_v3
# --customise Configuration/DataProcessing/Utils.addMonitoring
# --customise_commands process.simHcalDigis.markAndPass = cms.bool(True)
# --datatier GEN-SIM-RAW
# --era Run2_25ns
# --eventcontent RAWSIM
# --filein file:IC-RunIISummer15GS-06337.root
# --fileout file:IC-RunIISpring16DR80-01180_step1.root
# --mc
# --no_exec
# --pileup 2016_25ns_SpringMC_PUScenarioV1_PoissonOOTPU
# --pileup_input dbs:/MinBias_TuneCUETP8M1_13TeV-pythia8/RunIISummer15GS-MCRUN2_71_V1-v2/GEN-SIM
# --python_filename IC-RunIISpring16DR80-01180_1_cfg.py
# --step DIGI,L1,DIGI2RAW,HLT:@frozen25ns

# My command:
cmsDriver.py step1 --conditions 80X_mcRun2_asymptotic_2016_TrancheIV_v6 --datamix PreMix --datatier GEN-SIM-RAW --era Run2_2016 --eventcontent PREMIXRAW --filein file:T1qqqqLL_GEN-SIM.root --fileout file:step1.root --mc --no_exec --nThreads 4 --pileup 2016_25ns_Moriond17MC_PoissonOOTPU --pileup_input dbs:/MinBias_TuneCUETP8M1_13TeV-pythia8/RunIISummer15GS-MCRUN2_71_V1-v2/GEN-SIM --step DIGIPREMIX_S2,DATAMIX,L1,DIGI2RAW,HLT:@frozen2016

####
# RECO-step
cmsDriver.py step2 --mc --eventcontent AODSIM,DQM --runUnscheduled --datatier AODSIM,DQMIO --conditions 80X_mcRun2_asymptotic_2016_TrancheIV_v6 --step RAW2DIGI,RECO,EI,DQM:DQMOfflinePOGMC --nThreads 4 --era Run2_2016 --filein file:step1.root --fileout file:T1qqqqLL_AODSIM.root --no_exec

#
# Produce MINIAOD
#
cmsDriver.py step3 --mc --eventcontent MINIAODSIM --runUnscheduled --datatier MINIAODSIM --conditions 80X_mcRun2_asymptotic_2016_TrancheIV_v6 --step PAT --era Run2_2016 --filein file:T1qqqqLL_AODSIM.root --fileout file:T1qqqqLL_MINIAODSIM.root --no_exec
93 changes: 93 additions & 0 deletions step1_DIGIPREMIX_S2_DATAMIX_L1_DIGI2RAW_HLT_PU.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
# Auto generated configuration file
# using:
# Revision: 1.19
# Source: /local/reps/CMSSW/CMSSW/Configuration/Applications/python/ConfigBuilder.py,v
# with command line options: step1 --conditions 80X_mcRun2_asymptotic_2016_TrancheIV_v6 --datamix PreMix --datatier GEN-SIM-RAW --era Run2_2016 --eventcontent PREMIXRAW --filein file:T1qqqqLL_GEN-SIM.root --fileout file:step1.root --mc --no_exec --pileup 2016_25ns_Moriond17MC_PoissonOOTPU --pileup_input dbs:/MinBias_TuneCUETP8M1_13TeV-pythia8/RunIISummer15GS-MCRUN2_71_V1-v2/GEN-SIM --step DIGIPREMIX_S2,DATAMIX,L1,DIGI2RAW,HLT:@frozen2016
import FWCore.ParameterSet.Config as cms

from Configuration.StandardSequences.Eras import eras

process = cms.Process('HLT',eras.Run2_2016)

# import of standard configurations
process.load('Configuration.StandardSequences.Services_cff')
process.load('SimGeneral.HepPDTESSource.pythiapdt_cfi')
process.load('FWCore.MessageService.MessageLogger_cfi')
process.load('Configuration.EventContent.EventContent_cff')
process.load('SimGeneral.MixingModule.mix_2016_25ns_Moriond17MC_PoissonOOTPU_cfi')
process.load('Configuration.StandardSequences.GeometryRecoDB_cff')
process.load('Configuration.StandardSequences.MagneticField_cff')
process.load('Configuration.StandardSequences.DigiDMPreMix_cff')
process.load('SimGeneral.MixingModule.digi_MixPreMix_cfi')
process.load('Configuration.StandardSequences.DataMixerPreMix_cff')
process.load('Configuration.StandardSequences.SimL1EmulatorDM_cff')
process.load('Configuration.StandardSequences.DigiToRawDM_cff')
process.load('HLTrigger.Configuration.HLT_25ns15e33_v4_cff')
process.load('Configuration.StandardSequences.EndOfProcess_cff')
process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')

process.maxEvents = cms.untracked.PSet(
input = cms.untracked.int32(1)
)

# Input source
process.source = cms.Source("PoolSource",
fileNames = cms.untracked.vstring('file:T1qqqqLL_GEN-SIM.root'),
secondaryFileNames = cms.untracked.vstring()
)

process.options = cms.untracked.PSet(

)

# Production Info
process.configurationMetadata = cms.untracked.PSet(
annotation = cms.untracked.string('step1 nevts:1'),
name = cms.untracked.string('Applications'),
version = cms.untracked.string('$Revision: 1.19 $')
)

# Output definition

process.PREMIXRAWoutput = cms.OutputModule("PoolOutputModule",
dataset = cms.untracked.PSet(
dataTier = cms.untracked.string('GEN-SIM-RAW'),
filterName = cms.untracked.string('')
),
eventAutoFlushCompressedSize = cms.untracked.int32(5242880),
fileName = cms.untracked.string('file:step1.root'),
outputCommands = process.PREMIXRAWEventContent.outputCommands,
splitLevel = cms.untracked.int32(0)
)

# Additional output definition

# Other statements
process.mix.digitizers = cms.PSet(process.theDigitizersMixPreMix)
process.mixData.input.fileNames = cms.untracked.vstring(['/store/mc/RunIISummer15GS/MinBias_TuneCUETP8M1_13TeV-pythia8/GEN-SIM/MCRUN2_71_V1-v2/10000/004CC894-4877-E511-A11E-0025905C3DF8.root', '/store/mc/RunIISummer15GS/MinBias_TuneCUETP8M1_13TeV-pythia8/GEN-SIM/MCRUN2_71_V1-v2/10000/0063EDE9-2F77-E511-BAF6-0002C90B7F30.root', '/store/mc/RunIISummer15GS/MinBias_TuneCUETP8M1_13TeV-pythia8/GEN-SIM/MCRUN2_71_V1-v2/10000/0091527A-3E77-E511-B123-002590AC4BF6.root', '/store/mc/RunIISummer15GS/MinBias_TuneCUETP8M1_13TeV-pythia8/GEN-SIM/MCRUN2_71_V1-v2/10000/00BA861E-7779-E511-85DC-0024E85A3F69.root', '/store/mc/RunIISummer15GS/MinBias_TuneCUETP8M1_13TeV-pythia8/GEN-SIM/MCRUN2_71_V1-v2/10000/00F372BD-3C77-E511-8D36-0025901E4F3C.root', '/store/mc/RunIISummer15GS/MinBias_TuneCUETP8M1_13TeV-pythia8/GEN-SIM/MCRUN2_71_V1-v2/10000/00FCB56F-4377-E511-8F47-0025905C2CBC.root', '/store/mc/RunIISummer15GS/MinBias_TuneCUETP8M1_13TeV-pythia8/GEN-SIM/MCRUN2_71_V1-v2/10000/02310BE5-8F79-E511-AD22-02163E010E73.root', '/store/mc/RunIISummer15GS/MinBias_TuneCUETP8M1_13TeV-pythia8/GEN-SIM/MCRUN2_71_V1-v2/10000/023B5EF1-4177-E511-A3E7-00266CFFC7CC.root', '/store/mc/RunIISummer15GS/MinBias_TuneCUETP8M1_13TeV-pythia8/GEN-SIM/MCRUN2_71_V1-v2/10000/02469931-4377-E511-8A79-00259048AC98.root', '/store/mc/RunIISummer15GS/MinBias_TuneCUETP8M1_13TeV-pythia8/GEN-SIM/MCRUN2_71_V1-v2/10000/0275943C-5477-E511-A9C5-002481D24972.root'])
from Configuration.AlCa.GlobalTag import GlobalTag
process.GlobalTag = GlobalTag(process.GlobalTag, '80X_mcRun2_asymptotic_2016_TrancheIV_v6', '')

# Path and EndPath definitions
process.digitisation_step = cms.Path(process.pdigi)
process.datamixing_step = cms.Path(process.pdatamix)
process.L1simulation_step = cms.Path(process.SimL1Emulator)
process.digi2raw_step = cms.Path(process.DigiToRaw)
process.endjob_step = cms.EndPath(process.endOfProcess)
process.PREMIXRAWoutput_step = cms.EndPath(process.PREMIXRAWoutput)

# Schedule definition
process.schedule = cms.Schedule(process.digitisation_step,process.datamixing_step,process.L1simulation_step,process.digi2raw_step)
process.schedule.extend(process.HLTSchedule)
process.schedule.extend([process.endjob_step,process.PREMIXRAWoutput_step])

# customisation of the process.

# Automatic addition of the customisation function from HLTrigger.Configuration.customizeHLTforMC
from HLTrigger.Configuration.customizeHLTforMC import customizeHLTforFullSim

#call to customisation function customizeHLTforFullSim imported from HLTrigger.Configuration.customizeHLTforMC
process = customizeHLTforFullSim(process)

# End of customisation functions

98 changes: 98 additions & 0 deletions step2_RAW2DIGI_RECO_EI_DQM.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
# Auto generated configuration file
# using:
# Revision: 1.19
# Source: /local/reps/CMSSW/CMSSW/Configuration/Applications/python/ConfigBuilder.py,v
# with command line options: step2 --mc --eventcontent AODSIM,DQM --runUnscheduled --datatier AODSIM,DQMIO --conditions 80X_mcRun2_asymptotic_2016_TrancheIV_v6 --step RAW2DIGI,RECO,EI,DQM:DQMOfflinePOGMC --nThreads 4 --era Run2_2016 --filein file:step1.root --fileout file:T1qqqqLL_AODSIM.root --no_exec
import FWCore.ParameterSet.Config as cms

from Configuration.StandardSequences.Eras import eras

process = cms.Process('RECO',eras.Run2_2016)

# import of standard configurations
process.load('Configuration.StandardSequences.Services_cff')
process.load('SimGeneral.HepPDTESSource.pythiapdt_cfi')
process.load('FWCore.MessageService.MessageLogger_cfi')
process.load('Configuration.EventContent.EventContent_cff')
process.load('SimGeneral.MixingModule.mixNoPU_cfi')
process.load('Configuration.StandardSequences.GeometryRecoDB_cff')
process.load('Configuration.StandardSequences.MagneticField_cff')
process.load('Configuration.StandardSequences.RawToDigi_cff')
process.load('Configuration.StandardSequences.Reconstruction_cff')
process.load('CommonTools.ParticleFlow.EITopPAG_cff')
process.load('DQMOffline.Configuration.DQMOfflineMC_cff')
process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')

process.maxEvents = cms.untracked.PSet(
input = cms.untracked.int32(1)
)

# Input source
process.source = cms.Source("PoolSource",
fileNames = cms.untracked.vstring('file:step1.root'),
secondaryFileNames = cms.untracked.vstring()
)

process.options = cms.untracked.PSet(
allowUnscheduled = cms.untracked.bool(True)
)

# Production Info
process.configurationMetadata = cms.untracked.PSet(
annotation = cms.untracked.string('step2 nevts:1'),
name = cms.untracked.string('Applications'),
version = cms.untracked.string('$Revision: 1.19 $')
)

# Output definition

process.AODSIMoutput = cms.OutputModule("PoolOutputModule",
compressionAlgorithm = cms.untracked.string('LZMA'),
compressionLevel = cms.untracked.int32(4),
dataset = cms.untracked.PSet(
dataTier = cms.untracked.string('AODSIM'),
filterName = cms.untracked.string('')
),
eventAutoFlushCompressedSize = cms.untracked.int32(15728640),
fileName = cms.untracked.string('file:T1qqqqLL_AODSIM.root'),
outputCommands = process.AODSIMEventContent.outputCommands
)

process.DQMoutput = cms.OutputModule("DQMRootOutputModule",
dataset = cms.untracked.PSet(
dataTier = cms.untracked.string('DQMIO'),
filterName = cms.untracked.string('')
),
fileName = cms.untracked.string('file:T1qqqqLL_AODSIM_inDQM.root'),
outputCommands = process.DQMEventContent.outputCommands,
splitLevel = cms.untracked.int32(0)
)

# Additional output definition

# Other statements
from Configuration.AlCa.GlobalTag import GlobalTag
process.GlobalTag = GlobalTag(process.GlobalTag, '80X_mcRun2_asymptotic_2016_TrancheIV_v6', '')

# Path and EndPath definitions
process.raw2digi_step = cms.Path(process.RawToDigi)
process.reconstruction_step = cms.Path(process.reconstruction)
process.eventinterpretaion_step = cms.Path(process.EIsequence)
process.dqmoffline_step = cms.Path(process.DQMOfflinePOGMC)
process.dqmofflineOnPAT_step = cms.Path(process.DQMOfflinePOGMC)
process.AODSIMoutput_step = cms.EndPath(process.AODSIMoutput)
process.DQMoutput_step = cms.EndPath(process.DQMoutput)

# Schedule definition
process.schedule = cms.Schedule(process.raw2digi_step,process.reconstruction_step,process.eventinterpretaion_step,process.dqmoffline_step,process.dqmofflineOnPAT_step,process.AODSIMoutput_step,process.DQMoutput_step)

#Setup FWK for multithreaded
process.options.numberOfThreads=cms.untracked.uint32(4)
process.options.numberOfStreams=cms.untracked.uint32(0)

#do not add changes to your config after this point (unless you know what you are doing)
from FWCore.ParameterSet.Utilities import convertToUnscheduled
process=convertToUnscheduled(process)
from FWCore.ParameterSet.Utilities import cleanUnscheduled
process=cleanUnscheduled(process)

Loading

0 comments on commit 3dec2ec

Please sign in to comment.