Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-04-19 22:45:34

0001 # Configuration file to run HGCAL Validator only
0002 import FWCore.ParameterSet.Config as cms
0003 import FWCore.ParameterSet.VarParsing as VarParsing
0004 
0005 from Configuration.Eras.Era_Phase2C9_cff import Phase2C9
0006 
0007 options = VarParsing.VarParsing ('standard')
0008 options.register('inputFile', 'step3_inDQM.root', VarParsing.VarParsing.multiplicity.singleton, VarParsing.VarParsing.varType.string, "Input file")
0009 options.register ('globalTag', 'auto:phase2_realistic_T15', VarParsing.VarParsing.multiplicity.singleton, VarParsing.VarParsing.varType.string, "GlobalTag")
0010 options.parseArguments()
0011 
0012 print("Input file: ", options.inputFile)
0013 print("GlobalTag: ", options.globalTag)
0014 
0015 process = cms.Process('HARVESTING',Phase2C9)
0016 
0017 # import of standard configurations
0018 process.load('Configuration.StandardSequences.Services_cff')
0019 process.load('SimGeneral.HepPDTESSource.pythiapdt_cfi')
0020 process.load('FWCore.MessageService.MessageLogger_cfi')
0021 process.load('Configuration.EventContent.EventContent_cff')
0022 process.load('SimGeneral.MixingModule.mixNoPU_cfi')
0023 process.load('Configuration.Geometry.GeometryExtended2026D49Reco_cff')
0024 process.load('Configuration.StandardSequences.MagneticField_cff')
0025 process.load('Configuration.StandardSequences.DQMSaverAtRunEnd_cff')
0026 process.load('Configuration.StandardSequences.Harvesting_cff')
0027 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0028 
0029 process.maxEvents = cms.untracked.PSet(
0030     input = cms.untracked.int32(100),
0031     output = cms.optional.untracked.allowed(cms.int32,cms.PSet)
0032 )
0033 
0034 # Input source
0035 process.source = cms.Source("DQMRootSource",
0036     fileNames = cms.untracked.vstring('file:'+options.inputFile)
0037 )
0038 
0039 process.options = cms.untracked.PSet(
0040     FailPath = cms.untracked.vstring(),
0041     IgnoreCompletely = cms.untracked.vstring(),
0042     Rethrow = cms.untracked.vstring('ProductNotFound'),
0043     SkipEvent = cms.untracked.vstring(),
0044     allowUnscheduled = cms.obsolete.untracked.bool,
0045     canDeleteEarly = cms.untracked.vstring(),
0046     deleteNonConsumedUnscheduledModules = cms.untracked.bool(True),
0047     emptyRunLumiMode = cms.obsolete.untracked.string,
0048     eventSetup = cms.untracked.PSet(
0049         forceNumberOfConcurrentIOVs = cms.untracked.PSet(
0050             allowAnyLabel_=cms.required.untracked.uint32
0051         ),
0052         numberOfConcurrentIOVs = cms.untracked.uint32(1)
0053     ),
0054     fileMode = cms.untracked.string('FULLMERGE'),
0055     forceEventSetupCacheClearOnNewRun = cms.untracked.bool(False),
0056     makeTriggerResults = cms.obsolete.untracked.bool,
0057     numberOfConcurrentLuminosityBlocks = cms.untracked.uint32(1),
0058     numberOfConcurrentRuns = cms.untracked.uint32(1),
0059     numberOfStreams = cms.untracked.uint32(0),
0060     numberOfThreads = cms.untracked.uint32(1),
0061     printDependencies = cms.untracked.bool(False),
0062     sizeOfStackForThreadsInKB = cms.optional.untracked.uint32,
0063     throwIfIllegalParameter = cms.untracked.bool(True),
0064     wantSummary = cms.untracked.bool(False)
0065 )
0066 
0067 # Production Info
0068 process.configurationMetadata = cms.untracked.PSet(
0069     annotation = cms.untracked.string('step4 nevts:100'),
0070     name = cms.untracked.string('Applications'),
0071     version = cms.untracked.string('$Revision: 1.19 $')
0072 )
0073 
0074 # Output definition
0075 
0076 # Additional output definition
0077 
0078 # Other statements
0079 from Configuration.AlCa.GlobalTag import GlobalTag
0080 process.GlobalTag = GlobalTag(process.GlobalTag, options.globalTag, '')
0081 
0082 # Path and EndPath definitions
0083 process.hgcalValidatorPostProcessor_step = cms.Path(process.hgcalValidatorPostProcessor)
0084 process.dqmsave_step = cms.Path(process.DQMSaver)
0085 
0086 # Schedule definition
0087 process.schedule = cms.Schedule(process.hgcalValidatorPostProcessor_step,process.dqmsave_step)
0088 from PhysicsTools.PatAlgos.tools.helpers import associatePatAlgosToolsTask
0089 associatePatAlgosToolsTask(process)
0090 
0091 
0092 
0093 # Customisation from command line
0094 
0095 # Add early deletion of temporary data products to reduce peak memory need
0096 from Configuration.StandardSequences.earlyDeleteSettings_cff import customiseEarlyDelete
0097 process = customiseEarlyDelete(process)
0098 # End adding early deletion