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 
0026 process.maxEvents = cms.untracked.PSet(
0027     input = cms.untracked.int32(10)
0028 )
0029 
0030 # Input source
0031 process.source = cms.Source("PoolSource",
0032     fileNames = cms.untracked.vstring('file:/eos/cms/store/hidata/HIRun2018A/HIMinimumBias5/RAW/v1/000/326/573/00000/C4CDB29C-62C9-AF4D-B2A3-5D9793BE3832.root'),
0033     secondaryFileNames = cms.untracked.vstring()
0034 )
0035 
0036 process.options = cms.untracked.PSet(
0037 
0038 )
0039 
0040 # Production Info
0041 process.configurationMetadata = cms.untracked.PSet(
0042     annotation = cms.untracked.string('step2 nevts:30'),
0043     name = cms.untracked.string('Applications'),
0044     version = cms.untracked.string('$Revision: 1.19 $')
0045 )
0046 
0047 # Output definition
0048 
0049 process.outputClusters = cms.OutputModule("EventStreamFileWriter",
0050     fileName = cms.untracked.string('step2clusters.dat'),
0051     compression_algorithm = cms.untracked.string('ZLIB'),
0052     compression_level = cms.untracked.int32(7),
0053     use_compression = cms.untracked.bool(True),
0054     
0055     outputCommands = cms.untracked.vstring(
0056     'drop *',   
0057     'keep *_*siStripClusters*_*_*'   
0058     )
0059 )
0060 
0061 process.outputCompressed = cms.OutputModule("EventStreamFileWriter",
0062     fileName = cms.untracked.string('step2approximated.dat'),
0063     compression_algorithm = cms.untracked.string('ZLIB'),
0064     compression_level = cms.untracked.int32(7),
0065     use_compression = cms.untracked.bool(True),
0066     
0067     outputCommands = cms.untracked.vstring(
0068     'drop *',   
0069     'keep *_*SiStripClusters2ApproxClusters*_*_*'              
0070     )
0071 )
0072 
0073 # Other statements
0074 from Configuration.AlCa.GlobalTag import GlobalTag
0075 #process.GlobalTag = GlobalTag(process.GlobalTag, '103X_dataRun2_Prompt_v2', '')
0076 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:run2_data', '')
0077 
0078 process.SiStripClusters2ApproxClusters = cms.EDProducer("SiStripClusters2ApproxClusters",
0079     inputClusters = cms.InputTag("siStripClusters")
0080 )
0081 
0082 process.SiStripApproximatedClustersDump = cms.EDAnalyzer("SiStripApproximatedClustersDump",
0083     approximatedClustersTag = cms.InputTag("SiStripClusters2ApproxClusters")
0084 )
0085 
0086 # Path and EndPath definitions
0087 process.raw2digi_step = cms.Path(process.RawToDigi)
0088 process.L1Reco_step = cms.Path(process.L1Reco)
0089 process.reconstruction_step = cms.Path(process.reconstruction)
0090 process.approxClusters_step = cms.Path(process.SiStripClusters2ApproxClusters)
0091 process.analyzer_step = cms.Path(process.SiStripApproximatedClustersDump) 
0092 process.endjob_step = cms.EndPath(process.endOfProcess)
0093 process.output_step = cms.EndPath(process.outputClusters+process.outputCompressed)
0094 
0095 process.load('EventFilter.SiStripRawToDigi.SiStripDigiToRaw_cfi')
0096 process.rawStep = process.SiStripDigiToRaw.clone(
0097 InputDigis=cms.InputTag('siStripDigis', 'ZeroSuppressed'),
0098 RawDataTag = cms.InputTag('StripRawDataCollector')
0099  )
0100 
0101 process.load('EventFilter.RawDataCollector.rawDataCollector_cfi')
0102 process.StripRawDataCollector = process.rawDataCollector.clone(RawCollectionList = cms.VInputTag( cms.InputTag('rawStep')))
0103 
0104 process.load('EventFilter.SiPixelRawToDigi.SiPixelDigiToRaw_cfi')
0105 process.rawStepPix = process.siPixelRawData.clone(
0106 InputLabel=cms.InputTag('siPixelDigis'),
0107  )
0108 process.PixelRawDataCollector = process.rawDataCollector.clone(RawCollectionList = cms.VInputTag( cms.InputTag('rawStepPix')))
0109 
0110 process.load('EventFilter.HcalRawToDigi.HcalDigiToRaw_cfi')
0111 process.rawStepHCAL = process.hcalRawDataVME.clone(
0112     HBHE = cms.untracked.InputTag("hcalDigis"),
0113     HF = cms.untracked.InputTag("hcalDigis"),
0114     HO = cms.untracked.InputTag("hcalDigis"),
0115     ZDC = cms.untracked.InputTag("hcalDigis"),
0116     TRIG =  cms.untracked.InputTag("hcalDigis")
0117 )
0118 process.HCALRawDataCollector = process.rawDataCollector.clone(RawCollectionList = cms.VInputTag( cms.InputTag('rawStepHCAL')))
0119 
0120 process.load('EventFilter.ESDigiToRaw.esDigiToRaw_cfi')
0121 process.rawStepES = process.esDigiToRaw.clone(
0122 Label = cms.string('ecalPreshowerDigis'),
0123 )
0124 process.ESRawDataCollector = process.rawDataCollector.clone(RawCollectionList = cms.VInputTag( cms.InputTag('rawStepES')))
0125 
0126 process.rawPath = cms.Path(process.rawStep*process.rawStepPix*process.rawStepHCAL*process.rawStepES*process.StripRawDataCollector*process.PixelRawDataCollector*process.HCALRawDataCollector*process.ESRawDataCollector)
0127 
0128 
0129 
0130 
0131 # Schedule definition
0132 process.schedule = cms.Schedule(process.raw2digi_step,process.L1Reco_step,process.reconstruction_step,process.approxClusters_step,process.rawPath, process.endjob_step,process.output_step)
0133 from PhysicsTools.PatAlgos.tools.helpers import associatePatAlgosToolsTask
0134 associatePatAlgosToolsTask(process)
0135 
0136 from Configuration.Applications.ConfigBuilder import MassReplaceInputTag
0137 MassReplaceInputTag(process, new="rawDataMapperByLabel", old="rawDataCollector")
0138 
0139 #do not add changes to your config after this point (unless you know what you are doing)
0140 from FWCore.ParameterSet.Utilities import convertToUnscheduled
0141 process=convertToUnscheduled(process)
0142 
0143 
0144 # Customisation from command line
0145 
0146 #Have logErrorHarvester wait for the same EDProducers to finish as those providing data for the OutputModule
0147 from FWCore.Modules.logErrorHarvester_cff import customiseLogErrorHarvesterUsingOutputCommands
0148 process = customiseLogErrorHarvesterUsingOutputCommands(process)
0149 
0150 # Add early deletion of temporary data products to reduce peak memory need
0151 from Configuration.StandardSequences.earlyDeleteSettings_cff import customiseEarlyDelete
0152 process = customiseEarlyDelete(process)
0153 # End adding early deletion