Last active
February 17, 2017 06:00
-
-
Save tahuang1991/9126812e8fde5047deb9d11636378b08 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Instructions: | |
Setup: | |
cmsrel CMSSW_6_2_0_SLHC28_patch1 | |
cd CMSSW_6_2_0_SLHC28_patch1/src | |
cmsenv | |
git cms-init | |
git cms-addpkg IOMC/ParticleGuns | |
git cms-addpkg Configuration/Generator | |
git cms-merge-topic dildick:from-CMSSW_6_2_0_SLHC28_patch1-FlatRandomPtAndDxyGunProducer | |
git clone git@github.com:gem-sw/GEMCode.git #master branch is ok | |
scram b -j 9 | |
GEN-SIM | |
Configuration: | |
cmsDriver.py FlatRandomPtAndDxyGunProducer_cfi --fileout file:out.root \ | |
--mc --eventcontent RAWSIM \ | |
--customise SLHCUpgradeSimulations/Configuration/combinedCustoms.cust_2023HGCalMuon,Configuration/DataProcessing/Utils.addMonitoring \ | |
--datatier GEN-SIM --conditions DES23_62_V1::All \ | |
--beamspot HLLHC --step GEN,SIM --magField 38T_PostLS1 \ | |
--customise GEMCode/GEMValidation/randomizeMuonGun.randomizeMuonGun \ | |
--geometry Extended2023HGCalMuon,Extended2023HGCalMuonReco --no_exec -n 1000 | |
output: | |
dataset: | |
/DispalcedMuonGun_1M_FlatPt1_50_FlatDxy0_50CM_GEN_SIM_CMSSW620SLHC/tahuang-DIGI_L1-a6e4adcd36b2d15a9ccf8d8d729f43f5/USER | |
e.g. | |
/store/user/tahuang/DispalcedMuonGun_1M_FlatPt1_50_FlatDxy0_50CM_GEN_SIM_CMSSW620SLHC/DIGI_L1/170217_030226/0000/out_L1_1.root | |
DIGI-L1: | |
# Auto generated configuration file | |
# using: | |
# Revision: 1.20 | |
# Source: /local/reps/CMSSW/CMSSW/Configuration/Applications/python/ConfigBuilder.py,v | |
# with command line options: step2 --filein file:out.root --fileout file:out_digi.root --mc --eventcontent FEVTDEBUG --datatier GEN-SIM-DIGI-RAW --conditions DES23_62_V1::All --customise SimMuon/GEMDigitizer/customizeGEMDigi.customize_digi_addGEM_addME0_muon_only --step DIGI:pdigi_valid,L1,DIGI2RAW --geometry Extended2023HGCalMuon,Extended2023HGCalMuonReco --python_filename HGCal_config_DIGI.py --no_exec -n -1 --magField 38T_PostLS1 | |
import FWCore.ParameterSet.Config as cms | |
process = cms.Process('DIGI2RAW') | |
# 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.Geometry.GeometryExtended2023HGCalMuonReco_cff') | |
process.load('Configuration.StandardSequences.MagneticField_38T_PostLS1_cff') | |
process.load('Configuration.StandardSequences.Digi_cff') | |
process.load('Configuration.StandardSequences.SimL1Emulator_cff') | |
process.load('Configuration.StandardSequences.DigiToRaw_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", | |
secondaryFileNames = cms.untracked.vstring(), | |
fileNames = cms.untracked.vstring('file:out.root') | |
) | |
process.options = cms.untracked.PSet( | |
) | |
# Production Info | |
process.configurationMetadata = cms.untracked.PSet( | |
version = cms.untracked.string('$Revision: 1.20 $'), | |
annotation = cms.untracked.string('step2 nevts:-1'), | |
name = cms.untracked.string('Applications') | |
) | |
# Output definition | |
process.FEVTDEBUGoutput = cms.OutputModule("PoolOutputModule", | |
splitLevel = cms.untracked.int32(0), | |
eventAutoFlushCompressedSize = cms.untracked.int32(5242880), | |
outputCommands = process.FEVTDEBUGEventContent.outputCommands, | |
fileName = cms.untracked.string('file:out_digi.root'), | |
dataset = cms.untracked.PSet( | |
filterName = cms.untracked.string(''), | |
dataTier = cms.untracked.string('GEN-SIM-DIGI-RAW') | |
) | |
) | |
# Additional output definition | |
# Other statements | |
process.mix.digitizers = cms.PSet(process.theDigitizersValid) | |
from Configuration.AlCa.GlobalTag import GlobalTag | |
process.GlobalTag = GlobalTag(process.GlobalTag, 'DES23_62_V1::All', '') | |
from SLHCUpgradeSimulations.Configuration.postLS1Customs import customisePostLS1 | |
from SLHCUpgradeSimulations.Configuration.gemCustoms import customise2019 as customise_gem2019 | |
from SLHCUpgradeSimulations.Configuration.gemCustoms import customise2023 as customise_gem2023 | |
from SLHCUpgradeSimulations.Configuration.me0Customs import customise as customise_me0 | |
from SLHCUpgradeSimulations.Configuration.rpcCustoms import customise as customise_rpc | |
process=customisePostLS1(process) | |
process=customise_gem2023(process) | |
process=customise_me0(process) | |
process=customise_rpc(process) | |
# Path and EndPath definitions | |
process.digitisation_step = cms.Path(process.pdigi_valid) | |
process.SimL1Emulator = cms.Sequence(process.simDtTriggerPrimitiveDigis+process.simCscTriggerPrimitiveDigis+process.simCsctfTrackDigis+process.simDttfDigis+process.simCsctfDigis+process.simRpcTriggerDigis+process.simGmtDigis) | |
process.L1simulation_step = cms.Path(process.SimL1Emulator) | |
process.endjob_step = cms.EndPath(process.endOfProcess) | |
process.FEVTDEBUGoutput_step = cms.EndPath(process.FEVTDEBUGoutput) | |
# Schedule definition | |
process.schedule = cms.Schedule(process.digitisation_step,process.L1simulation_step,process.endjob_step,process.FEVTDEBUGoutput_step) | |
# customisation of the process. | |
# Automatic addition of the customisation function from SimMuon.GEMDigitizer.customizeGEMDigi | |
from SimMuon.GEMDigitizer.customizeGEMDigi import customize_digi_addGEM_addME0_muon_only | |
#call to customisation function customize_digi_addGEM_addME0_muon_only imported from SimMuon.GEMDigitizer.customizeGEMDigi | |
process = customize_digi_addGEM_addME0_muon_only(process) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment