Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:11:26

0001 ################
0002 # this cfg file runs 
0003 # - track reconstruction (RECOBEFMIX step)
0004 # - production of TrackingParticles used for truth matching of reconstructed tracks (in DIGI:pdigi_valid)
0005 # - tracking particle validation as performed in the official validation (in VALIDATION STEP)
0006 # - track validation as performed in the offical validation (in VALIDATION step)
0007 # - track seed validation
0008 #
0009 # it is based on the configuration file generated by the following cmsDriver command
0010 # cmsDriver.py test --conditions auto:run2_mc --fast -n 10 --eventcontent DQM --relval 100000,1000 -s RECOBEFMIX,DIGI:pdigi_valid,VALIDATION --datatier DQMIO --beamspot NominalCollision2015 --customise SLHCUpgradeSimulations/Configuration/postLS1Customs.customisePostLS1 --magField 38T_PostLS1 --no_exec --filein file:YOUR_FILE.root
0011 #
0012 # the modification with respect to the as such generated config file are indicated with BEGIN/END MODIFICATION
0013 ################
0014 
0015 import FWCore.ParameterSet.Config as cms
0016 
0017 process = cms.Process('VALIDATION')
0018 
0019 # import of standard configurations
0020 process.load('Configuration.StandardSequences.Services_cff')
0021 process.load('SimGeneral.HepPDTESSource.pythiapdt_cfi')
0022 process.load('FWCore.MessageService.MessageLogger_cfi')
0023 process.load('FastSimulation.Configuration.EventContent_cff')
0024 process.load('SimGeneral.MixingModule.mixNoPU_cfi')
0025 process.load('FastSimulation.Configuration.Geometries_MC_cff')
0026 process.load('Configuration.StandardSequences.MagneticField_cff')
0027 process.load('FastSimulation.Configuration.Reconstruction_BefMix_cff')
0028 process.load('FastSimulation.Configuration.Digi_cff')
0029 process.load('FastSimulation.Configuration.Validation_cff')
0030 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0031 
0032 process.maxEvents = cms.untracked.PSet(
0033     input = cms.untracked.int32(10)
0034 )
0035 
0036 # Input source
0037 process.source = cms.Source("PoolSource",
0038     dropDescendantsOfDroppedBranches = cms.untracked.bool(False),
0039     fileNames = cms.untracked.vstring('file:GENSIM.root'),
0040     inputCommands = cms.untracked.vstring('keep *', 
0041         'drop *_genParticles_*_*', 
0042         'drop *_genParticlesForJets_*_*', 
0043         'drop *_kt4GenJets_*_*', 
0044         'drop *_kt6GenJets_*_*', 
0045         'drop *_iterativeCone5GenJets_*_*', 
0046         'drop *_ak4GenJets_*_*', 
0047         'drop *_ak7GenJets_*_*', 
0048         'drop *_ak8GenJets_*_*', 
0049         'drop *_ak4GenJetsNoNu_*_*', 
0050         'drop *_ak8GenJetsNoNu_*_*', 
0051         'drop *_genCandidatesForMET_*_*', 
0052         'drop *_genParticlesForMETAllVisible_*_*', 
0053         'drop *_genMetCalo_*_*', 
0054         'drop *_genMetCaloAndNonPrompt_*_*', 
0055         'drop *_genMetTrue_*_*', 
0056         'drop *_genMetIC5GenJs_*_*'),
0057     secondaryFileNames = cms.untracked.vstring()
0058 )
0059 
0060 process.options = cms.untracked.PSet(
0061 
0062 )
0063 
0064 # Production Info
0065 process.configurationMetadata = cms.untracked.PSet(
0066     annotation = cms.untracked.string('test nevts:10'),
0067     name = cms.untracked.string('Applications'),
0068     version = cms.untracked.string('$Revision: 1.19 $')
0069 )
0070 
0071 # Output definition
0072 
0073 process.DQMoutput = cms.OutputModule("DQMRootOutputModule",
0074     dataset = cms.untracked.PSet(
0075         dataTier = cms.untracked.string('DQMIO'),
0076         filterName = cms.untracked.string('')
0077     ),
0078     fileName = cms.untracked.string('TrackRecoAndValidation_inDQM.root'),
0079     outputCommands = process.DQMEventContent.outputCommands,
0080     splitLevel = cms.untracked.int32(0)
0081 )
0082 
0083 # Additional output definition
0084 
0085 # Other statements
0086 process.mix.digitizers = cms.PSet(process.theDigitizersValid)
0087 from Configuration.AlCa.GlobalTag import GlobalTag
0088 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:run2_mc', '')
0089 
0090 # Path and EndPath definitions
0091 process.reconstruction_befmix_step = cms.Path(process.reconstruction_befmix)
0092 process.digitisation_step = cms.Path(process.pdigi_valid)
0093 process.prevalidation_step = cms.Path(process.prevalidation)
0094 process.validation_step = cms.EndPath(process.validation)
0095 process.DQMoutput_step = cms.EndPath(process.DQMoutput)
0096 
0097 # Schedule definition
0098 process.schedule = cms.Schedule(process.reconstruction_befmix_step,process.digitisation_step,process.prevalidation_step,process.validation_step,process.DQMoutput_step)
0099 
0100 # customisation of the process.
0101 
0102 # Automatic addition of the customisation function from FastSimulation.Configuration.MixingModule_Full2Fast
0103 from FastSimulation.Configuration.MixingModule_Full2Fast import prepareDigiRecoMixing 
0104 
0105 #call to customisation function prepareDigiRecoMixing imported from FastSimulation.Configuration.MixingModule_Full2Fast
0106 process = prepareDigiRecoMixing(process)
0107 
0108 # Automatic addition of the customisation function from SLHCUpgradeSimulations.Configuration.postLS1Customs
0109 from SLHCUpgradeSimulations.Configuration.postLS1Customs import customisePostLS1 
0110 
0111 #call to customisation function customisePostLS1 imported from SLHCUpgradeSimulations.Configuration.postLS1Customs
0112 process = customisePostLS1(process)
0113 
0114 # End of customisation functions
0115 
0116 # BEGIN MODIFICATIONS
0117 # redefine validation paths
0118 process.prevalidation = cms.Sequence(process.tracksPreValidation)
0119 process.validation = cms.Sequence(process.trackingTruthValid + process.tracksValidationFS)
0120 # END MODIFICATIONS