Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-03-17 11:25:58

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 
0004 from Configuration.Eras.Era_Phase2C17I13M9_cff import Phase2C17I13M9
0005 process = cms.Process('USER',Phase2C17I13M9)
0006 
0007 # import of standard configurations
0008 process.load('Configuration.StandardSequences.Services_cff')
0009 process.load('SimGeneral.HepPDTESSource.pythiapdt_cfi')
0010 process.load('FWCore.MessageService.MessageLogger_cfi')
0011 process.load('Configuration.EventContent.EventContent_cff')
0012 process.load('SimGeneral.MixingModule.mixNoPU_cfi')
0013 #process.load('SimGeneral.MixingModule.mix_POISSON_average_cfi')
0014 process.load('Configuration.Geometry.GeometryExtended2026D88Reco_cff')
0015 process.load('Configuration.StandardSequences.MagneticField_cff')
0016 process.load('Configuration.StandardSequences.Digi_cff')
0017 process.load('Configuration.StandardSequences.SimL1Emulator_cff')
0018 process.load('Configuration.StandardSequences.L1TrackTrigger_cff')
0019 process.load('Configuration.StandardSequences.DigiToRaw_cff')
0020 process.load('HLTrigger.Configuration.HLT_Fake2_cff')
0021 process.load('Configuration.StandardSequences.RawToDigi_cff')
0022 process.load('Configuration.StandardSequences.Reconstruction_cff')
0023 process.load('Configuration.StandardSequences.EndOfProcess_cff')
0024 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0025 
0026 process.maxEvents = cms.untracked.PSet(
0027     input = cms.untracked.int32(10)
0028 )
0029 
0030 process.source = cms.Source("PoolSource",
0031     fileNames = cms.untracked.vstring(
0032         '/store/relval/CMSSW_12_3_0_pre6/RelValSingleMuPt10/GEN-SIM/123X_mcRun4_realistic_v8_2026D88noPU-v1/10000/a7e6521e-e026-447b-8bf9-38a09e97916f.root'
0033     )
0034 )
0035 
0036 
0037 process.options = cms.untracked.PSet(
0038 
0039 )
0040 
0041 # Production Info
0042 process.configurationMetadata = cms.untracked.PSet(
0043     annotation = cms.untracked.string('step2 nevts:10'),
0044     name = cms.untracked.string('Applications'),
0045     version = cms.untracked.string('$Revision: 1.19 $')
0046 )
0047 
0048 # MC vertice analyzer
0049 process.load("Validation.RecoVertex.mcverticesanalyzer_cfi")
0050 process.mcverticesanalyzer.pileupSummaryCollection = cms.InputTag("addPileupInfo","","HLT")
0051 
0052 # Output definition
0053 
0054 #process.FEVTDEBUGHLToutput = cms.OutputModule("PoolOutputModule",
0055 #    dataset = cms.untracked.PSet(
0056 #        dataTier = cms.untracked.string('GEN-SIM-RECO'),
0057 #        filterName = cms.untracked.string('')
0058 #    ),
0059 #    fileName = cms.untracked.string('step2_DIGI_L1_L1TrackTrigger_DIGI2RAW_HLT_RAW2DIGI_L1Reco_RECO.root'),
0060 #    outputCommands = process.FEVTDEBUGHLTEventContent.outputCommands,
0061 #    splitLevel = cms.untracked.int32(0)
0062 #)
0063 
0064 # # # -- Trajectory producer
0065 process.load("RecoTracker.TrackProducer.TrackRefitters_cff")
0066 process.TrackRefitter.src = 'generalTracks'
0067 process.TrackRefitter.NavigationSchool = ""
0068 
0069 process.ReadLocalMeasurement = cms.EDAnalyzer("Phase2PixelNtuple",
0070                                               trackProducer = cms.InputTag("generalTracks"),
0071                                               trajectoryInput = cms.InputTag('TrackRefitter::USER'),
0072                                               #verbose = cms.untracked.bool(True),
0073                                               #picky = cms.untracked.bool(False),                                             
0074                                               ### for using track hit association
0075                                               associatePixel = cms.bool(True),
0076                                               associateStrip = cms.bool(False),
0077                                               associateRecoTracks = cms.bool(False),
0078                                               ROUList = cms.vstring('TrackerHitsPixelBarrelLowTof',
0079                                                                     'TrackerHitsPixelBarrelHighTof',
0080                                                                     'TrackerHitsPixelEndcapLowTof',
0081                                                                     'TrackerHitsPixelEndcapHighTof'),
0082                                               ttrhBuilder = cms.string("WithTrackAngle"),
0083                                               usePhase2Tracker = cms.bool(True),
0084                                               pixelSimLinkSrc = cms.InputTag("simSiPixelDigis", "Pixel"),
0085                                               phase2TrackerSimLinkSrc = cms.InputTag("simSiPixelDigis", "Tracker")
0086                                           )
0087 
0088 
0089 # Additional output definition
0090 
0091 # Other statements
0092 process.mix.digitizers = cms.PSet(process.theDigitizersValid)
0093 
0094 # This pset is specific for producing simulated events for the designers of the PROC (InnerTracker)
0095 # They need pixel RecHits where the charge is stored with high-granularity and large dinamic range
0096 
0097 from Configuration.AlCa.GlobalTag import GlobalTag
0098 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:phase2_realistic_T21', '')
0099 
0100 # Path and EndPath definitions
0101 process.digitisation_step = cms.Path(process.pdigi_valid)
0102 process.L1simulation_step = cms.Path(process.SimL1Emulator)
0103 process.L1TrackTrigger_step = cms.Path(process.L1TrackTrigger)
0104 process.digi2raw_step = cms.Path(process.DigiToRaw)
0105 process.raw2digi_step = cms.Path(process.RawToDigi)
0106 process.reconstruction_step = cms.Path(process.reconstruction)
0107 process.user_step = cms.Path(process.TrackRefitter * process.ReadLocalMeasurement * process.mcverticesanalyzer)
0108 process.endjob_step = cms.EndPath(process.endOfProcess)
0109 #process.FEVTDEBUGHLToutput_step = cms.EndPath(process.FEVTDEBUGHLToutput)
0110 
0111 # Schedule definition
0112 # process.schedule imported from cff in HLTrigger.Configuration
0113 process.schedule.insert(0, process.digitisation_step)
0114 process.schedule.insert(1, process.L1simulation_step)
0115 process.schedule.insert(2, process.L1TrackTrigger_step)
0116 process.schedule.insert(3, process.digi2raw_step)
0117 process.schedule.extend([process.raw2digi_step,process.reconstruction_step,process.user_step,process.endjob_step])
0118 from PhysicsTools.PatAlgos.tools.helpers import associatePatAlgosToolsTask
0119 associatePatAlgosToolsTask(process)
0120 
0121 # customisation of the process.
0122 
0123 # Automatic addition of the customisation function from HLTrigger.Configuration.customizeHLTforMC
0124 from HLTrigger.Configuration.customizeHLTforMC import customizeHLTforMC 
0125 
0126 #call to customisation function customizeHLTforMC imported from HLTrigger.Configuration.customizeHLTforMC
0127 process = customizeHLTforMC(process)
0128 
0129 # End of customisation functions
0130 
0131 # Customisation from command line
0132 
0133 #Have logErrorHarvester wait for the same EDProducers to finish as those providing data for the OutputModule
0134 from FWCore.Modules.logErrorHarvester_cff import customiseLogErrorHarvesterUsingOutputCommands
0135 process = customiseLogErrorHarvesterUsingOutputCommands(process)
0136 
0137 # Add early deletion of temporary data products to reduce peak memory need
0138 from Configuration.StandardSequences.earlyDeleteSettings_cff import customiseEarlyDelete
0139 process = customiseEarlyDelete(process)
0140 # End adding early deletion
0141 process.TFileService = cms.Service('TFileService',
0142 fileName = cms.string("pixelntuple.root")
0143 )
0144