Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:34:40

0001 
0002 import FWCore.ParameterSet.Config as cms
0003 
0004 readFiles = cms.untracked.vstring()
0005 secFiles = cms.untracked.vstring()
0006 duplCheck = cms.untracked.string('noDuplicateCheck')
0007 source = cms.Source ("PoolSource",
0008                      fileNames = readFiles,
0009                      secondaryFileNames = secFiles,
0010                      skipEvents = cms.untracked.uint32(0),
0011                      )
0012 readFiles.extend( [
0013 '/store/relval/CMSSW_9_0_0_pre2/RelValQCD_Pt_3000_3500_13/GEN-SIM-DIGI-RAW-HLTDEBUG/90X_mcRun2_asymptotic_v0-v1/10000/00242170-3BC2-E611-AC9F-0CC47A7C3628.root',
0014 '/store/relval/CMSSW_9_0_0_pre2/RelValQCD_Pt_3000_3500_13/GEN-SIM-DIGI-RAW-HLTDEBUG/90X_mcRun2_asymptotic_v0-v1/10000/1EF62F8F-3BC2-E611-B465-0CC47A78A440.root',
0015 '/store/relval/CMSSW_9_0_0_pre2/RelValQCD_Pt_3000_3500_13/GEN-SIM-DIGI-RAW-HLTDEBUG/90X_mcRun2_asymptotic_v0-v1/10000/24E6DCFB-62C2-E611-929B-0CC47A7C35E0.root',
0016 '/store/relval/CMSSW_9_0_0_pre2/RelValQCD_Pt_3000_3500_13/GEN-SIM-DIGI-RAW-HLTDEBUG/90X_mcRun2_asymptotic_v0-v1/10000/2A105509-62C2-E611-B1BC-0CC47A7C3430.root',
0017 '/store/relval/CMSSW_9_0_0_pre2/RelValQCD_Pt_3000_3500_13/GEN-SIM-DIGI-RAW-HLTDEBUG/90X_mcRun2_asymptotic_v0-v1/10000/38366875-3BC2-E611-86EA-0CC47A7C356A.root',
0018 '/store/relval/CMSSW_9_0_0_pre2/RelValQCD_Pt_3000_3500_13/GEN-SIM-DIGI-RAW-HLTDEBUG/90X_mcRun2_asymptotic_v0-v1/10000/6E9E6877-3BC2-E611-B5BC-0025905A60D0.root',
0019 '/store/relval/CMSSW_9_0_0_pre2/RelValQCD_Pt_3000_3500_13/GEN-SIM-DIGI-RAW-HLTDEBUG/90X_mcRun2_asymptotic_v0-v1/10000/DC4B89FA-62C2-E611-BEA8-0025905A6060.root',
0020 '/store/relval/CMSSW_9_0_0_pre2/RelValQCD_Pt_3000_3500_13/GEN-SIM-DIGI-RAW-HLTDEBUG/90X_mcRun2_asymptotic_v0-v1/10000/EEB73D90-3BC2-E611-B0A4-0025905A60FE.root' ] );
0021 
0022 
0023 from Configuration.Eras.Era_Run2_2016_cff import Run2_2016
0024 process = cms.Process('makeNtuples',Run2_2016)
0025 
0026 # import of standard configurations
0027 process.load('Configuration.StandardSequences.Services_cff')
0028 process.load('FWCore.MessageService.MessageLogger_cfi')
0029 process.load('Configuration.EventContent.EventContent_cff')
0030 process.load('SimGeneral.MixingModule.mixNoPU_cfi')
0031 process.load('Configuration.StandardSequences.GeometryRecoDB_cff')
0032 process.load('Configuration.StandardSequences.MagneticField_cff')
0033 process.load('Configuration.StandardSequences.RawToDigi_cff')
0034 process.load('Configuration.StandardSequences.Reconstruction_cff')
0035 process.load('Configuration.StandardSequences.EndOfProcess_cff')
0036 process.load('RecoTracker.TkSeedGenerator.trackerClusterCheck_cfi')
0037 process.load('RecoTracker.MeasurementDet.MeasurementTrackerEventProducer_cfi')
0038 process.load("RecoTracker.TrackProducer.TrackRefitters_cff")
0039 process.load("RecoPixelVertexing.Configuration.RecoPixelVertexing_cff")
0040 process.load('Validation.TrackerRecHits.test.StripClusterMCanalysis_cfi')
0041 
0042 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(10) )
0043 process.MessageLogger.cerr.FwkReport.reportEvery = 1
0044 
0045 process.StripClusterMCanalysis.printOut = cms.untracked.int32(0)
0046 
0047 useCrossingFrames = False
0048 
0049 if useCrossingFrames:
0050   # Customize mixing module (needed for crossing frames only)
0051   process.mix.playback = True
0052   process.mix.digitizers = cms.PSet()
0053   for a in process.aliases: delattr(process, a)
0054   process.mix.mixObjects.mixSH.crossingFrames = cms.untracked.vstring(
0055     'TrackerHitsTECHighTof',
0056     'TrackerHitsTECLowTof',
0057     'TrackerHitsTIBHighTof',
0058     'TrackerHitsTIBLowTof',
0059     'TrackerHitsTIDHighTof',
0060     'TrackerHitsTIDLowTof',
0061     'TrackerHitsTOBHighTof',
0062     'TrackerHitsTOBLowTof')
0063 
0064   process.StripClusterMCanalysis.ROUList = cms.vstring(
0065     'g4SimHitsTrackerHitsTIBLowTof',   # crossing frames, module label mix
0066     'g4SimHitsTrackerHitsTIBHighTof',
0067     'g4SimHitsTrackerHitsTIDLowTof',
0068     'g4SimHitsTrackerHitsTIDHighTof',
0069     'g4SimHitsTrackerHitsTOBLowTof',
0070     'g4SimHitsTrackerHitsTOBHighTof',
0071     'g4SimHitsTrackerHitsTECLowTof',
0072     'g4SimHitsTrackerHitsTECHighTof'
0073     )
0074 
0075 ### conditions
0076 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0077 from Configuration.AlCa.GlobalTag import GlobalTag
0078 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:run2_mc', '')
0079 
0080 process.source = source
0081 
0082 process.TFileService = cms.Service("TFileService",
0083     fileName = cms.string('clusNtuple.root')
0084 )
0085 
0086 if useCrossingFrames:
0087   process.raw2digi_step = cms.Sequence(process.mix*process.RawToDigi)
0088 else:
0089   process.raw2digi_step = cms.Sequence(process.RawToDigi)
0090 
0091 process.p1 = cms.Path(
0092     process.raw2digi_step
0093     *process.bunchSpacingProducer
0094     *process.trackerlocalreco
0095     *process.offlineBeamSpot
0096     *process.MeasurementTrackerEventPreSplitting
0097     *process.siPixelClusterShapeCachePreSplitting
0098     *process.trackerlocalreco
0099     *process.calolocalreco
0100     *process.InitialStepPreSplitting
0101     *process.trackerClusterCheck
0102     *process.InitialStep
0103     *process.firstStepPrimaryVertices
0104     *process.StripClusterMCanalysis
0105     )