Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 23:29:38

0001 # Auto generated configuration file
0002 # using: 
0003 # Revision: 1.19 
0004 # Source: /local/reps/CMSSW/CMSSW/Configuration/Applications/python/ConfigBuilder.py,v 
0005 # with command line options: testSSTGain_MultiRun_HARVEST --data --conditions auto:run2_data --scenario pp -s ALCAHARVEST:SiStripGainsAAG --filein file:PromptCalibProdSiStripGainsAAG.root -n -1 --no_exec
0006 import FWCore.ParameterSet.Config as cms
0007 
0008 from FWCore.ParameterSet.VarParsing import VarParsing
0009 
0010 options = VarParsing('analysis')
0011 options.register('globalTag', "auto:run2_data", VarParsing.multiplicity.singleton, VarParsing.varType.string, "Global tag")
0012 options.register('dumpStat', False , VarParsing.multiplicity.singleton, VarParsing.varType.bool, "dump the GT stats")
0013 options.parseArguments()
0014 
0015 process = cms.Process('ALCAHARVEST')
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.MessageLogger.cerr.enable = False
0022 process.MessageLogger.SiStripGainsPCLHarvester=dict()
0023 process.MessageLogger.cout = cms.untracked.PSet(
0024     enable    = cms.untracked.bool(True),
0025     enableStatistics = cms.untracked.bool(True),
0026     threshold = cms.untracked.string("ERROR"),
0027     default   = cms.untracked.PSet(limit = cms.untracked.int32(0)),
0028     FwkReport = cms.untracked.PSet(limit = cms.untracked.int32(-1),
0029                                    reportEvery = cms.untracked.int32(1000)
0030                                    ),
0031     SiStripGainsPCLHarvester = cms.untracked.PSet( limit = cms.untracked.int32(-1))
0032 )
0033 
0034 process.load('Configuration.EventContent.EventContent_cff')
0035 process.load('Configuration.StandardSequences.GeometryRecoDB_cff')
0036 process.load('Configuration.StandardSequences.MagneticField_cff')
0037 process.load('Configuration.StandardSequences.AlCaHarvesting_cff')
0038 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0039 
0040 process.maxEvents = cms.untracked.PSet(
0041     input = cms.untracked.int32(-1),
0042     output = cms.optional.untracked.allowed(cms.int32,cms.PSet)
0043 )
0044 
0045 # Input source
0046 process.source = cms.Source("PoolSource",
0047     fileNames = cms.untracked.vstring(
0048         'file:PromptCalibProdSiStripGains_A.root',
0049         'file:PromptCalibProdSiStripGains_B.root'
0050     ),
0051     processingMode = cms.untracked.string('RunsAndLumis'),
0052     secondaryFileNames = cms.untracked.vstring()
0053 )
0054 
0055 process.options = cms.untracked.PSet(
0056     FailPath = cms.untracked.vstring(),
0057     IgnoreCompletely = cms.untracked.vstring(),
0058     Rethrow = cms.untracked.vstring('ProductNotFound'),
0059     SkipEvent = cms.untracked.vstring(),
0060     allowUnscheduled = cms.obsolete.untracked.bool,
0061     canDeleteEarly = cms.untracked.vstring(),
0062     emptyRunLumiMode = cms.obsolete.untracked.string,
0063     eventSetup = cms.untracked.PSet(
0064         forceNumberOfConcurrentIOVs = cms.untracked.PSet(
0065 
0066         ),
0067         numberOfConcurrentIOVs = cms.untracked.uint32(1)
0068     ),
0069     fileMode = cms.untracked.string('FULLMERGE'),
0070     forceEventSetupCacheClearOnNewRun = cms.untracked.bool(False),
0071     makeTriggerResults = cms.obsolete.untracked.bool,
0072     numberOfConcurrentLuminosityBlocks = cms.untracked.uint32(1),
0073     numberOfConcurrentRuns = cms.untracked.uint32(1),
0074     numberOfStreams = cms.untracked.uint32(0),
0075     numberOfThreads = cms.untracked.uint32(1),
0076     printDependencies = cms.untracked.bool(False),
0077     sizeOfStackForThreadsInKB = cms.optional.untracked.uint32,
0078     throwIfIllegalParameter = cms.untracked.bool(True),
0079     wantSummary = cms.untracked.bool(False)
0080 )
0081 
0082 # Production Info
0083 process.configurationMetadata = cms.untracked.PSet(
0084     annotation = cms.untracked.string('testSSTGain_MultiRun_HARVEST nevts:-1'),
0085     name = cms.untracked.string('Applications'),
0086     version = cms.untracked.string('$Revision: 1.19 $')
0087 )
0088 
0089 # Output definition
0090 
0091 # Additional output definition
0092 
0093 # Other statements
0094 process.PoolDBOutputService.toPut.append(process.ALCAHARVESTSiStripGainsAAG_dbOutput)
0095 process.pclMetadataWriter.recordsToMap.append(process.ALCAHARVESTSiStripGainsAAG_metadata)
0096 from Configuration.AlCa.GlobalTag import GlobalTag
0097 process.GlobalTag = GlobalTag(process.GlobalTag, options.globalTag, '')
0098 
0099 if(options.dumpStat):
0100     process.GlobalTag.DumpStat = cms.untracked.bool(True)
0101 
0102 # Path and EndPath definitions
0103 
0104 process.ALCAHARVESTDQMSaveAndMetadataWriter = cms.Path(process.dqmSaver+process.pclMetadataWriter)
0105 process.SiStripGains = cms.Path(process.ALCAHARVESTSiStripGains)
0106 
0107 # Schedule definition
0108 process.schedule = cms.Schedule(process.SiStripGains,process.ALCAHARVESTDQMSaveAndMetadataWriter)
0109 from PhysicsTools.PatAlgos.tools.helpers import associatePatAlgosToolsTask
0110 associatePatAlgosToolsTask(process)
0111 
0112 # modifications in order to run the multi-run harvesting
0113 process.dqmSaver.saveByRun=cms.untracked.int32(-1)
0114 process.dqmSaver.saveAtJobEnd=cms.untracked.bool(True)
0115 process.dqmSaver.forceRunNumber=cms.untracked.int32(999999)
0116 
0117 # Customisation from command line
0118 
0119 # Add early deletion of temporary data products to reduce peak memory need
0120 from Configuration.StandardSequences.earlyDeleteSettings_cff import customiseEarlyDelete
0121 process = customiseEarlyDelete(process)
0122 # End adding early deletion