Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-05-26 00:02:56

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: step2 --conditions 103X_dataRun2_Prompt_v2 -s RAW2DIGI,L1Reco,RECO --process reRECO -n 30 --data --era Run2_2018_pp_on_AA --eventcontent AOD --runUnscheduled --scenario pp --datatier AOD --repacked --filein file:out.root --fileout file:step2.root --no_exec
0006 import FWCore.ParameterSet.Config as cms
0007 
0008 from Configuration.StandardSequences.Eras import eras
0009 
0010 process = cms.Process('reRECO',eras.Run2_2018_pp_on_AA)
0011 
0012 # import of standard configurations
0013 process.load('Configuration.StandardSequences.Services_cff')
0014 process.load('SimGeneral.HepPDTESSource.pythiapdt_cfi')
0015 process.load('FWCore.MessageService.MessageLogger_cfi')
0016 process.load('Configuration.EventContent.EventContent_cff')
0017 process.load('Configuration.StandardSequences.GeometryRecoDB_cff')
0018 process.load('Configuration.StandardSequences.MagneticField_AutoFromDBCurrent_cff')
0019 process.load('Configuration.StandardSequences.RawToDigi_DataMapper_cff')
0020 process.load('Configuration.StandardSequences.L1Reco_cff')
0021 process.load('Configuration.StandardSequences.Reconstruction_Data_cff')
0022 process.load('Configuration.StandardSequences.EndOfProcess_cff')
0023 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0024 
0025 process.maxEvents = cms.untracked.PSet(
0026     input = cms.untracked.int32(10)
0027 )
0028 
0029 # Input source
0030 process.source = cms.Source("PoolSource",
0031     fileNames = cms.untracked.vstring('file:/eos/cms/store/hidata/HIRun2018A/HIMinimumBias5/RAW/v1/000/326/573/00000/C4CDB29C-62C9-AF4D-B2A3-5D9793BE3832.root'),
0032     secondaryFileNames = cms.untracked.vstring()
0033 )
0034 
0035 process.options = cms.untracked.PSet(
0036 
0037 )
0038 
0039 # Production Info
0040 process.configurationMetadata = cms.untracked.PSet(
0041     annotation = cms.untracked.string('step2 nevts:30'),
0042     name = cms.untracked.string('Applications'),
0043     version = cms.untracked.string('$Revision: 1.19 $')
0044 )
0045 
0046 # Output definition
0047 
0048 process.outputClusters = cms.OutputModule("PoolOutputModule",
0049     compressionAlgorithm = cms.untracked.string('ZLIB'),
0050     compressionLevel = cms.untracked.int32(7),
0051     eventAutoFlushCompressedSize = cms.untracked.int32(31457280),
0052     fileName = cms.untracked.string('file:step2clusters.root'),
0053     outputCommands = cms.untracked.vstring(
0054     'drop *',   
0055     'keep *_*siStripClusters*_*_*'   
0056     )
0057 )
0058 
0059 process.outputCompressed = cms.OutputModule("PoolOutputModule",
0060     compressionAlgorithm = cms.untracked.string('ZLIB'),
0061     compressionLevel = cms.untracked.int32(7),
0062     eventAutoFlushCompressedSize = cms.untracked.int32(31457280),
0063     fileName = cms.untracked.string('file:step2approximated.root'),
0064     outputCommands = cms.untracked.vstring(
0065     'drop *',   
0066     'keep *_*SiStripClusters2ApproxClusters*_*_*',
0067     'keep *_*SiStripApprox2ApproxClusters*_*_*'       
0068     
0069     )
0070 )
0071 
0072 process.TFileService = cms.Service("TFileService",
0073         fileName=cms.string("step2approximated_Ntuple.root"))
0074 
0075 # Additional output definition
0076 
0077 # Other statements
0078 from Configuration.AlCa.GlobalTag import GlobalTag
0079 #process.GlobalTag = GlobalTag(process.GlobalTag, '103X_dataRun2_Prompt_v2', '')
0080 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:run2_data', '')
0081 
0082 
0083 process.SiStripClusters2ApproxClusters = cms.EDProducer("SiStripClusters2ApproxClusters",
0084     inputClusters = cms.InputTag("siStripClusters")
0085 )
0086 
0087 process.SiStripApprox2ApproxClusters = cms.EDProducer("SiStripApprox2ApproxClusters",
0088     inputApproxClusters = cms.InputTag("SiStripClusters2ApproxClusters"),
0089     approxVersion= cms.string("ORIGINAL")
0090 )
0091 
0092 process.SiStripApproximatedClustersDump = cms.EDAnalyzer("SiStripApproximatedClustersDump",
0093     #approximatedClustersTag = cms.InputTag("SiStripClusters2ApproxClusters")
0094     approximatedClustersTag = cms.InputTag("SiStripApprox2ApproxClusters")
0095 )
0096 
0097 # Path and EndPath definitions
0098 process.raw2digi_step = cms.Path(process.RawToDigi)
0099 process.L1Reco_step = cms.Path(process.L1Reco)
0100 process.reconstruction_step = cms.Path(process.reconstruction)
0101 process.approxClusters_step = cms.Path(process.SiStripClusters2ApproxClusters)
0102 process.approxToApproxClusters_step=cms.Path(process.SiStripApprox2ApproxClusters)
0103 process.analyzer_step = cms.Path(process.SiStripApproximatedClustersDump) 
0104 process.endjob_step = cms.EndPath(process.endOfProcess)
0105 process.output_step = cms.EndPath(process.outputClusters+process.outputCompressed)
0106 
0107 
0108 
0109 
0110 process.load('EventFilter.SiStripRawToDigi.SiStripDigiToRaw_cfi')
0111 process.rawStep = process.SiStripDigiToRaw.clone(
0112 InputDigis=cms.InputTag('siStripDigis', 'ZeroSuppressed'),
0113 RawDataTag = cms.InputTag('StripRawDataCollector')
0114  )
0115 
0116 process.load('EventFilter.RawDataCollector.rawDataCollector_cfi')
0117 process.StripRawDataCollector = process.rawDataCollector.clone(RawCollectionList = cms.VInputTag( cms.InputTag('rawStep')))
0118 
0119 process.load('EventFilter.SiPixelRawToDigi.SiPixelDigiToRaw_cfi')
0120 process.rawStepPix = process.siPixelRawData.clone(
0121 InputLabel=cms.InputTag('siPixelDigis'),
0122  )
0123 process.PixelRawDataCollector = process.rawDataCollector.clone(RawCollectionList = cms.VInputTag( cms.InputTag('rawStepPix')))
0124 
0125 process.load('EventFilter.HcalRawToDigi.HcalDigiToRaw_cfi')
0126 process.rawStepHCAL = process.hcalRawDataVME.clone(
0127     HBHE = cms.untracked.InputTag("hcalDigis"),
0128     HF = cms.untracked.InputTag("hcalDigis"),
0129     HO = cms.untracked.InputTag("hcalDigis"),
0130     ZDC = cms.untracked.InputTag("hcalDigis"),
0131     TRIG =  cms.untracked.InputTag("hcalDigis")
0132 )
0133 process.HCALRawDataCollector = process.rawDataCollector.clone(RawCollectionList = cms.VInputTag( cms.InputTag('rawStepHCAL')))
0134 
0135 process.load('EventFilter.ESDigiToRaw.esDigiToRaw_cfi')
0136 process.rawStepES = process.esDigiToRaw.clone(
0137 Label = cms.string('ecalPreshowerDigis'),
0138 )
0139 process.ESRawDataCollector = process.rawDataCollector.clone(RawCollectionList = cms.VInputTag( cms.InputTag('rawStepES')))
0140 
0141 process.rawPath = cms.Path(process.rawStep*process.rawStepPix*process.rawStepHCAL*process.rawStepES*process.StripRawDataCollector*process.PixelRawDataCollector*process.HCALRawDataCollector*process.ESRawDataCollector)
0142 
0143 
0144 # Schedule definition
0145 process.schedule = cms.Schedule(process.raw2digi_step,process.L1Reco_step,process.reconstruction_step,process.approxClusters_step, process.approxToApproxClusters_step, process.analyzer_step, process.rawPath, process.endjob_step,process.output_step)
0146 from PhysicsTools.PatAlgos.tools.helpers import associatePatAlgosToolsTask
0147 associatePatAlgosToolsTask(process)
0148 
0149 from Configuration.Applications.ConfigBuilder import MassReplaceInputTag
0150 MassReplaceInputTag(process, new="rawDataMapperByLabel", old="rawDataCollector")
0151 
0152 #do not add changes to your config after this point (unless you know what you are doing)
0153 from FWCore.ParameterSet.Utilities import convertToUnscheduled
0154 process=convertToUnscheduled(process)
0155 
0156 
0157 # Customisation from command line
0158 
0159 #Have logErrorHarvester wait for the same EDProducers to finish as those providing data for the OutputModule
0160 from FWCore.Modules.logErrorHarvester_cff import customiseLogErrorHarvesterUsingOutputCommands
0161 process = customiseLogErrorHarvesterUsingOutputCommands(process)
0162 
0163 # Add early deletion of temporary data products to reduce peak memory need
0164 from Configuration.StandardSequences.earlyDeleteSettings_cff import customiseEarlyDelete
0165 process = customiseEarlyDelete(process)
0166 # End adding early deletion